You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Siamak Haschemi (JIRA)" <ji...@apache.org> on 2006/04/25 15:24:07 UTC

[jira] Created: (AXIS2-616) NullPointerException while receiving Fault from Server

NullPointerException while receiving Fault from Server
------------------------------------------------------

         Key: AXIS2-616
         URL: http://issues.apache.org/jira/browse/AXIS2-616
     Project: Apache Axis 2.0 (Axis2)
        Type: Bug

  Components: databinding  
 Environment: Windows XP Home
java version "1.5.0_06"
tomcat 5.5.16
Axis2 SVN of 2005-04-24

    Reporter: Siamak Haschemi
 Attachments: Client.java

I created a simple WSDL contailing a Operation with a Reqest, Reponse and a Failure. Then I create the serverside Skeleton with WSDL2Java and modified the Skeleton to throw the Exception.
I also used WSDl2Java for the Client Stub.  

The Client calls the server and the server responds. But the parsing of the server's response (including a Exception) fails with

Exception in thread "main" java.lang.RuntimeException: Data binding error
	at org.apache.axis2.FaultStub.fromOM(FaultStub.java:372)
	at org.apache.axis2.FaultStub.getProduct(FaultStub.java:145)
	at Client.main(Client.java:16)
Caused by: java.lang.NullPointerException
	at org.apache.xmlbeans.impl.store.Cur$CurLoadContext.finish(Cur.java:3184)
	at org.apache.xmlbeans.impl.store.Locale.loadXMLStreamReader(Locale.java:1216)
	at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:843)
	at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:826)
	at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231)
	at org.haschemi.www.fault.GetProductFaultDocument$Factory.parse(GetProductFaultDocument.java:88)
	at org.apache.axis2.FaultStub.fromOM(FaultStub.java:367)
	... 2 more


The reqest and the response:

<?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Header/>
  <soapenv:Body>
    <getProductRequest xmlns="http://www.haschemi.org/fault/">Test</getProductRequest>
  </soapenv:Body>
</soapenv:Envelope>

<?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Header/>
  <soapenv:Body>
    <soapenv:Fault>
      <faultcode>soapenv:Client</faultcode>
        <faultstring>GetProductFaultException</faultstring>
        <detail>
          <getProductFault xmlns="http://www.haschemi.org/fault/">Dicker Fehler!</getProductFault>
        </detail>
    </soapenv:Fault>
  </soapenv:Body>
</soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (AXIS2-616) NullPointerException while receiving Fault from Server

Posted by "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-616?page=all ]
     
Ajith Harshana Ranabahu resolved AXIS2-616:
-------------------------------------------

    Resolution: Fixed

Fixed - the error was tracked down to a minor issue in the OMStaxWrapper in Axiom. Deepal has verified that the attached WSDL is functional and the custom fault is successfully received

