java.lang.NoSuchMethodError: org.apache.cxf.common.util.ReflectionUtil.getDeclaredConstructors(Ljava/lang/Class;)[Ljava/lang/reflect/Constructor;

nabble.com | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    cxf-user - com.sun.xml.internal.ws.client.ClientTransportException: The server sent the status code HTTP 406 : Not Acceptable

    nabble.com | 8 months ago
    java.lang.NoSuchMethodError: org.apache.cxf.common.util.ReflectionUtil.getDeclaredConstructors(Ljava/lang/Class;)[Ljava/lang/reflect/Constructor;

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.apache.cxf.common.util.ReflectionUtil.getDeclaredConstructors(Ljava/lang/Class;)[Ljava/lang/reflect/Constructor;

      at org.apache.cxf.jaxb.JAXBContextInitializer.addClass()
    2. Apache CXF Runtime JAXB DataBinding
      JAXBContextInitializer.begin
      1. org.apache.cxf.jaxb.JAXBContextInitializer.addClass(JAXBContextInitializer.java:325)
      2. org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:236)
      3. org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:226)
      4. org.apache.cxf.jaxb.JAXBContextInitializer.walkReferences(JAXBContextInitializer.java:406)
      5. org.apache.cxf.jaxb.JAXBContextInitializer.addClass(JAXBContextInitializer.java:370)
      6. org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:236)
      7. org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:226)
      8. org.apache.cxf.jaxb.JAXBContextInitializer.walkReferences(JAXBContextInitializer.java:406)
      9. org.apache.cxf.jaxb.JAXBContextInitializer.addClass(JAXBContextInitializer.java:370)
      10. org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:236)
      11. org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:226)
      12. org.apache.cxf.jaxb.JAXBContextInitializer.walkReferences(JAXBContextInitializer.java:406)
      13. org.apache.cxf.jaxb.JAXBContextInitializer.addClass(JAXBContextInitializer.java:370)
      14. org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:236)
      15. org.apache.cxf.jaxb.JAXBContextInitializer.begin(JAXBContextInitializer.java:143)
      15 frames
    3. Apache CXF Core
      ServiceModelVisitor.walk
      1. org.apache.cxf.service.ServiceModelVisitor.visitOperation(ServiceModelVisitor.java:109)
      2. org.apache.cxf.service.ServiceModelVisitor.walk(ServiceModelVisitor.java:74)
      2 frames
    4. Apache CXF Runtime JAXB DataBinding
      JAXBDataBinding.initialize
      1. org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:315)
      1 frame
    5. Apache CXF Core
      AbstractServiceFactoryBean.initializeDataBindings
      1. org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86)
      1 frame
    6. Apache CXF Runtime Core for WSDL
      ReflectionServiceFactoryBean.create
      1. org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:423)
      2. org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:525)
      3. org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:261)
      3 frames
    7. Apache CXF Runtime JAX-WS Frontend
      JaxWsServiceFactoryBean.create
      1. org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:199)
      1 frame
    8. Apache CXF Runtime Simple Frontend
      ClientProxyFactoryBean.create
      1. org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:102)
      2. org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:91)
      3. org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:157)
      3 frames
    9. Apache CXF Runtime JAX-WS Frontend
      ServiceImpl.getPort
      1. org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:142)
      2. org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:493)
      3. org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:359)
      4. org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:350)
      4 frames
    10. Java RT
      Service.getPort
      1. javax.xml.ws.Service.getPort(Service.java:119)
      1 frame
    11. com.lnf.ts_archivage
      ArchivageService.getArchivageSoap12
      1. com.lnf.ts_archivage.ArchivageService.getArchivageSoap12(ArchivageService.java:78)
      1 frame
    12. com.lnf.ts
      TestArchiver.setUpBeforeClass
      1. com.lnf.ts.workflow.TestArchiver.setUpBeforeClass(TestArchiver.java:25)
      1 frame
    13. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    14. JUnit
      ParentRunner.run
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      4. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
      5. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      6. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      6 frames
    15. JUnit4 Provider
      JUnit4Provider.invoke
      1. org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
      2. org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
      3. org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
      3 frames
    16. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    17. SureFire
      ForkedBooter.main
      1. org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
      2. org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
      3. org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
      4. org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
      5. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
      5 frames