4 Replies Latest reply on Oct 28, 2009 4:33 PM by Johannes Rudolph

    Asynchronous javassist classload problem

    Nicklas Karlsson Master

      (third attempt, can't use topic that starts with @?)


      OK, here is a chance to make my christmas card list of 2008.


      I have a webservice that works fine, injection and all, when called manually.


      When I call it as a quartz-scheduled asynch job I get


      
      org.jboss.ws.WSException: Could not generate wrapper type: osti.toiminnot.webmarela.asiakas.jaxws.PäivitäTilaus
      
           at org.jboss.ws.core.jaxws.DynamicWrapperGenerator.generate(DynamicWrapperGenerator.java:124)
      
           at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.processWebMethod(JAXWSMetaDataBuilder.java:759)
      
           at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.processWebMethods(JAXWSMetaDataBuilder.java:874)
      
           at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.rebuildEndpointMetaData(JAXWSClientMetaDataBuilder.java:294)
      
           at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPortInternal(ServiceDelegateImpl.java:262)
      
           at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:233)
      
           at javax.xml.ws.Service.getPort(Service.java:185)
      
           at osti.toiminnot.webmarela.asiakas.WebServiceWebMarelaAsiakastoiminnot.init(WebServiceWebMarelaAsiakastoiminnot.java:52)
      
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      
           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      
           at java.lang.reflect.Method.invoke(Unknown Source)
      
           at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
      
           at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
      
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
      
           at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
      
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      
           at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
      
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      
           at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
      
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      
           at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
      
           at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
      
           at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
      
           at osti.toiminnot.webmarela.asiakas.WebServiceWebMarelaAsiakastoiminnot_$$_javassist_2.init(WebServiceWebMarelaAsiakastoiminnot_$$_javassist_2.java)
      
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      
           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      
           at java.lang.reflect.Method.invoke(Unknown Source)
      
           at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
      
           at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
      
           at org.jboss.seam.Component.callComponentMethod(Component.java:2082)
      
           at org.jboss.seam.Component.callCreateMethod(Component.java:2005)
      
           at org.jboss.seam.Component.newInstance(Component.java:1976)
      
           at org.jboss.seam.Component.getInstance(Component.java:1873)
      
           at org.jboss.seam.Component.getInstance(Component.java:1840)
      
           at org.jboss.seam.Component.getInstanceInAllNamespaces(Component.java:2182)
      
           at org.jboss.seam.Component.getValueToInject(Component.java:2134)
      
           at org.jboss.seam.Component.injectAttributes(Component.java:1598)
      
           at org.jboss.seam.Component.inject(Component.java:1416)
      
           at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:45)
      
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      
           at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:38)
      
           at org.jboss.seam.util.Work.workInTransaction(Work.java:40)
      
           at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:32)
      
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      
           at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
      
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      
           at org.jboss.seam.async.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:50)
      
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      
           at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
      
           at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
      
           at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
      
           at osti.toiminnot.tilaus.synkronisointi.Tilaussynkkaaja_$$_javassist_1.synkkaa(Tilaussynkkaaja_$$_javassist_1.java)
      
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      
           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      
           at java.lang.reflect.Method.invoke(Unknown Source)
      
           at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
      
           at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
      
           at org.jboss.seam.async.AsynchronousInvocation.call(AsynchronousInvocation.java:52)
      
           at org.jboss.seam.async.Asynchronous.executeInContexts(Asynchronous.java:76)
      
           at org.jboss.seam.async.Asynchronous.execute(Asynchronous.java:45)
      
           at org.jboss.seam.async.QuartzDispatcher$QuartzJob.execute(QuartzDispatcher.java:240)
      
           at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
      
           at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
      
      Caused by: javassist.NotFoundException: osti.malli.tilaus.Tilaus
      
           at javassist.ClassPool.get(ClassPool.java:436)
      
           at org.jboss.ws.core.jaxws.DynamicWrapperGenerator.addProperty(DynamicWrapperGenerator.java:203)
      
           at org.jboss.ws.core.jaxws.DynamicWrapperGenerator.generate(DynamicWrapperGenerator.java:111)
      
           ... 65 more
      
      12:28:22,822 ERROR [ErrorLogger] Job (DEFAULT.1389d37f:11888c864a9:-7fc2 threw an exception.
      
      org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.jboss.ws.WSException: Could not generate wrapper type: osti.toiminnot.webmarela.asiakas.jaxws.PäivitäTilaus]
      
           at org.quartz.core.JobRunShell.run(JobRunShell.java:214)
      
           at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
      
      * Nested Exception (Underlying Cause) ---------------
      
      org.jboss.ws.WSException: Could not generate wrapper type: osti.toiminnot.webmarela.asiakas.jaxws.PäivitäTilaus
      
           at org.jboss.ws.core.jaxws.DynamicWrapperGenerator.generate(DynamicWrapperGenerator.java:124)
      
           at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.processWebMethod(JAXWSMetaDataBuilder.java:759)
      
           at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.processWebMethods(JAXWSMetaDataBuilder.java:874)
      
           at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.rebuildEndpointMetaData(JAXWSClientMetaDataBuilder.java:294)
      
           at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPortInternal(ServiceDelegateImpl.java:262)
      
           at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:233)
      
           at javax.xml.ws.Service.getPort(Service.java:185)
      
           at osti.toiminnot.webmarela.asiakas.WebServiceWebMarelaAsiakastoiminnot.init(WebServiceWebMarelaAsiakastoiminnot.java:52)
      
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      
           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      
           at java.lang.reflect.Method.invoke(Unknown Source)
      
           at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
      
           at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
      
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
      
           at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
      
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      
           at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
      
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      
           at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
      
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      
           at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
      
           at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
      
           at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
      
           at osti.toiminnot.webmarela.asiakas.WebServiceWebMarelaAsiakastoiminnot_$$_javassist_2.init(WebServiceWebMarelaAsiakastoiminnot_$$_javassist_2.java)
      
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      
           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      
           at java.lang.reflect.Method.invoke(Unknown Source)
      
           at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
      
           at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
      
           at org.jboss.seam.Component.callComponentMethod(Component.java:2082)
      
           at org.jboss.seam.Component.callCreateMethod(Component.java:2005)
      
           at org.jboss.seam.Component.newInstance(Component.java:1976)
      
           at org.jboss.seam.Component.getInstance(Component.java:1873)
      
           at org.jboss.seam.Component.getInstance(Component.java:1840)
      
           at org.jboss.seam.Component.getInstanceInAllNamespaces(Component.java:2182)
      
           at org.jboss.seam.Component.getValueToInject(Component.java:2134)
      
           at org.jboss.seam.Component.injectAttributes(Component.java:1598)
      
           at org.jboss.seam.Component.inject(Component.java:1416)
      
           at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:45)
      
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      
           at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:38)
      
           at org.jboss.seam.util.Work.workInTransaction(Work.java:40)
      
           at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:32)
      
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      
           at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
      
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      
           at org.jboss.seam.async.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:50)
      
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      
           at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
      
           at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
      
           at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
      
           at osti.toiminnot.tilaus.synkronisointi.Tilaussynkkaaja_$$_javassist_1.synkkaa(Tilaussynkkaaja_$$_javassist_1.java)
      
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      
           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      
           at java.lang.reflect.Method.invoke(Unknown Source)
      
           at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
      
           at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
      
           at org.jboss.seam.async.AsynchronousInvocation.call(AsynchronousInvocation.java:52)
      
           at org.jboss.seam.async.Asynchronous.executeInContexts(Asynchronous.java:76)
      
           at org.jboss.seam.async.Asynchronous.execute(Asynchronous.java:45)
      
           at org.jboss.seam.async.QuartzDispatcher$QuartzJob.execute(QuartzDispatcher.java:240)
      
           at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
      
           at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
      
      Caused by: javassist.NotFoundException: osti.malli.tilaus.Tilaus
      
           at javassist.ClassPool.get(ClassPool.java:436)
      
           at org.jboss.ws.core.jaxws.DynamicWrapperGenerator.addProperty(DynamicWrapperGenerator.java:203)
      
           at org.jboss.ws.core.jaxws.DynamicWrapperGenerator.generate(DynamicWrapperGenerator.java:111)
      
           ... 65 more



      Where does the javassist error come from? I don't inject anything of that class anywhere. Anyways, it surely is visible from there (working in synchronous call). Seam 2.0.1.GA, JBoss 4.2.2.GA


      
      Caused by: javassist.NotFoundException: osti.malli.tilaus.Tilaus