This week's book giveaway is in the Security forum.
We're giving away four copies of Penetration Testing Basics and have Ric Messier on-line!
See this thread for details.
Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unexpected Null value for literal data

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 and _state in

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="">

And following are the lines which I think generates the proxy

SOAPBlockInfo _bodyBlock = new SOAPBlockInfo(ns1_Input_QNAME);

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,
Murali Bando
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