Re: NULL pointer error when consuming a web service

2008-06-24 Thread Frex Popo
Thanks Carey.. 
 
I tested this on 7.1 and it works but not on 6.3.
 
The problem was a couple of missing jar files.
 
xercesImpl.jar
xml-apis.jar 
 
Just in case somone hits the same problem :-)
frex


--- En date de : Mer 11.6.08, Carey Matthew Black <[EMAIL PROTECTED]> a écrit :

De: Carey Matthew Black <[EMAIL PROTECTED]>
Objet: Re: NULL pointer error when consuming a web service
À: arslist@ARSLIST.ORG
Date: Mercredi 11 Juin 2008, 15h55

I would bet that the XML that you are sending either does not have a
block like this

"


user_name
pwd_str




  wrote:
> **
>
> Dear all,
>
>
>
> I have an ARS6.3 installed on WIN2000 OS with an Oracle9 DB. The Mid-Tier
is
> also installed on the same machine as the Remedy server.
>
>
>
> I am attempting to send some data to the remedy server using a Web Service
> and getting the following error:
>
>
>
> soapenv:Server.userException
>
> java.lang.NullPointerException
>
>
>
> I tried to simplify things by using a simple form with a character field.
I
> used both the get and create operations and end up with the same error. I
> thought this could be due to some invalid characters either in the data or
> the field names but it wasn't to be.
>
>
>
> Here is the xml sent to the remedy Web Server:
>
>
>
> 
>
> http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>
> 
>
> 
>
> soapenv:Server.userException
>
> java.lang.NullPointerException
>
> 
>
> 
>
> 
>
> 
>
>
>
> Have you seen this error before?
>
>
>
> Ah! I am using SOAPSonar to test my Web Service. I used the same client in
> the past to test some SAP Web Service and it worked fine.
>
>
>
> Many thanks in advance
>
>
>
> frex
>
>
>
> 
> Envoyé avec Yahoo! Mail.
> Une boite mail plus intelligente. __Platinum Sponsor: www.rmsportal.com
> ARSlist: "Where the Answers Are" html___

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"


  
_ 
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"

Re: NULL pointer error when consuming a web service

2008-06-12 Thread Frex Popo
dl:message name="READ_EQUIP_LOCSoapIn">
  <wsdl:part element="s:READ_EQUIP_LOC" name="parameters" /> 
  </wsdl:message>
- <wsdl:message name="ARAuthenticate">
  <wsdl:part element="s:AuthenticationInfo" name="parameters" /> 
  </wsdl:message>
- <wsdl:message name="READ_EQUIP_LOCSoapOut">
  <wsdl:part element="s:READ_EQUIP_LOCResponse" name="parameters" /> 
  </wsdl:message>
- <wsdl:portType name="MMA_SAP_AssetOrderModifyInPortType">
- <wsdl:operation name="READ_EQUIP_LOC">
  <wsdl:input message="s:READ_EQUIP_LOCSoapIn" /> 
  <wsdl:output message="s:READ_EQUIP_LOCSoapOut" /> 
  </wsdl:operation>
  </wsdl:portType>
- <wsdl:binding name="MMA_SAP_AssetOrderModifyInSoapBinding" 
type="s:MMA_SAP_AssetOrderModifyInPortType">
  <soap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"; /> 
- <wsdl:operation name="READ_EQUIP_LOC">
  <soap:operation 
soapAction="urn:MMA_SAP_AssetOrderModifyIn/READ_EQUIP_LOC" style="document" 
/> 
- <wsdl:input>
  <soap:header message="s:ARAuthenticate" part="parameters" 
use="literal" /> 
  <soap:body use="literal" /> 
  </wsdl:input>
- <wsdl:output>
  <soap:body use="literal" /> 
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
- <wsdl:service name="MMA_SAP_AssetOrderModifyInService">
  
<wsdl:documentation>MMA_SAP_AssetOrderModifyIn</wsdl:documentation> 
- <wsdl:port binding="s:MMA_SAP_AssetOrderModifyInSoapBinding" 
name="MMA_SAP_AssetOrderModifyInSoap">
  <soap:address 
location="http://arsdev:/arsys/services/ARService?server=arsdev&webService=MMA_SAP_AssetOrderModifyIn";
 /> 
  </wsdl:port>
  </wsdl:service>
  </wsdl:definitions>
 
Many thanks
frex
--- En date de : Mer 11.6.08, Carey Matthew Black <[EMAIL 
PROTECTED]> a écrit :

De: Carey Matthew Black <[EMAIL PROTECTED]>
Objet: Re: NULL pointer error when consuming a web service
À: arslist@ARSLIST.ORG
Date: Mercredi 11 Juin 2008, 15h55

I would bet that the XML that you are sending either does not have a
block like this

"
<SOAP-ENV:Header>
<AuthenticationInfo>
<userName>user_name</userName>
<password>pwd_str</password>
<authentication/>
<locale/>
<timeZone/>
</AuthenticationInfo>
 </SOAP-ENV:Header
"

