cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicolasduminil <nicolas.dumi...@simplex-software.fr>
Subject Re: com.sun.xml.internal.ws.client.ClientTransportException: The server sent the status code HTTP 406 : Not Acceptable
Date Fri, 27 May 2016 08:30:38 GMT
Hi Dan,

Many thanks for your suggestion. My dependencies now are as follows:

    <dependency>
      <groupId>org.apache.cxf</groupId>
      <artifactId>cxf-rt-frontend-jaxws</artifactId>
      <version>3.1.6</version>
    </dependency>
    <dependency>
      <groupId>org.apache.cxf</groupId>
      <artifactId>cxf-rt-transports-http</artifactId>
      <version>3.1.6</version>
    </dependency>

and the new stack trace is as follows:

java.lang.NoSuchMethodError:
org.apache.cxf.common.util.ReflectionUtil.getDeclaredConstructors(Ljava/lang/Class;)[Ljava/lang/reflect/Constructor;
	at
org.apache.cxf.jaxb.JAXBContextInitializer.addClass(JAXBContextInitializer.java:325)
	at
org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:236)
	at
org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:226)
	at
org.apache.cxf.jaxb.JAXBContextInitializer.walkReferences(JAXBContextInitializer.java:406)
	at
org.apache.cxf.jaxb.JAXBContextInitializer.addClass(JAXBContextInitializer.java:370)
	at
org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:236)
	at
org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:226)
	at
org.apache.cxf.jaxb.JAXBContextInitializer.walkReferences(JAXBContextInitializer.java:406)
	at
org.apache.cxf.jaxb.JAXBContextInitializer.addClass(JAXBContextInitializer.java:370)
	at
org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:236)
	at
org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:226)
	at
org.apache.cxf.jaxb.JAXBContextInitializer.walkReferences(JAXBContextInitializer.java:406)
	at
org.apache.cxf.jaxb.JAXBContextInitializer.addClass(JAXBContextInitializer.java:370)
	at
org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:236)
	at
org.apache.cxf.jaxb.JAXBContextInitializer.begin(JAXBContextInitializer.java:143)
	at
org.apache.cxf.service.ServiceModelVisitor.visitOperation(ServiceModelVisitor.java:109)
	at
org.apache.cxf.service.ServiceModelVisitor.walk(ServiceModelVisitor.java:74)
	at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:315)
	at
org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86)
	at
org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:423)
	at
org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:525)
	at
org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:261)
	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.ClientFactoryBean.create(ClientFactoryBean.java:91)
	at
org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:157)
	at
org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:142)
	at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:493)
	at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:359)
	at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:350)
	at javax.xml.ws.Service.getPort(Service.java:119)
	at
com.lnf.ts_archivage.ArchivageService.getArchivageSoap12(ArchivageService.java:78)
	at com.lnf.ts.workflow.TestArchiver.setUpBeforeClass(TestArchiver.java:25)
	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:606)
	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.JUnit4TestSet.execute(JUnit4TestSet.java:53)
	at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
	at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
	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:606)
	at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
	at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
	at
org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
	at
org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)

It looks like a version missmatch but between what and what 'cause I only
have two CXF dependencies, both on the same version. I have googled around
and found lots of guys reporting the issue but not any pertinent solution.

Could you please shed some light again ?

Many thanks in advance,

Nicolas DUMINIL



--
View this message in context: http://cxf.547215.n5.nabble.com/com-sun-xml-internal-ws-client-ClientTransportException-The-server-sent-the-status-code-HTTP-406-Note-tp5768944p5769026.html
Sent from the cxf-user mailing list archive at Nabble.com.

Mime
View raw message