> NullPointerException while receiving Fault from Server
> ------------------------------------------------------
>
>          Key: AXIS2-616
>          URL: http://issues.apache.org/jira/browse/AXIS2-616
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: databinding
>  Environment: Windows XP Home
> java version "1.5.0_06"
> tomcat 5.5.16
> Axis2 SVN of 2005-04-24
>     Reporter: Siamak Haschemi
>     Assignee: Ajith Harshana Ranabahu
>  Attachments: Client.java, FaultSkeleton.java, fault.wsdl, services.xml
>
> I created a simple WSDL contailing a Operation with a Reqest, Reponse and a Failure. Then I create the serverside Skeleton with WSDL2Java and modified the Skeleton to throw the Exception.
> I also used WSDl2Java for the Client Stub.  
> The Client calls the server and the server responds. But the parsing of the server's response (including a Exception) fails with
> Exception in thread "main" java.lang.RuntimeException: Data binding error
> 	at org.apache.axis2.FaultStub.fromOM(FaultStub.java:372)
> 	at org.apache.axis2.FaultStub.getProduct(FaultStub.java:145)
> 	at Client.main(Client.java:16)
> Caused by: java.lang.NullPointerException
> 	at org.apache.xmlbeans.impl.store.Cur$CurLoadContext.finish(Cur.java:3184)
> 	at org.apache.xmlbeans.impl.store.Locale.loadXMLStreamReader(Locale.java:1216)
> 	at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:843)
> 	at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:826)
> 	at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231)
> 	at org.haschemi.www.fault.GetProductFaultDocument$Factory.parse(GetProductFaultDocument.java:88)
> 	at org.apache.axis2.FaultStub.fromOM(FaultStub.java:367)
> 	... 2 more
> The reqest and the response:
> <?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?>
>   <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <soapenv:Header/>
>   <soapenv:Body>
>     <getProductRequest xmlns="http://www.haschemi.org/fault/">Test</getProductRequest>
>   </soapenv:Body>
> </soapenv:Envelope>
> <?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <soapenv:Header/>
>   <soapenv:Body>
>     <soapenv:Fault>
>       <faultcode>soapenv:Client</faultcode>
>         <faultstring>GetProductFaultException</faultstring>
>         <detail>
>           <getProductFault xmlns="http://www.haschemi.org/fault/">Dicker Fehler!</getProductFault>
>         </detail>
>     </soapenv:Fault>
>   </soapenv:Body>
> </soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS2-616) NullPointerException while receiving Fault from Server

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-616?page=comments#action_12376586 ] 

Davanum Srinivas commented on AXIS2-616:
----------------------------------------

Siamak,

Could you please try replacing getXMLStreamReaderWithoutCaching with getXMLStreamReader inside FaultStub.java? That seems to work for now. Till we fix the underlying problem.

thanks,
dims

> NullPointerException while receiving Fault from Server
> ------------------------------------------------------
>
>          Key: AXIS2-616
>          URL: http://issues.apache.org/jira/browse/AXIS2-616
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: databinding
>  Environment: Windows XP Home
> java version "1.5.0_06"
> tomcat 5.5.16
> Axis2 SVN of 2005-04-24
>     Reporter: Siamak Haschemi
>     Assignee: Ajith Harshana Ranabahu
>  Attachments: Client.java, FaultSkeleton.java, fault.wsdl, services.xml
>
> I created a simple WSDL contailing a Operation with a Reqest, Reponse and a Failure. Then I create the serverside Skeleton with WSDL2Java and modified the Skeleton to throw the Exception.
> I also used WSDl2Java for the Client Stub.  
> The Client calls the server and the server responds. But the parsing of the server's response (including a Exception) fails with
> Exception in thread "main" java.lang.RuntimeException: Data binding error
> 	at org.apache.axis2.FaultStub.fromOM(FaultStub.java:372)
> 	at org.apache.axis2.FaultStub.getProduct(FaultStub.java:145)
> 	at Client.main(Client.java:16)
> Caused by: java.lang.NullPointerException
> 	at org.apache.xmlbeans.impl.store.Cur$CurLoadContext.finish(Cur.java:3184)
> 	at org.apache.xmlbeans.impl.store.Locale.loadXMLStreamReader(Locale.java:1216)
> 	at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:843)
> 	at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:826)
> 	at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231)
> 	at org.haschemi.www.fault.GetProductFaultDocument$Factory.parse(GetProductFaultDocument.java:88)
> 	at org.apache.axis2.FaultStub.fromOM(FaultStub.java:367)
> 	... 2 more
> The reqest and the response:
> <?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?>
>   <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <soapenv:Header/>
>   <soapenv:Body>
>     <getProductRequest xmlns="http://www.haschemi.org/fault/">Test</getProductRequest>
>   </soapenv:Body>
> </soapenv:Envelope>
> <?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <soapenv:Header/>
>   <soapenv:Body>
>     <soapenv:Fault>
>       <faultcode>soapenv:Client</faultcode>
>         <faultstring>GetProductFaultException</faultstring>
>         <detail>
>           <getProductFault xmlns="http://www.haschemi.org/fault/">Dicker Fehler!</getProductFault>
>         </detail>
>     </soapenv:Fault>
>   </soapenv:Body>
> </soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS2-616) NullPointerException while receiving Fault from Server

