junit.framework.AssertionFailedError: Exception in constructor: testQualifyRest (java.lang.RuntimeException: org.apache.cxf.bus.extension.ExtensionException: Could not create object of extension class org.apache.cxf.transport.http.netty.server.NettyHttpTransportFactory.

Apache's JIRA Issue Tracker | Chris Marshall | 2 years ago
  1. 0

    [jira] [Created] (CXF-6178) Missing io.netty.util.Version

    cxf-issues | 2 years ago | Chris Marshall (JIRA)
    junit.framework.AssertionFailedError: Exception in constructor: testQualifyRest (java.lang.RuntimeException: org.apache.cxf.bus.extension.ExtensionException: Could not create object of extension class org.apache.cxf.transport.http.netty.server.NettyHttpTransportFactory.
  2. 0

    [jira] [Commented] (CXF-6178) Missing io.netty.util.Version

    cxf-issues | 2 years ago | Sergey Beryozkin (JIRA)
    junit.framework.AssertionFailedError: Exception in constructor: testQualifyRest (java.lang.RuntimeException: org.apache.cxf.bus.extension.ExtensionException: Could not create object of extension class org.apache.cxf.transport.http.netty.server.NettyHttpTransportFactory.
  3. 0

    I just upgraded to version 3.0.3 and I have a number of JUnit tests that act as clients to a service built with CXF. The clients use CXF as well. With 3.0.3 the JUnit tests are all generating the stack trace below. junit.framework.AssertionFailedError: Exception in constructor: testQualifyRest (java.lang.RuntimeException: org.apache.cxf.bus.extension.ExtensionException: Could not create object of extension class org.apache.cxf.transport.http.netty.server.NettyHttpTransportFactory. at org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.createWithValues(JAXRSClientFactoryBean.java:341) at org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.create(JAXRSClientFactoryBean.java:264) at com.a100sys.utils.JacksonClientHelper.createJacksonJSONService(JacksonClientHelper.java:429) at com.a100sys.utils.QuestionMapper.getQuestionService(QuestionMapper.java:339) at com.a100sys.utils.QuestionMapper.findQuestionOptions(QuestionMapper.java:279) at com.a100sys.utils.QuestionMapper.<init>(QuestionMapper.java:247) at com.a100sys.utils.QuestionMapper.getInstance(QuestionMapper.java:269) at com.a100sys.affiliateportal.TestQualify.<init>(TestQualify.java:37) at com.a100sys.affiliateportal.rest.TestQualifyRestJSON.<init>(TestQualifyRestJSON.java:14) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at junit.framework.TestSuite.createTest(TestSuite.java:63) at junit.framework.TestSuite.addTestMethod(TestSuite.java:310) at junit.framework.TestSuite.addTestsFromTestCase(TestSuite.java:153) at junit.framework.TestSuite.<init>(TestSuite.java:132) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.getTest(JUnit3TestLoader.java:102) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.loadTests(JUnit3TestLoader.java:59) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:452) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: org.apache.cxf.bus.extension.ExtensionException: Could not create object of extension class org.apache.cxf.transport.http.netty.server.NettyHttpTransportFactory. at org.apache.cxf.bus.extension.Extension.load(Extension.java:260) at org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister(ExtensionManagerImpl.java:213) at org.apache.cxf.bus.extension.ExtensionManagerImpl.loadBeansOfType(ExtensionManagerImpl.java:368) at org.apache.cxf.transport.TransportFinder.loadAll(TransportFinder.java:138) at org.apache.cxf.transport.TransportFinder.findTransportForURI(TransportFinder.java:84) at org.apache.cxf.bus.managers.DestinationFactoryManagerImpl.getDestinationFactoryForUri(DestinationFactoryManagerImpl.java:128) at org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.createEndpointInfo(AbstractJAXRSFactoryBean.java:131) at org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.createEndpoint(AbstractJAXRSFactoryBean.java:219) at org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.createWithValues(JAXRSClientFactoryBean.java:291) ... 22 more Caused by: java.lang.NoClassDefFoundError: io/netty/util/Version at org.apache.cxf.transport.http.netty.server.NettyHttpDestinationFactory.<init>(NettyHttpDestinationFactory.java:36) at org.apache.cxf.transport.http.netty.server.NettyHttpTransportFactory.<init>(NettyHttpTransportFactory.java:55) at org.apache.cxf.transport.http.netty.server.NettyHttpTransportFactory.<init>(NettyHttpTransportFactory.java:58) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at org.apache.cxf.bus.extension.Extension.load(Extension.java:249) ... 30 more Caused by: java.lang.ClassNotFoundException: io.netty.util.Version at java.net.URLClassLoader$1.run(URLClassLoader.java:372) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:360) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 38 more ) I downloaded a copy of netty and added the jar to the class path and the test then work fine.

    Apache's JIRA Issue Tracker | 2 years ago | Chris Marshall
    junit.framework.AssertionFailedError: Exception in constructor: testQualifyRest (java.lang.RuntimeException: org.apache.cxf.bus.extension.ExtensionException: Could not create object of extension class org.apache.cxf.transport.http.netty.server.NettyHttpTransportFactory.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I just upgraded to version 3.0.3 and I have a number of JUnit tests that act as clients to a service built with CXF. The clients use CXF as well. With 3.0.3 the JUnit tests are all generating the stack trace below. junit.framework.AssertionFailedError: Exception in constructor: testQualifyRest (java.lang.RuntimeException: org.apache.cxf.bus.extension.ExtensionException: Could not create object of extension class org.apache.cxf.transport.http.netty.server.NettyHttpTransportFactory. at org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.createWithValues(JAXRSClientFactoryBean.java:341) at org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.create(JAXRSClientFactoryBean.java:264) at com.a100sys.utils.JacksonClientHelper.createJacksonJSONService(JacksonClientHelper.java:429) at com.a100sys.utils.QuestionMapper.getQuestionService(QuestionMapper.java:339) at com.a100sys.utils.QuestionMapper.findQuestionOptions(QuestionMapper.java:279) at com.a100sys.utils.QuestionMapper.<init>(QuestionMapper.java:247) at com.a100sys.utils.QuestionMapper.getInstance(QuestionMapper.java:269) at com.a100sys.affiliateportal.TestQualify.<init>(TestQualify.java:37) at com.a100sys.affiliateportal.rest.TestQualifyRestJSON.<init>(TestQualifyRestJSON.java:14) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at junit.framework.TestSuite.createTest(TestSuite.java:63) at junit.framework.TestSuite.addTestMethod(TestSuite.java:310) at junit.framework.TestSuite.addTestsFromTestCase(TestSuite.java:153) at junit.framework.TestSuite.<init>(TestSuite.java:132) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.getTest(JUnit3TestLoader.java:102) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.loadTests(JUnit3TestLoader.java:59) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:452) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: org.apache.cxf.bus.extension.ExtensionException: Could not create object of extension class org.apache.cxf.transport.http.netty.server.NettyHttpTransportFactory. at org.apache.cxf.bus.extension.Extension.load(Extension.java:260) at org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister(ExtensionManagerImpl.java:213) at org.apache.cxf.bus.extension.ExtensionManagerImpl.loadBeansOfType(ExtensionManagerImpl.java:368) at org.apache.cxf.transport.TransportFinder.loadAll(TransportFinder.java:138) at org.apache.cxf.transport.TransportFinder.findTransportForURI(TransportFinder.java:84) at org.apache.cxf.bus.managers.DestinationFactoryManagerImpl.getDestinationFactoryForUri(DestinationFactoryManagerImpl.java:128) at org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.createEndpointInfo(AbstractJAXRSFactoryBean.java:131) at org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.createEndpoint(AbstractJAXRSFactoryBean.java:219) at org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.createWithValues(JAXRSClientFactoryBean.java:291) ... 22 more Caused by: java.lang.NoClassDefFoundError: io/netty/util/Version at org.apache.cxf.transport.http.netty.server.NettyHttpDestinationFactory.<init>(NettyHttpDestinationFactory.java:36) at org.apache.cxf.transport.http.netty.server.NettyHttpTransportFactory.<init>(NettyHttpTransportFactory.java:55) at org.apache.cxf.transport.http.netty.server.NettyHttpTransportFactory.<init>(NettyHttpTransportFactory.java:58) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at org.apache.cxf.bus.extension.Extension.load(Extension.java:249) ... 30 more Caused by: java.lang.ClassNotFoundException: io.netty.util.Version at java.net.URLClassLoader$1.run(URLClassLoader.java:372) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:360) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 38 more ) I downloaded a copy of netty and added the jar to the class path and the test then work fine.

    Apache's JIRA Issue Tracker | 2 years ago | Chris Marshall
    junit.framework.AssertionFailedError: Exception in constructor: testQualifyRest (java.lang.RuntimeException: org.apache.cxf.bus.extension.ExtensionException: Could not create object of extension class org.apache.cxf.transport.http.netty.server.NettyHttpTransportFactory.
  6. 0

    cxf-issues - [jira] [Created] (CXF-6178) Missing io.netty.util.Version

    nabble.com | 2 months ago
    junit.framework.AssertionFailedError: Exception in constructor: testQualifyRest (java.lang.RuntimeException: org.apache.cxf.bus.extension.ExtensionException: Could not create object of extension class org.apache.cxf.transport.http.netty.server.NettyHttpTransportFactory.
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    io.netty.util.Version

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:372)
    2. java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    3. java.security.AccessController.doPrivileged(Native Method)
    4. java.net.URLClassLoader.findClass(URLClassLoader.java:360)
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    6. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    7. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    7 frames
  3. Apache CXF Runtime HTTP Netty Server Transport
    NettyHttpTransportFactory.<init>
    1. org.apache.cxf.transport.http.netty.server.NettyHttpDestinationFactory.<init>(NettyHttpDestinationFactory.java:36)
    2. org.apache.cxf.transport.http.netty.server.NettyHttpTransportFactory.<init>(NettyHttpTransportFactory.java:55)
    3. org.apache.cxf.transport.http.netty.server.NettyHttpTransportFactory.<init>(NettyHttpTransportFactory.java:58)
    3 frames
  4. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:408)
    4 frames
  5. Apache CXF Core
    DestinationFactoryManagerImpl.getDestinationFactoryForUri
    1. org.apache.cxf.bus.extension.Extension.load(Extension.java:249)
    2. org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister(ExtensionManagerImpl.java:213)
    3. org.apache.cxf.bus.extension.ExtensionManagerImpl.loadBeansOfType(ExtensionManagerImpl.java:368)
    4. org.apache.cxf.transport.TransportFinder.loadAll(TransportFinder.java:138)
    5. org.apache.cxf.transport.TransportFinder.findTransportForURI(TransportFinder.java:84)
    6. org.apache.cxf.bus.managers.DestinationFactoryManagerImpl.getDestinationFactoryForUri(DestinationFactoryManagerImpl.java:128)
    6 frames
  6. Apache CXF Runtime JAX-RS Frontend
    AbstractJAXRSFactoryBean.createEndpoint
    1. org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.createEndpointInfo(AbstractJAXRSFactoryBean.java:131)
    2. org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.createEndpoint(AbstractJAXRSFactoryBean.java:219)
    2 frames
  7. Apache CXF JAX-RS Client
    JAXRSClientFactoryBean.create
    1. org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.createWithValues(JAXRSClientFactoryBean.java:291)
    2. org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.create(JAXRSClientFactoryBean.java:264)
    2 frames
  8. com.a100sys.utils
    QuestionMapper.getInstance
    1. com.a100sys.utils.JacksonClientHelper.createJacksonJSONService(JacksonClientHelper.java:429)
    2. com.a100sys.utils.QuestionMapper.getQuestionService(QuestionMapper.java:339)
    3. com.a100sys.utils.QuestionMapper.findQuestionOptions(QuestionMapper.java:279)
    4. com.a100sys.utils.QuestionMapper.<init>(QuestionMapper.java:247)
    5. com.a100sys.utils.QuestionMapper.getInstance(QuestionMapper.java:269)
    5 frames
  9. com.a100sys.affiliateportal
    TestQualifyRestJSON.<init>
    1. com.a100sys.affiliateportal.TestQualify.<init>(TestQualify.java:37)
    2. com.a100sys.affiliateportal.rest.TestQualifyRestJSON.<init>(TestQualifyRestJSON.java:14)
    2 frames
  10. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:408)
    4 frames
  11. JUnit
    TestSuite.<init>
    1. junit.framework.TestSuite.createTest(TestSuite.java:63)
    2. junit.framework.TestSuite.addTestMethod(TestSuite.java:310)
    3. junit.framework.TestSuite.addTestsFromTestCase(TestSuite.java:153)
    4. junit.framework.TestSuite.<init>(TestSuite.java:132)
    4 frames
  12. JUnit3 Runner
    RemoteTestRunner.main
    1. org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.getTest(JUnit3TestLoader.java:102)
    2. org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.loadTests(JUnit3TestLoader.java:59)
    3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:452)
    4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    6. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
    6 frames