-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
javax.ws.rs.ProcessingException: javax.ws.rs.core.Response$Status #11
Comments
Hi, what version of JRS are you using? |
jrs-rest-java-client |
I mean JasperReports server, not REST client. |
Hi Borys Kolesnykov, Thank you for replying I am using aws(Amazon AMI instance) jasper server and my dependencies are as follows javaee-api , reasteasy-JAXRS , jrs-rest-java-client Apart from these i am not using anything |
Maybe, here is some misunderstanding. I would like to know exactly version of your JasperReports server, it can be v4.7.0, v5.0.0, v5.1.0, v5.2.0, v5.5.0 or earlier. I'm talking about server side, not about application where you are using REST client. |
Oh Sorry the server version is Version 5.5.0 |
Hi Borys Kolesnykov, Is any dependecies are missing or i need to do any more configuration |
Currently I'm trying to reproduce this error, but still have no success. Could you give me a link to your jasperserver and some test credentials, if your security policy allows? |
http://ec2-54-214-135-73.us-west-2.compute.amazonaws.com/jasperserver-pro |
Ok, I tried to reproduce error with your server instance but haven't succeed.
But I tried same operation with existed report "/public/Samples/Reports/9g.CustomerDetailReport" and everything works for me. RestClientConfiguration configuration = new RestClientConfiguration("http://ec2-54-214-135-73.us-west-2.compute.amazonaws.com/jasperserver-pro");
JasperserverRestClient client = new JasperserverRestClient(configuration);
OperationResult result = client
.authenticate("demo", "demo")
.reportingService()
.report("/public/Samples/Reports/9g.CustomerDetailReport")
.prepareForRun(ReportOutputFormat.HTML, 1)
.parameter("project_id", "2")
.run();
System.out.println(result.getEntity()); |
Please provide me with full stack trace of the error. |
Thank you sir |
Maybe there is some conflict of libraries in your project and in jrs-rest-client. |
Give me please your email to send an example |
I think i found an error. <dependency>
<groupId>org.glassfish.jersey.containers</groupId>
<!-- if your container implements Servlet API older than 3.0, use "jersey-container-servlet-core" -->
<artifactId>jersey-container-servlet</artifactId>
<version>2.5</version>
</dependency> |
Could you please send me the code you tried, I hope it helps me lot |
I've sent, but firstly try to change dependency. I'm almost sure that it will solve your problem. |
Hi boryskolesnykov, I tried with the example code what you sent , It is working good . But same thing when i use for restful same exception is coming . Please find the attachment as my example code . My environment is JBOSS - 7.1 |
Hi sir , I sent the log and example code as an email to borys.kolesnikov@gmail.com |
Hi RaviTeja457, JBOSS has its own implementation of JAX-RS API (RestEasy) and it conflicts with implementation which is used by jrs-rest-client (Jersey). So it's a bug and it will be fixed as soon as possible. But you can use Tomcat, it doesn't contain any implementations of Java EE specifications and it won't conflict with jrs-rest-client. |
Hi RaviTeja457, JBoss uses old version of JAX-RS API, but jrs-rest-client uses a new one. So, to resolve this conflict you need to exclude an old version from JBoss, you can do it by adding <jboss-deployment-structure>
<deployment>
<exclusions>
<!-- Exclude JAVA EE of JBOSS (javax.ws..) => Add dependency javax.annotation -->
<module name="javaee.api" />
<!-- Exclude RestEasy conflict (javax.ws.rs.ext.RunDelegate) -->
<module name="javax.ws.rs.api"/>
<module name="org.codehaus.jackson.jackson-core-asl" />
<module name="org.jboss.resteasy.resteasy-atom-provider" />
<module name="org.jboss.resteasy.resteasy-cdi" />
<module name="org.jboss.resteasy.resteasy-crypto" />
<module name="org.jboss.resteasy.resteasy-jackson-provider" />
<module name="org.jboss.resteasy.resteasy-jaxb-provider" />
<module name="org.jboss.resteasy.resteasy-jaxrs" />
<module name="org.jboss.resteasy.resteasy-jettison-provider" />
<module name="org.jboss.resteasy.resteasy-jsapi" />
<module name="org.jboss.resteasy.resteasy-json-p-provider" />
<module name="org.jboss.resteasy.resteasy-multipart-provider" />
<module name="org.jboss.resteasy.resteasy-validator-provider-11" />
<module name="org.jboss.resteasy.resteasy-yaml-provider" />
</exclusions>
</deployment>
</jboss-deployment-structure> Also, I've sent you a small demo web application as an example on your email. |
Hi
I added the dependency and repositories as follows
com.jaspersoft jrs-rest-java-client 5.5.0-SNAPSHOTAnd my code is as below
RestClientConfiguration configuration = new RestClientConfiguration("http://localhost:8080/jasperserver");
JasperserverRestClient client = new JasperserverRestClient(configuration);
OperationResult result = client
.authenticate("superuser", "ariveguru")
.reportingService()
.report("/reports/samples/Cascading_multi_select_report")
.prepareForRun(ReportOutputFormat.HTML, 1)
.parameter("project_id", "2")
.run();
result.getEntity();
I got the following error ,Please help me out
javax.ws.rs.ProcessingException: javax.ws.rs.core.Response$Status$Family.familyOf(I)Ljavax/ws/rs/core/Response$Status$Family;
The text was updated successfully, but these errors were encountered: