[appengine-java] 500 Server Error (Dashboard)

2010-11-12 Thread aizensousuke
Hi guys

I'm having a 500 Server Error after trying to delete some rows on the
datastore. Any idea how can i get access back to the account?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: 500 Server Error (Dashboard)

2010-11-12 Thread Nikhil Aggarwal
I am getting the following 500 Server Error message while trying to
login to appengine.google.com to view the admin panel:



Error: Server Error


The server encountered an error and could not complete your request.
If the problem persists, please report your problem and mention this
error message and the query that caused it.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: App Engine Really Slow after certain time of no requests

2010-11-12 Thread dflorey
This is a known issue and the app engine team may provide a way to buy
a reserved warm instance to reduce startup times - at least it's on
their roadmap.

On Nov 12, 5:48 am, OdysseyFX  wrote:
> I definitely experience this problem to. I have a cron job that runs
> every 15 minutes to alleviate the problem but it annoys me.
>
> On Nov 11, 12:48 pm, GeneralSlaine  wrote:
>
>
>
>
>
>
>
> > Hi all,
>
> > I have had a number of performance issues on initial loading of my app
> > engine application. Part of it is already solved by using Caching.
> > However, my application is still very slow when first loading a
> > servlet after a certain amount of time of inactivity (I think about 1
> > minute).
>
> > After this period of inactivity it takes from 3 to 6 seconds to load.
> > Next requests take typically 400 MS.
>
> > The initial load time is not acceptable for the actual application.
> > Anyone any experience with this? How can I avoid this?
>
> > I already considered implementing following solutions to keep
> > application / servlet in memory
> > 1/ call application every minute from external application
> > 2/ setup a cron job performing a request every minute to actual
> > servlet
>
> > I think both are a solution but honestly not my preferred solution as
> > I expect performance from this platform.
>
> > BRL

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Readonly permission to a user

2010-11-12 Thread aswath satrasala
Hello,
How can I do the following...

I want to invite another user to my app-id. I want to provide read-only
permissions
for the Datastore Viewer in the Google App Engine dashboard.

Regards
-Aswath
http://vs-accounting.appspot.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Timeout while deploying

2010-11-12 Thread nicanor.babula
Hi,

I am experiencing the same problem with my application
ID: domodentweb

com.google.apphosting.utils.config.AppEngineConfigException: Received
IOException parsing the input stream for G:/eclipseWorkspaces/
workspace_jee_galileo/domodentweb/war\WEB-INF/web.xml
at
com.google.apphosting.utils.config.AbstractConfigXmlReader.getTopLevelNode(AbstractConfigXmlReader.java:
210)
at
com.google.apphosting.utils.config.AbstractConfigXmlReader.parse(AbstractConfigXmlReader.java:
228)
at
com.google.apphosting.utils.config.WebXmlReader.processXml(WebXmlReader.java:
142)
at
com.google.apphosting.utils.config.WebXmlReader.processXml(WebXmlReader.java:
22)
at
com.google.apphosting.utils.config.AbstractConfigXmlReader.readConfigXml(AbstractConfigXmlReader.java:
111)
at
com.google.apphosting.utils.config.WebXmlReader.readWebXml(WebXmlReader.java:
73)
at
com.google.appengine.tools.admin.Application.(Application.java:
105)
at
com.google.appengine.tools.admin.Application.readApplication(Application.java:
151)
at
com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.createAppAdmin(AppEngineBridgeImpl.java:
204)
at
com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java:
265)
at
com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java:
146)
at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:
38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown
Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown
Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown
Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown
Source)
at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown
Source)
at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown
Source)
at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown
Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl
$DTDDispatcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
at org.mortbay.xml.XmlParser.parse(XmlParser.java:230)
at
com.google.apphosting.utils.config.AbstractConfigXmlReader.getTopLevelNode(AbstractConfigXmlReader.java:
206)
... 12 more


On 10 Nov, 08:38, "Joakim S?derstr?m" 
wrote:
> Since yesterday, I've been experiencing difficulty while trying to use
> appcfg to deploy a new version to App Engine. Sometimes I have to try
> something like 10 times before the upload is successful. The error that
> I get seems to be caused by a timeout. Complete stacktrace:
>
> Reading application configuration data...
> Nov 10, 2010 8:32:55 AM
> com.google.apphosting.utils.config.AppEngineWebXmlReader
> readAppEngineWebXml
> INFO: Successfully processed war/WEB-INF/appengine-web.xml
> 2010-11-10 08:32:55.723:INFO::Logging to STDERR via
> org.mortbay.log.StdErrLog
> Nov 10, 2010 8:33:16 AM
> com.google.apphosting.utils.config.AbstractConfigXmlReader
> getTopLevelNode
> SEVERE: Received IOException parsing the input stream for
> war/WEB-INF/web.xml
> java.net.ConnectException: Connection timed out
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at
> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310 )
> at
> java.net.AbstractPlainSocketImpl.conn

[appengine-java] Re: 500 Server Error (Dashboard)

2010-11-12 Thread rsutaria
++1. Any idea when will it be resolved?


On Nov 12, 2:28 pm, Nikhil Aggarwal 
wrote:
> I am getting the following 500 Server Error message while trying to
> login to appengine.google.com to view the admin panel:
>
> Error: Server Error
>
> The server encountered an error and could not complete your request.
> If the problem persists, please report your problem and mention this
> error message and the query that caused it.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Timeout while deploying

2010-11-12 Thread Didier Durand
Hi

Same thing here: I noticed that the messages in the deploying script
have changed a little bit. I guess that Google team has made / is
making an update on the infrastructure and it brings some issues...

