I got 403, 404 error when running with gg AppEngine
[INFO] GCLOUD: WARNING: Your working directory, (E:\Eclipse Projects\ysuria) is not equal to your
[INFO] GCLOUD: web application root (E:\Eclipse Projects\ysuria\target\ysuria-0.0.1-SNAPSHOT)
[INFO] GCLOUD: You will not be able to access files from your working directory on the production server.
[INFO] GCLOUD:
[INFO] GCLOUD: 2018-03-20 11:18:50.595:INFO:oejs.Server:main: jetty-9.3.18.v20170406
[INFO] GCLOUD: 2018-03-20 11:18:57.362:WARN:oeja.ClassInheritanceHandler:qtp328638398-16:
[INFO] GCLOUD: java.lang.NullPointerException
[INFO] GCLOUD: at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936)
[INFO] GCLOUD: at org.eclipse.jetty.annotations.ClassInheritanceHandler.addToInheritanceMap(ClassInheritanceHandler.java:72)
[INFO] GCLOUD: at org.eclipse.jetty.annotations.ClassInheritanceHandler.handle(ClassInheritanceHandler.java:58)
[INFO] GCLOUD: at org.eclipse.jetty.annotations.AnnotationParser$MyClassVisitor.visit(AnnotationParser.java:476)
[INFO] GCLOUD: at org.objectweb.asm.ClassReader.accept(ClassReader.java:650)
[INFO] GCLOUD: at org.objectweb.asm.ClassReader.accept(ClassReader.java:525)
[INFO] GCLOUD: at org.eclipse.jetty.annotations.AnnotationParser.scanClass(AnnotationParser.java:978)
[INFO] GCLOUD: at org.eclipse.jetty.annotations.AnnotationParser.parseJarEntry(AnnotationParser.java:958)
[INFO] GCLOUD: at org.eclipse.jetty.annotations.AnnotationParser.parseJar(AnnotationParser.java:902)
[INFO] GCLOUD: at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:851)
[INFO] GCLOUD: at org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call(AnnotationConfiguration.java:163)
[INFO] GCLOUD: at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:546)
[INFO] GCLOUD: at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
[INFO] GCLOUD: at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
[INFO] GCLOUD: at java.lang.Thread.run(Thread.java:748)
here is my code https://github.com/NhuY97/ysuria
thanks
Related
Problem as title says
the RocketMQ version i use is incubator-rocketmq-release-4.0.0-incubating
downloading from https://github.com/apache/incubator-rocketmq/tree/release-4.0.0-incubating
it has some err when mvn -Prelease-all -DskipTests clean install -U
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Apache RocketMQ 4.1.0-incubating-SNAPSHOT
[INFO] rocketmq-remoting 4.1.0-incubating-SNAPSHOT
[INFO] rocketmq-common 4.1.0-incubating-SNAPSHOT
[INFO] rocketmq-client 4.1.0-incubating-SNAPSHOT
[INFO] rocketmq-store 4.1.0-incubating-SNAPSHOT
[INFO] rocketmq-srvutil 4.1.0-incubating-SNAPSHOT
[INFO] rocketmq-broker 4.1.0-incubating-SNAPSHOT
[INFO] rocketmq-tools 4.1.0-incubating-SNAPSHOT
[INFO] rocketmq-namesrv 4.1.0-incubating-SNAPSHOT
[INFO] rocketmq-example 4.1.0-incubating-SNAPSHOT
[INFO] rocketmq-filtersrv 4.1.0-incubating-SNAPSHOT
[INFO] rocketmq-test 4.1.0-incubating-SNAPSHOT
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache RocketMQ 4.1.0-incubating-SNAPSHOT 4.1.0-incubating-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) # rocketmq-all ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-ban-circular-dependencies) # rocketmq-all ---
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.8:prepare-agent (default-prepare-agent) # rocketmq-all ---
[INFO] argLine set to -javaagent:/home/alex/.m2/repository/org/jacoco/org.jacoco.agent/0.7.8/org.jacoco.agent-0.7.8-runtime.jar=destfile=/usr/local/rocketMQ/incubator-rocketmq-release-4.0.0-incubating/target/jacoco.exec
[INFO]
[INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) # rocketmq-all ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache RocketMQ 4.1.0-incubating-SNAPSHOT .......... FAILURE [ 2.688 s]
[INFO] rocketmq-remoting 4.1.0-incubating-SNAPSHOT ........ SKIPPED
[INFO] rocketmq-common 4.1.0-incubating-SNAPSHOT .......... SKIPPED
[INFO] rocketmq-client 4.1.0-incubating-SNAPSHOT .......... SKIPPED
[INFO] rocketmq-store 4.1.0-incubating-SNAPSHOT ........... SKIPPED
[INFO] rocketmq-srvutil 4.1.0-incubating-SNAPSHOT ......... SKIPPED
[INFO] rocketmq-broker 4.1.0-incubating-SNAPSHOT .......... SKIPPED
[INFO] rocketmq-tools 4.1.0-incubating-SNAPSHOT ........... SKIPPED
[INFO] rocketmq-namesrv 4.1.0-incubating-SNAPSHOT ......... SKIPPED
[INFO] rocketmq-example 4.1.0-incubating-SNAPSHOT ......... SKIPPED
[INFO] rocketmq-filtersrv 4.1.0-incubating-SNAPSHOT ....... SKIPPED
[INFO] rocketmq-test 4.1.0-incubating-SNAPSHOT ............ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.335 s
[INFO] Finished at: 2017-05-10T14:49:16+08:00
[INFO] Final Memory: 15M/43M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process (process-resource-bundles) on project rocketmq-all: Error finding remote resources manifests: /usr/local/rocketMQ/incubator-rocketmq-release-4.0.0-incubating/target/maven-shared-archive-resources/META-INF/NOTICE (No such file or directory) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process (process-resource-bundles) on project rocketmq-all: Error finding remote resources manifests: /usr/local/rocketMQ/incubator-rocketmq-release-4.0.0-incubating/target/maven-shared-archive-resources/META-INF/NOTICE (No such file or directory) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process (process-resource-bundles) on project rocketmq-all: Error finding remote resources manifests
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error finding remote resources manifests
at org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.processResourceBundles(ProcessRemoteResourcesMojo.java:1238)
at org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.execute(ProcessRemoteResourcesMojo.java:520)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
... 20 more
Caused by: java.io.FileNotFoundException: /usr/local/rocketMQ/incubator-rocketmq-release-4.0.0-incubating/target/maven-shared-archive-resources/META-INF/NOTICE (No such file or directory)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
at java.io.FileWriter.<init>(FileWriter.java:90)
at org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.processResourceBundles(ProcessRemoteResourcesMojo.java:1146)
... 23 more
When I try to run code on GAE locally I receive exceptions like this one below. This happens after my migration from 4.3.11.Final to Hibernate 5.1.0.Final. How to avoid them?
cze 15, 2016 8:54:36 AM com.google.appengine.tools.development.agent.impl.Transformer transform
[INFO] SEVERE: Unable to instrument javassist.util.proxy.ProxyFactory$ProxyDetails. Security restrictions may not be entirely emulated.
[INFO] java.lang.RuntimeException
[INFO] at com.google.appengine.repackaged.org.objectweb.asm.MethodVisitor.visitParameter(MethodVisitor.java:115)
[INFO] at com.google.appengine.repackaged.org.objectweb.asm.ClassReader.readMethod(ClassReader.java:959)
[INFO] at com.google.appengine.repackaged.org.objectweb.asm.ClassReader.accept(ClassReader.java:693)
[INFO] at com.google.appengine.repackaged.org.objectweb.asm.ClassReader.accept(ClassReader.java:506)
[INFO] at com.google.appengine.tools.development.agent.impl.Transformer.rewrite(Transformer.java:146)
[INFO] at com.google.appengine.tools.development.agent.impl.Transformer.transform(Transformer.java:113)
[INFO] at sun.instrument.TransformerManager.transform(TransformerManager.java:188)
[INFO] at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:424)
[INFO] at java.lang.ClassLoader.defineClass1(Native Method)
[INFO] at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
[INFO] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
[INFO] at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
[INFO] at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
[INFO] at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
[INFO] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
[INFO] at java.security.AccessController.doPrivileged(Native Method)
[INFO] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
[INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
[INFO] at com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java:199)
[INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
[INFO] at javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:493)
[INFO] at javassist.util.proxy.ProxyFactory.createClass1(ProxyFactory.java:428)
[INFO] at javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:400)
[INFO] at org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.postInstantiate(JavassistProxyFactory.java:72)
[INFO] at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:164)
[INFO] at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:157)
[INFO] at org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:60)
[INFO] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[INFO] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
[INFO] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[INFO] at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
[INFO] at com.google.appengine.tools.development.agent.runtime.Runtime.newInstance_(Runtime.java:142)
[INFO] at com.google.appengine.tools.development.agent.runtime.Runtime.newInstance(Runtime.java:150)
[INFO] at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:88)
[INFO] at org.hibernate.tuple.entity.EntityTuplizerFactory.constructDefaultTuplizer(EntityTuplizerFactory.java:116)
[INFO] at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:385)
[INFO] at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:509)
[INFO] at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:124)
[INFO] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[INFO] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
[INFO] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[INFO] at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
[INFO] at com.google.appengine.tools.development.agent.runtime.Runtime.newInstance_(Runtime.java:142)
[INFO] at com.google.appengine.tools.development.agent.runtime.Runtime.newInstance(Runtime.java:150)
[INFO] at org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:96)
[INFO] at org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:77)
[INFO] at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:344)
[INFO] at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:465)
[INFO] at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:881)
[INFO] at org.hibernate.jpa.HibernatePersistenceProvider.createContainerEntityManagerFactory(HibernatePersistenceProvider.java:135)
[INFO] at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:343)
[INFO] at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:319)
[INFO] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$6.run(AbstractAutowireCapableBeanFactory.java:1627)
[INFO] at java.security.AccessController.doPrivileged(Native Method)
[INFO] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1624)
[INFO] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)
[INFO] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
[INFO] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
[INFO] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
[INFO] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
[INFO] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
[INFO] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
[INFO] at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1054)
[INFO] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:829)
[INFO] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
[INFO] at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)
[INFO] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)
[INFO] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
[INFO] at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
[INFO] at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
[INFO] at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
[INFO] at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
[INFO] at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
[INFO] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
[INFO] at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
[INFO] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
[INFO] at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
[INFO] at org.mortbay.jetty.Server.doStart(Server.java:224)
[INFO] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
[INFO] at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:271)
[INFO] at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:284)
[INFO] at com.google.appengine.tools.development.AutomaticInstanceHolder.startUp(AutomaticInstanceHolder.java:26)
[INFO] at com.google.appengine.tools.development.AbstractModule.startup(AbstractModule.java:87)
[INFO] at com.google.appengine.tools.development.Modules.startup(Modules.java:105)
[INFO] at com.google.appengine.tools.development.DevAppServerImpl.doStart(DevAppServerImpl.java:258)
[INFO] at com.google.appengine.tools.development.DevAppServerImpl.access$000(DevAppServerImpl.java:47)
[INFO] at com.google.appengine.tools.development.DevAppServerImpl$1.run(DevAppServerImpl.java:213)
[INFO] at com.google.appengine.tools.development.DevAppServerImpl$1.run(DevAppServerImpl.java:211)
[INFO] at java.security.AccessController.doPrivileged(Native Method)
[INFO] at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:211)
[INFO] at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:277)
[INFO] at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
[INFO] at com.google.appengine.tools.development.DevAppServerMain.run(DevAppServerMain.java:225)
[INFO] at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:216)
This could be related to the Javassist update that occurs when migrating from Hibernate 4 to 5.1. It looks like there is an issue running any version of javassist newer than 3.18.2-GA on GAE which still only supports Java 7.
See this related post:
Google App Engine and Java org.reflection library - Error during the scan procedure
After migration from Hibernate 4.3.11.Final to 5.0.6.Final I receive the following exception:
[INFO] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in xxx.xxx.configuration.AppConfiguration: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax.naming.StringRefAddr is a restricted class. Please see the Google App Engine developer's guide for more details.
[INFO] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)
[INFO] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
[INFO] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
[INFO] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
[INFO] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
[INFO] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
[INFO] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
[INFO] at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1051)
[INFO] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:828)
[INFO] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)
[INFO] at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:446)
[INFO] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:328)
[INFO] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
[INFO] at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
[INFO] at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
[INFO] at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
[INFO] at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
[INFO] at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
[INFO] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
[INFO] at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
[INFO] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
[INFO] at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
[INFO] at org.mortbay.jetty.Server.doStart(Server.java:224)
[INFO] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
[INFO] at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:272)
[INFO] at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:283)
[INFO] at com.google.appengine.tools.development.AutomaticInstanceHolder.startUp(AutomaticInstanceHolder.java:26)
[INFO] at com.google.appengine.tools.development.AbstractModule.startup(AbstractModule.java:87)
[INFO] at com.google.appengine.tools.development.Modules.startup(Modules.java:105)
[INFO] at com.google.appengine.tools.development.DevAppServerImpl.doStart(DevAppServerImpl.java:258)
[INFO] at com.google.appengine.tools.development.DevAppServerImpl.access$000(DevAppServerImpl.java:47)
[INFO] at com.google.appengine.tools.development.DevAppServerImpl$1.run(DevAppServerImpl.java:213)
[INFO] at com.google.appengine.tools.development.DevAppServerImpl$1.run(DevAppServerImpl.java:211)
[INFO] at java.security.AccessController.doPrivileged(Native Method)
[INFO] at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:211)
[INFO] at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:277)
[INFO] at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
[INFO] at com.google.appengine.tools.development.DevAppServerMain.run(DevAppServerMain.java:225)
[INFO] at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:216)
[INFO] Caused by: java.lang.NoClassDefFoundError: javax.naming.StringRefAddr is a restricted class. Please see the Google App Engine developer's guide for more details.
[INFO] at com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:52)
[INFO] at org.hibernate.internal.SessionFactoryImpl.getReference(SessionFactoryImpl.java:877)
[INFO] at org.hibernate.type.TypeFactory$TypeScopeImpl.injectSessionFactory(TypeFactory.java:62)
[INFO] at org.hibernate.type.TypeFactory.injectSessionFactory(TypeFactory.java:100)
[INFO] at org.hibernate.type.TypeResolver.scope(TypeResolver.java:37)
[INFO] at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:249)
[INFO] at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:444)
[INFO] at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:879)
[INFO] at org.hibernate.jpa.HibernatePersistenceProvider.createContainerEntityManagerFactory(HibernatePersistenceProvider.java:135)
[INFO] at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:343)
[INFO] at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:318)
[INFO] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$6.run(AbstractAutowireCapableBeanFactory.java:1627)
[INFO] at java.security.AccessController.doPrivileged(Native Method)
[INFO] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1624)
[INFO] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)
[INFO] ... 38 more
StringRefAddr is a restricted class I know, but is there any trick to run Hibernate 5 somehow? I am using GAE 1.9.30.
I just shared details on the GAE implementation around black & white lists along with the hack that one need to do get around this issue here.
I have my test webapp and it is perfectly running in local jetty. but it's not working in local gae this is the error i'm getting
I'm new to spring and google app engine, sorry if I made a stupid mistake
[INFO] Sep 14, 2014 5:06:16 PM org.springframework.web.context.ContextLoader initWebApplicationContext
[INFO] SEVERE: Context initialization failed
[INFO] java.lang.IncompatibleClassChangeError: Implementing class
[INFO] at java.lang.ClassLoader.defineClass1(Native Method)
[INFO] at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
[INFO] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
[INFO] at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
[INFO] at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
[INFO] at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
[INFO] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
[INFO] at java.security.AccessController.doPrivileged(Native Method)
[INFO] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
[INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
[INFO] at com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java:216)
[INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
[INFO] at java.lang.ClassLoader.defineClass1(Native Method)
[INFO] at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
[INFO] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
[INFO] at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
[INFO] at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
[INFO] at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
[INFO] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
[INFO] at java.security.AccessController.doPrivileged(Native Method)
[INFO] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
[INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
[INFO] at com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java:216)
[INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
[INFO] at org.springframework.core.DefaultParameterNameDiscoverer.<init>(DefaultParameterNameDiscoverer.java:42)
[INFO] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.<init>(AbstractAutowireCapableBeanFactory.java:124)
[INFO] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.<init>(AbstractAutowireCapableBeanFactory.java:171)
[INFO] at org.springframework.beans.factory.support.DefaultListableBeanFactory.<init>(DefaultListableBeanFactory.java:187)
[INFO] at org.springframework.context.support.AbstractRefreshableApplicationContext.createBeanFactory(AbstractRefreshableApplicationContext.java:200)
[INFO] at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:126)
[INFO] at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:537)
[INFO] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:452)
[INFO] at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)
[INFO] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)
[INFO] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
[INFO] at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
[INFO] at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
[INFO] at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
[INFO] at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
[INFO] at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
[INFO] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
[INFO] at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
[INFO] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
[INFO] at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
[INFO] at org.mortbay.jetty.Server.doStart(Server.java:224)
[INFO] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
[INFO] at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:255)
[INFO] at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:288)
[INFO] at com.google.appengine.tools.development.AutomaticInstanceHolder.startUp(AutomaticInstanceHolder.java:26)
[INFO] at com.google.appengine.tools.development.AbstractModule.startup(AbstractModule.java:87)
[INFO] at com.google.appengine.tools.development.Modules.startup(Modules.java:105)
[INFO] at com.google.appengine.tools.development.DevAppServerImpl.doStart(DevAppServerImpl.java:258)
[INFO] at com.google.appengine.tools.development.DevAppServerImpl.access$000(DevAppServerImpl.java:47)
[INFO] at com.google.appengine.tools.development.DevAppServerImpl$1.run(DevAppServerImpl.java:213)
[INFO] at com.google.appengine.tools.development.DevAppServerImpl$1.run(DevAppServerImpl.java:211)
[INFO] at java.security.AccessController.doPrivileged(Native Method)
[INFO] at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:211)
[INFO] at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:277)
[INFO] at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
[INFO] at com.google.appengine.tools.development.DevAppServerMain.run(DevAppServerMain.java:219)
[INFO] at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:210)
You need to run a maven Clean within Eclipse to remove java.lang.IncompatibleClassChangeError: Implementing class Error...
But Spring 4.1.0 still gave me an error called No such method
I downgraded the spring version to 3.1.1 now it works
When I do the snapshot build for project the build is successful in Hudson. But when we do the hudson release build we see the error below. Please let me know if any have any idea on this.. Appreciate for your help.
[INFO] Constructing Javadoc information...
[INFO] Standard Doclet version 1.6.0_30
[INFO] Building tree for all the packages and classes...
[INFO] Generating /devl/iw/tools/hudson/jobs/Imaging/workspace/Imaging/target/checkout/target/apidocs/ntnood/iw/imaging/client/CommConstants.html...
[INFO] Generating /devl/iw/tools/hudson/jobs/Imaging/workspace/Imaging/target/checkout/target/apidocs/ntnood/iw/imaging/client/DocumentClient.html...
[INFO] Generating /devl/iw/tools/hudson/jobs/docsol/workspace/docsol/target/checkout/target/apidocs/ntnood/iw/imaging/imagegear/class-use/ImageGearException.html...
[INFO] 1 error
[INFO] 1 warning
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [ERROR] BUILD ERROR
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] MavenReportException: Error while creating archive:
[INFO] Exit code: 1 - com.sun.tools.javac.file.BaseFileObject$CannotCreateUriError: [DashoPro-V2.2-110100.11101A0148]
[INFO] at com.sun.tools.javac.jvm.ClassReader$SourceFileObject.toUri(ClassReader.java:2325)
[INFO] at com.sun.tools.javadoc.ClassDocImpl.containingPackage(ClassDocImpl.java:297)
[INFO] at com.sun.tools.doclets.formats.html.LinkFactoryImpl.getClassToolTip(LinkFactoryImpl.java:140)
[INFO] at com.sun.tools.doclets.formats.html.LinkFactoryImpl.getClassLink(LinkFactoryImpl.java:63)
[INFO] at com.sun.tools.doclets.internal.toolkit.util.links.LinkFactory.getLinkOutput(LinkFactory.java:116)
[INFO] at com.sun.tools.doclets.formats.html.HtmlDocletWriter.getLink(HtmlDocletWriter.java:1727)
[INFO] at com.sun.tools.doclets.formats.html.AbstractExecutableMemberWriter.addParam(AbstractExecutableMemberWriter.java:126)
[INFO] at com.sun.tools.doclets.formats.html.AbstractExecutableMemberWriter.addParameters(AbstractExecutableMemberWriter.java:195)
[INFO] at com.sun.tools.doclets.formats.html.AbstractExecutableMemberWriter.addSummaryLink(AbstractExecutableMemberWriter.java:97)
[INFO] at com.sun.tools.doclets.formats.html.AbstractMemberWriter.addSummaryLink(AbstractMemberWriter.java:135)
[INFO] at com.sun.tools.doclets.formats.html.AbstractMemberWriter.addMemberSummary(AbstractMemberWriter.java:567)
[INFO] at com.sun.tools.doclets.internal.toolkit.builders.MemberSummaryBuilder.buildSummary(MemberSummaryBuilder.java:321)
[INFO] at com.sun.tools.doclets.internal.toolkit.builders.MemberSummaryBuilder.addSummary(MemberSummaryBuilder.java:378)
[INFO] at com.sun.tools.doclets.internal.toolkit.builders.MemberSummaryBuilder.buildMethodsSummary(MemberSummaryBuilder.java:277)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[INFO] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] at java.lang.reflect.Method.invoke(Method.java:622)
[INFO] at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.invokeMethod(AbstractBuilder.java:148)
[INFO] at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:103)
[INFO] at com.sun.tools.doclets.internal.toolkit.builders.AbstractMemberBuilder.build(AbstractMemberBuilder.java:76)
[INFO] at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.buildChildren(AbstractBuilder.java:129)
[INFO] at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.buildMemberSummary(ClassBuilder.java:333)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[INFO] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] at java.lang.reflect.Method.invoke(Method.java:622)
[INFO] at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.invokeMethod(AbstractBuilder.java:148)
[INFO] at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:103)
[INFO] at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.buildChildren(AbstractBuilder.java:129)
[INFO] at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.buildClassDoc(ClassBuilder.java:145)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[INFO] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] at java.lang.reflect.Method.invoke(Method.java:622)
[INFO] at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.invokeMethod(AbstractBuilder.java:148)
[INFO] at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:103)
[INFO] at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.build(ClassBuilder.java:117)
[INFO] at com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(HtmlDoclet.java:183)
[INFO] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:183)
[INFO] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:125)
[INFO] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:83)
[INFO] at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:63)
[INFO] at com.sun.tools.doclets.standard.Standard.start(Standard.java:41)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[INFO] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] at java.lang.reflect.Method.invoke(Method.java:622)
[INFO] at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:291)
[INFO] at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:165)
[INFO] at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:374)
[INFO] at com.sun.tools.javadoc.Start.begin(Start.java:162)
[INFO] at com.sun.tools.javadoc.Main.execute(Main.java:59)
[INFO] at com.sun.tools.javadoc.Main.main(Main.java:49)
[INFO] Caused by: java.net.URISyntaxException: Illegal character in path at index 0: [DashoPro-V2.2-110100.11101A0148]
[INFO] at java.net.URI$Parser.fail(URI.java:2825)
[INFO] at java.net.URI$Parser.checkChars(URI.java:2998)
[INFO] at java.net.URI$Parser.parseHierarchical(URI.java:3082)
[INFO] at java.net.URI$Parser.parse(URI.java:3040)
[INFO] at java.net.URI.<init>(URI.java:824)
[INFO] at com.sun.tools.javac.jvm.ClassReader$SourceFileObject.toUri(ClassReader.java:2323)
[INFO] ... 53 more
[INFO]
[INFO] Command line was: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/../bin/javadoc #options #packages
[INFO]
[INFO] Refer to the generated Javadoc files in '/devl/iw/tools/hudson/jobs/docsol/workspace/docsol/target/checkout/target/apidocs' dir.
[INFO]
[INFO]
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] For more information, run Maven with the -e switch
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Total time: 24 seconds
[INFO] [INFO] Finished at: Thu Aug 21 12:35:22 EDT 2014
[INFO] [INFO] Final Memory: 52M/711M
[INFO] [INFO] ------------------------------------------------------------------------
[HUDSON] Archiving /devl/iw/tools/hudson/jobs/docsol/workspace/docsol/pom.xml to /devl/iw/tools/hudson/jobs/docsol/modules/ntnood.iw$docsol/builds/2014-08-21_12-34-04/archive/ntnood.iw/docsol/2.3.23-SNAPSHOT/pom.xml
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Maven execution failed, exit code: '1'