Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Unexpected Null value for literal data  RSS feed

 
Vikram Kohli
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am using the Jdeveloper 10.1.3. I have generated the web service proxy using the WSDL in Jdeveloper. Now when I am invoking the Web service using proxy, it is throwing the error:-

"Unexpected Null value for literal data".

After debugging, I have seen that error is comming at line

_send((String) _getProperty(ENDPOINT_ADDRESS_PROPERTY), _state); in the MyWS_Stub class of proxy.

where _send is a method in oracle.j2ee.ws.client.StreamingSender and _state in oracle.j2ee.ws.client.StreamingSenderState.

On googling for the same error, I came to know that this error comes when you are not setting the data for the mandatory data items. But I have specified values for the all the mandatroy elements.

Then I have put following lines to check whether SOAP body is getting generated or not as:-

OAPMessageContext smc = (SOAPMessageContext) _state.getMessageContext();
SOAPFactory factory = SOAPFactory.newInstance();
//Get a handle to the SOAP Envelope
SOAPEnvelope se = smc.getMessage().getSOAPPart().getEnvelope();
System.out.println("here i am, Siebel Envelop= " + se.toString());

Which is just printing following lines in log:-
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header/>
<env:Body/>
</env:Envelope>.

And following are the lines which I think generates the proxy

SOAPBlockInfo _bodyBlock = new SOAPBlockInfo(ns1_Input_QNAME);
_bodyBlock.setValue(enroll_Input);
_bodyBlock.setSerializer(myns1_Input_LiteralSerializer);
_request.setBody(_bodyBlock);

Now I am kind of confussed, where the error is and how I can fix it? Can any one help me out in this please, its Urgent.

Thanks in Advance,
Vikram
 
Murali Bando
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As you can see the following exception is thrown ‘unexpected null value for
literal data’, this is due to proxy authentication failure. ...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!