Some patience will probably solve it ;-)
didier


On Nov 12, 10:43 am, "nicanor.babula" 
wrote:
> Hi,
>
> I am experiencing the same problem with my application
> ID: domodentweb
>
> com.google.apphosting.utils.config.AppEngineConfigException: Received
> IOException parsing the input stream for G:/eclipseWorkspaces/
> workspace_jee_galileo/domodentweb/war\WEB-INF/web.xml
>         at
> com.google.apphosting.utils.config.AbstractConfigXmlReader.getTopLevelNode(AbstractConfigXmlReader.java:
> 210)
>         at
> com.google.apphosting.utils.config.AbstractConfigXmlReader.parse(AbstractConfigXmlReader.java:
> 228)
>         at
> com.google.apphosting.utils.config.WebXmlReader.processXml(WebXmlReader.java:
> 142)
>         at
> com.google.apphosting.utils.config.WebXmlReader.processXml(WebXmlReader.java:
> 22)
>         at
> com.google.apphosting.utils.config.AbstractConfigXmlReader.readConfigXml(AbstractConfigXmlReader.java:
> 111)
>         at
> com.google.apphosting.utils.config.WebXmlReader.readWebXml(WebXmlReader.java:
> 73)
>         at
> com.google.appengine.tools.admin.Application.(Application.java:
> 105)
>         at
> com.google.appengine.tools.admin.Application.readApplication(Application.java:
> 151)
>         at
> com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.createAppAdmin(AppEngineBridgeImpl.java:
> 204)
>         at
> com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java:
> 265)
>         at
> com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java:
> 146)
>         at
> org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:
> 38)
>         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
> Caused by: java.net.ConnectException: Connection timed out: connect
>         at java.net.PlainSocketImpl.socketConnect(Native Method)
>         at java.net.PlainSocketImpl.doConnect(Unknown Source)
>         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
>         at java.net.PlainSocketImpl.connect(Unknown Source)
>         at java.net.SocksSocketImpl.connect(Unknown Source)
>         at java.net.Socket.connect(Unknown Source)
>         at java.net.Socket.connect(Unknown Source)
>         at sun.net.NetworkClient.doConnect(Unknown Source)
>         at sun.net.www.http.HttpClient.openServer(UnknownSource)
>         at sun.net.www.http.HttpClient.openServer(UnknownSource)
>         at sun.net.www.http.HttpClient.(Unknown Source)
>         at sun.net.www.http.HttpClient.New(UnknownSource)
>         at sun.net.www.http.HttpClient.New(UnknownSource)
>         at
> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown
> Source)
>         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown
> Source)
>         at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown
> Source)
>         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
> Source)
>         at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown
> Source)
>         at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown
> Source)
>         at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown
> Source)
>         at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown
> Source)
>         at org.apache.xerces.impl.XMLDocumentScannerImpl
> $DTDDispatcher.dispatch(Unknown Source)
>         at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>         at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
> Source)
>         at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
>         at org.mortbay.xml.XmlParser.parse(XmlParser.java:230)
>         at
> com.google.apphosting.utils.config.AbstractConfigXmlReader.getTopLevelNode(AbstractConfigXmlReader.java:
> 206)
>         ... 12 more
>
> On 10 Nov, 08:38, "Joakim S?derstr?m" 
> wrote:
>
> > Since yesterday, I've been experiencing difficulty while trying to use
> > appcfg to deploy a new version to App Engine. Sometimes I have to try
> > something like 10 times before the upload is successful. The error that
> > I get seems to be caused by a timeout. Complete stacktrace:
>
> > Reading application configuration data...
> > Nov 10, 2010 8:32:55 AM
> > com.google.apphosting.utils.config.AppEngineWebXmlReader
> > readAppEngineWebXml
> > INFO: Successfully processed war/WEB-INF/appengine-web.xml

[appengine-java] Re: Readonly permission to a user

2010-11-12 Thread Didier Durand
Hi

>From bullet 2 on this page 
>http://code.google.com/appengine/docs/theadminconsole.html,
I don't think that you can restrict rights to people that you made co-
developpers.

regards
didier

On Nov 12, 10:31 am, aswath satrasala 
wrote:
> Hello,
> How can I do the following...
>
> I want to invite another user to my app-id. I want to provide read-only
> permissions
> for the Datastore Viewer in the Google App Engine dashboard.
>
> Regards
> -Aswathhttp://vs-accounting.appspot.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: "SAXParseException: Premature end of file" on dev server

2010-11-12 Thread Ian Marshall
I have got the warning that I reported at the beginning of this thread
again today, in the same circumstances.

I have the index file "datastore-indexes-auto.xml". I started my run
without an index file or a "local_db.bin" file, so both files were
created by the GAE/J development server together. I did stop my server
later and then restart it using the same .bin and .xml files, and then
got my warning.

It might be that the dev server caches writes and that the index file
got updated but not the datastore file before I shut the server down.
But in this case, I fail to see how, on server restart, a required
index already added to the index file automatically should cause a
problem.

This is a low priority note, but it would be nice to clear it up (just
as I like to clear all compilation warnings!).


