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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 12671
    
    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


Java Resources at www.wbrogden.com
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
Stripes, Spring, JPA, Hibernate, struggling to tie them all together
exceptions occurring here
Problems Conectiong Database to a WebApplication - Unable to get connection, DataSource invalid
Problem with classes from included jar libraries
how to send bean objct to another jsp