Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Weird error with byte[] array, trhoug a web service.

807569Aug 16 2006 — edited Aug 23 2006
run-client:
[java] java.rmi.RemoteException: Runtime exception; nested exception is:
[java] error de deserializaci�n: Error de an�lisis XML: com.sun.xml.rpc
.sp.ParseException:1: com.sun.xml.rpc.sp/P-051 8
[java] at com.sun.xml.rpc.client.StreamingSender._handleRuntimeExceptio
nInSend(StreamingSender.java:331)
[java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.
java:313)
[java] at staticstub.Service1Soap_Stub.gstrDesEncriptar(Service1Soap_St
ub.java:171)
[java] at staticstub.Service1Client.desencriptar(Unknown Source)
[java] at staticstub.Service1Client.init(Unknown Source)
[java] at staticstub.Service1Client.main(Unknown Source)



If anyone have any idea about this error, i dont know why is this happening, but i get the error only when i send a byte array longer than 4 or 5, the method im calling its from a .wsdl file that i use to encrip a string, encription works, but when it comes to desencription, i get and error, so i readed the byte and i saw was a long array like the example below, so when i try sending a smaller array of bytes it worked fine returnimg me some string(off course was any trash).

ie.
//this works fine
byte[] byteArray = new byte[]{-120,10,0};
byte[] byteArray = new byte[]{-101,10,0,12};
byte[] byteArray = new byte[]{-120,125,12};
...
//this does not work (give me the error i paste up)
byte[] byteArray = new byte[]{-120,10,0,25,12,14,25,100,-120,125,12};
...
//this metod supose to return me a String
 serv.gstrDesEncriptar(byteArray);
i hope u can point me to any direccion from where this error migh come from , is it the wsdl?? this one works fine in .net, is it my implementation??, or is somethink with java programing, if u need complete source code or the .wsdl file plz tell me, thank u very much and i hope u can help me here, im turning crazy. have spended a lot of time on it. thxs.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 20 2006
Added on Aug 16 2006
4 comments
267 views