I get a NullPointerException at HTTPSClientInvoker.createSocketFactory() line 144 because
the code catches an exception and tries to log it, but the logger hasn't been
initialized yet. This NPE masks the original exception (which is
"java.io.IOException: Error initializing socket factory SSL context: Can not find
truststore url." in this case). Maybe the log variable should be static in
HTTPClientInvoker.
Here's the stack at the NPE:
| Thread [http-0.0.0.0-8080-1] (Suspended)
| HTTPSClientInvoker.createSocketFactory(Map) line: 144
| HTTPSClientInvoker(RemoteClientInvoker).<init>(InvokerLocator, Map) line: 46
| HTTPSClientInvoker(HTTPClientInvoker).<init>(InvokerLocator, Map) line: 105
| HTTPSClientInvoker.<init>(InvokerLocator, Map) line: 63
| TransportClientFactory.createClientInvoker(InvokerLocator, Map) line: 39
| NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available
[native method]
| NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39
| DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25
| Method.invoke(Object, Object...) line: 585
| InvokerRegistry.loadClientInvoker(String, InvokerLocator, Map) line: 419
| InvokerRegistry.createClientInvoker(InvokerLocator, Map) line: 320
| Client.connect() line: 441
| SOAPRemotingConnection(RemotingConnectionImpl).createRemotingClient(Object, String,
boolean) line: 227
| SOAPRemotingConnection(RemotingConnectionImpl).invoke(MessageAbstraction, Object,
boolean) line: 153
| SOAPRemotingConnection.invoke(MessageAbstraction, Object, boolean) line: 77
| ClientImpl(CommonClient).invoke(QName, Object[], boolean) line: 322
| ClientImpl.invoke(QName, Object[], Map<String,Object>) line: 230
| ClientProxy.invoke(QName, Object[], Class, Map<String,Object>) line: 164
| ClientProxy.invoke(Object, Method, Object[]) line: 150
| $Proxy100.getDealerProducts(String) line: not available
| CNHContractsLicenseProvider.getLicenseCount(String, String, Element) line: 45
| CNHContractsLicenseProvider(BaseLicenseProvider).getLicense(String, String, int,
Element) line: 108
| CNHContractsLicenseProvider(BaseLicenseProvider).getLease(Client, String, Lease, int,
Element) line: 44
| LicenseServer.processLeaseRequest(String, List<String>, int, Info) line: 128
| NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available
[native method]
| NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39
| DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25
| Method.invoke(Object, Object...) line: 585
| ServiceEndpointInvokerJSE.invokeServiceEndpointInstance(Object, EndpointInvocation)
line: 104
| ServiceEndpointInvokerJSE(AbstractServiceEndpointInvoker).invoke(Object) line: 207
| ServiceEndpoint.processRequest(MimeHeaderSource, EndpointContext, InputStream) line:
212
| ServiceEndpointManager.processRequest(ObjectName, InputStream, OutputStream,
EndpointContext) line: 448
|
JBossServiceEndpointServlet(AbstractServiceEndpointServlet).doPost(HttpServletRequest,
HttpServletResponse) line: 114
| JBossServiceEndpointServlet(HttpServlet).service(HttpServletRequest,
HttpServletResponse) line: 710
|
JBossServiceEndpointServlet(AbstractServiceEndpointServlet).service(HttpServletRequest,
HttpServletResponse) line: 75
| JBossServiceEndpointServlet(HttpServlet).service(ServletRequest, ServletResponse)
line: 803
| ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 290
| ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 206
| ReplyHeaderFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 96
| ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 235
| ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 206
| StandardWrapperValve.invoke(Request, Response) line: 230
| StandardContextValve.invoke(Request, Response) line: 175
| SecurityAssociationValve.invoke(Request, Response) line: 179
| JaccContextValve.invoke(Request, Response) line: 84
| StandardHostValve.invoke(Request, Response) line: 128
| ErrorReportValve.invoke(Request, Response) line: 104
| CachedConnectionValve.invoke(Request, Response) line: 156
| StandardEngineValve.invoke(Request, Response) line: 109
| CoyoteAdapter.service(Request, Response) line: 241
| Http11Processor.process(Socket) line: 844
| Http11Protocol$Http11ConnectionHandler.process(Socket) line: 580
| JIoEndpoint$Worker.run() line: 447
| Thread.run() line: 595
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050634#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...