Posted by "Siamak Haschemi (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-616?page=all ]

Siamak Haschemi updated AXIS2-616:
----------------------------------

    Attachment: FaultSkeleton.java

> NullPointerException while receiving Fault from Server
> ------------------------------------------------------
>
>          Key: AXIS2-616
>          URL: http://issues.apache.org/jira/browse/AXIS2-616
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: databinding
>  Environment: Windows XP Home
> java version "1.5.0_06"
> tomcat 5.5.16
> Axis2 SVN of 2005-04-24
>     Reporter: Siamak Haschemi
>  Attachments: Client.java, FaultSkeleton.java, fault.wsdl, services.xml
>
> I created a simple WSDL contailing a Operation with a Reqest, Reponse and a Failure. Then I create the serverside Skeleton with WSDL2Java and modified the Skeleton to throw the Exception.
> I also used WSDl2Java for the Client Stub.  
> The Client calls the server and the server responds. But the parsing of the server's response (including a Exception) fails with
> Exception in thread "main" java.lang.RuntimeException: Data binding error
> 	at org.apache.axis2.FaultStub.fromOM(FaultStub.java:372)
> 	at org.apache.axis2.FaultStub.getProduct(FaultStub.java:145)
> 	at Client.main(Client.java:16)
> Caused by: java.lang.NullPointerException
> 	at org.apache.xmlbeans.impl.store.Cur$CurLoadContext.finish(Cur.java:3184)
> 	at org.apache.xmlbeans.impl.store.Locale.loadXMLStreamReader(Locale.java:1216)
> 	at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:843)
> 	at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:826)
> 	at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231)
> 	at org.haschemi.www.fault.GetProductFaultDocument$Factory.parse(GetProductFaultDocument.java:88)
> 	at org.apache.axis2.FaultStub.fromOM(FaultStub.java:367)
> 	... 2 more
> The reqest and the response:
> <?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?>
>   <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <soapenv:Header/>
>   <soapenv:Body>
>     <getProductRequest xmlns="http://www.haschemi.org/fault/">Test</getProductRequest>
>   </soapenv:Body>
> </soapenv:Envelope>
> <?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <soapenv:Header/>
>   <soapenv:Body>
>     <soapenv:Fault>
>       <faultcode>soapenv:Client</faultcode>
>         <faultstring>GetProductFaultException</faultstring>
>         <detail>
>           <getProductFault xmlns="http://www.haschemi.org/fault/">Dicker Fehler!</getProductFault>
>         </detail>
>     </soapenv:Fault>
>   </soapenv:Body>
> </soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (AXIS2-616) NullPointerException while receiving Fault from Server

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-616?page=all ]

Deepal Jayasinghe reassigned AXIS2-616:
---------------------------------------

    Assign To: Ajith Harshana Ranabahu

> NullPointerException while receiving Fault from Server
> ------------------------------------------------------
>
>          Key: AXIS2-616
>          URL: http://issues.apache.org/jira/browse/AXIS2-616
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: databinding
>  Environment: Windows XP Home
> java version "1.5.0_06"
> tomcat 5.5.16
> Axis2 SVN of 2005-04-24
>     Reporter: Siamak Haschemi
>     Assignee: Ajith Harshana Ranabahu
>  Attachments: Client.java, FaultSkeleton.java, fault.wsdl, services.xml
>
> I created a simple WSDL contailing a Operation with a Reqest, Reponse and a Failure. Then I create the serverside Skeleton with WSDL2Java and modified the Skeleton to throw the Exception.
> I also used WSDl2Java for the Client Stub.  
> The Client calls the server and the server responds. But the parsing of the server's response (including a Exception) fails with
> Exception in thread "main" java.lang.RuntimeException: Data binding error
> 	at org.apache.axis2.FaultStub.fromOM(FaultStub.java:372)
> 	at org.apache.axis2.FaultStub.getProduct(FaultStub.java:145)
> 	at Client.main(Client.java:16)
> Caused by: java.lang.NullPointerException
> 	at org.apache.xmlbeans.impl.store.Cur$CurLoadContext.finish(Cur.java:3184)
> 	at org.apache.xmlbeans.impl.store.Locale.loadXMLStreamReader(Locale.java:1216)
> 	at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:843)
> 	at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:826)
> 	at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231)
> 	at org.haschemi.www.fault.GetProductFaultDocument$Factory.parse(GetProductFaultDocument.java:88)
> 	at org.apache.axis2.FaultStub.fromOM(FaultStub.java:367)
> 	... 2 more
> The reqest and the response:
> <?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?>
>   <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <soapenv:Header/>
>   <soapenv:Body>
>     <getProductRequest xmlns="http://www.haschemi.org/fault/">Test</getProductRequest>
>   </soapenv:Body>
> </soapenv:Envelope>
> <?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <soapenv:Header/>
>   <soapenv:Body>
>     <soapenv:Fault>
>       <faultcode>soapenv:Client</faultcode>
>         <faultstring>GetProductFaultException</faultstring>
>         <detail>
>           <getProductFault xmlns="http://www.haschemi.org/fault/">Dicker Fehler!</getProductFault>
>         </detail>
>     </soapenv:Fault>
>   </soapenv:Body>
> </soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS2-616) NullPointerException while receiving Fault from Server

Posted by "Siamak Haschemi (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-616?page=all ]

Siamak Haschemi updated AXIS2-616:
----------------------------------

    Attachment: Client.java

The client calling the services that throws a Exception.

> NullPointerException while receiving Fault from Server
> ------------------------------------------------------
>
>          Key: AXIS2-616
>          URL: http://issues.apache.org/jira/browse/AXIS2-616
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: databinding
>  Environment: Windows XP Home
> java version "1.5.0_06"
> tomcat 5.5.16
> Axis2 SVN of 2005-04-24
>     Reporter: Siamak Haschemi
>  Attachments: Client.java
>
> I created a simple WSDL contailing a Operation with a Reqest, Reponse and a Failure. Then I create the serverside Skeleton with WSDL2Java and modified the Skeleton to throw the Exception.
> I also used WSDl2Java for the Client Stub.  
> The Client calls the server and the server responds. But the parsing of the server's response (including a Exception) fails with
> Exception in thread "main" java.lang.RuntimeException: Data binding error
> 	at org.apache.axis2.FaultStub.fromOM(FaultStub.java:372)
> 	at org.apache.axis2.FaultStub.getProduct(FaultStub.java:145)
> 	at Client.main(Client.java:16)
> Caused by: java.lang.NullPointerException
> 	at org.apache.xmlbeans.impl.store.Cur$CurLoadContext.finish(Cur.java:3184)
> 	at org.apache.xmlbeans.impl.store.Locale.loadXMLStreamReader(Locale.java:1216)
> 	at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:843)
> 	at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:826)
> 	at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231)
> 	at org.haschemi.www.fault.GetProductFaultDocument$Factory.parse(GetProductFaultDocument.java:88)
> 	at org.apache.axis2.FaultStub.fromOM(FaultStub.java:367)
> 	... 2 more
> The reqest and the response:
> <?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?>
>   <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <soapenv:Header/>
>   <soapenv:Body>
>     <getProductRequest xmlns="http://www.haschemi.org/fault/">Test</getProductRequest>
>   </soapenv:Body>
> </soapenv:Envelope>
> <?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <soapenv:Header/>
>   <soapenv:Body>
>     <soapenv:Fault>
>       <faultcode>soapenv:Client</faultcode>
>         <faultstring>GetProductFaultException</faultstring>
>         <detail>
>           <getProductFault xmlns="http://www.haschemi.org/fault/">Dicker Fehler!</getProductFault>
>         </detail>
>     </soapenv:Fault>
>   </soapenv:Body>
> </soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS2-616) NullPointerException while receiving Fault from Server

Posted by "Siamak Haschemi (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-616?page=comments#action_12376690 ] 

