• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
pavan aryan
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i thought string array will be more effective, so no way of doing with string array.
-pavan.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic