Maximo List Archive

This is an archive of the Maximo Yahoo Community. The content of this pages may be a sometimes obsolete so please check post dates.
Thanks to the community owner Christopher Wanko for providing the content.



SOAP Query - error when incident has an attachment,

From: Matt (2011-07-22 13:33)

Hi,
I have set up webservices and can create tickets. If I query the ticket it works fine,... however, if the incident has an attachment I get an error,..
I have the docklinks object added to my incident object and can create incidents with attachments,.. but not query them,..
Anyone else had an issue querying incidents with attachments?... I get this error,;
Any help would be appreciated,.. thanks,
soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault xmlns:axis2ns910="http://schemas.xmlsoap.org/soap/envelope/">
<faultcode>axis2ns910:Server</faultcode>
<faultstring>; nested exception is: java.lang.NullPointerException</faultstring>
<detail>
<Exception>org.apache.axis2.AxisFault: ; nested exception is: java.lang.NullPointerException; nested exception is:
com.ibm.ejs.container.UnknownLocalException: ; nested exception is: java.lang.NullPointerException
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:385)
at psdi.iface.webservices.SoapFault.makeSoapFault(SoapFault.java:57)
at psdi.iface.webservices.MOSWebService.processDocument(MOSWebService.java:179)
at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:83)
at org.apache.axis2.receivers.AbstractInOutSync


From: Fazal M Feroze (2011-07-23 22:18)

Hi Matt,
its looks like incorrect XML issue.. i.e - java.lang.NullPointerException ( Mandatory remote variable, shows null value)
quick question
1) what are Parameters you passing while creating SR  and how? ( method calls / direct XML)
2) Which Language Java /Perl
3) Appreciate if you can attached the code ( complete ZIP)  to my email address - fazalmf@yahoo.com
4) My recommendation is use SOAP UI (Trial) or Eclipse WSDL Explorer  ( download Java EE).. this tool helps you verify the remote WSDL calls.
Thanks & Regards
- Fazal
________________________________
From: Matt <mtt_stll@yahoo.co.uk>
To: MAXIMO@yahoogroups.com
Sent: Friday, July 22, 2011 7:03 PM
Subject: [MAXIMO List] SOAP Query - error when incident has an attachment,
 
Hi,
I have set up webservices and can create tickets. If I query the ticket it works fine,... however, if the incident has an attachment I get an error,..
I have the docklinks object added to my incident object and can create incidents with attachments,.. but not query them,..
Anyone else had an issue querying incidents with attachments?... I get this error,;
Any help would be appreciated,.. thanks,
soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault xmlns:axis2ns910="http://schemas.xmlsoap.org/soap/envelope/">
<faultcode>axis2ns910:Server</faultcode>
<faultstring>; nested exception is: java.lang.NullPointerException</faultstring>
<detail>
<Exception>org.apache.axis2.AxisFault: ; nested exception is: java.lang.NullPointerException; nested exception is:
com.ibm.ejs.container.UnknownLocalException: ; nested exception is: java.lang.NullPointerException
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:385)
at psdi.iface.webservices.SoapFault.makeSoapFault(SoapFault.java:57)
at psdi.iface.webservices.MOSWebService.processDocument(MOSWebService.java:179)
at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:83)
at org.apache.axis2.receivers.AbstractInOutSync


From: Matt (2011-07-25 10:02)

Hi,
Thanks for the response,..
I'm pretty sure I have now figured out what was wrong,... I had missed the 'DOCINFO' object from the object structure and only had 'DOCLINKS'... so when creating a ticket with an attachment it appeared to work ok, but was obviously missing some vital data in the DOCINFO table.
Then to fix the 'broken' tickets, I had to reattach any attachments which were previously added,
I can now attach and query the tickets successfully,...
Thanks,
--- In MAXIMO@yahoogroups.com, Fazal M Feroze <fazalmf@...> wrote:
>
> Hi Matt,
>
> its looks like incorrect XML issue.. i.e - java.lang.NullPointerException ( Mandatory remote variable, shows null value)
>
>
> quick question
> 1) what are Parameters you passing while creating SR  and how? ( method calls / direct XML)
> 2) Which Language Java /Perl
> 3) Appreciate if you can attached the code ( complete ZIP)  to my email address - fazalmf@...
> 4) My recommendation is use SOAP UI (Trial) or Eclipse WSDL Explorer  ( download Java EE).. this tool helps you verify the remote WSDL calls.
>
>
> Thanks & Regards
>
> - Fazal
>
>
>
>
> ________________________________
> From: Matt <mtt_stll@...>
> To: MAXIMO@yahoogroups.com
> Sent: Friday, July 22, 2011 7:03 PM
> Subject: [MAXIMO List] SOAP Query - error when incident has an attachment,
>
>
>  
> Hi,
>
> I have set up webservices and can create tickets. If I query the ticket it works fine,... however, if the incident has an attachment I get an error,..
>
> I have the docklinks object added to my incident object and can create incidents with attachments,.. but not query them,..
>
> Anyone else had an issue querying incidents with attachments?... I get this error,;
>
> Any help would be appreciated,.. thanks,
>
> soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <soapenv:Body>
> <soapenv:Fault xmlns:axis2ns910="http://schemas.xmlsoap.org/soap/envelope/">
> <faultcode>axis2ns910:Server</faultcode>
> <faultstring>; nested exception is: java.lang.NullPointerException</faultstring>
> <detail>
> <Exception>org.apache.axis2.AxisFault: ; nested exception is: java.lang.NullPointerException; nested exception is:
> com.ibm.ejs.container.UnknownLocalException: ; nested exception is: java.lang.NullPointerException
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:385)
> at psdi.iface.webservices.SoapFault.makeSoapFault(SoapFault.java:57)
> at psdi.iface.webservices.MOSWebService.processDocument(MOSWebService.java:179)
> at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:618)
> at org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:83)
> at org.apache.axis2.receivers.AbstractInOutSync
>
>
>
>
>
>