cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP fault message : java.lang.NullPointerException

Former Member
0 Kudos

Hi,

After calling the Webservice from XI, got error message as

java.lang.NullPointerException

What might be the problem.

Thanks in Advance!

Regards,

Sreenivas.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

solved..problem with webservice structure

Former Member
0 Kudos

Hi Srinivas,

Could you please explain me in detail how your issue got resolved? i also got the same problem. what kind of changes you have done in Webservice

Regards

Amar

Former Member
0 Kudos

Hi sreenivas,

As you see the error the SOAP fault message is throwing , it is wrong format of data is getting posted into the webservice. Please check the data and how the data must get posted into webservice.

Regards,

Arijit.

Former Member
0 Kudos

Hi,

You can go thru this link it might help you .http://www.jitterbit.com/Wiki/index.php?title=How_To_Transform_from_a_Web_Service_Response_to_an_XML_Document

Regards,

Arijit Guha

Former Member
0 Kudos

Hi,

As the error shows as NullPointerException it is quite obvious that values are not getting passed as parameters.Please check the config of the SOAP adapter as well as payload whether datas are passed correctly or not.

Thanks and regards,

Arijit Guha.

Former Member
0 Kudos

Hello,

Thanks for the reply.

SOAP adater is configured correctly with all parameters.

Is there any way to find out, which fileds are mandatory in Webservice structure. Currently data is passed to few structures, not for all.

Regards,

Sreenivas.

Shabarish_Nair
Active Contributor
0 Kudos

>

> Hello,

>

> Thanks for the reply.

>

> SOAP adater is configured correctly with all parameters.

>

> Is there any way to find out, which fileds are mandatory in Webservice structure. Currently data is passed to few structures, not for all.

>

> Regards,

> Sreenivas.

you should be able to find that information in your mapping itself (in case a graphical). Look into the occurrences of the fields. If it is having the minimum occurrence as 1 then it is mandatory.

But i dont think the null pointer issue is to do with the data but rather the adapter configuration.

So look into the blog i have mentioned and confirm the parameters you have given.

Also make sure the adapter is updated in the cache.

do a complete cache refresh via SXI_CACHE and also a refresh of the CPA cache - http:// <server>:<port> /CPACache/refresh?mode=delta|full

Former Member
0 Kudos

Hello Shabarish,

Thanks for the reply.

Adaper is configured correctly.

When i checked in RWB for SOAP receiver adapter, i found error message as

SOAP: response message contains an error Application/UNKNOWN/APPLICATION_ERROR - application fault

Regards,

Sreenivas.

former_member181962
Active Contributor
0 Kudos

Search the forum with yoru error message.

Regards,

Ravi

Former Member
0 Kudos

Hi,

"SOAP: response message contains an error Application/UNKNOWN/APPLICATION_ERROR - application fault

"

I didnt find any related information on this type of error. Is it problem with request message(INPUT) or with response?

Regards,

Sreenivas.

Former Member
0 Kudos

Hi,

unknown application error in response , means it could be problem due to wrong format of the response. Response does not match with the parameters you have configured in your soap adapter. Means, version of soap , binding etc...

Regards,

Reyaz

Former Member
0 Kudos

Hi,

In RWB, am getting SOAP resopnse error

and in SXMB_MONI, getting inbound message as

************************************

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

- <!-- Inbound Message

-->

- <INVALID_INPUT>

<description>java.lang.NullPointerException</description>

</INVALID_INPUT>

************************************

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

- <!-- Request Message Mapping

-->

- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30"

xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">

<SAP:Category>Application</SAP:Category>

<SAP:Code area="UNKNOWN">APPLICATION_ERROR</SAP:Code>

<SAP:P1 />

<SAP:P2 />

<SAP:P3 />

<SAP:P4 />

<SAP:AdditionalText>application fault</SAP:AdditionalText>

<SAP:ApplicationFaultMessage namespace="">INVALID_INPUT</SAP:ApplicationFaultMessage>

<SAP:Stack />

<SAP:Retry>M</SAP:Retry>

</SAP:Error>

***********************************

Regards,

Sreenivas.

former_member181962
Active Contributor
0 Kudos

Check if the sap note 871959 provides you some direction.

Also check the following discussions:

Regards,

Ravi Kanth Talagana

Former Member
0 Kudos

Hi,

It seems, this is problem with request it self. Co ordinate with the people handling the webservice. Compare the parameters you have give in your soap adater and they have given in webservice definition.

Regards,

Reyaz

Shabarish_Nair
Active Contributor
0 Kudos

Please make sure you have given the right parameters in the SOAP adapter - /people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009