This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes Web Services : --> There is an error in XML document, Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web Services : --> There is an error in XML document," Watch "Web Services : --> There is an error in XML document," New topic
Author

Web Services : --> There is an error in XML document,

Mythili Sathya
Greenhorn

Joined: Aug 04, 2008
Posts: 10
Am getting the following error :

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at com.blockbuster.onlinesub.central.service.CallWebServices.sendWaitingMessages(CallWebServices.java:237)
at com.blockbuster.onlinesub.central.service.CallWebServices.call(CallWebServices.java:141)
at com.blockbuster.onlinesub.central.service.AllocationService.getPickListForDC(AllocationService.java:117)
at com.blockbuster.onlinesub.central.batch.AllocationPushThread.run(AllocationPushThread.java:35)
Caused by: java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException: Server was unable to read request. --> There is an error in XML document (1, 24668). --> '_', hexadecimal value 0x16, is an invalid character. Line 1, position 24680.
Detail:
<detail>
</detail>; nested exception is:
javax.xml.rpc.soap.SOAPFaultException: Server was unable to read request. --> There is an error in XML document (1, 24668). --> '_', hexadecimal value 0x16, is an invalid character. Line 1, position 24680.
at com.blockbuster.onlinesub.central.webservices.client.DistributionCenterSoap_Stub.procurementFeed(DistributionCenterSoap_Stub.java:246)
... 9 more
Caused by: javax.xml.rpc.soap.SOAPFaultException: Server was unable to read request. --> There is an error in XML document (1, 24668). --> '_', hexadecimal value 0x16, is an invalid character. Line 1, position 24680.
at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:313)
at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)
at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:290)
at com.blockbuster.onlinesub.central.webservices.client.DistributionCenterSoap_Stub.procurementFeed(DistributionCenterSoap_Stub.java:242)
... 9 more

Can any one explain me the problem..........
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41137
    
  45
Welcome to JavaRanch.

Is the request you're sending valid (or at least well-formed) XML? A tool like tcpmon or SOAPUI can show you the XML in transit.


Ping & DNS - my free Android networking tools app
Mythili Sathya
Greenhorn

Joined: Aug 04, 2008
Posts: 10
We have not captured the response from the Webservice....
Any idea which character is not getting recognised......?

So that i can check teh DB values for the same
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41137
    
  45
If you look closely at the error message, it explicitly mentions that the ASCII code of the character is hex 16, which is a control character. (It's not the underscore character, though, as the message seems to imply.)
 
Consider Paul's rocket mass heater.
 
subject: Web Services : --> There is an error in XML document,
 
Similar Threads
Web service client timing out.
java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException: Failed to send request
403 Forbidden Error, while trying to make a webservice call
WS Security Username Token Issue with Weblogic
Problem in Invoking Weblogic Web Service using JAX-RPC