cfx-http-async feature throws an exceptions when used in Fuse

Solution Verified - Updated -

Issue

  • We had a project working fine with JBoss Fuse 6.1. It was using CXF async client and we were using the feature cxf-http-async.
    We upgraded to JBoss Fuse 6.2 and this is not working anymore. When JBoss Fuse starts, we have the following exception:
14 juil. 2015 16:26:26,686 | ERROR | CM Configuration Updater (ManagedService Update: pid=[org.apache.cxf.transport.http.async]) | configadmin | 7 - org.apache.felix.configadmin - 1.8.2 | [org.osgi.service.cm.ManagedService, id=232, bundle=156/mvn:org.apache.cxf/cxf-rt-transports-http-hc/3.0.4.redhat-620133]: Unexpected problem updating configuration org.apache.cxf.transport.http.async
java.lang.NullPointerException
    at org.apache.cxf.transport.http.asyncclient.AsyncHTTPConduitFactory.addListener(AsyncHTTPConduitFactory.java:282)[156:org.apache.cxf.cxf-rt-transports-http-hc:3.0.4.redhat-620133]
    at org.apache.cxf.transport.http.asyncclient.AsyncHTTPConduitFactory.<init>(AsyncHTTPConduitFactory.java:144)[156:org.apache.cxf.cxf-rt-transports-http-hc:3.0.4.redhat-620133]
    at org.apache.cxf.transport.http.asyncclient.Activator$ConduitConfigurer.updated(Activator.java:79)[156:org.apache.cxf.cxf-rt-transports-http-hc:3.0.4.redhat-620133]
    at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updated(ManagedServiceTracker.java:189)[7:org.apache.felix.configadmin:1.8.2]
    at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:152)[7:org.apache.felix.configadmin:1.8.2]
    at org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:85)[7:org.apache.felix.configadmin:1.8.2]
    at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.provide(ConfigurationManager.java:1440)[7:org.apache.felix.configadmin:1.8.2]
    at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1396)[7:org.apache.felix.configadmin:1.8.2]
    at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:103)[7:org.apache.felix.configadmin:1.8.2]
    at java.lang.Thread.run(Thread.java:745)[:1.8.0_40]


  • To reproduce the issue:
    • Start JBoss Fuse using karaf.bat
    • In the karaf console: features:install cxf-http-async
    • Restart JBoss Fuse and you'll see the exception mentioned above.

Environment

  • Red Hat JBoss Fuse
    • 6.x
  • Apache CXF

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.