cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CXF-3215) Error when a process method of a webservice is called by multiple client (thread) in the same time
Date Tue, 04 Jan 2011 19:39:46 GMT

     [ https://issues.apache.org/jira/browse/CXF-3215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Kulp resolved CXF-3215.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.3.2

> Error when a process method of a webservice is called by multiple client (thread) in
the same time
> --------------------------------------------------------------------------------------------------
>
>                 Key: CXF-3215
>                 URL: https://issues.apache.org/jira/browse/CXF-3215
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.2
>         Environment: Windows7/Jetty 
>            Reporter: Jerome Dupont
>            Assignee: Daniel Kulp
>             Fix For: 2.3.2
>
>
> This error occurs : 
> INFO: Creating Service {http://siham.amue.fr}IUtilisateursServiceService from class fr.amue.siham.service.IUtilisateursService
> Exception in thread "Thread-2" Exception in thread "Thread-1" java.lang.LinkageError:
loader (instance of  org/apache/cxf/common/util/ASMHelper$TypeHelperClassLoader): attempted
 duplicate class definition for name: "fr/amue/siham/service/jaxws_asm/package-info"
> 	at java.lang.ClassLoader.defineClass1(Native Method)
> 	at java.lang.ClassLoader.defineClassCond(Unknown Source)
> 	at java.lang.ClassLoader.defineClass(Unknown Source)
> 	at java.lang.ClassLoader.defineClass(Unknown Source)
> 	at org.apache.cxf.common.util.ASMHelper$TypeHelperClassLoader.defineClass(ASMHelper.java:208)
> 	at org.apache.cxf.common.util.ASMHelper.loadClass(ASMHelper.java:167)
> 	at org.apache.cxf.jaxws.WrapperClassGenerator.generatePackageInfo(WrapperClassGenerator.java:255)
> 	at org.apache.cxf.jaxws.WrapperClassGenerator.createWrapperClass(WrapperClassGenerator.java:179)
> 	at org.apache.cxf.jaxws.WrapperClassGenerator.generate(WrapperClassGenerator.java:137)
> 	at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.generatedWrapperBeanClass(JaxWsServiceFactoryBean.java:518)
> 	at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.getExtraClass(JaxWsServiceFactoryBean.java:496)
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:365)
> 	at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:525)
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:431)
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:191)
> 	at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:164)
> 	at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:100)
> 	at org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:52)
> 	at org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:102)
> 	at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:115)
> 	at fr.amue.siham.client.CreateOrModifyClient.process(CreateOrModifyClient.java:76)
> 	at fr.amue.siham.client.ThreadInjection.run(ThreadInjection.java:34)
> java.lang.IllegalArgumentException: fr.amue.siham.service.jaxws_asm
> 	at java.lang.ClassLoader.definePackage(Unknown Source)
> 	at org.apache.cxf.common.util.ASMHelper$TypeHelperClassLoader.defineClass(ASMHelper.java:197)
> 	at org.apache.cxf.common.util.ASMHelper.loadClass(ASMHelper.java:167)
> 	at org.apache.cxf.jaxws.WrapperClassGenerator.generatePackageInfo(WrapperClassGenerator.java:255)
> 	at org.apache.cxf.jaxws.WrapperClassGenerator.createWrapperClass(WrapperClassGenerator.java:179)
> 	at org.apache.cxf.jaxws.WrapperClassGenerator.generate(WrapperClassGenerator.java:137)
> 	at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.generatedWrapperBeanClass(JaxWsServiceFactoryBean.java:518)
> 	at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.getExtraClass(JaxWsServiceFactoryBean.java:496)
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:365)
> 	at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:525)
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:431)
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:191)
> 	at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:164)
> 	at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:100)
> 	at org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:52)
> 	at org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:102)
> 	at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:115)
> 	at fr.amue.siham.client.CreateOrModifyClient.process(CreateOrModifyClient.java:76)
> 	at fr.amue.siham.client.ThreadInjection.run(ThreadInjection.java:34)
> Exception in thread "Thread-0" java.lang.LinkageError: loader (instance of  org/apache/cxf/common/util/ASMHelper$TypeHelperClassLoader):
attempted  duplicate class definition for name: "fr/amue/siham/service/jaxws_asm/package-info"
> 	at java.lang.ClassLoader.defineClass1(Native Method)
> 	at java.lang.ClassLoader.defineClassCond(Unknown Source)
> 	at java.lang.ClassLoader.defineClass(Unknown Source)
> 	at java.lang.ClassLoader.defineClass(Unknown Source)
> 	at org.apache.cxf.common.util.ASMHelper$TypeHelperClassLoader.defineClass(ASMHelper.java:208)
> 	at org.apache.cxf.common.util.ASMHelper.loadClass(ASMHelper.java:167)
> 	at org.apache.cxf.jaxws.WrapperClassGenerator.generatePackageInfo(WrapperClassGenerator.java:255)
> 	at org.apache.cxf.jaxws.WrapperClassGenerator.createWrapperClass(WrapperClassGenerator.java:179)
> 	at org.apache.cxf.jaxws.WrapperClassGenerator.generate(WrapperClassGenerator.java:137)
> 	at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.generatedWrapperBeanClass(JaxWsServiceFactoryBean.java:518)
> 	at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.getExtraClass(JaxWsServiceFactoryBean.java:496)
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:365)
> 	at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:525)
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:431)
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:191)
> 	at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:164)
> 	at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:100)
> 	at org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:52)
> 	at org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:102)
> 	at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:115)
> 	at fr.amue.siham.client.CreateOrModifyClient.process(CreateOrModifyClient.java:76)
> 	at fr.amue.siham.client.ThreadInjection.run(ThreadInjection.java:34)
> When a process method of a CXF 2.2 webservice is called by multiple client (thread) in
the same time.
> How can i avoid this error.
> Thanks a lot for any help!

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message