google-code-export / objectify-appengine

Automatically exported from code.google.com/p/objectify-appengine
MIT License
1 stars 0 forks source link

rc1 does not work with app engine 1.8.1 #162

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
My application starts with objectify-4.0b1.  When I simply switch to 
objectify-4.0rc1, it dies with the following:

Initializing App Engine server
Jun 14, 2013 6:48:30 AM 
com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFO: Successfully processed 
C:\Users\tmcadmin\eclipse_workspace\nfmcFestivalManager\war\WEB-INF/appengine-we
b.xml
Jun 14, 2013 6:48:30 AM 
com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed 
C:\Users\tmcadmin\eclipse_workspace\nfmcFestivalManager\war\WEB-INF/web.xml
Jun 14, 2013 6:48:30 AM 
com.google.appengine.tools.development.SystemPropertiesManager 
setSystemProperties
INFO: Overwriting system property key 'java.util.logging.config.file', value 
'C:\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.8.1\appengine-java-
sdk-1.8.1\config\sdk\logging.properties' with value 
'WEB-INF/logging.properties' from 
'C:\Users\tmcadmin\eclipse_workspace\nfmcFestivalManager\war\WEB-INF\appengine-w
eb.xml'
Jun 14, 2013 6:48:31 AM com.google.apphosting.utils.jetty.JettyLogger info
INFO: Logging to JettyLogger(null) via 
com.google.apphosting.utils.jetty.JettyLogger
Jun 14, 2013 12:48:31 PM com.google.apphosting.utils.jetty.JettyLogger info
INFO: jetty-6.1.x
Jun 14, 2013 12:48:33 PM com.google.apphosting.utils.jetty.JettyLogger info
INFO: Started SelectChannelConnector@0.0.0.0:8888
Jun 14, 2013 12:48:33 PM com.google.appengine.tools.development.AbstractServer 
startup
INFO: Server default is running at http://localhost:8888/
Jun 14, 2013 12:48:33 PM com.google.appengine.tools.development.AbstractServer 
startup
INFO: The admin console is running at http://localhost:8888/_ah/admin
Jun 14, 2013 6:48:33 AM com.google.appengine.tools.development.DevAppServerImpl 
start
INFO: Dev App Server is now running
Jun 14, 2013 6:48:41 AM 
com.google.appengine.api.datastore.dev.LocalDatastoreService init
INFO: Local Datastore initialized: 
    Type: High Replication
    Storage: C:\Users\tmcadmin\eclipse_workspace\nfmcFestivalManager\war\WEB-INF\appengine-generated\local_db.bin
Jun 14, 2013 6:48:41 AM 
com.google.appengine.api.datastore.dev.LocalDatastoreService load
INFO: Time to load datastore: 62 ms
1    14.06.2013 
12:48:41.584    1,000   SEVERE  Thread[1463705704@qtp-34738347-2,5,main]    com.ulcjava.b
ase.server.ULCSession   processRequests An exception has been thrown while 
processing following requests: '[Request[oid=1,name=startApplication,args={ 
userParameters={ gwt.codesvr=127.0.0.1:9997 }, build=22544, 
clientInfo=com.ulcjava.base.server.ClientInfo@48a0be1a 
}]]'.   [java.lang.NoSuchMethodError: 
com.googlecode.objectify.cmd.Loader.key(Lcom/googlecode/objectify/Key;)Lcom/goog
lecode/objectify/LoadResult;
    at com.tmCarterEngg.nfmcFestivalManager.shared.nfmcUtil.get(nfmcUtil.java:141)
    at com.tmCarterEngg.nfmcFestivalManager.shared.nfmcAdminUnit.createBasicUnits(nfmcAdminUnit.java:403)
    at com.tmCarterEngg.nfmcFestivalManager.nfmcFestivalManagerULCxApplication.createStartupMainContent(nfmcFestivalManagerULCxApplication.java:24)
    at com.ulcjava.applicationframework.application.SingleFrameApplication.startup(SingleFrameApplication.java:120)
    at com.ulcjava.applicationframework.application.Application.start(Application.java:118)
    at com.ulcjava.base.server.ULCSession.handleStartApplication(ULCSession.java:43)
    at com.ulcjava.base.server.ULCSession.handleRequest(ULCSession.java:7)
    at com.ulcjava.base.server.ULCSession.processRequest(ULCSession.java:172)
    at com.ulcjava.base.server.ULCSession.processRequests(ULCSession.java:342)
    at com.ulcjava.container.servlet.server.SendRequestsCommand.handleRequestContent(SendRequestsCommand.java:48)
    at com.ulcjava.container.servlet.server.ContainerCommand.execute(ContainerCommand.java:33)
    at com.ulcjava.container.servlet.server.ServletContainerAdapterHelper.b(ServletContainerAdapterHelper.java:108)
    at com.ulcjava.container.servlet.server.ServletContainerAdapterHelper.service(ServletContainerAdapterHelper.java:109)
    at com.ulcjava.container.servlet.server.ServletContainerAdapter.service(ServletContainerAdapter.java:6)
    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 com.google.appengine.api.socket.dev.DevSocketFilter.doFilter(DevSocketFilter.java:74)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.appengine.tools.development.ResponseRewriterFilter.doFilter(ResponseRewriterFilter.java:123)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:34)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:63)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:125)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.appengine.tools.development.DevAppServerServersFilter.doDirectRequest(DevAppServerServersFilter.java:369)
    at com.google.appengine.tools.development.DevAppServerServersFilter.doDirectServerRequest(DevAppServerServersFilter.java:352)
    at com.google.appengine.tools.development.DevAppServerServersFilter.doFilter(DevAppServerServersFilter.java:115)
    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 com.google.appengine.tools.development.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:97)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:480)
    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.content(HttpConnection.java:938)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
    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.java:409)
    at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
]

