"javax.xml.ws.WebServiceException: java.lang.NullPointerException" in JBoss WS

Solution Unverified - Updated -

Issue

  • This application which throws this error is a client to a web service. The error is:
javax.xml.ws.WebServiceException: java.lang.NullPointerException
                at org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:72)
                at javax.xml.ws.Service.<init>(Service.java:56)
                at com.example.xxxxx.XxxxxService.<init>(XxxxxService.java:33)
  • On analysis we found that there is JBPAPP-6389 that is fixed from EAP 5.1.2 - that could be the source of this issue - since the WSDL in question has the following structure:
<xs:schema targetNamespace="http://response.jaxws.xxxxx.example.com/" version="1.0" xmlns:ns1="http://header.jaxws.xxxxx.example.com/" xmlns:ns2="http://model.xxxxx.example.com/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import namespace="http://header.jaxws.xxxxx.example.com/" /> 
  <xs:import namespace="http://model.xxxxx.example.com/" />
  • Is this the source of the problem? if yes, how to fix this?
  • We applied most of the patches for EAP 5.1.2 that are available in Red Hat Customer Portal.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 5.1.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content