aspose file tools*
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Unable to return a two dimensional object array. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Unable to return a two dimensional object array." Watch "Unable to return a two dimensional object array." New topic
Author

Unable to return a two dimensional object array.

Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 525
    
    2

Hello All,

I was reading through a post given at "http://forums.oracle.com/forums/thread.jspa?threadID=2151051&tstart=0" and tried it my self, but facing the same issue reported in the thread.

My code is as follows


Before trying to deploy this as a webservice, I tried to run this as a standalone and it is working fine. But after deploying and trying to invoke the service, I see an exception as


and when I tried SOAPUi, I see the SOAP response being truncated abrubtly



There is nothing after body.

and in the server logs,


From the server logs, we see that the processing was completed on server side, but while returning back the response, something went wrong and apparently something to do with JAXB marshalling.... but I do not understand the root cause.....

Is it a sin to return an object[] ?

Also, should there be any application exception, I know that it would be nicely wrapped in soap fault. But does this not happen in this kind of situation.


Regards
KumarRaja

Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 525
    
    2

Any advice on this.
Justin Rajasekar
Greenhorn

Joined: Jul 10, 2004
Posts: 2

http://stackoverflow.com/questions/2269494/jaxb-marshalling-objects-with-java-lang-object-field

This should explain the root cause and a solution to get around it.


Justin Rajasekar<br />-------------------<br />SCJP, SCWCD, SCBCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to return a two dimensional object array.