cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grzegorz Grzybek (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-7054) CORBADocLitClientTypeTest failed with java9
Date Wed, 14 Sep 2016 09:54:21 GMT

    [ https://issues.apache.org/jira/browse/CXF-7054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15489995#comment-15489995
] 

Grzegorz Grzybek commented on CXF-7054:
---------------------------------------

Again I have problem, because runtime JAXB data for classes in {{org.apache.cxf.binding.corba.wsdl}}
package doesn't have correct namespace taken from package's {{@XmlSchema}} annotation, because
class.getPackage().getPackageInfo() returns proxy (meaning we couldn't find package-info.class)
in JDK9.

Here's the difference at the below stacktrace:
{noformat}
"main@1" prio=5 tid=0x1 nid=NA runnable
  java.lang.Thread.State: RUNNABLE
...
	  at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:641)
	  at org.apache.cxf.common.jaxb.JAXBContextCache$2.run(JAXBContextCache.java:348)
	  at org.apache.cxf.common.jaxb.JAXBContextCache$2.run(JAXBContextCache.java:346)
	  at java.security.AccessController.doPrivileged(AccessController.java:-1)
	  at org.apache.cxf.common.jaxb.JAXBContextCache.createContext(JAXBContextCache.java:346)
	  at org.apache.cxf.common.jaxb.JAXBContextCache.getCachedContextAndSchemas(JAXBContextCache.java:247)
	  at org.apache.cxf.common.jaxb.JAXBContextCache.getCachedContextAndSchemas(JAXBContextCache.java:170)
	  at org.apache.cxf.wsdl.JAXBExtensionHelper.createUnmarshaller(JAXBExtensionHelper.java:258)
	  - locked <0x982> (a org.apache.cxf.wsdl.JAXBExtensionHelper)
	  at org.apache.cxf.wsdl.JAXBExtensionHelper.unmarshall(JAXBExtensionHelper.java:352)
	  at com.ibm.wsdl.xml.WSDLReaderImpl.parseExtensibilityElement(WSDLReaderImpl.java:1861)
	  at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(WSDLReaderImpl.java:340)
	  at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2352)
	  at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2338)
	  at org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:236)
	  at org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:163)
	  at org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:85)
	  at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:393)
	  at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:527)
	  at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:262)
	  - locked <0x986> (a org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean)
	  at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:199)
	  at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:102)
	  at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:168)
	  at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211)
	  at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:460)
	  - locked <0x988> (a org.apache.cxf.jaxws.EndpointImpl)
	  at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:338)
	  at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:255)
	  at org.apache.cxf.jaxws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:136)
	  at javax.xml.ws.Endpoint.publish(Endpoint.java:240)
	  at org.apache.cxf.systest.type_test.corba.CORBADocLitServerImpl.run(CORBADocLitServerImpl.java:41)
	  at org.apache.cxf.testutil.common.AbstractTestServerBase.startInProcess(AbstractTestServerBase.java:46)
	  at org.apache.cxf.testutil.common.ServerLauncher.launchServer(ServerLauncher.java:195)
	  at org.apache.cxf.testutil.common.AbstractClientServerTestBase.launchServer(AbstractClientServerTestBase.java:90)
	  at org.apache.cxf.systest.type_test.corba.CORBADocLitClientTypeTest.startServers(CORBADocLitClientTypeTest.java:198)
	  at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-1)
	  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	  at java.lang.reflect.Method.invoke(Method.java:498)
	  at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	  at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	  at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	  at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
	  at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	  at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	  at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:275)
	  at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
	  at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:149)
	  at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
	  at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
	  at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
	  at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
{noformat}

JDK8 has these classes (order probably matters) passed when constructing JAXBContext:
{noformat}
result = {java.lang.Class[2]@2537} 
 0 = {@2078} "class org.apache.cxf.binding.corba.wsdl.ObjectFactory"
 1 = {@2456} "class org.apache.cxf.binding.corba.wsdl.TypeMappingTypeExtensibility"
{noformat}
JDK9:
{noformat}
result = {java.lang.Class[2]@3222} 
 0 = {@3040} "class org.apache.cxf.binding.corba.wsdl.TypeMappingTypeExtensibility"
 1 = {@2727} "class org.apache.cxf.binding.corba.wsdl.ObjectFactory"
{noformat}

classloaders for the above classes for JDK8:
{noformat}
{sun.misc.Launcher$AppClassLoader@2473}
{org.apache.cxf.common.util.ASMHelper$TypeHelperClassLoader@2553}
{noformat}

classloaders for the above classes for JDK9:
{noformat}
{org.apache.cxf.common.util.ASMHelper$TypeHelperClassLoader@3076}
{jdk.internal.loader.ClassLoaders$AppClassLoader@3107}
{noformat}

and finally package-info for JDK8:
{noformat}
{@2469} "interface org.apache.cxf.binding.corba.wsdl.package-info"
{@2469} "interface org.apache.cxf.binding.corba.wsdl.package-info"
{noformat}

and package-info for JDK9:
{noformat}
{@3282} "class java.lang.Package$1PackageInfoProxy"
{@3268} "interface org.apache.cxf.binding.corba.wsdl.package-info"
{noformat}

looks like problem with ASMHelper$TypeHelperClassLoader?

> CORBADocLitClientTypeTest failed with java9
> -------------------------------------------
>
>                 Key: CXF-7054
>                 URL: https://issues.apache.org/jira/browse/CXF-7054
>             Project: CXF
>          Issue Type: Sub-task
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message