Jump to content
Changes to the Jaspersoft community edition download ×
  • Webservice Datasource Troubleshooting


    gnatali
    • Product: Web Service Data Source

    This page contains a list of common issues / misconfigurations using the Jaspersoft WebService Datasource .

    For additional information on this project please refer to the project's Home Page

    WebService Request Issues

    Illegal Character in Request

    If you  are passing in the Url some special chars (like a json string...) you will get the error below. Such character will have to be escaped, this is done automatically if you use the GET Parameters content type in the Webservice Query as explained in the Webservice Datasource Documentation

    net.sf.jasperreports.engine.JRException: Error creating request
                   at com.jaspersoft.webservice.data.util.WebServiceConnector.createRequestForWs(WebServiceConnector.java:174)
                   at com.jaspersoft.webservice.data.util.WebServiceConnector.callWS(WebServiceConnector.java:133)
                   at com.jaspersoft.studio.data.webservice.designer.DesignerWidget.getTreeInputFile(DesignerWidget.java:388)
                   at com.jaspersoft.studio.data.webservice.designer.FieldsArea.loadViewer(FieldsArea.java:175)
                   at com.jaspersoft.studio.data.webservice.designer.FieldsArea.access$0(FieldsArea.java:154)
                   at com.jaspersoft.studio.data.webservice.designer.FieldsArea$1.widgetSelected(FieldsArea.java:133)
                   at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
                   at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
                   at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4362)
                   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113)
                   at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4180)
                   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3769)
                   at org.eclipse.jface.window.Window.runEventLoop(Window.java:827)
                   at org.eclipse.jface.window.Window.open(Window.java:803)
                   at com.jaspersoft.studio.property.dataset.dialog.DatasetAction.run(DatasetAction.java:82)
                   at org.eclipse.jface.action.Action.runWithEvent(Action.java:473)
                   at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595)
                   at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511)
                   at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:462)
                   at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
                   at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4362)
                   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113)
                   at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4180)
                   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3769)
                   at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
                   at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
                   at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
                   at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
                   at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:654)
                   at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
                   at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:598)
                   at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
                   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:134)
                   at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
                   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
                   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
                   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:497)
                   at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
                   at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
                   at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
    Caused by: java.lang.IllegalArgumentException: Illegal character in query at index 40: http://yourDomain.com/rest/?queryString={"jsonParam":{"jsonKey": "jsonVal"}}
                   at java.net.URI.create(URI.java:852)
                   at org.apache.http.client.fluent.Request.Get(Request.java:79)
                   at com.jaspersoft.webservice.data.util.WebServiceConnector.createGetRequest(WebServiceConnector.java:254)
                   at com.jaspersoft.webservice.data.util.WebServiceConnector.createRequestForWs(WebServiceConnector.java:164)
                   ... 44 more
    
    

     


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...