Jump to content
We've recently updated our Privacy Statement, available here ×

Error JasperReport Server Connection


sossaluis
Go to solution Solved by Friendly User,

Recommended Posts

Hi,

I have an error connecting Jaspersoft Studio with JasperReport Server in a remote server. With a JasperReport Server in locallhost I dont have any error.

This is the detail error:

org.glassfish.jersey.message.internal.MessageBodyProviderNotFoundException: MessageBodyReader not found for media type=text/html, type=class com.jaspersoft.jasperserver.dto.serverinfo.ServerInfo, genericType=class com.jaspersoft.jasperserver.dto.serverinfo.ServerInfo.at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$TerminalReaderInterceptor.aroundReadFrom(ReaderInterceptorExecutor.java:230)at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor.proceed(ReaderInterceptorExecutor.java:154)at org.glassfish.jersey.message.internal.MessageBodyFactory.readFrom(MessageBodyFactory.java:1124)at org.glassfish.jersey.message.internal.InboundMessageContext.readEntity(InboundMessageContext.java:851)at org.glassfish.jersey.message.internal.InboundMessageContext.readEntity(InboundMessageContext.java:783)at org.glassfish.jersey.client.ClientResponse.readEntity(ClientResponse.java:326)at org.glassfish.jersey.client.InboundJaxrsResponse$1.call(InboundJaxrsResponse.java:111)at org.glassfish.jersey.internal.Errors.process(Errors.java:315)at org.glassfish.jersey.internal.Errors.process(Errors.java:297)at org.glassfish.jersey.internal.Errors.process(Errors.java:228)at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:399)at org.glassfish.jersey.client.InboundJaxrsResponse.readEntity(InboundJaxrsResponse.java:108)at com.jaspersoft.studio.server.protocol.restv2.ARestV2ConnectionJersey.toObj(ARestV2ConnectionJersey.java:45)at com.jaspersoft.studio.server.protocol.restv2.RestV2ConnectionJersey.getServerInfo(RestV2ConnectionJersey.java:250)at com.jaspersoft.studio.server.protocol.restv2.RestV2ConnectionJersey.connect(RestV2ConnectionJersey.java:231)at com.jaspersoft.studio.server.protocol.ProxyConnection.connect(ProxyConnection.java:102)at com.jaspersoft.studio.server.WSClientHelper.checkConnection(WSClientHelper.java:92)at com.jaspersoft.studio.server.wizard.ServerProfileWizard.connect(ServerProfileWizard.java:94)at com.jaspersoft.studio.server.wizard.ServerProfileWizard.access$1(ServerProfileWizard.java:89)at com.jaspersoft.studio.server.wizard.ServerProfileWizard$2.run(ServerProfileWizard.java:68)at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)[/code]
My Jaspersoft Studio is on 6.4.0 version and JasperReport Server is on 6.2.1 version.
 
Thanks for your comments.
Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

It looks as if the web client cannot establish connection to the server and does not get back the response with server information from the connection attempt. What exactly is the remote server in this case? Is your server behind a proxy? Are you able to do Test Connection successfully in the server properties? Can you try to do Advanced Settings -> Use SOAP Only to see if you get a more meaningful error than this one?

Link to comment
Share on other sites

First, have you tested if you can actually connect to the remote JasperReports Server from a web server: http://[ip address of server]:8080/jasperserver/

Also, try the following:
From Jaspersoft Studio server connection profile wizard, click on "Advanced Settings" and select "JasperReports 6.2.1" as JasperReports Library Version.

Link to comment
Share on other sites

Hi,

The JasperReport Server is on cloud9 and the URL http://olocis-juanjfigueira.c9users.io:8081/jasperserver/ and I can to do loging on web browser.

Also, I can execute reports from Symfony in a PHP application, with PHP Client provider by Jasper Community.

I have done the select of the correct version 6.2.1 in advanced setting.

I selected "Use SOAP protocol only" and advanced and this was the error:

