zohen / sitemapgen4j

Automatically exported from code.google.com/p/sitemapgen4j
0 stars 0 forks source link

Make This App Engine Friendly #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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!

Original issue reported on code.google.com by shaun.cl...@lexmatter.com on 14 Dec 2010 at 7:55

GoogleCodeExporter commented 8 years ago
Hi,

 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!

Original comment by cio.dan...@gmail.com on 2 Feb 2015 at 11:30