What steps will reproduce the problem? 1. Try using this on App Engine.
What is the expected output? What do you see instead?
It works, it doesn't due to the restrictions on java.io and file system access.
What version of the product are you using? On what operating system?
1.0, Google App Engine
Please provide any additional information below.
I think it should be easy enough to add a method that instead of trying to write to a file gives you the output as a blob or some kind of input stream so you can then write the output to the datastore or even memory to be sent to the crawler upon request. Thanks!
Comment #1
Posted on Feb 2, 2015 by Swift GiraffeHi,
I'm trying to use on app engine and it's reporting a error!
ADVERTĂNCIA: /sitemap.xml java.lang.NoClassDefFoundError: java.io.FileOutputStream is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:51) at com.redfin.sitemapgenerator.SitemapGenerator.writeSiteMap(SitemapGenerator.java:194) at com.redfin.sitemapgenerator.SitemapGenerator.write(SitemapGenerator.java:161)
I think the best way it isn't use file for write! use a response.write!
Regards!
Status: New
Labels:
Type-Defect
Priority-Medium