Or maybe the userName element was null but present and prevented the
Mid-Tier from using a configured default?
Or maybe the Mid-Tier does not have a configured default user?

If we could see the XML that was sent and the WSDL it might be easier
to troubleshoot the issue.
HTH.

-- 
Carey Matthew Black
Remedy Skilled Professional (RSP)
ARS = Action Request System(Remedy)

Love, then teach
Solution = People + Process + Tools
Fast, Accurate, Cheap Pick two.


On Wed, Jun 11, 2008 at 8:56 AM, Frex Popo <[EMAIL PROTECTED]> wrote:
> **
>
> Dear all,
>
>
>
> I have an ARS6.3 installed on WIN2000 OS with an Oracle9 DB. The Mid-Tier
is
> also installed on the same machine as the Remedy server.
>
>
>
> I am attempting to send some data to the remedy server using a Web Service
> and getting the following error:
>
>
>
> <faultcode>soapenv:Server.userException</faultcode>
>
> <faultstring>java.lang.NullPointerException</faultstring>
>
>
>
> I tried to simplify things by using a simple form with a character field.
I
> used both the get and create operations and end up with the same error. I
> thought this could be due to some invalid characters either in the data or
> the field names but it wasn't to be.
>
>
>
> Here is the xml sent to the remedy Web Server:
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <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.userException</faultcode>
>
> <faultstring>java.lang.NullPointerException</faultstring>
>
> <detail />
>
> </soapenv:Fault>
>
> </soapenv:Body>
>
> </soapenv:Envelope>
>
>
>
> Have you seen this error before?
>
>
>
> Ah! I am using SOAPSonar to test my Web Service. I used the same client in
> the past to test some SAP Web Service and it worked fine.
>
>
>
> Many thanks in advance
>
>
>
> frex
>
>
>
> 
> Envoyé avec Yahoo! Mail.
> Une boite mail plus intelligente. __Platinum Sponsor: www.rmsportal.com
> ARSlist: "Where the Answers Are" html___

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"


  
_ 
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"

Re: NULL pointer error when consuming a web service

2008-06-11 Thread Frex Popo
Thanks Fred,
 
I am not using IIS :)
 
It's WIN2003 with 
Apache 2.2
Tomcat 5.5
Java 1.5.0_06
 
I checked the web server, servlet engine logs and nothing gets written to 
these as well as the Mid-Tier. 

--- En date de : Mer 11.6.08, Grooms, Frederick W <[EMAIL 
PROTECTED]> a écrit :

De: Grooms, Frederick W <[EMAIL PROTECTED]>
Objet: Re: NULL pointer error when consuming a web service
À: arslist@ARSLIST.ORG
Date: Mercredi 11 Juin 2008, 15h33


** 
That looks something like a problem with your Java Servlet engine.  Since 
you are on W2k I take it you are using IIS for the Web server.  What java 
engine are you using (Tomcat, ServletExec, ...) and what version?  Also 
what version Java is installed on the server?  You may also want to post 
the complete error as written to the Mid-Tier log (Usually in \Program Files\AR 
System\Mid-Tier\work\logs but you can see exactly where the logs are from the 
Mid-Tier configuration web page.
 
Fred



From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] 
On Behalf Of Frex Popo
Sent: Wednesday, June 11, 2008 7:56 AM
To: arslist@ARSLIST.ORG
Subject: NULL pointer error when consuming a web service







Dear all,


 
I have an ARS6.3 installed on WIN2000 OS with an Oracle9 DB. The Mid-Tier is 
also installed on the same machine as the Remedy server.


 
I am attempting to send some data to the remedy server using a Web Service and 
getting the following error:


 
<faultcode>soapenv:Server.userException</faultcode>

<faultstring>java.lang.NullPointerException</faultstring>



 
I tried to simplify things by using a simple form with a character field. I 
used both the get and create operations and end up with the same error. I 
thought this could be due to some invalid characters either in the data or the 
field names but it wasn't to be.


 
Here is the xml sent to the remedy Web Server:


 
<?xml version="1.0" encoding="UTF-8"?>
<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.userException</faultcode>

<faultstring>java.lang.NullPointerException</faultstring>

<detail />

</soapenv:Fault>

</soapenv:Body>

</soapenv:Envelope>

 

Have you seen this error before?


 
Ah! I am using SOAPSonar to test my Web Service. I used the same client in the 
past to test some SAP Web Service and it worked fine.


 
Many thanks in advance
 
frex
 __Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are" 
html___ 


  
_ 
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"

Re: NULL pointer error when consuming a web service

2008-06-11 Thread Carey Matthew Black
I would bet that the XML that you are sending either does not have a
block like this

"


user_name
pwd_str




  wrote:
