cyr Posted January 17, 2014 Share Posted January 17, 2014 I'm new to JasperStudio 5.5I tried to Upload a new Version of an existing Report. In iReport i worked with Rightclick > Replace with current document.But this isn't available in the studio. So i tried with rightclick > Properties > Report File > Upload from File System > Finish.This didn't work. I got this Exception:java.lang.Exception: The Server has returned an error with code 2 and with the message webservices.error.resourceNotFoundat com.jaspersoft.ireport.jasperserver.ws.WSClient.putReportUnitResource(WSClient.java:565)at com.jaspersoft.ireport.jasperserver.ws.WSClient.modifyReportUnitResource(WSClient.java:513)at com.jaspersoft.studio.server.protocol.soap.SoapConnection.modifyReportUnitResource(SoapConnection.java:94)at com.jaspersoft.studio.server.protocol.ProxyConnection.modifyReportUnitResource(ProxyConnection.java:81)at com.jaspersoft.studio.server.WSClientHelper.saveResource(WSClientHelper.java:254)at com.jaspersoft.studio.server.WSClientHelper.saveResource(WSClientHelper.java:220)at com.jaspersoft.studio.server.action.resource.PropertiesAction.editResource(PropertiesAction.java:120)at com.jaspersoft.studio.server.action.resource.PropertiesAction.access$0(PropertiesAction.java:103)at com.jaspersoft.studio.server.action.resource.PropertiesAction$1.run(PropertiesAction.java:88)at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) I tried with JasperServer 5.2 and Studio 5.5And also with JasperServer 5.5 and Studio 5.5 Is this a Bug or am I missing something? Link to comment Share on other sites More sharing options...
bnee_1 Posted January 24, 2014 Share Posted January 24, 2014 In Jaspersoft Studio 5.5, there is a "Publish Report to JasperReports Server" button in the upper right corner.When you hit that button, a popup window will ask you to select the JasperReports Server (from the JasperReports Server connections you've added in Studio) and location where the report will be published. If you want to replace an existing report with this one, you can select it, and it will be overwritten. Link to comment Share on other sites More sharing options...
cyr Posted January 27, 2014 Author Share Posted January 27, 2014 thx a lot for your answer. i can update subreports the way you described.but when i try to update the Main.jrxml i get a NullPointer:java.lang.NullPointerExceptionat com.jaspersoft.studio.server.publish.imp.AImpObject.addResource(AImpObject.java:70)at com.jaspersoft.studio.server.publish.imp.AImpObject.findFile(AImpObject.java:59)at com.jaspersoft.studio.server.publish.imp.AImpObject.publish(AImpObject.java:97)at com.jaspersoft.studio.server.publish.JrxmlPublishContributor.publishSubreport(JrxmlPublishContributor.java:106)at com.jaspersoft.studio.server.publish.JrxmlPublishContributor.publishJrxml(JrxmlPublishContributor.java:92)at com.jaspersoft.studio.server.publish.JrxmlPublishContributor.publishJrxml(JrxmlPublishContributor.java:67)at com.jaspersoft.studio.server.publish.FindResources.find(FindResources.java:52)at com.jaspersoft.studio.server.publish.wizard.Publish2ServerWizard$2.run(Publish2ServerWizard.java:207)at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1028)at com.jaspersoft.studio.server.publish.wizard.Publish2ServerWizard.doFindDependentResources(Publish2ServerWizard.java:203)at com.jaspersoft.studio.server.publish.wizard.Publish2ServerWizard$1$1.run(Publish2ServerWizard.java:164)at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)at org.eclipse.jface.window.Window.open(Window.java:801)at com.jaspersoft.studio.server.publish.action.JrxmlPublishAction.publishReportUnit(JrxmlPublishAction.java:107)at com.jaspersoft.studio.server.publish.action.JrxmlPublishAction$2.run(JrxmlPublishAction.java:92)at org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:164)at org.eclipse.ui.internal.UISynchronizer$3.run(UISynchronizer.java:158)at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)at com.jaspersoft.studio.pro.rcp.JSSProApplication.start(JSSProApplication.java:112)at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)at java.lang.reflect.Method.invoke(Unknown Source)at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)at org.eclipse.equinox.launcher.Main.run(Main.java:1438) On the Jasperserver the file is named Main.jrxml. On the Client it's named 15001_Periodenzettel_jrxml.jrxml Do I have to rename the Main.jrxml to the name of the report? Link to comment Share on other sites More sharing options...
mertic21 Posted July 9, 2014 Share Posted July 9, 2014 I have the same problem. How did you solve this issue? It happened out of nowhere and was working fine two days ago. Link to comment Share on other sites More sharing options...
jan.carlsson Posted September 3, 2014 Share Posted September 3, 2014 I have the same problem. Anyone??? Link to comment Share on other sites More sharing options...
cyr Posted September 3, 2014 Author Share Posted September 3, 2014 i heard that the JasperStudio is not fully working at the moment. we are using iReport till the new JasperStudio is finished Link to comment Share on other sites More sharing options...
jan.carlsson Posted September 3, 2014 Share Posted September 3, 2014 reinstalled studio and it worked like a charm Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now