aspose file tools*
The moose likes Web Services and the fly likes Returning a String from Server (REST) and getting Errors.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Returning a String from Server (REST) and getting Errors.." Watch "Returning a String from Server (REST) and getting Errors.." New topic
Author

Returning a String from Server (REST) and getting Errors..

pavan aryan
Greenhorn

Joined: Feb 28, 2010
Posts: 15

Hi all,

I am trying to implement @GET variety of REST, the main idea is to return a String with the details of the Customer from Database..



And when i am accessing the resource in IE..with /restserver/gettest it somettimes giving 500 error and some times doing nothing..

the error log at the GlassFish



Help me please guys,
thanks,
Pavan.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12806
    
    5
Why not return a single String - why are you trying to return a String array?

I think thats what the error message is objecting to.

Bill

pavan aryan
Greenhorn

Joined: Feb 28, 2010
Posts: 15
i thought string array will be more effective, so no way of doing with string array.
-pavan.
 
Consider Paul's rocket mass heater.
 
subject: Returning a String from Server (REST) and getting Errors..