Jump to content

Error while trying to publish to JasperReports Server


nathan.shelby

Recommended Posts

I've been tasked with changing the type of a parameter for one of our Jaspersoft reports.  When I change it from an Integer to a String, I am prompted with a modal that asks, "Do you want to publish this report to JasperReports Server?"  When I hit Yes, I get the following error:

 

org.apache.http.client.HttpResponseException: illegal.parameter.value.error
The value "/public/DataSources/Snowflake" for parameter "resourceReference.uri" is invalid.
    at com.jaspersoft.studio.server.protocol.restv2.RESTv2ExceptionHandler.handleErrorDescriptor(RESTv2ExceptionHandler.java:129)
    at com.jaspersoft.studio.server.protocol.restv2.RESTv2ExceptionHandler.handleException(RESTv2ExceptionHandler.java:62)
    at com.jaspersoft.studio.server.protocol.restv2.ARestV2ConnectionJersey.toObj(ARestV2ConnectionJersey.java:49)
    at com.jaspersoft.studio.server.protocol.restv2.RestV2ConnectionJersey.addOrModifyResource(RestV2ConnectionJersey.java:643)
    at com.jaspersoft.studio.server.protocol.ProxyConnection.addOrModifyResource(ProxyConnection.java:350)
    at com.jaspersoft.studio.server.publish.Publish.publishResources(Publish.java:191)
    at com.jaspersoft.studio.server.publish.Publish.publish(Publish.java:67)
    at com.jaspersoft.studio.server.publish.action.JrxmlPublishAction.publishReportUnit(JrxmlPublishAction.java:120)
    at com.jaspersoft.studio.server.publish.action.JrxmlPublishAction$2.run(JrxmlPublishAction.java:94)
    at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236)
    at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:146)
    at org.eclipse.swt.widgets.Display.syncExec(Display.java:5017)
    at com.jaspersoft.studio.server.publish.action.JrxmlPublishAction.doRun(JrxmlPublishAction.java:91)
    at com.jaspersoft.studio.server.publish.action.JrxmlPublishAction.run(JrxmlPublishAction.java:63)
    at com.jaspersoft.studio.server.editor.JRSEditorContributor.onSave(JRSEditorContributor.java:114)
    at com.jaspersoft.studio.plugin.ExtensionManager.onSave(ExtensionManager.java:763)
    at com.jaspersoft.studio.editor.AbstractJRXMLEditor.lambda$3(AbstractJRXMLEditor.java:688)
    at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236)
    at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:146)
    at org.eclipse.swt.widgets.Display.syncExec(Display.java:5017)
    at com.jaspersoft.studio.editor.AbstractJRXMLEditor.doSave(AbstractJRXMLEditor.java:686)
    at com.jaspersoft.studio.editor.AbstractJRXMLEditor$6.lambda$0(AbstractJRXMLEditor.java:884)
    at org.eclipse.ui.internal.PendingSyncExec.run(PendingSyncExec.java:68)
    at org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:171)
    at org.eclipse.ui.internal.UISynchronizer.lambda$0(UISynchronizer.java:152)
    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:4145)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3812)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1160)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1049)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
    at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:660)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:559)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:154)
    at com.jaspersoft.studio.pro.rcp.JSSProApplication.start(JSSProApplication.java:114)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
    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.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)
 

How do I fix this?

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Try to publish the report  again by click on the Publish icon in the Jasper Studio and then point the parameter to the  correct resource reference.

Tip: Create an Archive folder on the server (with only access by admin role), then copy the folder with the reports you want to update and paste it into Archive. This way, you will have a previous copy of the report for tracking and recovery purposes.

Link to comment
Share on other sites

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...