> **
>
> Dear all,
>
>
>
> I have an ARS6.3 installed on WIN2000 OS with an Oracle9 DB. The Mid-Tier is
> also installed on the same machine as the Remedy server.
>
>
>
> I am attempting to send some data to the remedy server using a Web Service
> and getting the following error:
>
>
>
> soapenv:Server.userException
>
> java.lang.NullPointerException
>
>
>
> I tried to simplify things by using a simple form with a character field. I
> used both the get and create operations and end up with the same error. I
> thought this could be due to some invalid characters either in the data or
> the field names but it wasn't to be.
>
>
>
> Here is the xml sent to the remedy Web Server:
>
>
>
> 
>
> http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>
> 
>
> 
>
> soapenv:Server.userException
>
> java.lang.NullPointerException
>
> 
>
> 
>
> 
>
> 
>
>
>
> Have you seen this error before?
>
>
>
> Ah! I am using SOAPSonar to test my Web Service. I used the same client in
> the past to test some SAP Web Service and it worked fine.
>
>
>
> Many thanks in advance
>
>
>
> frex
>
>
>
> 
> Envoyé avec Yahoo! Mail.
> Une boite mail plus intelligente. __Platinum Sponsor: www.rmsportal.com
> ARSlist: "Where the Answers Are" html___

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"


Re: NULL pointer error when consuming a web service

2008-06-11 Thread Grooms, Frederick W
That looks something like a problem with your Java Servlet engine.
Since you are on W2k I take it you are using IIS for the Web server.
What java engine are you using (Tomcat, ServletExec, ...) and what
version?  Also what version Java is installed on the server?  You may
also want to post the complete error as written to the Mid-Tier log
(Usually in \Program Files\AR System\Mid-Tier\work\logs but you can see
exactly where the logs are from the Mid-Tier configuration web page.
 
Fred



From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Frex Popo
Sent: Wednesday, June 11, 2008 7:56 AM
To: arslist@ARSLIST.ORG
Subject: NULL pointer error when consuming a web service


Dear all,

 

I have an ARS6.3 installed on WIN2000 OS with an Oracle9 DB. The
Mid-Tier is also installed on the same machine as the Remedy server.

 

I am attempting to send some data to the remedy server using a Web
Service and getting the following error:

 

soapenv:Server.userException

java.lang.NullPointerException

 

I tried to simplify things by using a simple form with a character
field. I used both the get and create operations and end up with the
same error. I thought this could be due to some invalid characters
either in the data or the field names but it wasn't to be.

 

Here is the xml sent to the remedy Web Server:

 



http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>





soapenv:Server.userException

java.lang.NullPointerException









 

Have you seen this error before?

 

Ah! I am using SOAPSonar to test my Web Service. I used the same client
in the past to test some SAP Web Service and it worked fine.

 

Many thanks in advance

 

frex

 


___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"


Re: NULL pointer error when consuming a web service

2008-06-11 Thread Remprof
There might be some issues with the stub generated by your client from the
WSDL. Can you check that?

Thanks,
RemProf

On 6/11/08, Frex Popo <[EMAIL PROTECTED]> wrote:
>
> **
>
> Dear all,
>
>
>
> I have an ARS6.3 installed on WIN2000 OS with an Oracle9 DB. The Mid-Tier
> is also installed on the same machine as the Remedy server.
>
>
>
> I am attempting to send some data to the remedy server using a Web Service
> and getting the following error:
>
>
>
> soapenv:Server.userException
>
> java.lang.NullPointerException
>
>
>
> I tried to simplify things by using a simple form with a character field. I
> used both the get and create operations and end up with the same error. I
> thought this could be due to some invalid characters either in the data or
> the field names but it wasn't to be.
>
>
>
> Here is the xml sent to the remedy Web Server:
>
>
>
> 
>
> http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance";>
>
> 
>
> 
>
> soapenv:Server.userException
>
> java.lang.NullPointerException
>
> 
>
> 
>
> 
>
> 
>
>
>
> Have you seen this error before?
>
>
>
> Ah! I am using SOAPSonar to test my Web Service. I used the same client in
> the past to test some SAP Web Service and it worked fine.
>
>
>
> Many thanks in advance
>
>
>
> frex
>
>
>
> --
> Envoyé avec Yahoo! 
> Mail
> .
> Une boite mail plus intelligente. __Platinum Sponsor: 
> www.rmsportal.comARSlist: "Where the Answers Are" html___

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"


NULL pointer error when consuming a web service

2008-06-11 Thread Frex Popo
Dear all,


 
I have an ARS6.3 installed on WIN2000 OS with an Oracle9 DB. The Mid-Tier is 
also installed on the same machine as the Remedy server.


 
I am attempting to send some data to the remedy server using a Web Service and 
getting the following error:


 
soapenv:Server.userException

java.lang.NullPointerException



 
I tried to simplify things by using a simple form with a character field. I 
used both the get and create operations and end up with the same error. I 
thought this could be due to some invalid characters either in the data or the 
field names but it wasn't to be.


 
Here is the xml sent to the remedy Web Server:


 

;





soapenv:Server.userException

java.lang.NullPointerException









 

Have you seen this error before?


 
Ah! I am using SOAPSonar to test my Web Service. I used the same client in the 
past to test some SAP Web Service and it worked fine.


 
Many thanks in advance
 
frex
 


  
_ 
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"