File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 12755
    
    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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Returning a String from Server (REST) and getting Errors..
 
Similar Threads
exceptions occurring here
Stripes, Spring, JPA, Hibernate, struggling to tie them all together
Problem with classes from included jar libraries
Problems Conectiong Database to a WebApplication - Unable to get connection, DataSource invalid
how to send bean objct to another jsp