[#5710] - Bug in jasperserver-plugin scheduling ReportSchedulerFacade.java

Category:
Bug report
Priority:
Normal
Status:
New
Project: Severity:
Major
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:

Due to a bug in
iReport-4.5.1-src/jasperserver-plugin/src/com/jaspersoft/ireport/jasperserver/ws/scheduling/ReportSchedulerFacade.java
it is not possible to access the Scheduling Webservice of a jasperserver through this class:

java.lang.NullPointerException

at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:188)
at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
at org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)
at org.apache.axis.client.AxisClient.<init>(AxisClient.java:52)
at org.apache.axis.client.Service.getAxisClient(Service.java:104)
at org.apache.axis.client.Service.<init>(Service.java:144)
at com.jaspersoft.ireport.jasperserver.ws.scheduling.ReportSchedulerServiceLocator.<init>(ReportSchedulerServiceLocator.java:39)
at com.jaspersoft.ireport.jasperserver.ws.scheduling.ReportSchedulerFacade.createServiceStub(ReportSchedulerFacade.java:76)
at com.jaspersoft.ireport.jasperserver.ws.scheduling.ReportSchedulerFacade.<init>(ReportSchedulerFacade.java:63)

The fix is short and simple, here's a patch:

--- ReportSchedulerFacade.java 2012-04-05 17:21:37.779688322 +0200
+++ ReportSchedulerFacade.java.new 2012-04-05 17:21:02.207688723 +0200
@@ -47,7 +47,7 @@
private static final String NAMESPACE = "http://www.jasperforge.org/jasperserver/ws";
private static final String HEADER_LOCALE = "locale";

- private static final String AXIS_CONFIGURATION_RESOURCE = "/com/jaspersoft/jasperserver/ws/scheduling/client-config.wsdd";
+ private static final String AXIS_CONFIGURATION_RESOURCE = "/com/jaspersoft/ireport/jasperserver/ws/scheduling/client-config.wsdd";

private final ReportSchedulerSoapBindingStub service;

zwen's picture
1
Joined: Mar 1 2012 - 4:31am
Last seen: 8 years 3 months ago
Feedback