[MWy] EJB
Michal Stasa
michal.stasa at gmail.com
Tue May 14 21:11:33 CEST 2013
Tak jsem to zkusil, ted uz nenastartuji ani server:
u-pl17:~/BIG/Middleware/as5/Example$ ./run-server
Apache OpenEJB 3.1.2 build: 20091010-03:11
http://openejb.apache.org/
org.apache.openejb.OpenEJBException: OpenEJB has encountered a fatal error
and cannot be started: The Assembler encountered an unexpected error while
attempting to build the container system.: mwy/ExampleEntityBeans :
Unsupported major.minor version 51.0
at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:144)
at org.apache.openejb.OpenEJB.init(OpenEJB.java:286)
at org.apache.openejb.server.Server.init(Server.java:63)
at org.apache.openejb.server.Main.initServer(Main.java:155)
at org.apache.openejb.server.Main.main(Main.java:128)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.openejb.cli.MainImpl.main(MainImpl.java:152)
at org.apache.openejb.cli.Bootstrap.main(Bootstrap.java:103)
Caused by: java.lang.UnsupportedClassVersionError: mwy/ExampleEntityBeans :
Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
at
org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:137)
at
org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:66)
at
org.apache.xbean.finder.ClassFinder$ClassInfo.get(ClassFinder.java:578)
at
org.apache.xbean.finder.ClassFinder.findAnnotatedClasses(ClassFinder.java:239)
at
org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:459)
at
org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:253)
at
org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:188)
at
org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:247)
at
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:601)
at
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:488)
at
org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:356)
at
org.apache.openejb.assembler.classic.Assembler.getOpenEjbConfiguration(Assembler.java:299)
at
org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:278)
at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:137)
... 10 more
*Michal Staša*
*Santhos.net*
www.santhos.net
+420 773 454 793
michal.stasa at santhos.net
On 14 May 2013 20:34, Peter Júnoš <petoju at gmail.com> wrote:
> Cau,
>
> On Ut, 2013-05-14 at 19:38 +0200, Michal Stasa wrote:
> > java.lang.VerifyError: Expecting a stackmap frame at branch target 13
> in method mwy.Director.setMovies(Ljava/util/Collection;)V at
>
> Pravdepodobne ide o zlu verziu Javy - skus spustit
>
> java-config -s sun-jdk-1.6
> --
> Peter Júnoš
> email, jabber: petoju at gmail.com
>
> "I'm not getting paid much for staying alive but it's good experience."
>
>
> On Ut, 2013-05-14 at 19:38 +0200, Michal Stasa wrote:
> > Jeste jen doplnim, ze chyba primo z prilozeneho Example vypada takto:
> >
> >
> > u-pl17:~/BIG/Middleware/as5/Example$ ./run-client
> > Hello World!!!!
> > 1
> > 2
> > 0
> > 1
> > Exception in thread "main" javax.ejb.EJBException: The bean
> > encountered a non-application exception; nested exception is:
> > java.lang.VerifyError: Expecting a stackmap frame at branch
> > target 13 in method mwy.Director.setMovies(Ljava/util/Collection;)V at
> > offset 4
> > at
> >
> org.apache.openejb.client.EJBInvocationHandler.convertException(EJBInvocationHandler.java:219)
> > at
> >
> org.apache.openejb.client.EJBObjectHandler._invoke(EJBObjectHandler.java:162)
> > at
> >
> org.apache.openejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:117)
> > at
> >
> org.apache.openejb.client.proxy.Jdk13InvocationHandler.invoke(Jdk13InvocationHandler.java:52)
> > at com.sun.proxy.$Proxy2.addDirector(Unknown Source)
> > at ExampleClient.main(ExampleClient.java:38)
> > Caused by: java.lang.VerifyError: Expecting a stackmap frame at branch
> > target 13 in method mwy.Director.setMovies(Ljava/util/Collection;)V at
> > offset 4
> > at
> > mwy.ExampleEntityBeans.addDirector(ExampleEntityBeans.java:26)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> > at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> > at java.lang.reflect.Method.invoke(Method.java:601)
> > at
> > org.apache.openejb.core.interceptor.ReflectionInvocationContext
> > $Invocation.invoke(ReflectionInvocationContext.java:158)
> > at
> >
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:141)
> > at
> >
> org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:122)
> > at
> >
> org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:221)
> > at
> >
> org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:174)
> > at
> >
> org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:136)
> > at
> >
> org.apache.openejb.server.ejbd.EjbRequestHandler.doEjbObject_BUSINESS_METHOD(EjbRequestHandler.java:238)
> > at
> >
> org.apache.openejb.server.ejbd.EjbRequestHandler.processRequest(EjbRequestHandler.java:129)
> > at
> >
> org.apache.openejb.server.ejbd.EjbDaemon.processEjbRequest(EjbDaemon.java:196)
> > at
> > org.apache.openejb.server.ejbd.EjbDaemon.service(EjbDaemon.java:149)
> > at
> > org.apache.openejb.server.ejbd.EjbServer.service(EjbServer.java:71)
> > at org.apache.openejb.server.ejbd.KeepAliveServer
> > $Session.service(KeepAliveServer.java:213)
> > at
> >
> org.apache.openejb.server.ejbd.KeepAliveServer.service(KeepAliveServer.java:233)
> > at
> > org.apache.openejb.server.ejbd.EjbServer.service(EjbServer.java:66)
> > at org.apache.openejb.server.ServicePool
> > $2.run(ServicePool.java:91)
> > at org.apache.openejb.server.ServicePool
> > $3.run(ServicePool.java:120)
> > at
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> > at java.util.concurrent.ThreadPoolExecutor
> > $Worker.run(ThreadPoolExecutor.java:615)
> > at java.lang.Thread.run(Thread.java:722)
> >
> > Michal Staša
> >
> > Santhos.net
> > www.santhos.net
> >
> > +420 773 454 793
> > michal.stasa at santhos.net
> >
> >
> >
> > On 14 May 2013 19:31, Michal Stasa <michal.stasa at gmail.com> wrote:
> > Dobry den,
> >
> >
> > dodelavam ted na posledni chvili implementaci domaciho ukolu
> > na EJB. V moji implementaci se objevuje velice podivna
> > vyjimka, na kterou jsem narazil i pri snaze spustit Example
> > (viz nize). Kod jsem v obou pripadech kompiloval v labu pres
> > prilozeny make u Examplu. Nepotkal nekdo podobnou chybu?
> > Jakykoliv hint k teto chybe bude skvely.
> >
> >
> > ./run-client
> > Exception in thread "main" javax.ejb.EJBException: The bean
> > encountered a non-application exception; nested exception is:
> > java.lang.VerifyError: Expecting a stackmap frame at
> > branch target 18 in method mwy.Node.pcCopyField(Lmwy/Node;I)V
> > at offset 7
> > at
> >
> org.apache.openejb.client.EJBInvocationHandler.convertException(EJBInvocationHandler.java:219)
> > at
> >
> org.apache.openejb.client.EJBObjectHandler._invoke(EJBObjectHandler.java:162)
> > at
> >
> org.apache.openejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:117)
> > at
> >
> org.apache.openejb.client.proxy.Jdk13InvocationHandler.invoke(Jdk13InvocationHandler.java:52)
> > at com.sun.proxy.$Proxy0.addNode(Unknown Source)
> > at ExampleClient.createNodes(ExampleClient.java:37)
> > at ExampleClient.main(ExampleClient.java:93)
> > Caused by: java.lang.VerifyError: Expecting a stackmap frame
> > at branch target 18 in method
> > mwy.Node.pcCopyField(Lmwy/Node;I)V at offset 7
> > at mwy.SearcherImpl.addNode(SearcherImpl.java:72)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > Method)
> > at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> > at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> > at java.lang.reflect.Method.invoke(Method.java:601)
> > at
> >
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:158)
> > at
> >
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:141)
> > at
> >
> org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:122)
> > at
> >
> org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:221)
> > at
> >
> org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:174)
> > at
> >
> org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:136)
> > at
> >
> org.apache.openejb.server.ejbd.EjbRequestHandler.doEjbObject_BUSINESS_METHOD(EjbRequestHandler.java:238)
> > at
> >
> org.apache.openejb.server.ejbd.EjbRequestHandler.processRequest(EjbRequestHandler.java:129)
> > at
> >
> org.apache.openejb.server.ejbd.EjbDaemon.processEjbRequest(EjbDaemon.java:196)
> > at
> >
> org.apache.openejb.server.ejbd.EjbDaemon.service(EjbDaemon.java:149)
> > at
> >
> org.apache.openejb.server.ejbd.EjbServer.service(EjbServer.java:71)
> > at org.apache.openejb.server.ejbd.KeepAliveServer
> > $Session.service(KeepAliveServer.java:213)
> > at
> >
> org.apache.openejb.server.ejbd.KeepAliveServer.service(KeepAliveServer.java:233)
> > at
> >
> org.apache.openejb.server.ejbd.EjbServer.service(EjbServer.java:66)
> > at org.apache.openejb.server.ServicePool
> > $2.run(ServicePool.java:91)
> > at org.apache.openejb.server.ServicePool
> > $3.run(ServicePool.java:120)
> > at
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> > at java.util.concurrent.ThreadPoolExecutor
> > $Worker.run(ThreadPoolExecutor.java:615)
> > at java.lang.Thread.run(Thread.java:722)
> >
> >
> > Diky
> > S pozdravem
> > Michal Staša
> >
> >
> > _______________________________________________
> > MWy mailing list
> > MWy at d3s.mff.cuni.cz
> > https://d3s.mff.cuni.cz/mailman/listinfo/mwy
>
>
> _______________________________________________
> MWy mailing list
> MWy at d3s.mff.cuni.cz
> https://d3s.mff.cuni.cz/mailman/listinfo/mwy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://d3s.mff.cuni.cz/pipermail/nswi080/attachments/20130514/61e59765/attachment.html>
More information about the NSWI080
mailing list