Willem Jiang created CXF-5272:
---------------------------------
Summary: NPE will cause the camel-cxf endpoint start error in
blueprint
Key: CXF-5272
URL: https://issues.apache.org/jira/browse/CXF-5272
Project: CXF
Issue Type: Bug
Components: Transports
Reporter: Willem Jiang
Assignee: Willem Jiang
Fix For: 3.0.0, 2.7.7
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
{code}
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
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira