[#13366] - Publishing using the Wizard: NullPointerException

Category:
Bug report
Priority:
Immediate
Status:
Feedback Requested
Project: Severity:
Block
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:
0

When publishing a report book using the publish wizard, there is a null pointer exception each and every time. The exception happens on the "select resources to publish" screen.

java.lang.NullPointerException
at com.jaspersoft.studio.server.publish.imp.ImpJRXML.findFile(ImpJRXML.java:106)
at com.jaspersoft.studio.server.publish.imp.ImpJRXML.publish(ImpJRXML.java:100)
at com.jaspersoft.studio.server.publish.JrxmlPublishContributor.publishParts(JrxmlPublishContributor.java:138)
at com.jaspersoft.studio.server.publish.JrxmlPublishContributor.publishJrxml(JrxmlPublishContributor.java:125)
at com.jaspersoft.studio.server.publish.JrxmlPublishContributor.publishJrxml(JrxmlPublishContributor.java:81)
at com.jaspersoft.studio.server.publish.FindResources.findResources(FindResources.java:99)
at com.jaspersoft.studio.server.publish.FindResources.find(FindResources.java:41)
at com.jaspersoft.studio.server.publish.wizard.Publish2ServerWizard$2.run(Publish2ServerWizard.java:260)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:436)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:352)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1033)
at com.jaspersoft.studio.server.publish.wizard.Publish2ServerWizard.doFindDependentResources(Publish2ServerWizard.java:256)
at com.jaspersoft.studio.server.publish.wizard.Publish2ServerWizard$1$1.run(Publish2ServerWizard.java:204)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4988)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4510)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:823)
at org.eclipse.jface.window.Window.open(Window.java:799)
at org.eclipse.ui.internal.handlers.WizardHandler$Export.executeHandler(WizardHandler.java:103)
at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:280)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:283)
at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:97)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:319)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:253)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:173)
at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:488)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:487)
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:389)
at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:142)
at org.eclipse.ui.internal.actions.CommandAction.run(CommandAction.java:152)
at org.eclipse.ui.actions.ExportResourcesAction.run(ExportResourcesAction.java:121)
at org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:171)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:579)
at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:413)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5745)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1427)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:5013)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4507)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1157)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:153)
at com.jaspersoft.studio.rcp.intro.Application.start(Application.java:94)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)

v6.16.0
ck_4's picture
2
Joined: Feb 7 2019 - 4:27am
Last seen: 5 months 1 day ago

1 Comment:

#1
  • Status:New» Feedback Requested

Hi can you please provide additional details on the steps you are performing?
I just gave it a try into the latest Jaspersoft Studio 6.17.0 and I could not reproduce your issue.

I can see some errors like "org.apache.http.client.HttpResponseException: status code: 404, reason phrase: resource.not.found" but some of these are caused by the internal interaction through the JRS API.
I have not experienced any NPE.

Can you please provide more information about the current version of JRS you are try to publish to? Are you using the JSS standalone version?
It would be nice if you can register a screencast of the problem while you reproduce it. Thanks!

Best regards,
Massimo.

Feedback