Questions tagged as 'jersey'

1
answer

Remove default message @Pattern JPA

I need a help from you. I'm creating a web service rest in java using jersey and hibernate. To validate the fields reported by the caller I used the JPA @Pattern annotation, as follows: @XmlRootElement public class Cfop { @Pattern(regexp = "[...
asked by 09.11.2016 / 22:12
1
answer

Java / eclipse does not recognize Path GET annotation

I'm developing a Restful application, using eclipse and jersey (Without using framework). But I'm having a problem with annotations like @Path, @GET. When I use these annotations it gives an error in the package line within the class. The fol...
asked by 10.11.2015 / 18:43
2
answers

Values do not serialize on return in REST with Jersey

Good morning everyone, I'm new here and I'm new to Java too and I'm having a problem with the serialization of an object and I do not know what else to do. I'm giving, at least trying to maintain a code here in the company, I have a class bel...
asked by 23.02.2018 / 14:20
1
answer

File upload working by form, but not by postman

I made a webservice with Java Jersey to send files, when I try to send files using an HTML form, it works, however, when I try to send from a client or in the postman, a 500 error is returned with nullpointer. UploadResource @Path("/files")...
asked by 05.08.2017 / 04:07
0
answers

Error converting java project with jersey to maven

I created a project with angular and WS REST using Jersey. It was running normal until I was converting the pro project to Maven. When I try to upload the project, I'm having the following errors:    Missing dependency for constructor public...
asked by 16.06.2017 / 20:35
1
answer

Tomcat 9 - application / json was not found

Greetings, I'm developing a WS in Jersey / Restful which is working correctly on Glassfish but on Tomcat I get the error trying to consume the service.    SEVERE: Mapped exception to response: 500 (Internal Server Error)   javax.ws.rs.WebA...
asked by 08.03.2017 / 22:02
0
answers

Doing a relationship update using REST, Jax-rs, Jersey and Javascript

Well, I got a base to do a simple CRUD from just one table using REST and the others I put into the question, everything worked perfectly, until I put more tables (classes) and relationship between them, after the addition of the relationships s...
asked by 04.01.2017 / 00:40
0
answers

Json returns empty (web service with jersey)

I'm developing a web service using Jersey and Json returned by one of the methods is coming empty. The strangest thing is that the other methods are following the same logic and are working properly. I made a debug and checked that the data is r...
asked by 11.08.2016 / 01:14
0
answers

Jersey API Cache

I'm having second thoughts about the Jersey Cache control. Using QueryParam, does the browser / server risk performing the result cache? Or does this happen only when I work with PathParam within my GET method?     
asked by 14.11.2015 / 15:46
0
answers

Error retrieving object list (CSV) from web service

I'm having an error retrieving a list of CSV objects from the server. I'm using JSefa to serialize and deserialize Java Beans to CSV and implemented a MessageBodyWriter and Reader to do this conversion in the calls .. The detail is that I am...
asked by 06.09.2015 / 00:38