[MWy] EJB

Peter Júnoš petoju at gmail.com
Tue May 14 20:34:28 CEST 2013


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





More information about the NSWI080 mailing list