On Oct 21, 1:55 pm, pman  wrote:
> i faced similar problem b4.
>
> traced and found caused by datastore-indexes.xml existed b4 datastore
> is created.
>
> remove it then okay.
>
> On Oct 21, 5:56 pm, Cyrille Vincey  wrote:
>
> > Same issue for the past 3 days.
> > Only occuring on the dev server.
> > I have tried for hours to solve it. No clue...
> > Fortunately, no impact on the production environment.
>
> > On 21/10/10 11:50, "Ian Marshall"  wrote:
>
> > >Hello All,
>
> > >I am running my web application on the GAE/J 1.3.8 development server
> > >on my local machine. I have just got the following log entry whilst
> > >testing:
>
> > >  21-Oct-2010 09:13:06 com.google.apphosting.utils.jetty.JettyLogger
> > >warn
> > >  WARNING: fa...@null line:1 col:1 : org.xml.sax.SAXParseException:
> > >Premature end of file.
>
> > >I did not notice any effect on my web app: I was reading data from my
> > >dev server's datastore but not writing any data to it (apart from
> > >perhaps some data of my session).
>
> > >Has anyone else got this recently? Am I doing anything wrong, or could
> > >this be just an occasional glitch of the dev server which I can just
> > >ignore?
>
> > >--
> > >You received this message because you are subscribed to the Google Groups
> > >"Google App Engine for Java" group.
> > >To post to this group, send email to
> > >google-appengine-j...@googlegroups.com.
> > >To unsubscribe from this group, send email to
> > >google-appengine-java+unsubscr...@googlegroups.com.
> > >For more options, visit this group at
> > >http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: "SAXParseException: Premature end of file" on dev server

2010-11-12 Thread Ian Marshall
I just got this error again, but instead of just the one line I
reported at the head of this thread, this exception caused the failure
of the creation of my (next) Apache Wicket page. I set out the full
stack trace for interested people below. Ignore the Wicket part of it,
since I believe that the Wicket failure is caused by a preceding
SAXParseException.

As a work-around, I just went to the previous page using my browser
and tried again. This time, all worked at it should.


12-Nov-2010 11:40:06 com.google.apphosting.utils.jetty.JettyLogger
warn
WARNING: fa...@null line:1 col:1 : org.xml.sax.SAXParseException:
Premature end
of file.
12-Nov-2010 11:40:06 org.apache.wicket.RequestCycle
logRuntimeException
SEVERE: Can't instantiate page using constructor public [...].MyPage()
org.apache.wicket.WicketRuntimeException: Can't instantiate page using
construct
or public [...].MyPage()
at
org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFa
ctory.java:212)
at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFacto
ry.java:57)
at
org.apache.wicket.request.target.component.BookmarkablePageRequestTar
get.newPage(BookmarkablePageRequestTarget.java:298)
at
org.apache.wicket.request.target.component.BookmarkablePageRequestTar
get.getPage(BookmarkablePageRequestTarget.java:320)
at
org.apache.wicket.request.target.component.BookmarkablePageRequestTar
get.processEvents(BookmarkablePageRequestTarget.java:234)
at
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents
(AbstractRequestCycleProcessor.java:92)
at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.j
ava:1250)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:
1436)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:
545)
at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:
484)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.ja
va:317)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(Servlet
Handler.java:1157)
at
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(Serve
BlobFilter.java:58)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(Servlet
Handler.java:1157)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(Servlet
Handler.java:1157)
at
com.google.appengine.tools.development.StaticFileFilter.doFilter(Stat
icFileFilter.java:122)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(Servlet
Handler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3
88)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.jav
a:216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:1
82)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:7
65)
at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)

at
com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(De
vAppEngineWebAppContext.java:70)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1
52)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxy
Handler.handle(JettyContainerService.java:349)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1
52)
at org.mortbay.jetty.Server.handle(Server.java:326)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:54
2)
at org.mortbay.jetty.HttpConnection
$RequestHandler.headerComplete(HttpCo
nnection.java:923)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:
212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:
404)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.ja
va:409)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.j
ava:582)
Caused by: java.lang.reflect.InvocationTargetException
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at
com.google.appengine.tools.development.agent.runtime.Runtime.newInsta
nce_(Runtime.java:112)
at
com.google.appengine.tools.development.agent.runtime.Runtime.newInsta
nce(Runtime.java:120)
at
org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFa
ctory.java:192)
... 35 m

Re: [appengine-java] Re: "SAXParseException: Premature end of file" on dev server

2010-11-12 Thread Cyrille Vincey
I got this error several times.
In my case, error was coming from data xml files used to upload data.
The xml files were containing bad chars because they had been edited with
an inappropriate text editor.
Yep, I know, this surely doesn't help...

On 12/11/10 12:50, "Ian Marshall"  wrote:

