[google-appengine] Re: NoClassDefFoundError (org.eclipse.core.runtime.Platform)

2015-03-12 Thread Syed Rizvi
Hey Patrice,

I actually posted this 
http://stackoverflow.com/questions/28984276/noclassdeffounderror-on-appengine-with-org-eclipse-core-runtime-platform
 
on StackOverflow yesterday. Nothing helpful yet though. Will now report on 
the public issue tracker as you suggested.

Thank you!

On Wednesday, March 11, 2015 at 11:37:35 PM UTC+1, Patrice wrote:

 Hey Syed,

 This kind of question would be better suited for Stack Overflow 
 http://www.stackoverflow.com. If it's an actual defect, go on our public 
 issue tracker 
 https://code.google.com/p/googleappengine/wiki/FilingIssues?tm=3 to 
 report it.

 Thank you!

 On Thursday, March 5, 2015 at 12:06:21 PM UTC-5, Syed Rizvi wrote:

 Hi,
 I am making a maven based GAE project. It's a service that is supposed to 
 serve some data to its clients. The project works perfectly on the local 
 machine, but gives the NoClassDefFoundError when deployed to GAE. Here's 
 the complete StackTrace:

 Error for /cron/loadDataset
 java.lang.NoClassDefFoundError: Could not initialize class 
 org.eclipse.core.runtime.Platform at 
 org.eclipse.ocl.common.OCLCommon.getPreference(OCLCommon.java:74 
 https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=defaultappVersion=1timestampNanos=142556919357400file=org%2Feclipse%2Focl%2Fcommon%2FOCLCommon.javaline=74
 ) at org.eclipse.ocl.lpg.AbstractBasicEnvironment.getValue(
 AbstractBasicEnvironment.java:440 
 https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=defaultappVersion=1timestampNanos=142556919357400file=org%2Feclipse%2Focl%2Flpg%2FAbstractBasicEnvironment.javaline=440
 ) at org.eclipse.ocl.options.ParsingOptions.getValue(
 ParsingOptions.java:330 
 https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=defaultappVersion=1timestampNanos=142556919357400file=org%2Feclipse%2Focl%2Foptions%2FParsingOptions.javaline=330
 ) at org.eclipse.ocl.AbstractEnvironment.createTypeChecker(
 AbstractEnvironment.java:1214 
 https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=defaultappVersion=1timestampNanos=142556919357400file=org%2Feclipse%2Focl%2FAbstractEnvironment.javaline=1214
 ) at org.eclipse.ocl.AbstractEnvironment.getTypeChecker(
 AbstractEnvironment.java:1196 
 https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=defaultappVersion=1timestampNanos=142556919357400file=org%2Feclipse%2Focl%2FAbstractEnvironment.javaline=1196
 ) at org.eclipse.ocl.AbstractEnvironment.getAdapter(
 AbstractEnvironment.java:1236 
 https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=defaultappVersion=1timestampNanos=142556919357400file=org%2Feclipse%2Focl%2FAbstractEnvironment.javaline=1236
 ) at org.eclipse.ocl.util.OCLUtil.getAdapter(OCLUtil.java:102 
 https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=defaultappVersion=1timestampNanos=142556919357400file=org%2Feclipse%2Focl%2Futil%2FOCLUtil.javaline=102
 ) at org.eclipse.ocl.util.TypeUtil.getTypeCheckerAdapter(TypeUtil.java:800 
 https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=defaultappVersion=1timestampNanos=142556919357400file=org%2Feclipse%2Focl%2Futil%2FTypeUtil.javaline=800
 ) at org.eclipse.ocl.util.TypeUtil.findAttribute(TypeUtil.java:171 
 https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=defaultappVersion=1timestampNanos=142556919357400file=org%2Feclipse%2Focl%2Futil%2FTypeUtil.javaline=171
 ) at org.eclipse.ocl.AbstractEnvironment.doLookupProperty(
 AbstractEnvironment.java:657 
 https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=defaultappVersion=1timestampNanos=142556919357400file=org%2Feclipse%2Focl%2FAbstractEnvironment.javaline=657
 ) at org.eclipse.ocl.AbstractEnvironment.lookupProperty(
 AbstractEnvironment.java:638 
 https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=defaultappVersion=1timestampNanos=142556919357400file=org%2Feclipse%2Focl%2FAbstractEnvironment.javaline=638
 ) at org.eclipse.ocl.AbstractTypeResolver.findTupleType(
 AbstractTypeResolver.java:430 
 https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=defaultappVersion=1timestampNanos=142556919357400file=org%2Feclipse%2Focl%2FAbstractTypeResolver.javaline=430
 ) at org.eclipse.ocl.AbstractTypeResolver.resolveTupleType(
 AbstractTypeResolver.java:382 
 https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=defaultappVersion=1timestampNanos

[google-appengine] NoClassDefFoundError (org.eclipse.core.runtime.Platform)

2015-03-05 Thread Syed Rizvi
Hi,
I am making a maven based GAE project. It's a service that is supposed to 
serve some data to its clients. The project works perfectly on the local 
machine, but gives the NoClassDefFoundError when deployed to GAE. Here's 
the complete StackTrace:

Error for /cron/loadDataset
java.lang.NoClassDefFoundError: Could not initialize class 
org.eclipse.core.runtime.Platform at 
org.eclipse.ocl.common.OCLCommon.getPreference(OCLCommon.java:74 
https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=defaultappVersion=1timestampNanos=142556919357400file=org%2Feclipse%2Focl%2Fcommon%2FOCLCommon.javaline=74
) at org.eclipse.ocl.lpg.AbstractBasicEnvironment.getValue(
AbstractBasicEnvironment.java:440 
https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=defaultappVersion=1timestampNanos=142556919357400file=org%2Feclipse%2Focl%2Flpg%2FAbstractBasicEnvironment.javaline=440
) at org.eclipse.ocl.options.ParsingOptions.getValue(ParsingOptions.java:330 
https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=defaultappVersion=1timestampNanos=142556919357400file=org%2Feclipse%2Focl%2Foptions%2FParsingOptions.javaline=330
) at org.eclipse.ocl.AbstractEnvironment.createTypeChecker(
AbstractEnvironment.java:1214 
https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=defaultappVersion=1timestampNanos=142556919357400file=org%2Feclipse%2Focl%2FAbstractEnvironment.javaline=1214
) at org.eclipse.ocl.AbstractEnvironment.getTypeChecker(
AbstractEnvironment.java:1196 
https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=defaultappVersion=1timestampNanos=142556919357400file=org%2Feclipse%2Focl%2FAbstractEnvironment.javaline=1196
) at org.eclipse.ocl.AbstractEnvironment.getAdapter(
AbstractEnvironment.java:1236 
https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=defaultappVersion=1timestampNanos=142556919357400file=org%2Feclipse%2Focl%2FAbstractEnvironment.javaline=1236
) at org.eclipse.ocl.util.OCLUtil.getAdapter(OCLUtil.java:102 
https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=defaultappVersion=1timestampNanos=142556919357400file=org%2Feclipse%2Focl%2Futil%2FOCLUtil.javaline=102
) at org.eclipse.ocl.util.TypeUtil.getTypeCheckerAdapter(TypeUtil.java:800 
https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=defaultappVersion=1timestampNanos=142556919357400file=org%2Feclipse%2Focl%2Futil%2FTypeUtil.javaline=800
) at org.eclipse.ocl.util.TypeUtil.findAttribute(TypeUtil.java:171 
https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=defaultappVersion=1timestampNanos=142556919357400file=org%2Feclipse%2Focl%2Futil%2FTypeUtil.javaline=171
) at org.eclipse.ocl.AbstractEnvironment.doLookupProperty(
AbstractEnvironment.java:657 
https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=defaultappVersion=1timestampNanos=142556919357400file=org%2Feclipse%2Focl%2FAbstractEnvironment.javaline=657
) at org.eclipse.ocl.AbstractEnvironment.lookupProperty(
AbstractEnvironment.java:638 
https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=defaultappVersion=1timestampNanos=142556919357400file=org%2Feclipse%2Focl%2FAbstractEnvironment.javaline=638
) at org.eclipse.ocl.AbstractTypeResolver.findTupleType(
AbstractTypeResolver.java:430 
https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=defaultappVersion=1timestampNanos=142556919357400file=org%2Feclipse%2Focl%2FAbstractTypeResolver.javaline=430
) at org.eclipse.ocl.AbstractTypeResolver.resolveTupleType(
AbstractTypeResolver.java:382 
https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=defaultappVersion=1timestampNanos=142556919357400file=org%2Feclipse%2Focl%2FAbstractTypeResolver.javaline=382
) at org.eclipse.ocl.AbstractTypeResolver$ResolveSwitch.caseTupleType(
AbstractTypeResolver.java:1008 
https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=defaultappVersion=1timestampNanos=142556919357400file=org%2Feclipse%2Focl%2FAbstractTypeResolver.javaline=1008
) at org.eclipse.ocl.types.util.TypesSwitch.doSwitch(TypesSwitch.java:267 
https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=defaultappVersion=1timestampNanos=142556919357400file=org%2Feclipse%2Focl%2Ftypes%2Futil%2FTypesSwitch.javaline=267
) at 

[google-appengine] Re: Loading up data in the init() method

2015-03-03 Thread Syed Rizvi
Hi Vinny,

Sorry for the late response. I followed some suggestions of yours and have 
now decided to rather initialize the dataset as a cronjob since that allows 
more time for a job to be completed. Plus the dataset needs to be 
continuously updated from the source URL so I could schedule the cron for 
every X minutes or so.

Thanks!

On Thursday, February 19, 2015 at 3:00:12 PM UTC+1, Syed Rizvi wrote:

 Hi,
 I have a RESTful service that gets XML data from an external URL, does 
 some work on it and serves it to its clients. The dataset is initialized in 
 the init() method and takes  1 minutes but less than 2 to be initialized 
 and is naturally supposed to be there before the first client request comes 
 in. This works on the local machine properly, but not when deployed to GAE.

 I get the DeadlineExceededException even though I have warmup requests 
 enabled: 
 warmup-requests-enabledtrue/warmup-requests-enabled
 The URL fetch is not the culprit here since it takes average 10 seconds to 
 complete the fetch.

 What exactly am I missing? What would be the right way to do it? Here's 
 what the log says:

 javax.servlet.ServletContext log: unavailable 
 com.google.apphosting.api.DeadlineExceededException: This request 
 (4865075fa7d7c4db) started at 2015/02/19 13:38:24.019 UTC and was still 
 executing at 2015/02/19 13:39:23.816 UTC.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/7da5d719-0bec-41b8-9712-7836ea7080e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] java.lang.NoClassDefFoundError after deployment to GAE

