Questions tagged [resteasy]

A JBoss project that provides various frameworks to help build RESTful web services and Java applications

RESTEasy is a fully certified and portable implementation of the JAX-RS specification.

JAX-RS is a new JCP specification that provides a Java API for RESTful Web Services over the HTTP protocol.

Full details are available at the JBoss RESTEasy site.

2470 questions
1
vote
0 answers

Not able to serialize List to json using resteasy jackson provider and jaxb annotations
I have added resteasy-jackson provider jar in my pom.xml I have one pojo class annotated with jaxb annotations : Request.java @XmlElement public List getListSO() { return listSO; } I have written an resteasy client to access a rest…
rsurve
  • 11
  • 1
1
vote
1 answer

How to Pass Error Code with Message in RestEasy

I am using the following code to send Error message. This is my own error code and custom message. I am sending the message in response. throw new WebApplicationException( Response.status(1002) .header(ae.getMessage(), ae) …
Vishwa
  • 117
  • 1
  • 2
  • 12
1
vote
1 answer

Resteasy GET - JSON in QueryString

I would like to pass JSON arrays and list of JSON objects to Reasteasy GET method in query string. How can I access them in the service method? For example on array, if the parameter name is "employeeId", I would like to pass ?employeeId=[1,2,3]…
Arav Vijay
  • 251
  • 5
  • 13
1
vote
1 answer

Why does the ClientResponseFailure in Resteasy-mobile cause a StackOverflowError? Workaround?

I am currently working on an Android app which uses Resteasy-mobile for the REST(JAXRS) implementation, and Jackson for serialization to and from JSON. The latter is done by Resteasy in the background. Serverside I have a Jersey webservice, also…
NickL
  • 4,258
  • 2
  • 21
  • 38
1
vote
1 answer

Serializing jackson generated classes

I use jackson (via resteasy) to convert json to a Java object. I've only defined an interface for the object and jackson generates the implementation automatically. Great! Now I'm trying to save the object and restore it later. My interface…
Riley Lark
  • 20,660
  • 15
  • 80
  • 128
1
vote
0 answers

Resteasy security, oauth, android Client

I'm building an application which includes both server side components (resteasy) and an Android client. In the Android client I'm making requests to the server using httpclient. To log into Android client I want to use OAuth 2.0. But what I'm the…
Kato
  • 21
  • 1
  • 3
1
vote
1 answer

One method, multiple rest paths

Is it possible to set multiple @Path annotation on the same REST method in Java? Obviously I have tried this however it did not work it failed to compile, but is there some way to do this? Perhaps vie the regular expression? I am using resteasy if…
Boris Horvat
  • 563
  • 2
  • 13
  • 28
1
vote
0 answers

error 404: relatively path did not found my @path paremeter in resteasy webservicers below example

I have Item Class below @XmlRootElement(name = "item") public class Item { private String description; private long price;//setter getter method } Ans ItemList Class @XmlRootElement(name = "listing") @XmlAccessorType(XmlAccessType.FIELD)…
1
vote
1 answer

Ouucre Error:java.io.IOException: invalid header field

I am getting error when i run my application using tomcat 6.0 server... I don't understand what exactly I'm missing? Here, I have developed a resteasy Webservice example in which I have a Studentclass with getters and setters Also I have a…
1
vote
0 answers

Why i m getting Error: java.io.IOException: invalid header field

Hear it's my pojo class for student... public class Student { private int id; private String name; private String address; private String gender; private String emailId; private String contactNo; //setter getter And its i would develop…
1
vote
1 answer

Rest Easy PreProcessInterceptor to Authenticate user through database

I have designed an application with RestEasy. I have used PreProcessInterceptor basically to intercept all the requests and validate the user from databse. Once the validation is successfull, the requests go to the corresponding service api's. So my…
1
vote
1 answer

RestEasy Jettison/Jackson customization

I'm trying to use my objects with JAXB annotations for application/json output with my JAX-RS resource. I'm running on JBoss AS7 with RestEasy (both lastest versions - 7.1.1.Final and 2.3.4.Final). The issue is that I would like to customize my JSON…
zdenda.online
  • 2,451
  • 3
  • 23
  • 45
1
vote
1 answer

Reg xml output in RestEasy

I am trying to get an XML output from a restEasy service. And its working fine. The problem is i am not able to see elements which dont have any values. I used @xmlElement in domain class wherever necessary. In Json response, i can see elements with…
Vishwa
  • 117
  • 1
  • 2
  • 12
1
vote
2 answers

JSON response: Spring with JAXB

Tech Stack: Java 1.6, JAXB, Spring 3, JAX-RS (RESTEasy), XSD Hello, I am using Spring with JAX-RS to create RestFul Webservice. Everything is working fine except that the generated responses contain the setters info e.g. { ... "setName":…
adi
  • 1,711
  • 3
  • 29
  • 50
1
vote
0 answers

JBoss Beans @Inject throwing a null exception

I have a bean which is injected in a class which is throwing a null pointer exception. exception org.jboss.resteasy.spi.UnhandledException: java.lang.NullPointerException …
Adnama
  • 172
  • 2
  • 12