Original issue reported on code.google.com by tony.m.c...@tmcarter-engg.com on 14 Jun 2013 at 12:52

GoogleCodeExporter commented 9 years ago
Did you try recompiling your code against the new jar file? A NoSuchMethodError 
generally means that you'll need to do that.

Original comment by latch...@gmail.com on 14 Jun 2013 at 2:28

GoogleCodeExporter commented 9 years ago
Yes.  I rebuilt everything.

Original comment by tony.m.c...@tmcarter-engg.com on 14 Jun 2013 at 4:31

GoogleCodeExporter commented 9 years ago
Next question... are you 100% sure the old ofy jar file is gone from your 
classpath?

Original comment by latch...@gmail.com on 14 Jun 2013 at 7:35

GoogleCodeExporter commented 9 years ago
A bit more information.   Yes, I'm sure.  I've reorganized everything and have 
what I believe to be a bit more specific information (it appears in 
initializing the EntityMemcache class):

Initializing App Engine server
Jun 15, 2013 8:56:54 PM 
com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFO: Successfully processed 
C:\Users\tmcadmin\eclipse_workspace\nfmcFM\war\WEB-INF/appengine-web.xml
Jun 15, 2013 8:56:54 PM 
com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed 
C:\Users\tmcadmin\eclipse_workspace\nfmcFM\war\WEB-INF/web.xml
Jun 15, 2013 8:56:55 PM 
com.google.appengine.tools.development.SystemPropertiesManager 
setSystemProperties
INFO: Overwriting system property key 'java.util.logging.config.file', value 
'C:\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.8.1\appengine-java-
sdk-1.8.1\config\sdk\logging.properties' with value 
'WEB-INF/logging.properties' from 
'C:\Users\tmcadmin\eclipse_workspace\nfmcFM\war\WEB-INF\appengine-web.xml'
Jun 15, 2013 8:56:55 PM com.google.apphosting.utils.jetty.JettyLogger info
INFO: Logging to JettyLogger(null) via 
com.google.apphosting.utils.jetty.JettyLogger
Jun 16, 2013 2:56:55 AM com.google.apphosting.utils.jetty.JettyLogger info
INFO: jetty-6.1.x
Jun 16, 2013 2:56:57 AM com.google.apphosting.utils.jetty.JettyLogger info
INFO: Started SelectChannelConnector@0.0.0.0:8888
Jun 16, 2013 2:56:57 AM com.google.appengine.tools.development.AbstractServer 
startup
INFO: Server default is running at http://localhost:8888/
Jun 16, 2013 2:56:57 AM com.google.appengine.tools.development.AbstractServer 
startup
INFO: The admin console is running at http://localhost:8888/_ah/admin
Jun 15, 2013 8:56:57 PM com.google.appengine.tools.development.DevAppServerImpl 
start
INFO: Dev App Server is now running
1    16.06.2013 
02:57:17.463    1,000   SEVERE  Thread[746294742@qtp-1614375029-0,5,main]   com.ulcjava.
base.server.ULCSession  processRequests An exception has been thrown while 
processing following requests: '[Request[oid=1,name=startApplication,args={ 
userParameters={ gwt.codesvr=127.0.0.1:9997 }, build=24858, 
clientInfo=com.ulcjava.base.server.ClientInfo@9727492 
}]]'.   [java.lang.NoClassDefFoundError: com/google/common/base/Function
    at com.googlecode.objectify.cache.EntityMemcache.<init>(EntityMemcache.java:176)
    at com.googlecode.objectify.ObjectifyFactory.<init>(ObjectifyFactory.java:70)
    at com.googlecode.objectify.ObjectifyService.<clinit>(ObjectifyService.java:21)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:188)
    at com.google.appengine.tools.development.agent.runtime.RuntimeHelper.checkRestricted(RuntimeHelper.java:70)
    at com.google.appengine.tools.development.agent.runtime.Runtime.checkRestricted(Runtime.java:64)
    at com.nfmc.FM.nfmcFMApplication.createStartupMainContent(nfmcFMApplication.java:41)
    at com.ulcjava.applicationframework.application.SingleFrameApplication.startup(SingleFrameApplication.java:121)
    at com.ulcjava.applicationframework.application.Application.start(Application.java:118)
    at com.ulcjava.base.server.ULCSession.handleStartApplication(ULCSession.java:354)
    at com.ulcjava.base.server.ULCSession.handleRequest(ULCSession.java:124)
    at com.ulcjava.base.server.ULCSession.processRequest(ULCSession.java:339)
    at com.ulcjava.base.server.ULCSession.processRequests(ULCSession.java:312)
    at com.ulcjava.container.servlet.server.SendRequestsCommand.handleRequestContent(SendRequestsCommand.java:16)
    at com.ulcjava.container.servlet.server.ContainerCommand.execute(ContainerCommand.java:9)
    at com.ulcjava.container.servlet.server.ServletContainerAdapterHelper.c(ServletContainerAdapterHelper.java:196)
    at com.ulcjava.container.servlet.server.ServletContainerAdapterHelper.service(ServletContainerAdapterHelper.java:197)
    at com.ulcjava.container.servlet.server.ServletContainerAdapter.serviceInternal(ServletContainerAdapter.java:16)
    at com.ulcjava.container.servlet.server.ServletContainerAdapter.service(ServletContainerAdapter.java:5)
    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 com.google.appengine.api.socket.dev.DevSocketFilter.doFilter(DevSocketFilter.java:74)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.appengine.tools.development.ResponseRewriterFilter.doFilter(ResponseRewriterFilter.java:123)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:34)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:63)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:125)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.appengine.tools.development.DevAppServerServersFilter.doDirectRequest(DevAppServerServersFilter.java:369)
    at com.google.appengine.tools.development.DevAppServerServersFilter.doDirectServerRequest(DevAppServerServersFilter.java:352)
    at com.google.appengine.tools.development.DevAppServerServersFilter.doFilter(DevAppServerServersFilter.java:115)
    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 com.google.appengine.tools.development.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:97)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:480)
    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.content(HttpConnection.java:938)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
    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.java:409)
    at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: java.lang.ClassNotFoundException: com.google.common.base.Function
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    at com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java:215)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    ... 56 more
]

Original comment by tony.m.c...@tmcarter-engg.com on 16 Jun 2013 at 3:01

GoogleCodeExporter commented 9 years ago
"Caused by: java.lang.ClassNotFoundException: com.google.common.base.Function"

Do you have the Guava jar file included in your classpath? It is a new 
requirement.

https://groups.google.com/d/msg/objectify-appengine/2GIbvzzHysE/HNTd_-BSBTMJ

Here is a link to the download:

https://code.google.com/p/guava-libraries/

I'm closing this issue as it seems this should solve your issue.

Original comment by latch...@gmail.com on 16 Jun 2013 at 3:06

GoogleCodeExporter commented 9 years ago
google-guava did the trick.  Thanks a bunch!

Original comment by tony.m.c...@tmcarter-engg.com on 16 Jun 2013 at 3:00

GoogleCodeExporter commented 9 years ago
Pedantic change to status :)

Original comment by lhori...@gmail.com on 16 Jun 2013 at 4:07