Siamak Haschemi commented on AXIS2-616:
---------------------------------------

Hello dims,

replacing getXMLStreamReaderWithoutCaching with getXMLStreamReader inside works for me.

Surprisingly another problem has been solved by the change:

Although I specified the minOccur="0" in some elements of my WSDL-file the Client throws an Exception when the servers response doesn't contain any element.
This behaviour has been changed by applying the above changes.


Thank you for your great support,

Siamak

> NullPointerException while receiving Fault from Server
> ------------------------------------------------------
>
>          Key: AXIS2-616
>          URL: http://issues.apache.org/jira/browse/AXIS2-616
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: databinding
>  Environment: Windows XP Home
> java version "1.5.0_06"
> tomcat 5.5.16
> Axis2 SVN of 2005-04-24
>     Reporter: Siamak Haschemi
>     Assignee: Ajith Harshana Ranabahu
>  Attachments: Client.java, FaultSkeleton.java, fault.wsdl, services.xml
>
> I created a simple WSDL contailing a Operation with a Reqest, Reponse and a Failure. Then I create the serverside Skeleton with WSDL2Java and modified the Skeleton to throw the Exception.
> I also used WSDl2Java for the Client Stub.  
> The Client calls the server and the server responds. But the parsing of the server's response (including a Exception) fails with
> Exception in thread "main" java.lang.RuntimeException: Data binding error
> 	at org.apache.axis2.FaultStub.fromOM(FaultStub.java:372)
> 	at org.apache.axis2.FaultStub.getProduct(FaultStub.java:145)
> 	at Client.main(Client.java:16)
> Caused by: java.lang.NullPointerException
> 	at org.apache.xmlbeans.impl.store.Cur$CurLoadContext.finish(Cur.java:3184)
> 	at org.apache.xmlbeans.impl.store.Locale.loadXMLStreamReader(Locale.java:1216)
> 	at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:843)
> 	at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:826)
> 	at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231)
> 	at org.haschemi.www.fault.GetProductFaultDocument$Factory.parse(GetProductFaultDocument.java:88)
> 	at org.apache.axis2.FaultStub.fromOM(FaultStub.java:367)
> 	... 2 more
> The reqest and the response:
> <?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?>
>   <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <soapenv:Header/>
>   <soapenv:Body>
>     <getProductRequest xmlns="http://www.haschemi.org/fault/">Test</getProductRequest>
>   </soapenv:Body>
> </soapenv:Envelope>
> <?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <soapenv:Header/>
>   <soapenv:Body>
>     <soapenv:Fault>
>       <faultcode>soapenv:Client</faultcode>
>         <faultstring>GetProductFaultException</faultstring>
>         <detail>
>           <getProductFault xmlns="http://www.haschemi.org/fault/">Dicker Fehler!</getProductFault>
>         </detail>
>     </soapenv:Fault>
>   </soapenv:Body>
> </soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS2-616) NullPointerException while receiving Fault from Server

Posted by "Siamak Haschemi (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-616?page=all ]

Siamak Haschemi updated AXIS2-616:
----------------------------------

    Attachment: fault.wsdl

