Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Mythili Sathya
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mythili Sathya
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic