2 Replies Latest reply: Jun 30, 2009 5:13 AM by graham - oracle RSS

    java.lang.NumberFormatException Error as invoking SendSMS service

    688143
      Hi,

      I got a strange error as invoking SendSMS service on OCSG 4.1. The error is something about float number, which not exists in the SOAP message at all

      my request looks like:

      <?xml version="1.0" encoding="UTF-8"?>
      <soapenv:Envelope
      xmlns:loc="http://www.csapi.org/schema/parlayx/sms/send/v2_2/local" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:Header>
      <Session soapenv:mustUnderstand="0">
      <SessionId>sessionless</SessionId>
      </Session>
      <wsse:Security soapenv:mustUnderstand="0"
      xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
      >
      <wsse:UsernameToken
      wsu:Id="SecurityToken-55cb04ab-b0ab-49f6-ba5d-f3b1dbc505a1" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
      <wsse:Username>myusername</wsse:Username>
      <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">mypassword</wsse:Password>
      </wsse:UsernameToken>
      </wsse:Security>
      </soapenv:Header>
      <soapenv:Body>
      <loc:sendSms>
      <!--1 or more repetitions:-->
      <loc:addresses>111</loc:addresses>
      <!--Optional:-->
      <loc:senderName>?</loc:senderName>
      <!--Optional:-->
      <loc:charging>
      <description>?</description>
      <!--Optional:-->
      <currency>?</currency>
      <!--Optional:-->
      <amount>?</amount>
      <!--Optional:-->
      <code>?</code>
      </loc:charging>
      <loc:message>?</loc:message>
      <!--Optional:-->
      <loc:receiptRequest>
      <endpoint>?</endpoint>
      <interfaceName>?</interfaceName>
      <correlator>?</correlator>
      </loc:receiptRequest>
      </loc:sendSms>
      </soapenv:Body>
      </soapenv:Envelope>



      the error is

      <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
      <env:Header>
      <ns1:info xmlns:ns1="http://sdp.3pf.hp.com">
      <ns1:UserId>xielebing</ns1:UserId>
      </ns1:info>
      </env:Header>
      <env:Body>
      <env:Fault>
      <faultcode>env:Server</faultcode>
      <faultstring/>
      <detail>
      <bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">java.lang.NumberFormatException
           at java.math.BigDecimal.&lt;init>(BigDecimal.java:368)
           at java.math.BigDecimal.&lt;init>(BigDecimal.java:647)
           at com.bea.xbean.util.XsTypeConverter.lexDecimal(XsTypeConverter.java:161)
           at weblogic.xml.dom.DOMStreamReaderExt.getBigDecimalValue(DOMStreamReaderExt.java:116)
           at com.bea.staxb.runtime.internal.UnmarshalResult.getBigDecimalValue(UnmarshalResult.java:477)
           at com.bea.staxb.runtime.internal.DecimalTypeConverter.getObject(DecimalTypeConverter.java:30)
           at com.bea.staxb.runtime.internal.BaseSimpleTypeConverter.unmarshal(BaseSimpleTypeConverter.java:39)
           at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.unmarshalElementProperty(LiteralUnmarshalResult.java:167)
           at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.extractAndFillElementProp(LiteralUnmarshalResult.java:136)
           at com.bea.staxb.runtime.internal.ByNameUnmarshaller.deserializeContents(ByNameUnmarshaller.java:51)
           at com.bea.staxb.runtime.internal.AttributeUnmarshaller.unmarshal(AttributeUnmarshaller.java:38)
           at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.unmarshalElementProperty(LiteralUnmarshalResult.java:167)
           at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.extractAndFillElementProp(LiteralUnmarshalResult.java:136)
           at com.bea.staxb.runtime.internal.ByNameUnmarshaller.deserializeContents(ByNameUnmarshaller.java:51)
           at com.bea.staxb.runtime.internal.AttributeUnmarshaller.unmarshal(AttributeUnmarshaller.java:38)
           at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalBindingType(UnmarshalResult.java:179)
           at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalType(UnmarshalResult.java:217)
           at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalElement(UnmarshalResult.java:232)
           at com.bea.staxb.runtime.internal.UnmarshallerImpl.unmarshalElement(UnmarshallerImpl.java:166)
           at weblogic.wsee.bind.runtime.internal.LiteralDeserializerContext.unmarshalElement(LiteralDeserializerContext.java:89)
           at weblogic.wsee.bind.runtime.internal.BaseDeserializerContext.internalDeserializeElement(BaseDeserializerContext.java:182)
           at weblogic.wsee.bind.runtime.internal.BaseDeserializerContext.deserializeElement(BaseDeserializerContext.java:117)
           at weblogic.wsee.codec.soap11.SoapDecoder.decodePart(SoapDecoder.java:494)
           at weblogic.wsee.codec.soap11.SoapDecoder.decodeParams(SoapDecoder.java:287)
           at weblogic.wsee.codec.soap11.SoapDecoder.decodeParts(SoapDecoder.java:172)
           at weblogic.wsee.codec.soap11.SoapDecoder.decode(SoapDecoder.java:125)
           at weblogic.wsee.codec.soap11.SoapCodec.decode(SoapCodec.java:180)
           at weblogic.wsee.ws.dispatch.server.CodecHandler.decode(CodecHandler.java:139)
           at weblogic.wsee.ws.dispatch.server.CodecHandler.handleRequest(CodecHandler.java:40)
           at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:141)
           at weblogic.wsee.ws.dispatch.server.ServerDispatcher.dispatch(ServerDispatcher.java:114)
           at weblogic.wsee.ws.WsSkel.invoke(WsSkel.java:80)
           at weblogic.wsee.server.servlet.SoapProcessor.handlePost(SoapProcessor.java:66)
           at weblogic.wsee.server.servlet.SoapProcessor.process(SoapProcessor.java:44)
           at weblogic.wsee.server.servlet.BaseWSServlet$AuthorizedInvoke.run(BaseWSServlet.java:285)
           at weblogic.wsee.server.servlet.BaseWSServlet.service(BaseWSServlet.java:169)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
           at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
           at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
           at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
           at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
           at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3501)
           at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
           at weblogic.security.service.SecurityManager.runAs(Unknown Source)
           at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2183)
           at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2089)
           at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
           at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
           at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)</bea_fault:stacktrace>
      </detail>
      </env:Fault>
      </env:Body>
      </env:Envelope>