> NullPointerException while receiving Fault from Server
> ------------------------------------------------------
>
>          Key: AXIS2-616
>          URL: http://issues.apache.org/jira/browse/AXIS2-616
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: databinding
>  Environment: Windows XP Home
> java version "1.5.0_06"
> tomcat 5.5.16
> Axis2 SVN of 2005-04-24
>     Reporter: Siamak Haschemi
>  Attachments: Client.java, FaultSkeleton.java, fault.wsdl, services.xml
>
> I created a simple WSDL contailing a Operation with a Reqest, Reponse and a Failure. Then I create the serverside Skeleton with WSDL2Java and modified the Skeleton to throw the Exception.
> I also used WSDl2Java for the Client Stub.  
> The Client calls the server and the server responds. But the parsing of the server's response (including a Exception) fails with
> Exception in thread "main" java.lang.RuntimeException: Data binding error
> 	at org.apache.axis2.FaultStub.fromOM(FaultStub.java:372)
> 	at org.apache.axis2.FaultStub.getProduct(FaultStub.java:145)
> 	at Client.main(Client.java:16)
> Caused by: java.lang.NullPointerException
> 	at org.apache.xmlbeans.impl.store.Cur$CurLoadContext.finish(Cur.java:3184)
> 	at org.apache.xmlbeans.impl.store.Locale.loadXMLStreamReader(Locale.java:1216)
> 	at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:843)
> 	at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:826)
> 	at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231)
> 	at org.haschemi.www.fault.GetProductFaultDocument$Factory.parse(GetProductFaultDocument.java:88)
> 	at org.apache.axis2.FaultStub.fromOM(FaultStub.java:367)
> 	... 2 more
> The reqest and the response:
> <?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?>
>   <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <soapenv:Header/>
>   <soapenv:Body>
>     <getProductRequest xmlns="http://www.haschemi.org/fault/">Test</getProductRequest>
>   </soapenv:Body>
> </soapenv:Envelope>
> <?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <soapenv:Header/>
>   <soapenv:Body>
>     <soapenv:Fault>
>       <faultcode>soapenv:Client</faultcode>
>         <faultstring>GetProductFaultException</faultstring>
>         <detail>
>           <getProductFault xmlns="http://www.haschemi.org/fault/">Dicker Fehler!</getProductFault>
>         </detail>
>     </soapenv:Fault>
>   </soapenv:Body>
> </soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS2-616) NullPointerException while receiving Fault from Server

Posted by "Siamak Haschemi (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-616?page=all ]

Siamak Haschemi updated AXIS2-616:
----------------------------------

    Attachment: services.xml

> NullPointerException while receiving Fault from Server
> ------------------------------------------------------
>
>          Key: AXIS2-616
>          URL: http://issues.apache.org/jira/browse/AXIS2-616
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: databinding
>  Environment: Windows XP Home
> java version "1.5.0_06"
> tomcat 5.5.16
> Axis2 SVN of 2005-04-24
>     Reporter: Siamak Haschemi
>  Attachments: Client.java, services.xml
>
> I created a simple WSDL contailing a Operation with a Reqest, Reponse and a Failure. Then I create the serverside Skeleton with WSDL2Java and modified the Skeleton to throw the Exception.
> I also used WSDl2Java for the Client Stub.  
> The Client calls the server and the server responds. But the parsing of the server's response (including a Exception) fails with
> Exception in thread "main" java.lang.RuntimeException: Data binding error
> 	at org.apache.axis2.FaultStub.fromOM(FaultStub.java:372)
> 	at org.apache.axis2.FaultStub.getProduct(FaultStub.java:145)
> 	at Client.main(Client.java:16)
> Caused by: java.lang.NullPointerException
> 	at org.apache.xmlbeans.impl.store.Cur$CurLoadContext.finish(Cur.java:3184)
> 	at org.apache.xmlbeans.impl.store.Locale.loadXMLStreamReader(Locale.java:1216)
> 	at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:843)
> 	at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:826)
> 	at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231)
> 	at org.haschemi.www.fault.GetProductFaultDocument$Factory.parse(GetProductFaultDocument.java:88)
> 	at org.apache.axis2.FaultStub.fromOM(FaultStub.java:367)
> 	... 2 more
> The reqest and the response:
> <?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?>
>   <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <soapenv:Header/>
>   <soapenv:Body>
>     <getProductRequest xmlns="http://www.haschemi.org/fault/">Test</getProductRequest>
>   </soapenv:Body>
> </soapenv:Envelope>
> <?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <soapenv:Header/>
>   <soapenv:Body>
>     <soapenv:Fault>
>       <faultcode>soapenv:Client</faultcode>
>         <faultstring>GetProductFaultException</faultstring>
>         <detail>
>           <getProductFault xmlns="http://www.haschemi.org/fault/">Dicker Fehler!</getProductFault>
>         </detail>
>     </soapenv:Fault>
>   </soapenv:Body>
> </soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS2-616) NullPointerException while receiving Fault from Server

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-616?page=comments#action_12376590 ] 

