[JBoss JIRA] Created: (JBWS-2810) UnifiedMetaData uses thread context loader to find classes, this can lead to javassist.NotFoundException
by Johannes Rudolph (JIRA)
UnifiedMetaData uses thread context loader to find classes, this can lead to javassist.NotFoundException
--------------------------------------------------------------------------------------------------------
Key: JBWS-2810
URL: https://jira.jboss.org/jira/browse/JBWS-2810
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: jbossws-native
Affects Versions: jbossws-native-3.0.1
Reporter: Johannes Rudolph
See this description on the seam page:
http://seamframework.org/Community/AsynchronousJavassistClassloadProblem
or another stack trace here. [1]
If you call Service.getPort from a Thread for which the context class loader is not set correctly, the call fails like shown. This can happen, for example, when scheduled on another Thread. Wouldn't it be better to use a ClassLoader which is more likely to return the domain class? For example the ClassLoader of the Class object passed to the Service.getPort call?
This gives rise to subtle bugs, where this occurs only after JBoss AS was freshly started. After a redeploy some ClassLoader magic has happened and everything is working as expected.
[1] (I replaced some domain Class names with XXX)
15:05:37,582 ERROR [STDERR] org.jboss.ws.WSException: Could not generate wrapper type: XXX
15:05:37,582 ERROR [STDERR] at org.jboss.ws.core.jaxws.DynamicWrapperGenerator.generate(DynamicWrapperGenerator.java:124)
15:05:37,582 ERROR [STDERR] at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.processWebMethod(JAXWSMetaDataBuilder.java:774)
15:05:37,582 ERROR [STDERR] at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.processWebMethods(JAXWSMetaDataBuilder.java:891)
15:05:37,584 ERROR [STDERR] at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.rebuildEndpointMetaData(JAXWSClientMetaDataBuilder.java:300)
15:05:37,585 ERROR [STDERR] at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPortInternal(ServiceDelegateImpl.java:271)
15:05:37,585 ERROR [STDERR] at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:202)
15:05:37,585 ERROR [STDERR] at javax.xml.ws.Service.getPort(Service.java:143)
[...]
15:05:37,585 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
15:05:37,585 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
15:05:37,585 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
15:05:37,585 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
15:05:37,585 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
15:05:37,585 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
15:05:37,585 ERROR [STDERR] at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:44)
15:05:37,585 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
15:05:37,585 ERROR [STDERR] at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
15:05:37,585 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
15:05:37,585 ERROR [STDERR] at org.jboss.seam.persistence.HibernateSessionProxyInterceptor.aroundInvoke(HibernateSessionProxyInterceptor.java:30)
15:05:37,586 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor255.invoke(Unknown Source)
15:05:37,586 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
15:05:37,586 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
15:05:37,586 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
15:05:37,586 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:187)
15:05:37,586 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:72)
15:05:37,586 ERROR [STDERR] at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
15:05:37,586 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
15:05:37,586 ERROR [STDERR] at org.jboss.seam.persistence.EntityManagerProxyInterceptor.aroundInvoke(EntityManagerProxyInterceptor.java:29)
15:05:37,586 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
15:05:37,586 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
15:05:37,586 ERROR [STDERR] at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:50)
15:05:37,587 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
15:05:37,587 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
15:05:37,587 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
15:05:37,587 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
15:05:37,587 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
15:05:37,587 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
15:05:37,587 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
15:05:37,587 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
15:05:37,587 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
15:05:37,587 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
15:05:37,587 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
15:05:37,587 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
15:05:37,587 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
15:05:37,587 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
15:05:37,588 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
15:05:37,588 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
15:05:37,588 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
15:05:37,588 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
15:05:37,588 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
15:05:37,588 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
15:05:37,588 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
15:05:37,588 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
15:05:37,588 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
15:05:37,588 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
15:05:37,588 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
15:05:37,588 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:240)
15:05:37,588 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:210)
15:05:37,588 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:84)
15:05:37,588 ERROR [STDERR] at $Proxy171.callUpdateContractConditions(Unknown Source)
15:05:37,588 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
15:05:37,588 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
15:05:37,588 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
15:05:37,588 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
15:05:37,588 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
15:05:37,588 ERROR [STDERR] at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
15:05:37,588 ERROR [STDERR] at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:76)
15:05:37,588 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
15:05:37,588 ERROR [STDERR] at org.jboss.seam.async.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:52)
15:05:37,588 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
15:05:37,588 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
15:05:37,588 ERROR [STDERR] at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54)
15:05:37,589 ERROR [STDERR] at org.javassist.tmp.java.lang.Object_$$_javassist_seam_13.callUpdateContractConditions(Object_$$_javassist_seam_13.java)
15:05:37,589 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
15:05:37,589 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
15:05:37,589 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
15:05:37,589 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
15:05:37,589 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
15:05:37,589 ERROR [STDERR] at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
15:05:37,589 ERROR [STDERR] at org.jboss.seam.async.AsynchronousInvocation$1.process(AsynchronousInvocation.java:62)
15:05:37,589 ERROR [STDERR] at org.jboss.seam.async.Asynchronous$ContextualAsynchronousRequest.run(Asynchronous.java:80)
15:05:37,589 ERROR [STDERR] at org.jboss.seam.async.AsynchronousInvocation.execute(AsynchronousInvocation.java:44)
15:05:37,589 ERROR [STDERR] at org.jboss.seam.async.QuartzDispatcher$QuartzJob.execute(QuartzDispatcher.java:243)
15:05:37,589 ERROR [STDERR] at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
15:05:37,589 ERROR [STDERR] at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
15:05:37,589 ERROR [STDERR] Caused by: javassist.NotFoundException: XXX
15:05:37,589 ERROR [STDERR] at javassist.ClassPool.get(ClassPool.java:436)
15:05:37,589 ERROR [STDERR] at org.jboss.ws.core.jaxws.DynamicWrapperGenerator.addProperty(DynamicWrapperGenerator.java:203)
15:05:37,589 ERROR [STDERR] at org.jboss.ws.core.jaxws.DynamicWrapperGenerator.generate(DynamicWrapperGenerator.java:111)
15:05:37,589 ERROR [STDERR] ... 87 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 10 months
[JBoss JIRA] Created: (JBWS-2819) Task ws-tools can not load the wsdl definied on Windows
by Jim Ma (JIRA)
Task ws-tools can not load the wsdl definied on Windows
-------------------------------------------------------
Key: JBWS-2819
URL: https://jira.jboss.org/jira/browse/JBWS-2819
Project: JBoss Web Services
Issue Type: Sub-task
Security Level: Public (Everyone can see)
Components: jbossws-native
Reporter: Jim Ma
Fix For: jbossws-native-3.3
[INFO] An Ant BuildException has occured: The following error occurred while executing this line:
C:\code\jbossws\stack\native\trunk\modules\testsuite\native-tests\scripts\antrun-wstools.xml:44: The following error occurred while executing this line:
C:\code\jbossws\stack\native\trunk\modules\testsuite\native-tests\scripts\antrun-wstools.xml:99: Error running jbossws:
Cannot load wsdl: C\:\\code\\jbossws\\stack\\native\\trunk\\modules\\testsuite\\native-tests\\target/test-resources/../wstools/resources/jaxrpc/samples/wsbpel/hello/WEB-INF/wsdl/hello-service.wsdl
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 10 months
[JBoss JIRA] Created: (JBWS-2418) setProperty must be overridden by all subclasses of SOAPMessage
by Christopher Logan (JIRA)
setProperty must be overridden by all subclasses of SOAPMessage
---------------------------------------------------------------
Key: JBWS-2418
URL: https://jira.jboss.org/jira/browse/JBWS-2418
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public (Everyone can see)
Environment: WinXPsp2
Java version: 1.6.0_11,Sun Microsystems Inc.
JBoss [Trinity] 4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)
jbossws-3.0.1-native-2.0.4.GA (build=200803312044)
JBossWeb/2.0.1.GA
Reporter: Christopher Logan
Hi,
I'm running Jboss on WinXPsp2 and here is what is echoed to the screen during JBoss server startup:
Java version: 1.6.0_11,Sun Microsystems Inc.
JBoss [Trinity] 4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)
jbossws-3.0.1-native-2.0.4.GA (build=200803312044)
JBossWeb/2.0.1.GA
I have a webservice and a webservice client deployed on the same server. The webservice was deployed without errors but when trying to
invoke that webservice from a client I get setProperty must be overridden by all subclasses of SOAPMessage (stack trace attached to end of this comment)
I read the previous posts about copying jboss-jaxrpc.jar, jboss-jaxws.jar & jboss-saaj.jar, I tried that but I got another error about javax/xml/ws/spi/ServiceDelegate21 not found. I removed the three files above to capture the following exception:
2008-12-11 17:14:27,437 ERROR [STDERR] javax.xml.ws.WebServiceException: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
2008-12-11 17:14:27,437 ERROR [STDERR] at org.jboss.ws.core.jaxws.client.ClientImpl.handleRemoteException(ClientImpl.java:404)
2008-12-11 17:14:27,437 ERROR [STDERR] at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:314)
2008-12-11 17:14:27,437 ERROR [STDERR] at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:172)
2008-12-11 17:14:27,437 ERROR [STDERR] at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:152)
2008-12-11 17:14:27,453 ERROR [STDERR] at $Proxy83.add(Unknown Source)
2008-12-11 17:14:27,453 ERROR [STDERR] at com.bnymellon.ws.client.CalculatorServlet.processRequest(CalculatorServlet.java:45)
2008-12-11 17:14:27,453 ERROR [STDERR] at com.bnymellon.ws.client.CalculatorServlet.doGet(CalculatorServlet.java:67)
2008-12-11 17:14:27,453 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
2008-12-11 17:14:27,453 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
2008-12-11 17:14:27,453 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
2008-12-11 17:14:27,468 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2008-12-11 17:14:27,468 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
2008-12-11 17:14:27,468 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
2008-12-11 17:14:27,468 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2008-12-11 17:14:27,468 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
2008-12-11 17:14:27,468 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
2008-12-11 17:14:27,468 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
2008-12-11 17:14:27,468 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
2008-12-11 17:14:27,468 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
2008-12-11 17:14:27,968 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
2008-12-11 17:14:27,968 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
2008-12-11 17:14:27,968 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
2008-12-11 17:14:27,968 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
2008-12-11 17:14:27,968 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
2008-12-11 17:14:27,968 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
2008-12-11 17:14:27,968 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
2008-12-11 17:14:27,968 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
2008-12-11 17:14:27,968 ERROR [STDERR] Caused by: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
2008-12-11 17:14:27,968 ERROR [STDERR] at javax.xml.soap.SOAPMessage.setProperty(SOAPMessage.java:441)
2008-12-11 17:14:27,968 ERROR [STDERR] at org.jboss.ws.core.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.java:83)
2008-12-11 17:14:27,968 ERROR [STDERR] at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:171)
2008-12-11 17:14:27,968 ERROR [STDERR] at org.jboss.ws.core.CommonSOAP11Binding.createMessage(CommonSOAP11Binding.java:59)
2008-12-11 17:14:28,468 ERROR [STDERR] at org.jboss.ws.core.CommonSOAPBinding.bindRequestMessage(CommonSOAPBinding.java:158)
2008-12-11 17:14:28,468 ERROR [STDERR] at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:291)
2008-12-11 17:14:28,468 ERROR [STDERR] at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:302)
2008-12-11 17:14:28,468 ERROR [STDERR] ... 25 more
Thank you,
-Christopher
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 10 months