2015-03-03 Thread Syed Rizvi

Hi,

I have a web app that uses a cron job in the beginning to fetch data from a 
URL, works on it and serves to external clients. The project runs perfectly 
on the local machine without a single error but as soon as you deploy, the 
cron results in the following:
Uncaught exception from servlet java.lang.NoClassDefFoundError: Could not 
initialize class org.eclipse.core.runtime.Platform

There is only one external jar that I use in my project: 
*org.eclipselabs.emfjson_0.4.1.201207260839.jar*. Reason being that it is 
no more available on the public Maven repository. My POM looks like:
dependency
groupIdorg.eclipselabs/groupId
artifactIdemfjson/artifactId
version0.4.1/version
scopesystem/scope
systemPath
${project.build.directory}/war/WEB-INF/lib/org.eclipselabs.emfjson_0.4.1.201207260839.jar
/systemPath
/dependency

All that I can imagine the error is somehow related to the fact that an 
external jar is being included in the project and when deployed, the server 
cannot find it. What can I do to get rid of this error? I've exhausted my 
Google search.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/ebb8ef8c-1ddc-4c17-96c5-c541b00b14ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Loading up data in the init() method

2015-02-19 Thread Syed Rizvi
Hi,
I have a RESTful service that gets XML data from an external URL, does some 
work on it and serves it to its clients. The dataset is initialized in the 
init() method and takes  1 minutes but less than 2 to be initialized and 
is naturally supposed to be there before the first client request comes in. 
This works on the local machine properly, but not when deployed to GAE.

