Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-5272

NPE will cause the camel-cxf endpoint start error in blueprint

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      When I ran some test on the CXF 2.7.7-SNAPSHOT with Camel 2.12.1-SNAPSHOT, I got a test error like this
      CxfEndpointBeansTest.testCxfBusConfiguration:97->Assert.assertTrue:41->Assert.fail:88 Should get the fault here
      The stack trace of CXF is

      Caused by: java.lang.RuntimeException: Could not process configuration.
      	at org.apache.cxf.transport.http.blueprint.HTTPClientPolicyHolder.init(HTTPClientPolicyHolder.java:79)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:297)
      	at org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:958)
      	at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:712)
      	... 60 more
      Caused by: java.lang.NullPointerException
      	at org.apache.cxf.transports.http.configuration.HTTPClientPolicy.getProxyServerPort(HTTPClientPolicy.java:787)
      	at org.apache.cxf.transport.http.blueprint.HTTPClientPolicyHolder.init(HTTPClientPolicyHolder.java:73)
      	... 67 more
      

      Attachments

        Issue Links

          Activity

            People

              njiang Willem Jiang
              njiang Willem Jiang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: