Jump to content
  • Unable to Connect to JasperReports Server Pro


    nicholas.may
    Assigned User chicuslavic
    CategoryBug report
    PriorityUrgent
    ReproducibilityAlways
    ResolutionNo Change Required
    SeverityMajor
    StatusClosed
    Versionv5.2

    Jaspersoft Support,

     

    I downloaded Jaspersoft Studio Professional 5.2 and installed it on my windows 7 laptop. When I try to connect to our JasperReports Server (vers 5.2) it gives a null pointer exception. See below for details.

     

    Note: I installed the latest 5.2 community plugin of Jaspersoft Studio in Eclipse and was able to connect to our JasperReports Server just fine.

     

    Regards,

    -Nick-

     

     

    Additional Information:

     

    Severity: 2

    Version: 5.2

    Platforms:

    Jaspersoft Studio: Windows 7 Laptop

    Jasper Server: Linux Server

     

    Installed Jaspersoft Studio Professional using the following executable:

    jaspersoftstudiopro-5.2.0-windows-installer-x86_64.exe

     

    URL to Access Jasper Server: http://{host}:8080/jasperserver-pro

     

    Server Connection Info:

    URL provided in the Studio ‘Server Profile Wizard’ (I have tried the following, all getting the same result):

    http://{host}:8080/jasperserver-pro

    http://{host}:8080/jasperserver-pro/

    http://{host}:8080/jasperserver-pro/services/repository (tried this particular path since it is the path used in the ‘Help’ tutorial which describes connecting to a server)

     

    Organization: left the field blank

    User: superuser

    Password: (the standard superuser password)

     

    When you press ‘Test Connection’ or ‘Finish’ a window pops up which says:

     

    “Exception, if you want to see more information look into the details.

    Reason: ; nested exception is: java.lang.NullPointerException”

     

    Error Details:

    ----------------------------------------------------------------------------------------------

    AxisFault

    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException

    faultSubcode:

    faultString: java.lang.NullPointerException

    faultActor:

    faultNode:

    faultDetail:

    {http://xml.apache.org/axis/}stackTrace:java.lang.NullPointerException

    at org.apache.axis.transport.http.CommonsHTTPSender.invoke(CommonsHTTPSender.java:193)

    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:339)

    at com.jaspersoft.ireport.jasperserver.ws.WSClient.getVersion(WSClient.java:152)

    at com.jaspersoft.studio.server.protocol.soap.SoapConnection.getServerInfo(SoapConnection.java:29)

    at com.jaspersoft.studio.server.protocol.soap.SoapConnection.connect(SoapConnection.java:39)

    at com.jaspersoft.studio.server.protocol.ProxyConnection.connect(ProxyConnection.java:25)

    at com.jaspersoft.studio.server.WSClientHelper.checkConnection(WSClientHelper.java:75)

    at com.jaspersoft.studio.server.wizard.ServerProfileWizard.connect(ServerProfileWizard.java:106)

    at com.jaspersoft.studio.server.wizard.ServerProfileWizard.access$1(ServerProfileWizard.java:100)

    at com.jaspersoft.studio.server.wizard.ServerProfileWizard$2.run(ServerProfileWizard.java:80)

    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

     

    {http://xml.apache.org/axis/}hostname:{host name of my local laptop}

     

    java.lang.NullPointerException

    at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)

    at org.apache.axis.transport.http.CommonsHTTPSender.invoke(CommonsHTTPSender.java:315)

    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:339)

    at com.jaspersoft.ireport.jasperserver.ws.WSClient.getVersion(WSClient.java:152)

    at com.jaspersoft.studio.server.protocol.soap.SoapConnection.getServerInfo(SoapConnection.java:29)

    at com.jaspersoft.studio.server.protocol.soap.SoapConnection.connect(SoapConnection.java:39)

    at com.jaspersoft.studio.server.protocol.ProxyConnection.connect(ProxyConnection.java:25)

    at com.jaspersoft.studio.server.WSClientHelper.checkConnection(WSClientHelper.java:75)

    at com.jaspersoft.studio.server.wizard.ServerProfileWizard.connect(ServerProfileWizard.java:106)

    at com.jaspersoft.studio.server.wizard.ServerProfileWizard.access$1(ServerProfileWizard.java:100)

    at com.jaspersoft.studio.server.wizard.ServerProfileWizard$2.run(ServerProfileWizard.java:80)

    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

    Caused by: java.lang.NullPointerException

    at org.apache.axis.transport.http.CommonsHTTPSender.invoke(CommonsHTTPSender.java:193)

    ... 19 more

     

    -----------------------------------------------------------------------------------------------------------------------

     

    Note that the error details references {host name of my local laptop}, which is the hostname of the laptop where Jaspersoft Studio is installed. Just thought I’d mention that since I thought it was strange that it was in the exception details.

     

     

     

    Nicholas May

     

     

     



    User Feedback

    Recommended Comments

    Thank you for the reply. As I mentioned in my original post, if we install the community plugin of JSS 5.2 into the latest version of eclipse then we can connect to the same JasperReports server just fine. I may be looking at it incorrectly, but to me that rules out any possible networking/access issue on our side.

     

    What additional details can I provide? Is there a log file somewhere that I can upload?

    Link to comment
    Share on other sites

    there is a log file in your workspace/.metadata/ directory

     

    tell me if you have some proxy settings, if you changed some settings in Advanced section in JRS server configuration dialog

    if server is local or remote

     

    java -version

    Link to comment
    Share on other sites

    My team was given access to a snapshot version of JSS (jaspersoftstudiopro-5.3.0.SNAPSHOT.v201309031430-windows-installer-x86_64). The problem seems to be fixed in this version as we can connect to the server right out of the box.

     

    Just to clarify, the JasperReports Server is hosted on a different machine than JSS. I had to remove the host names in my original post and I can see how it wasn't very clear where the server was located.

     

    Link to comment
    Share on other sites

    we tested on JSS CE and PRO 5.2 with JRS 5.2 win7 64 bit, and connection works, nobody is complaining about this, you are first

     

    from the stacktrace I can't figure it out what the problem is

    Link to comment
    Share on other sites

    chicuslavic,

     

    Thanks again for looking into the issue further. As I mentioned yesterday, the issue seems to have been fixed in the 5.3-SNAPSHOT version that was provided to us by Jaspersoft. If you would like me to uoload the log file you mentioned before please let me know (I did notice some interesting things in the file...i.e. JSS attempting to connect to the 'macserver' host):

     

    !ENTRY org.eclipse.equinox.p2.transport.ecf 4 1006 2013-09-04 13:59:37.317

    !MESSAGE Unknown Host: http://macserver:8080/jsspro/updates/productrepo_snapshot/content.xml

    !STACK 0

    java.net.UnknownHostException: macserver

     

     

    Anyway, everything seems to be working now for us after the upgrade so as far as I am concerned the issue has been resolved (unless the 5.3 release of JSS Pro will not be ready for another 3-4 months).

    Link to comment
    Share on other sites

    Hi Nick,

    the error related to macserver is not a real issue on your side. JSS self-update mechanism is trying to contact the internal machine (reachable via vpn access) that provides RCP updates.

    This is because those kind of builds are snapshot and supposed to be used internally, especially during testing prior to official release.

    You can silent these error lines by disabling the related update sites from Preferences > Install/Update > Available Software Sites.

    Link to comment
    Share on other sites

    I looked through the log file and due to security restrictions (i.e. corporate policy) I am not sure if I am able to upload the entire log file to a public site (since it contains information about proxy hosts, etc). However, I would be more than willing to email it directly to you.

     

    Concerning the macserver...I didn't realize that the 5.2 and 5.3-SNAPSHOT were writing to the same log file. For some reason I thought they would have different workspaces, but that was a poor assumption on my part. I verified the error was written to the log file after installing the 5.3-SNAPSHOT. Thanks for the info on how to stop those errors from occurring again.

    Link to comment
    Share on other sites

    Changed Priority from Urgent to High

    Changed Severity from Block to Major


    setting the Preferences > General > Network Connections > Active Provider to 'Direct' in stead of 'Native' solved my problem. This however should only work when both Server and Studio are on the same machine. If on different machines, proxy needs to be working in order to reach the machine (unless you add it as 'Proxy Bypass Host' and your corp proxy allows this)
    Link to comment
    Share on other sites

    Changed Priority from High to Urgent

    Changed Status from Assigned to Confirmed


    I have the same problem too. I've download eclipse-jee-kepler-R-win32.zip (eclipse 4.3) and installed Jasper Studio 5.2 from eclipse marketplace. And all been allright till it's given to me new PC with Windows 7 on it. Now i can't connect neither local jasper Server nor one on remote server on our network. I try to update Jasper Studio to 5.5 version but it's failed to connect too.
    Link to comment
    Share on other sites

    I'm resolved this problem like this.

    1) I clear (may be this step unnessasary) .eclipse folder in c:/user/. So do I with folder.

    2) I change proxy type to "Manual" (Window->Preferences->Network Connections) and edit HTTP and HTTPS "Schema". !!!! Attention !!! SOCKS schema MUST BE empty!

    3) Then I'm restarted eclipse from command line (Win-R "cmd") (or from Far command line etc.) with "-clean" option. I.e. "eclipse -clean"

    4) Then I'm added my Jasper Report Server and all worked fine.

    Link to comment
    Share on other sites

    Hi,

    We have JSS 5.5 and are having the same problem with our external Jasper Server. JSS 5.5 works with our internal 5.5 Jasper server but our external 5.2 server it does not. We are behind a corporate proxy but if I put the URL into a web browser (whether local or remote jaspersever) I get same response

     

    'repository

     

    Hi there, this is an AXIS service!

     

    Perhaps there will be a form for invoking the service here...'

     

    Which would indicate to me its getting to the server not problem.

     

    Any ideas

     

    Cheers

     

    RJ

    Link to comment
    Share on other sites

    Hi RJ,

    can you please look in the error log, and maybe attach it here, if you see some slightly different exceptions? Some users have verified problems when connecting to JRS or using data adapters because of the Eclipse Secure Storage where the passwords are supposed to be saved.

     

    Attach log file if you can.

    Thanks.

    Best regards,

    Massimo.

    Link to comment
    Share on other sites

    Hi,

     

    The JSS is now not connecting to our primary Jasper server - we are getting to the same error. Am not that impressed with JSS, think it needs more work to be a true replacement for iReports. Its not as crisp to use and not as easy and it slow.

     

    We are going back to iReports and will look at JSS again in 6 months hopefully it will be a better and these types of issues have been resolved.

     

    Thanks for your help

     

    RJ

    Link to comment
    Share on other sites

    We had exactly the same problem (actually gave up with previous versions of Studio and went back to iReport) but all that was needed was to change the Active Provider in Network Connections in the Window/Preferences dialog.
    Link to comment
    Share on other sites

    Changed Resolution from Unable to Reproduce to No Change Required

    Changed Status from Confirmed to Closed


    Right now the connection to JRS through SOAP is not enabled by default. It needs to be specified/forced in the Server connection dialog.The standard behavior is to trying connect first via RESTv2, and if not possible fallback to the "old" SOAP mechanism.Closing the bug. Please open a new bug if problems are found in recent JSS versions.
    Link to comment
    Share on other sites


×
×
  • Create New...