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 "Chris Book (JIRA)" <ax...@ws.apache.org> on 2005/04/18 03:22:59 UTC

[jira] Created: (AXIS-1933) NullPointerException when using Document/Literal

NullPointerException when using Document/Literal
------------------------------------------------

         Key: AXIS-1933
         URL: http://issues.apache.org/jira/browse/AXIS-1933
     Project: Axis
        Type: Bug
    Versions: 1.2RC3    
 Environment: Windows 2000, Tomcat 5, Java 1.4

    Reporter: Chris Book


Steps:
1.  Using the following interface, use Java2WSDL to generate a WSDL using the -y DOCUMENT and -u LITERAL options:
public interface SearchService {
    public int fullSearch(java.lang.String in0, int in1, int in2);
}
2.  Use WSDL2Java to generate remaining files
3.  Deploy
4.  Access using http://localhost:8080/mywebapp/services/SearchService?method=fullSearch

Result is:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode>soapenv:Server.generalException</faultcode>
   <faultstring>Tried to invoke method public int SearchServiceSoapBindingSkeleton.fullSearch(java.lang.String,int,int) throws java.rmi.RemoteException with arguments java.lang.String,null,null.  The arguments do not match the signature.; nested exception is: 
	java.lang.IllegalArgumentException</faultstring>
   <detail>
    <ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">myhostname</ns1:hostname>
   </detail>

  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>

I didn't change the Impl function from the default, which returns -3 so I have no idea where the exception is from.  I don't see any errors in any log files.

If I reload the above URL several times, the error switches to this:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode>soapenv:Server.generalException</faultcode>
   <faultstring>Tried to invoke method public int SearchServiceSoapBindingSkeleton.fullSearch(java.lang.String,int,int) throws java.rmi.RemoteException with arguments java.lang.String,null,null.  The arguments do not match the signature.; nested exception is: 
	java.lang.IllegalArgumentException</faultstring>
   <detail>
    <ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">myhostname</ns1:hostname>
   </detail>

  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>


I havn't had any problems using the default "RPC/ENCODED" style/uses.


-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira