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.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

You need to add httpcore to your dependencies. Try adding version 4.3 or further.

,
Expert tip

A few things cause this exception:
1) Check if you have all jars and if they're in the correct path.
2) Your classpath might be broken, you can define it in the command line with java -cp yourClassPath or at your IDE if you're using one.

Solutions on the web

via nabble.com by Unknown author, 1 year ago
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.
via cxf-issues by Chris Marshall (JIRA), 1 year ago
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.
via Apache's JIRA Issue Tracker by Chris Marshall, 1 year ago
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.
via nabble.com by Unknown author, 1 year ago
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.
via cxf-issues by Sergey Beryozkin (JIRA), 1 year ago
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.
via Apache's JIRA Issue Tracker by Chris Marshall, 1 year ago
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.
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 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)
at org.apache.cxf.transport.http.netty.server.NettyHttpDestinationFactory.(NettyHttpDestinationFactory.java:36)
at org.apache.cxf.transport.http.netty.server.NettyHttpTransportFactory.(NettyHttpTransportFactory.java:55)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at org.apache.cxf.bus.extension.Extension.load(Extension.java:249)
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.jaxrs.AbstractJAXRSFactoryBean.createEndpointInfo(AbstractJAXRSFactoryBean.java:131)
at org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.createWithValues(JAXRSClientFactoryBean.java:291)
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.(QuestionMapper.java:247)
at com.a100sys.utils.QuestionMapper.getInstance(QuestionMapper.java:269)
at com.a100sys.affiliateportal.TestQualify.(TestQualify.java:37)
at com.a100sys.affiliateportal.rest.TestQualifyRestJSON.(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 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.(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)

Users with the same issue

2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 week ago
Samebug visitor profile picture
Unknown user
Once, 1 week ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago
2 times, 2 months ago
2436 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.