cancel
Showing results for 
Search instead for 
Did you mean: 

Error message : soap fault: java.lang.NumberFormatException

former_member75463
Participant
0 Kudos

Hello,

I have Idoc to SOAP scenario. We I send Idoc, I get following error,

SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: java.lang.NumberFormatException Message being parsed:

To be on safer side, I have populated all the fields with values. I have tested the same scenarion using SOAP UI tool with payload from XI & it works fine.

This is very annoying. Can anybody help?

Regards,

Sunil

Accepted Solutions (0)

Answers (1)

Answers (1)

prateek
Active Contributor
0 Kudos

Are you sure you are providing Numeric input to all Fields which require integral values?

Regards,

Prateek

former_member75463
Participant
0 Kudos

Prateek,

Here is my xml which goes to web service via SOAp adopter,

470 {/ns0:company_code}

Constant {/ns0:userid}

Constant {/ns0:password}

-

1 {/ns0:acklm}

20090821 {/ns0:badat}

1020104878 {/ns0:banfn}

A {/ns0:banst}

NB {/ns0:bsart}

20090821 {/ns0:erdat}

Constant {/ns0:temp1}

Constant {/ns0:temp2}

Constant {/ns0:temp3}

Sunil.Joyous com {/ns0:email}

146474 {/ns0:ernam}

Sunil Joyous {/ns0:name}

{/ns0:zossatb}

-

TEST OSAT {/ns0:afnam}

1 {/ns0:anln1}

1 {/ns0:anln2}

1 {/ns0:aufnr}

1020104878 {/ns0:banfn}

1 {/ns0:bednr}

00010 {/ns0:bnfpo}

NB {/ns0:bsart}

1.000 {/ns0:bsmng}

1.000 {/ns0:bumng}

1 {/ns0:catalog_info}

1 {/ns0:ebakz}

T02 {/ns0:ekgrp}

IZ {/ns0:ekorg}

IZ {/ns0:gsber}

5300642603 {/ns0:infnr}

1 {/ns0:knttp}

1 {/ns0:kostl}

20090812 {/ns0:lfdat}

1 {/ns0:lifnr}

X {/ns0:loekz}

BOX CARDBOARD TELESCOPIC PART {/ns0:maktx}

00441010 {/ns0:matkl}

000000000002647430 {/ns0:matnr}

ST {/ns0:meins}

10.000 {/ns0:menge}

1 {/ns0:mfrpn}

1 {/ns0:peinh}

10.000 {/ns0:preis}

0 {/ns0:pstyp}

X {/ns0:repos}

1 {/ns0:saknr}

1 {/ns0:statu}

470 {/ns0:temp1}

PACKING {/ns0:temp2}

20090821 {/ns0:temp3}

BOX CARDBOARD TELESCOPIC PART {/ns0:txt01}

TRY {/ns0:waers}

1 {/ns0:wempf}

X {/ns0:wepos}

IZ {/ns0:werks}

1 {/ns0:zdegsta}

TEST TEST {/ns0:zsastxt}

F442617301 ,4085212101 ,JL/QSC-70108949 ,OUT ,7064 58 049 , , , , , , , , , , {/ns0:ztanim}

{/ns0:zossatd}

-

1020104878 {/ns0:banfn}

00010 {/ns0:bnfpo}

NB {/ns0:bsart}

470 {/ns0:temp1}

Constant {/ns0:temp2}

Constant {/ns0:temp3}

PO TEXT {/ns0:zmetin1}

1 {/ns0:zmetin10}

1 {/ns0:zmetin2}

1 {/ns0:zmetin3}

1 {/ns0:zmetin4}

1 {/ns0:zmetin5}

Constant {/ns0:zmetin6}

Constant {/ns0:zmetin7}

Constant {/ns0:zmetin8}

Constant {/ns0:zmetin9}

{/ns0:zossatt}

Out of these following fields are of decimal type,

BSMNG, BUMNG, MENGE, PEINH, PREIS

Rest all are of string type.

Edited by: Sunil Joyous on Aug 21, 2009 2:01 PM

Edited by: Sunil Joyous on Aug 21, 2009 2:02 PM

Edited by: Sunil Joyous on Aug 21, 2009 2:02 PM

Former Member
0 Kudos

Hi ,

Check Date time format in all Date Fields:

Should be like this: 2007-02-01T16:32:34.948Z

Refer this:

http://java.sun.com/j2se/1.5.0/docs/api/java/lang/NumberFormatException.html

Please post Idoc name and target Soap structure.

Regards,

Anurag

Edited by: Anurag Gargh on Aug 21, 2009 1:08 PM

Edited by: Anurag Gargh on Aug 21, 2009 1:13 PM

Former Member
0 Kudos

Hi Sunil,

Check for any enumerated values in the data types.It might be due to the restriction because of the enumerated values.

I assume that your wsdl file is an external definition. Please check whether any fields have enumerated values.

Thanks,

Tiny

Edited by: TINY MAMPILLY on Aug 21, 2009 2:08 PM

former_member75463
Participant
0 Kudos

Hi,

It works fine with the same payload from SOAP UI tool.

former_member75463
Participant
0 Kudos

Anurag,

It is a custom Idoc & I have verified all the fields with WSDL file & Idoc. Both in sync in terms of data type & length

former_member75463
Participant
0 Kudos

Hello,

This problem is resolved. There were some leading space for fields which are of decimal types.

I removed the spaces & it worked fine.