Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Java Micro Edition and the fly likes Strange exception that only occurs the first time i call a WS operation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Strange exception that only occurs the first time i call a WS operation" Watch "Strange exception that only occurs the first time i call a WS operation" New topic
Author

Strange exception that only occurs the first time i call a WS operation

Alex Parvan
Ranch Hand

Joined: Dec 10, 2009
Posts: 115
When i call any WS operation from a J2ME client i get this strange exception:
java.rmi.MarshalException: Unexpected Exception : unexpected end of stream

The thing is, the WS receives the info i send, but the client doesn't receive the response. And even more wierd is that this only happens the first time, if i run the client again, it's all ok. I tried using J2SE and that works fine.

I can pass whatever data to whatever WS operation, it's the same story.

This is my J2ME code:


"Quoting yourself is stupid" - Me
 
jQuery in Action, 2nd edition
 
subject: Strange exception that only occurs the first time i call a WS operation
 
Similar Threads
call web service from java interface possible?
WSDL consumption
Client problem for my JAX-WS web service
Dealing with exception messages.
NX: Question on Max's DVD project