I get the DeadlineExceededException even though I have warmup requests 
enabled: 
warmup-requests-enabledtrue/warmup-requests-enabled
The URL fetch is not the culprit here since it takes average 10 seconds to 
complete the fetch.

What exactly am I missing? What would be the right way to do it? Here's 
what the log says:

javax.servlet.ServletContext log: unavailable 
com.google.apphosting.api.DeadlineExceededException: This request 
(4865075fa7d7c4db) started at 2015/02/19 13:38:24.019 UTC and was still 
executing at 2015/02/19 13:39:23.816 UTC.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/32636346-d245-4633-85e4-800ed214dea3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Loading up data in the init() method

2015-02-19 Thread Syed Rizvi
Thanks for your response Vinny!

   1. I made a deliberate call to *_ah/warmup* which gives: GET 
   /_ah/warmup HTTP/1.1 200 0
   2. To *_ah/startup* which gives GET /_ah/startup HTTP/1.1 404 204
   
This is my first GAE project and I'm not a paid user yet so upgrading isn't 
currently an option nor increasing idle instances since not even a single 
instance is up yet. Cron isn't an option currently since the dataset has to 
be there to fulfill even the first request that comes in (but it can be 
later used when, let's say, I have to update the dataset regularly from the 
source).

I don't think that the warmup request solution may work for me because it 
says here 
https://cloud.google.com/appengine/articles/deadlineexceedederrorsthat: 
*Currently, 
the deadline for requests to frontend instances is 60 seconds. (Backend 
instances have no corresponding limit.) Every request, including warmup 
(request to /_ah/warmup) and loading requests (loading_request=1 log 
header), is subject to this restriction. *Also see GAE issue reported here 
https://code.google.com/p/googleappengine/issues/detail?id=7836.

Do you have some suggestions? I'd be really glad to hear from you!

On Thursday, February 19, 2015 at 3:00:12 PM UTC+1, Syed Rizvi wrote:

 Hi,
 I have a RESTful service that gets XML data from an external URL, does 
 some work on it and serves it to its clients. The dataset is initialized in 
 the init() method and takes  1 minutes but less than 2 to be initialized 
 and is naturally supposed to be there before the first client request comes 
 in. This works on the local machine properly, but not when deployed to GAE.

 I get the DeadlineExceededException even though I have warmup requests 
 enabled: 
 warmup-requests-enabledtrue/warmup-requests-enabled
 The URL fetch is not the culprit here since it takes average 10 seconds to 
 complete the fetch.

 What exactly am I missing? What would be the right way to do it? Here's 
 what the log says:

 javax.servlet.ServletContext log: unavailable 
 com.google.apphosting.api.DeadlineExceededException: This request 
 (4865075fa7d7c4db) started at 2015/02/19 13:38:24.019 UTC and was still 
 executing at 2015/02/19 13:39:23.816 UTC.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/e2c3758a-f05c-4b0b-948a-288b2815bee7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.