>I just got this error again, but instead of just the one line I
>reported at the head of this thread, this exception caused the failure
>of the creation of my (next) Apache Wicket page. I set out the full
>stack trace for interested people below. Ignore the Wicket part of it,
>since I believe that the Wicket failure is caused by a preceding
>SAXParseException.
>
>As a work-around, I just went to the previous page using my browser
>and tried again. This time, all worked at it should.
>
>
>12-Nov-2010 11:40:06 com.google.apphosting.utils.jetty.JettyLogger
>warn
>WARNING: fa...@null line:1 col:1 : org.xml.sax.SAXParseException:
>Premature end
>of file.
>12-Nov-2010 11:40:06 org.apache.wicket.RequestCycle
>logRuntimeException
>SEVERE: Can't instantiate page using constructor public [...].MyPage()
>org.apache.wicket.WicketRuntimeException: Can't instantiate page using
>construct
>or public [...].MyPage()
>at
>org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFa
>ctory.java:212)
>at
>org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFacto
>ry.java:57)
>at
>org.apache.wicket.request.target.component.BookmarkablePageRequestTar
>get.newPage(BookmarkablePageRequestTarget.java:298)
>at
>org.apache.wicket.request.target.component.BookmarkablePageRequestTar
>get.getPage(BookmarkablePageRequestTarget.java:320)
>at
>org.apache.wicket.request.target.component.BookmarkablePageRequestTar
>get.processEvents(BookmarkablePageRequestTarget.java:234)
>at
>org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents
>(AbstractRequestCycleProcessor.java:92)
>at
>org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.j
>ava:1250)
>at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
>at org.apache.wicket.RequestCycle.steps(RequestCycle.java:
>1436)
>at org.apache.wicket.RequestCycle.request(RequestCycle.java:
>545)
>at
>org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:
>484)
>at
>org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.ja
>va:317)
>at org.mortbay.jetty.servlet.ServletHandler
>$CachedChain.doFilter(Servlet
>Handler.java:1157)
>at
>com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(Serve
>BlobFilter.java:58)
>at org.mortbay.jetty.servlet.ServletHandler
>$CachedChain.doFilter(Servlet
>Handler.java:1157)
>at
>com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
>(TransactionCleanupFilter.java:43)
>at org.mortbay.jetty.servlet.ServletHandler
>$CachedChain.doFilter(Servlet
>Handler.java:1157)
>at
>com.google.appengine.tools.development.StaticFileFilter.doFilter(Stat
>icFileFilter.java:122)
>at org.mortbay.jetty.servlet.ServletHandler
>$CachedChain.doFilter(Servlet
>Handler.java:1157)
>at
>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3
>88)
>at
>org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.jav
>a:216)
>at
>org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:1
>82)
>at
>org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:7
>65)
>at
>org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
>
>at
>com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(De
>vAppEngineWebAppContext.java:70)
>at
>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1
>52)
>at com.google.appengine.tools.development.JettyContainerService
>$ApiProxy
>Handler.handle(JettyContainerService.java:349)
>at
>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1
>52)
>at org.mortbay.jetty.Server.handle(Server.java:326)
>at
>org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:54
>2)
>at org.mortbay.jetty.HttpConnection
>$RequestHandler.headerComplete(HttpCo
>nnection.java:923)
>at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
>at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:
>212)
>at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:
>404)
>at
>org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.ja
>va:409)
>at org.mortbay.thread.QueuedThreadPool
>$PoolThread.run(QueuedThreadPool.j
>ava:582)
>Caused by: java.lang.reflect.InvocationTargetException
>at
>sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>
>at
>sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
>
>at
>sun.reflect.DelegatingConstructorAccessorImp

Re: [appengine-java] Re: Blobstore upload forms and character encoding

2010-11-12 Thread Don Schwarz
Hi Guillaume,

Is it possible for you to use WireShark or a logging proxy to capture
the actual HTTP session?

When parsing the multipart/form-data response from the browser we look
at the charset attribute on each individual mime part, and if it is
missing we assume ISO-8859-1.  I suspect that's biting you here, but
it's not clear to me where we should be getting the fallback charset
if the browser isn't setting it on each part.

As for seeing the relevant code, we have a mechanism in place to begin
open-sourcing parts of the SDK.  We will be doing this gradually over
several releases, but I will see if we can start with this code.

Thanks,
Don

On Wed, Sep 29, 2010 at 2:48 AM, Guillaume Laforge  wrote:
> Yup, that would be handy to be able to look at the sources of the local dev
> server.
> I mean, even if it's not "open source" in the sense we can fork it or
> anything, but just being able to view the sources may help sometimes
> understand the differences between dev and prod.
>
> On Wed, Sep 29, 2010 at 09:18, Mikhail Zemlyanukha  wrote:
>>
>> Well, Google could open source at least their implementations of local
>> dev servers...
>>
>> Thanks guys for sharing this, I new with GAE and surely would face the
>> this issue, since I also started using Blobstore.
>>
>> Regards,
>> Mike
>>
>> On Mon, Sep 27, 2010 at 12:46 PM, Guillaume Laforge 
>> wrote:
>> > Hi Pieter,
>> > Although happening in a different context, this seems to be a similar
>> > issue:
>> > 1) there is a difference between the dev server environment, and the
>> > production environment
>> > 2) it's again a problem with encoding / decoding parameters
>> > This would be great if Google could investigate that one :-)
>> > These little differences and issues are quite annoying and can be quite
>> > time
>> > consuming when trying to figure out what's the problem.
>> > Thanks for the pointer, Pieter.
>> > Guillaume
>> > On Mon, Sep 27, 2010 at 09:22, Pieter Coucke 
>> > wrote:
>> >>
>> >> Maybe this is related to issue 2097, I ended up using the same fix in
>> >> Deferred.java as described here:
>> >>
>> >>
>> >> http://code.google.com/p/googleappengine/issues/detail?can=2&q=2097&colspec=ID%20Type%20Status%20Priority%20Stars%20Owner%20Summary%20Log%20Component&id=2097#c13
>> >
>> > --
>> > Guillaume Laforge
>> > Groovy Project Manager
>> > Head of Groovy Development at SpringSource
>> > http://www.springsource.com/g2one
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Google App Engine for Java" group.
>> > To post to this group, send email to
>> > google-appengine-j...@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > google-appengine-java+unsubscr...@googlegroups.com.
>> > For more options, visit this group at
>> > http://groups.google.com/group/google-appengine-java?hl=en.
>> >
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine for Java" group.
>> To post to this group, send email to
>> google-appengine-j...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine-java+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine-java?hl=en.
>>
>
>
>
> --
> Guillaume Laforge
> Groovy Project Manager
> Head of Groovy Development at SpringSource
> http://www.springsource.com/g2one
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: 500 Server Error (Dashboard)

2010-11-12 Thread heros
Yes, I'm too. But I can log in if trying some times.
Google may be maintaining their server.