AxisFault
 faultSubcode: 
 faultString: (404)Not Found
 faultActor: 
 faultNode: 
 faultDetail: 
{}:return code:  404
Cannot POST /_user_content/authorize?redirect=http%3A%2F%2Folocis-juanjfigueira.c9users.io%3A8081%2Fjasperserver%2Fservices%2Frepository
 
 
(404)Not Found
at com.jaspersoft.ireport.jasperserver.ws.http.JSSCommonsHTTPSender$3.handleResponse(JSSCommonsHTTPSender.java:246)
at com.jaspersoft.ireport.jasperserver.ws.http.JSSCommonsHTTPSender$3.handleResponse(JSSCommonsHTTPSender.java:1)
at org.apache.http.client.fluent.Response.handleResponse(Response.java:90)
at com.jaspersoft.ireport.jasperserver.ws.http.JSSCommonsHTTPSender.invoke(JSSCommonsHTTPSender.java:222)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at com.jaspersoft.ireport.jasperserver.ws.RepositorySoapBindingStub.list(RepositorySoapBindingStub.java:328)
at com.jaspersoft.ireport.jasperserver.ws.WSClient.getVersion(WSClient.java:150)
at com.jaspersoft.studio.server.protocol.soap.SoapConnection.getServerInfo(SoapConnection.java:105)
at com.jaspersoft.studio.server.protocol.soap.SoapConnection.connect(SoapConnection.java:146)
at com.jaspersoft.studio.server.protocol.ProxyConnection.connect(ProxyConnection.java:102)
at com.jaspersoft.studio.server.WSClientHelper.checkConnection(WSClientHelper.java:92)
at com.jaspersoft.studio.server.wizard.ServerProfileWizard.connect(ServerProfileWizard.java:94)
at com.jaspersoft.studio.server.wizard.ServerProfileWizard.access$1(ServerProfileWizard.java:89)
at com.jaspersoft.studio.server.wizard.ServerProfileWizard$2.run(ServerProfileWizard.java:68)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
 
Thanks a lot for yours comments

 

 

 

Link to comment
Share on other sites

Hi,



The JasperReport Server is on cloud9 and the URL http://olocis-juanjfigueira.c9users.io:8081/jasperserver/ and I can to do loging on web browser.



Also, I can execute reports from Symfony in a PHP application, with PHP Client provider by Jasper Community.



I have done the select of the correct version 6.2.1 in advanced setting.



I selected "Use SOAP protocol only" and advanced and this was the error:



AxisFault
 faultCode: {http://xml.apache.org/axis/}HTTP
 faultSubcode: 
 faultString: (404)Not Found
 faultActor: 
 faultNode: 
 faultDetail: 
{}:return code:  404
Cannot POST /_user_content/authorize?redirect=http%3A%2F%2Folocis-juanjfigueira.c9users.io%3A8081%2Fjasperserver%2Fservices%2Frepository

{http://xml.apache.org/axis/}HttpErrorCode:404

(404)Not Found
at com.jaspersoft.ireport.jasperserver.ws.http.JSSCommonsHTTPSender$3.handleResponse(JSSCommonsHTTPSender.java:246)
at com.jaspersoft.ireport.jasperserver.ws.http.JSSCommonsHTTPSender$3.handleResponse(JSSCommonsHTTPSender.java:1)
at org.apache.http.client.fluent.Response.handleResponse(Response.java:90)
at com.jaspersoft.ireport.jasperserver.ws.http.JSSCommonsHTTPSender.invoke(JSSCommonsHTTPSender.java:222)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at com.jaspersoft.ireport.jasperserver.ws.RepositorySoapBindingStub.list(RepositorySoapBindingStub.java:328)
at com.jaspersoft.ireport.jasperserver.ws.WSClient.getVersion(WSClient.java:150)
at com.jaspersoft.studio.server.protocol.soap.SoapConnection.getServerInfo(SoapConnection.java:105)
at com.jaspersoft.studio.server.protocol.soap.SoapConnection.connect(SoapConnection.java:146)
at com.jaspersoft.studio.server.protocol.ProxyConnection.connect(ProxyConnection.java:102)
at com.jaspersoft.studio.server.WSClientHelper.checkConnection(WSClientHelper.java:92)
at com.jaspersoft.studio.server.wizard.ServerProfileWizard.connect(ServerProfileWizard.java:94)
at com.jaspersoft.studio.server.wizard.ServerProfileWizard.access$1(ServerProfileWizard.java:89)
at com.jaspersoft.studio.server.wizard.ServerProfileWizard$2.run(ServerProfileWizard.java:68)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
[/code]


Thanks a lot for yours comments

Link to comment
Share on other sites

  • 11 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...