Davanum Srinivas commented on AXIS2-616:
----------------------------------------

Ajith, Eran,

I am using PrintEvents to print the stuff in the getXMLStreamReader and getXMLStreamReaderWithoutCaching...

Output when i use getXMLStreamReaderWithoutCaching:
EVENT:[START_DOCUMENT]  [<?xml version='1.0' encoding='utf-8' standalone='yes'?>]
EVENT:[START_ELEMENT]  [<['http://www.haschemi.org/fault/']:axis2ns1:getProductFault xmlns:axis2ns1='http://www.haschemi.org/fault/'>]
EVENT:[CHARACTERS]  [Dicker Fehler!]
EVENT:[END_ELEMENT]  [</['http://schemas.xmlsoap.org/soap/envelope/']:soapenv:Fault>]
EVENT:[END_ELEMENT]  [</['http://schemas.xmlsoap.org/soap/envelope/']:soapenv:Body>]

Output when i use getXMLStreamReader:
EVENT:[START_DOCUMENT]  [<?xml version='1.0' encoding='utf-8' standalone='yes'?>]
EVENT:[START_ELEMENT]  [<['http://www.haschemi.org/fault/']:axis2ns1:getProductFault xmlns:axis2ns1='http://www.haschemi.org/fault/'>]
EVENT:[CHARACTERS]  [Dicker Fehler!]

Looks like WithoutCaching is returning a bit more that confuses xmlbeans and causes the NPE. Please investigate.

thanks,
dims

> NullPointerException while receiving Fault from Server
> ------------------------------------------------------
>
>          Key: AXIS2-616
>          URL: http://issues.apache.org/jira/browse/AXIS2-616
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: databinding
>  Environment: Windows XP Home
> java version "1.5.0_06"
> tomcat 5.5.16
> Axis2 SVN of 2005-04-24
>     Reporter: Siamak Haschemi
>     Assignee: Ajith Harshana Ranabahu
>  Attachments: Client.java, FaultSkeleton.java, fault.wsdl, services.xml
>
> I created a simple WSDL contailing a Operation with a Reqest, Reponse and a Failure. Then I create the serverside Skeleton with WSDL2Java and modified the Skeleton to throw the Exception.
> I also used WSDl2Java for the Client Stub.  
> The Client calls the server and the server responds. But the parsing of the server's response (including a Exception) fails with
> Exception in thread "main" java.lang.RuntimeException: Data binding error
> 	at org.apache.axis2.FaultStub.fromOM(FaultStub.java:372)
> 	at org.apache.axis2.FaultStub.getProduct(FaultStub.java:145)
> 	at Client.main(Client.java:16)
> Caused by: java.lang.NullPointerException
> 	at org.apache.xmlbeans.impl.store.Cur$CurLoadContext.finish(Cur.java:3184)
> 	at org.apache.xmlbeans.impl.store.Locale.loadXMLStreamReader(Locale.java:1216)
> 	at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:843)
> 	at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:826)
> 	at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231)
> 	at org.haschemi.www.fault.GetProductFaultDocument$Factory.parse(GetProductFaultDocument.java:88)
> 	at org.apache.axis2.FaultStub.fromOM(FaultStub.java:367)
> 	... 2 more
> The reqest and the response:
> <?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?>
>   <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <soapenv:Header/>
>   <soapenv:Body>
>     <getProductRequest xmlns="http://www.haschemi.org/fault/">Test</getProductRequest>
>   </soapenv:Body>
> </soapenv:Envelope>
> <?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <soapenv:Header/>
>   <soapenv:Body>
>     <soapenv:Fault>
>       <faultcode>soapenv:Client</faultcode>
>         <faultstring>GetProductFaultException</faultstring>
>         <detail>
>           <getProductFault xmlns="http://www.haschemi.org/fault/">Dicker Fehler!</getProductFault>
>         </detail>
>     </soapenv:Fault>
>   </soapenv:Body>
> </soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira