appengine java.lang.NoClassDefFoundError: com/google/appengine/api/search/AddResponse

325 views
Skip to first unread message

Wilson MacGyver

unread,
Mar 19, 2013, 10:42:07 AM3/19/13
to gae...@googlegroups.com
Just an FYI

We've been using older version of GAE-SDK to continue to use gaelyk
1.2


As of this morning, our app that uses SDK 1.7.0 is now throwing

java.lang.NoClassDefFoundError: com/google/appengine/api/search/AddResponse

despite using the older SDK

--
Omnem crede diem tibi diluxisse supremum.

Michael Migdol

unread,
Mar 19, 2013, 10:45:56 AM3/19/13
to gae...@googlegroups.com

I have built a Gaelyk jar off of 1.3-snapshot that solves this issue by removing the search service bindings.  Let me know if you want a copy...

--
--
You've received this message because you've subscribed to the Gaelyk Google Group.
To send an email to the group, please write to: gae...@googlegroups.com
To unsuscribe from this group: gaelyk+un...@googlegroups.com
To show more options: http://groups.google.fr/group/gaelyk?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Gaelyk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gaelyk+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Wilson MacGyver

unread,
Mar 19, 2013, 10:50:23 AM3/19/13
to gae...@googlegroups.com
thanks, but I think the gaelyk 2.0 snapshot in


does the same right?

Vladimír Oraný

unread,
Mar 19, 2013, 10:52:52 AM3/19/13
to gae...@googlegroups.com
yes, latest 2.0 does the same, but in gaelyk 2.0 there is not GaelykCategory as it depends on Groovy 2.0 Extension Modules. if your code uses this class directly, Micael's jar would be a lifesaver, thx for it!


2013/3/19 Wilson MacGyver <wmac...@gmail.com>

Wilson MacGyver

unread,
Mar 19, 2013, 11:06:37 AM3/19/13
to gae...@googlegroups.com
Michael,

the jar would be great. I'm also going to try the snapshot too

thanks 


On Tue, Mar 19, 2013 at 10:45 AM, Michael Migdol <mic...@migdol.net> wrote:

Wilson MacGyver

unread,
Mar 19, 2013, 11:24:19 AM3/19/13
to gae...@googlegroups.com
I switched to SDK 1.7.5 and gaelyk 2.0 snapshot. it's working now.

I guess the lesson is, need to track latest version of SDK much more closely

Thanks

dgr...@trxtraining.com

unread,
Mar 19, 2013, 1:40:05 PM3/19/13
to gae...@googlegroups.com
My app was dead in the water until I found this thread. Thank you so much for the info, my app is working again after redeploying with SDK 1.7.5 and Gaelyk 2.0.

Guillaume Laforge

unread,
Mar 19, 2013, 4:41:28 PM3/19/13
to gae...@googlegroups.com
Yup, Google just updated their GAE infrastructure, and removed the deprecated Search API from their runtime, which was still referenced by the version of Gaelyk you were using, hence why all of a sudden some of our apps stopped working.

I had the problem with some personal apps, my weblog, and the Groovy Web Console!

I was a bit surprised too! But at least, the workaround is easy, just use the latest Gaelyk 2.0 snapshot.

We'll try to release the final version of Gaelyk 2.0 in the coming weeks (likely in 2 weeks from now).

Guillaume

Guillaume Laforge
Groovy Project Manager
SpringSource, a division of VMware

Brian

unread,
Apr 22, 2013, 5:07:15 PM4/22/13
to gae...@googlegroups.com
Is there a direct link to the 2.0 snapshot?  I'm encountering the same issue after first completing a hello world version of the GAE on 1.7.7 following the GAE tutorial then tried to use the Gaelyk 1.2 template project with 1.7.7 and encountering the same AddResponse error.

I've tried to locate it at https://oss.sonatype.org/content/repositories/snapshots/ without luck.

Vladimír Oraný

unread,
Apr 22, 2013, 5:46:56 PM4/22/13
to gae...@googlegroups.com

Brian

unread,
Apr 23, 2013, 10:31:31 PM4/23/13
to gae...@googlegroups.com, vlad...@orany.cz
Thank you. Got it.
Message has been deleted

Vladimír Oraný

unread,
May 8, 2013, 4:12:31 AM5/8/13
to gae...@googlegroups.com
Hi Brian,

there's no GaelykCategory class anymore in Gaelyk. The Gaelyk shortcuts are added using Extension Modules and are available everywhere (not only in groovlets and templates).

Just remove all

use(GaelykCategory){
...
}

snippets from your code.

Cheers,

Vladimir


2013/5/8 Brian <brian.h...@gmail.com>
I'm now using the 2.0 Snapshot and things are running fine on localhost.  But I'm still getting the error when deploying to GAE.  I noticed in the Eclipse log when I publish to GAE it gives the impression that it isn't updating anything:

Deploying:
Uploading 0 files.
Initializing precompilation...
Deploying new version.
Closing update: new version is ready to start serving.
Uploading index definitions.

Deployment completed successfully

Here is the log on GAE:  Any thoughts on how to confirm that my published version is also using 2.0?

Uncaught exception from servlet
java.lang.SecurityException: Unable to get members for class groovyx.gaelyk.GaelykCategory
	at com.google.appengine.runtime.Request.process-4bf5f26de9eb1e81(Request.java)
	at org.codehaus.groovy.reflection.CachedClass$3$1.run(CachedClass.java:84)
	at java.security.AccessController.doPrivileged(AccessController.java:34)
	at org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:81)
	at org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:79)
	at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46)
	at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33)
	at org.codehaus.groovy.reflection.CachedClass.getMethods(CachedClass.java:250)
	at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.applyUse(GroovyCategorySupport.java:125)
	at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:177)
	at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:116)
	at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:257)
	at org.codehaus.groovy.runtime.DefaultGroovyMethods.use(DefaultGroovyMethods.java:439)
	at org.codehaus.groovy.runtime.dgm$896.invoke(Unknown Source)
	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoMetaMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:308)
	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:52)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:145)
	at groovyx.gaelyk.GaelykTemplateServlet.service(GaelykTemplateServlet.groovy:103)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
	at javax.servlet.FilterChain$doFilter.call(Unknown Source)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
	at groovyx.gaelyk.routes.RoutesFilter.doFilter(RoutesFilter.groovy:166)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
	at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327)
	at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
	at javax.servlet.RequestDispatcher$forward.call(Unknown Source)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
	at groovyx.gaelyk.cache.CacheHandler.serve(CacheHandler.groovy:84)
	at groovyx.gaelyk.cache.CacheHandler$serve.call(Unknown Source)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
	at groovyx.gaelyk.routes.RoutesFilter.doFilter(RoutesFilter.groovy:150)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:326)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
	at com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:480)
	at com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:487)
	at com.google.tracing.TraceContext.runInContext(TraceContext.java:774)
	at com.google.tracing.TraceContext$DoInTraceContext.runInContext(TraceContext.java:751)
	at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:342)
	at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:334)
	at com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:484)
	at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	... 68 more
Caused by: java.lang.NoClassDefFoundError: com/google/appengine/api/search/AddResponse
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Class.java:2447)
	at java.lang.Class.getDeclaredMethods(Class.java:1806)
	... 71 more
Caused by: java.lang.ClassNotFoundException: com.google.appengine.api.search.AddResponse
	at com.google.appengine.runtime.Request.process-4bf5f26de9eb1e81(Request.java)
	... 68 more
Reply all
Reply to author
Forward
0 new messages