Jump to content
We've recently updated our Privacy Statement, available here ×
  • NullPointerException in 6.x versions of Jaspersoft Studio (JSS) when saving or publishing report templates


    Tom C
    • Features: User Interface Version: v7.1, v6.4, v6.3, v6.2, v6.1 Product: Jaspersoft® Studio

    Problem

    Our user is getting the following error when trying to publish a report to TIBCO JasperReports® Server from TIBCO Jaspersoft® Studio:

    [toc]
    !ENTRY org.eclipse.ui 4 0 2018-04-25 10:43:36.980
    
    !MESSAGE Unhandled event loop exception
    
    !STACK 0
    
    org.eclipse.e4.core.di.InjectionException: java.lang.NullPointerException
    
        at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:65)
    
    ......
    
    Caused by: java.lang.NullPointerException
    
        at com.jaspersoft.studio.server.publish.PublishHandler.execute(PublishHandler.java:67)
    
        at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:295)
    
        at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
    
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    
        at java.lang.reflect.Method.invoke(Method.java:498)
    
        at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
    
        ... 36 more

    Users did not have this problem with Jaspersoft® Studio release version 6.0.1. Using any 6.x version after that users were not able to publish their reports. When clicking on publish button the dialogue window never pops up, and users found the above error in the log file. They do not have problem retrieving report templates from JasperReports® Server repository and all their developers have this problem on their Windows machine in the following environment:

    eclipse.buildId=unknown
    
    java.version=1.8.0_121
    
    java.vendor=Oracle Corporation
    
    BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
    
    Command-line arguments:  -os win32 -ws win32 -arch x86_64 -data @noDefault  

    Noticing the error was related to eclipse, users had tried and further discovered that they cannot save modified report templates to workspace. Deleting workspace and restarting Jaspersoft Studio with a fresh workspace, even reinstalling Jaspersoft Studio 6.x, had no effect and problem persisted. Only after moving report template to another location outside workspace (to avoid eclipse managed workspace), users were able to save and publish the report.


    Possible Solution

    User had tried with newly released Jaspersoft Studio 7.1.0 and found out that this NullPointerException has been fixed. Although the origin of the problem is still undetermined, we suggest our users who might encounter similar odd behavior in their environment to try with latest version of Jaspersoft Studio product to see if it can fix this issue. As the last resort and work around, they may also try to edit and save report template in a location outside workspace to overcome this obstacle. In such situation, users should also file a case to report the problem for further investigation.


    TTC-20180514- 1580067


    User Feedback

    Recommended Comments



    Guest
    This is now closed for further comments

×
×
  • Create New...