Hung

On Nov 12, 4:51 pm, rsutaria  wrote:
> ++1. Any idea when will it be resolved?
>
> On Nov 12, 2:28 pm, Nikhil Aggarwal 
> wrote:
>
> > I am getting the following 500 Server Error message while trying to
> > login to appengine.google.com to view the admin panel:
>
> > Error: Server Error
>
> > The server encountered an error and could not complete your request.
> > If the problem persists, please report your problem and mention this
> > error message and the query that caused it.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Appstat filter defined on /* url pattern not working with federated login

2010-11-12 Thread Gaurav Sharma
Hello Everyone,

I have an application deployed on GoogleAppEngine and i am using both
openid and appstat.I have defined both of these as a filter i.e openid
filter & appstat filter on /* url pattern.

My issue is, when I use both of these simultaneously I starts
receiving "500 internal error".When I checked the case on a new
standalone application I found that appstat filter defined on /*
pattern does not work with federated login in Application setting &
gives "Error: NOT_FOUND" error while it works fine when defined on any
other url pattern except /*

Kindly suggest as because of this I am confused how to use both openid
filter & appstat filter simultaneously on /* pattern coz federated
login is necessary for openid work.

Any help or suggestion will be highly appreciated as even after a lot
of googling I am not able to find the answer.

Thanks,
Gaurav

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: 500 Server Error (Dashboard)

2010-11-12 Thread Francois Masurel
And the latency is not so good today :

http://code.google.com/status/appengine/detail/serving-java/2010/11/12#ae-trust-detail-helloworld-get-java-latency

Some of my pages are suddenly loading very slowly without any reason
(and no cold start going on).

Quite annoying as I was doing a demo to an important potential user.

Francois

On Nov 12, 11:28 am, heros  wrote:
> Yes, I'm too. But I can log in if trying some times.
> Google may be maintaining their server.
>
> Hung
>
> On Nov 12, 4:51 pm, rsutaria  wrote:
>
>
>
>
>
>
>
> > ++1. Any idea when will it be resolved?
>
> > On Nov 12, 2:28 pm, Nikhil Aggarwal 
> > wrote:
>
> > > I am getting the following 500 Server Error message while trying to
> > > login to appengine.google.com to view the admin panel:
>
> > > Error: Server Error
>
> > > The server encountered an error and could not complete your request.
> > > If the problem persists, please report your problem and mention this
> > > error message and the query that caused it.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Timeout while deploying

2010-11-12 Thread Ikai Lan (Google)
Do you guys have a sample appengine-web.xml and application IDs?

--
Ikai Lan
Developer Programs Engineer, Google App Engine
Blogger: http://googleappengine.blogspot.com
Reddit: http://www.reddit.com/r/appengine
Twitter: http://twitter.com/app_engine



On Fri, Nov 12, 2010 at 2:00 AM, Didier Durand wrote:

> Hi
>
> Same thing here: I noticed that the messages in the deploying script
> have changed a little bit. I guess that Google team has made / is
> making an update on the infrastructure and it brings some issues...
>
> Some patience will probably solve it ;-)
> didier
>
>
> On Nov 12, 10:43 am, "nicanor.babula" 
> wrote:
> > Hi,
> >
> > I am experiencing the same problem with my application
> > ID: domodentweb
> >
> > com.google.apphosting.utils.config.AppEngineConfigException: Received
> > IOException parsing the input stream for G:/eclipseWorkspaces/
> > workspace_jee_galileo/domodentweb/war\WEB-INF/web.xml
> > at
> >
> com.google.apphosting.utils.config.AbstractConfigXmlReader.getTopLevelNode(AbstractConfigXmlReader.java:
> > 210)
> > at
> >
> com.google.apphosting.utils.config.AbstractConfigXmlReader.parse(AbstractConfigXmlReader.java:
> > 228)
> > at
> >
> com.google.apphosting.utils.config.WebXmlReader.processXml(WebXmlReader.java:
> > 142)
> > at
> >
> com.google.apphosting.utils.config.WebXmlReader.processXml(WebXmlReader.java:
> > 22)
> > at
> >
> com.google.apphosting.utils.config.AbstractConfigXmlReader.readConfigXml(AbstractConfigXmlReader.java:
> > 111)
> > at
> >
> com.google.apphosting.utils.config.WebXmlReader.readWebXml(WebXmlReader.java:
> > 73)
> > at
> > com.google.appengine.tools.admin.Application.(Application.java:
> > 105)
> > at
> >
> com.google.appengine.tools.admin.Application.readApplication(Application.java:
> > 151)
> > at
> >
> com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.createAppAdmin(AppEngineBridgeImpl.java:
> > 204)
> > at
> >
> com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java:
> > 265)
> > at
> >
> com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java:
> > 146)
> > at
> >
> org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:
> > 38)
> > at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
> > Caused by: java.net.ConnectException: Connection timed out: connect
> > at java.net.PlainSocketImpl.socketConnect(Native Method)
> > at java.net.PlainSocketImpl.doConnect(Unknown Source)
> > at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
> > at java.net.PlainSocketImpl.connect(Unknown Source)
> > at java.net.SocksSocketImpl.connect(Unknown Source)
> > at java.net.Socket.connect(Unknown Source)
> > at java.net.Socket.connect(Unknown Source)
> > at sun.net.NetworkClient.doConnect(Unknown Source)
> > at sun.net.www.http.HttpClient.openServer(UnknownSource)
> > at sun.net.www.http.HttpClient.openServer(UnknownSource)
> > at sun.net.www.http.HttpClient.(Unknown Source)
> > at sun.net.www.http.HttpClient.New(UnknownSource)
> > at sun.net.www.http.HttpClient.New(UnknownSource)
> > at
> > sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown
> > Source)
> > at
> sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown
> > Source)
> > at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown
> > Source)
> > at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
> > Source)
> > at
> org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown
> > Source)
> > at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown
> > Source)
> > at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown
> > Source)
> > at
> org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown
> > Source)
> > at org.apache.xerces.impl.XMLDocumentScannerImpl
> > $DTDDispatcher.dispatch(Unknown Source)
> > at
> >
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> > Source)
> > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
> > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
> > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
> Source)
> > at
> org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
> > Source)
> > at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
> > at org.mortbay.xml.XmlParser.parse(XmlParser.java:230)
> > at
> >
> com.google.apphosting.utils.config.AbstractConfigXmlReader.getTopLevelNode(AbstractConfigXmlReader.java:
> > 206)
> > ... 12 more
> >
> > O

Re: [appengine-java] Re: Timeout while deploying

2010-11-12 Thread Joakim Söderström
Sure, here are the appengine-web.xml files of our two main apps.

I hope this helps!

//Joakim

2010/11/12 Ikai Lan (Google)

>

> Do you guys have a sample appengine-web.xml and application IDs?
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> Blogger: http://googleappengine.blogspot.com
> Reddit: http://www.reddit.com/r/appengine
> Twitter: http://twitter.com/app_engine
>
>
>
> On Fri, Nov 12, 2010 at 2:00 AM, Didier Durand wrote:
>
>> Hi
>>
>> Same thing here: I noticed that the messages in the deploying script
>> have changed a little bit. I guess that Google team has made / is
>> making an update on the infrastructure and it brings some issues...
>>
>> Some patience will probably solve it ;-)
>> didier
>>
>>
>> On Nov 12, 10:43 am, "nicanor.babula" 
>> wrote:
>>  > Hi,
>> >
>> > I am experiencing the same problem with my application
>> > ID: domodentweb
>> >
>> > com.google.apphosting.utils.config.AppEngineConfigException: Received
>> > IOException parsing the input stream for G:/eclipseWorkspaces/
>> > workspace_jee_galileo/domodentweb/war\WEB-INF/web.xml
>> > at
>> >
>> com.google.apphosting.utils.config.AbstractConfigXmlReader.getTopLevelNode(AbstractConfigXmlReader.java:
>> > 210)
>> > at
>> >
>> com.google.apphosting.utils.config.AbstractConfigXmlReader.parse(AbstractConfigXmlReader.java:
>> > 228)
>> > at
>> >
>> com.google.apphosting.utils.config.WebXmlReader.processXml(WebXmlReader.java:
>> > 142)
>> > at
>> >
>> com.google.apphosting.utils.config.WebXmlReader.processXml(WebXmlReader.java:
>> > 22)
>> > at
>> >
>> com.google.apphosting.utils.config.AbstractConfigXmlReader.readConfigXml(AbstractConfigXmlReader.java:
>> > 111)
>> > at
>> >
>> com.google.apphosting.utils.config.WebXmlReader.readWebXml(WebXmlReader.java:
>> > 73)
>> > at
>> > com.google.appengine.tools.admin.Application.(Application.java:
>> > 105)
>> > at
>> >
>> com.google.appengine.tools.admin.Application.readApplication(Application.java:
>> > 151)
>> > at
>> >
>> com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.createAppAdmin(AppEngineBridgeImpl.java:
>> > 204)
>> > at
>> >
>> com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java:
>> > 265)
>> > at
>> >
>> com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java:
>> > 146)
>> > at
>> >
>> org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:
>> > 38)
>> > at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>> > Caused by: java.net.ConnectException: Connection timed out: connect
>> > at java.net.PlainSocketImpl.socketConnect(Native Method)
>> > at java.net.PlainSocketImpl.doConnect(Unknown Source)
>> > at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
>> > at java.net.PlainSocketImpl.connect(Unknown Source)
>> > at java.net.SocksSocketImpl.connect(Unknown Source)
>> > at java.net.Socket.connect(Unknown Source)
>> > at java.net.Socket.connect(Unknown Source)
>> > at sun.net.NetworkClient.doConnect(Unknown Source)
>> > at sun.net.www.http.HttpClient.openServer(UnknownSource)
>> > at sun.net.www.http.HttpClient.openServer(UnknownSource)
>> > at sun.net.www.http.HttpClient.(Unknown Source)
>> > at sun.net.www.http.HttpClient.New(UnknownSource)
>> > at sun.net.www.http.HttpClient.New(UnknownSource)
>>  > at
>> > sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown
>> > Source)
>> > at
>> sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown
>> > Source)
>> > at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown
>> > Source)
>> > at
>> sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
>> > Source)
>> > at
>> org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown
>> > Source)
>> > at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown
>> > Source)
>> > at
>> org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown
>> > Source)
>> > at
>> org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown
>> > Source)
>> > at org.apache.xerces.impl.XMLDocumentScannerImpl
>> > $DTDDispatcher.dispatch(Unknown Source)
>> > at
>> >
>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
>> > Source)
>> > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
>> Source)
>> > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
>> Source)
>> > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>> > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
>> Source)
>> > at
>> org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
>> > Source)
>> > at org.apache.xerces.j

Re: [appengine-java] java.lang.ClassNotFoundException

2010-11-12 Thread Ikai Lan (Google)
Your code is probably not being compiled. Can you clean the project and try
again?

--
Ikai Lan
Developer Programs Engineer, Google App Engine
Blogger: http://googleappengine.blogspot.com
Reddit: http://www.reddit.com/r/appengine
Twitter: http://twitter.com/app_engine



On Tue, Nov 9, 2010 at 11:26 PM, senderj  wrote:

> I encountered this exception even with the simplest project - a new
> project in Eclipse for GAE with the generated "Hello! World" servlet.
> Here is what I got in my logs in one run:
>
> Warning:
> java.lang.ClassNotFoundException: my.package.MypackageServlet
> .
> Error:
> javax.servlet.ServletContext log: unavailable
> javax.servlet.UnavailableException: my.package.MypackageServlet
> .
> Warning:
> Failed startup of context
> com.google.apphosting.utils.jetty.runtimeappenginewebappcont...@d2d58b{/,/
> base/data/home/apps/whaleproxy3/1.346113531926587784}
> java.lang.NullPointerException
> .
> Critical:
> Uncaught exception from servlet
> javax.servlet.UnavailableException: Initialization failed.
> .
>
> Everything was generated by Eclipse except the project name and
> package name. Anybody knows what is wrong? I can provide the full log
> if necessary.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: GAE or EC2

2010-11-12 Thread Ikai Lan (Google)
I think we all share the sentiment that App Engine is absolutely a blast to
work with when it's working well. We've heard the feedback and are working
on features to really help developers. For instance, the cold starts will
always be an issue, but we are hoping reserved instances will work well.
There are other features that we think will help developers address the
issues you've mentioned.

I feel like up under very recently, App Engine has been having an identity
crisis. Do we want to allow folks to run arbitrary code that currently runs
outside App Engine, or do we want to impose restrictions for working in our
environment that allow autoscaling and access to Google technologies, that,
until App Engine, were only accessible internally? We're finding more and
more that we're learning towards the latter, which has the promise of
releasing unbridled power into the hands of developers, but will ultimately
force developers to learn a different model of development. Experienced App
Engine developers always tell us that getting used to working with the
datastore or the 30 second limits takes a non-trivial amount of mental
processing power, but once they've gotten past those barriers, development
processes become much more comfortable again. We're likely to embrace this
model more in future releases. App Engine will favor developers that are
looking to solve problems and are flexible with implementation details, not
developers that are inflexible with the implementation details of how their
problems are solved.

--
Ikai Lan
Developer Programs Engineer, Google App Engine
Blogger: http://googleappengine.blogspot.com
Reddit: http://www.reddit.com/r/appengine
Twitter: http://twitter.com/app_engine



On Wed, Nov 10, 2010 at 5:16 PM, jacek.ambroziak
wrote:

> Ikai,
>
> I do not think you really addressed JY's pain, which I also share.
> Some of us have invested a lot of time and energy into building
> GAE-based services. We would like to move to "production" stage
> but frequent "denials of service" make our applications look bad
> to customers.
> Also, for what I am trying to do,
>
> 1) I need more than 10 applications
> 2) more space for static files in WARs
> 3) more memory (quite often I run into OutOfMemory errors)
> 4) and of course fewer cold starts or 500 errors
>
> I really like GAE's APIs, tools and dashboard
> but I find it *difficult to deliver* a service
> that I need to host in the Cloud
> based on GAE's current reality.
>
> GAE is developer friendly (modulo all the contortions
> we need to go through when, say, a data chunk is 1.2 MB),
> but as far as production goes ... well ... :-(
>
> Is there a hope for us on the horizon
> or do we have to bite the bullet and migrate elsewhere?
>
> PS. For some apps (I do have an Android news app which
> preparses Reuters news on GAE and serves binary XML
> to Android) I never had any issues; the app does not
> need much memory or data to work, and it hardly uses
> the datastore) -- so for some small apps things work
> just great. More demanding services do run into walls
> unfortunately.
>
>
> On Nov 8, 9:50 pm, "Ikai Lan (Google)" 
> 
> >
> wrote:
> > I'm biased, naturally, but here's my piece:
> >
> > They're both great, young platforms, and successful businesses have been
> > built on both Google App Engine as well as Amazon EC2. Amazon's lower
> level
> > access appeals to some, whereas Google App Engine's abstractions appeal
> to
> > the folks in this group.
> >
> > Have you actually used EC2 before? If not, new accounts can sign up for a
> > free "micro" instance. You'll want to check this out before you make any
> > decisions. Since you're already looking at EC2, why not look at VPS
> > solutions? I personally prefer a provider such as Slicehost or Linode to
> EC2
> > for anything I can't currently do on Google App Engine.
> >
> > --
> > Ikai Lan
> > Developer Programs Engineer, Google App Engine
> > Blogger:http://googleappengine.blogspot.com
> > Reddit:http://www.reddit.com/r/appengine
> > Twitter:http://twitter.com/app_engine
> >
> >
> >
> >
> >
> >
> >
> > On Mon, Nov 8, 2010 at 5:59 PM, JY  wrote:
> > > I want to ask fellow GAE users whether you think GAE is good choice to
> > > build real business on?
> > > I have used GAE for some personal projects, and right now help a
> > > friend on a tiny start up (but with big dream). The project is related
> > > to social network - I am thinking of two options:
> > > 1, GAE
> > > The benefits are obvious. However, it is also locking you inyou
> > > don't have much control over it. If you are unhappy later, you will
> > > have to redo the persistence layer and migrate data etc.
> > > 2, EC2
> > > You have much more control, and if the start-up gets funding, it is
> > > easy to migrate to dedicated hosting or even its own data center. The
> > > down side is developer (me, and only me) will have to spend quite some
> > > time to take care of the infrastructure (although I like this kind of
> > > work...)
> >

Re: [appengine-java] how to send DataStore Between To Java AppEngine Accounts

2010-11-12 Thread Ikai Lan (Google)
Yes, via the bulkloader:

http://code.google.com/appengine/docs/python/tools/uploadingdata.html

Download
the data locally, then upload it to the new application.

--
Ikai Lan
Developer Programs Engineer, Google App Engine
Blogger: http://googleappengine.blogspot.com
Reddit: http://www.reddit.com/r/appengine
Twitter: http://twitter.com/app_engine



On Thu, Nov 11, 2010 at 9:30 AM, Ahmed Shoeib  wrote:

> hi ,
>
> is there a direct way to send dataStore from on appEngine Account to
> another one ???
>
> how can i do this ??
>
> thanks .
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Cold starts taking longer since recent update ?

2010-11-12 Thread Francois Masurel
Hi everbody,

Has anyone noticed that cold starts seems to last quite longer than
usual recently ?

Some of my cold starts that were about 3 to 4 seconds before are now
up to 10 seconds.

Sometimes I get them while navigating from one page to another.  Quite
annoying.

I'm supposed to go in production before year end, will reserved
instances be available by that date ?

Thanx for your help.

Francois

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Error code 203

2010-11-12 Thread Gal Dolber
Hi, I am getting many:


A serious problem was encountered with the process that handled this
request, causing it to exit. This is likely to cause a new process to
be used for the next request to your application. If you see this
message frequently, you should contact the App Engine team. (Error
code 203)

lately.

App id: sonno-store

Anything I can do about it?


-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: How to write a JPA unit test for GAE?

2010-11-12 Thread Vikas Hazrati
You could get more information on the way we set up our testing infra
here

http://thoughts.inphina.com/2010/06/28/unit-testing-maven-based-jpa-application-on-gae/

Regards | Vikas
www.inphina.com

On Nov 10, 2:37 pm, lp  wrote:
> hi all,
>
> i have been attempting to convert my existing JPA code over to GAE.
>
> All is working so far except for the unit tests.
>
> i read
> code.google.com/appengine/docs/java/tools/localunittesting.html
>
> but it doesnt describe how to get an entityManager involved in usefull
> unit tests.
>
> so this is my test. please advise how to achieve the functionality in
> this test.
>
> @Test
> public void findFriendsSimple() {
>
> PositionUser user1 = new PositionUser();
> user1.setFirstName("john");
> user1.setLastName("smith");
>
> PositionUser user2 = new PositionUser();
> user2.setFirstName("mary");
> user2.setLastName("smith");
>
> PositionUser user3 = new PositionUser();
> user3.setFirstName("barney");
> user3.setLastName("smith");
>
> em.persist(user2);
> em.persist(user3);
> //em.flush(); <--- can use flush for non transaction test
>
> user1.getFriends().add(user2.getKey());
> user1.getFriends().add(user3.getKey());
>
> em.persist(user1);
> //em.flush(); <--- can use flush for non transaction test
>
> Query query = em.createNamedQuery(PositionUser.FIND_FRIENDS);
> query.setParameter("userKey", user1.getKey());
> List resultList = query.getResultList();
> assertEquals( 2, resultList.size() );
>
> }
>
> the assert is triggered
> java.lang.AssertionError: expected:<2> but was:<0>
>
> this is because the entitymanager wont detect the persisted entities
> that arent in a transaction.
>
> ok no problem, i will add transactions.
>
> But when i do it complains that i am adding multiple groups in a single
> transaction.
>
> So besides the simple gae sample unit test, how are others writting
> useful unit tests in gae?
>
> any help is most appreciated
>
> -lp

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Problems pointing my GoDaddy domain to App Engine (no other posts have been able to help!)

2010-11-12 Thread Vikas Hazrati
Sometimes it just takes time for redirection to happen as it needs to
be propagated across servers. We have mapped several domains from
GoDaddy to the app engine and it just works.

Regards | Viaks
www.inphina.com

On Nov 9, 8:59 pm, Kevin M  wrote:
> So I have a domain hosted on GoDaddy.com and I just set up Google App
> Engine and Google Apps. I registered my new domain with Google Apps so
> that I can see it in my dashboard and I believe I did what I needed to
> do to verify I'm the owner of the domain. I added the CNAME entry in
> GoDaddy for www to point to ghs.google.com and removed all others. I
> set up the MX records I saw in another post so at least my email is
> going where I expect it to. But, my new URL is not going to my google
> app engine application for some reason. Do I need to change the Name
> Servers from GoDaddy name servers to Google name servers? Do I need
> A(Host) entries? I'm confused. Please help!

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Can't update int[] array in a class?

2010-11-12 Thread Mark
Hi,

I'm having trouble updating a class which has an array of ints:

  @PersistenceCapable
  class Foo {
  @Persistent
  @Extension(vendorName = "datanucleus", key = "gae.unindexed",
value="true")
  int[] vals;
   }

  ...

  Foo foo = new Foo();
  foo.vals = new int[] { 1, 2, 3 };
  pm.makePersistent(foo);

The first time an instance is created, the values are all there ok. If
I try updating them though, the changes never persist:

  public void updateFoo(PersistenceManagerFactory pmf) {
  PersistenceManager pm = pmf.getPersistenceManager();
  Foo foo = pm.getObjectById(Foo.class, myKey);
  foo.vals[0] = 100;
  pm.makePersistent(foo);
  }

I print the values out directly after the call on the foo object
instance, and the update seems to have worked in memory. However, the
next time I call updateFoo(), the values are once again starting at
{ 1, 2, 3 }, and not { 100, 2, 3 } as I'm expecting. What am I doing
wrong?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.