Jump to content
We've recently updated our Privacy Statement, available here ×

kothany

Members
  • Posts

    14
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by kothany

  1. I gave default values ( dummy values ) to the parameters that are associated with input controls. <parameter name="Id" class="java.lang.String" evaluationTime="Early"> <property name="net.sf.jasperreports.http.data.url.parameter" value="gId"/> <defaultValueExpression><![CDATA["DEFAULT_ID"]]></defaultValueExpression> </parameter> <parameter name="userName" class="java.lang.String" evaluationTime="Early"> <property name="net.sf.jasperreports.http.data.url.parameter" value="userName"/> <defaultValueExpression><![CDATA["DEFAULT_U_NAME"]]></defaultValueExpression> </parameter> And when it hits the REST service, the first thing I do is to check the dummy values and return an HTTP status 200 (anything other than 200 you get an exeption). Now you will see the Inpur Controls window, you replace the default (dummy) values with your test data and run. Note: I write the REST services by myself in my case. If you do not have control over the REST, you will have to write one and do the checks and then call the actual REST sevice.
  2. Can you wrapping the key isDone in double quotes and see if it works. "parameters":{ "parameterValues":{ "isDone":"true" } }
  3. Are you able to resolve this issue. Its not causing an issue but I see it in the logs everytime do someting with scheduling the reports.
  4. I tried to schedule a report with rest v2 on JRS 7.1.1 1. url: http://127.0.0.1:8083/jasperserver/rest_v2/jobs 2. body : { "id":null, "version":null, "username":null, "label":"My Report", "description":"Scheduling a report", "creationDate":null, "baseOutputFilename":"ScheduledTestReport", "outputLocale":null, "repositoryDestination":{ "folderURI":null, "id":null, "outputDescription":null, "overwriteFiles":null, "sequentialFilenames":null, "version":null, "timestampPattern":null, "saveToRepository":null, "defaultReportOutputFolderURI":null, "usingDefaultReportOutputFolderURI":null, "outputLocalFolder":null, "outputFTPInfo":null }, "mailNotification":{ "bccAddresses":null, "ccAddresses":null, "toAddresses":{ "address":[ "foo@foo.com" ] }, "version":null, "id":102, "includingStackTraceWhenJobFails":true, "messageText":"Report has been successfully run and attached.", "resultSendType":"SEND_ATTACHMENT_ZIP_ALL", "skipEmptyReports":null, "skipNotificationWhenJobFails":null, "subject":"My Report", "messageTextWhenJobFails":"Reports recevied an Error" }, "source":{ "reportUnitURI":"/reports/MyReports/reports/sample/orgsample/finReport", "parameters":{ "parameterValues":{ "id":[ "105" ], "User_Id":[ "FOO" ] } } }, "outputFormats":{ "outputFormat":[ "PDF" ] }, "trigger":{ "simpleTrigger":{ "id":null, "version":null, "timezone":null, "calendarName":null, "startType":2, "startDate":"2019-06-27 14:32", "endDate":null, "misfireInstruction":null, "occurrenceCount":1, "recurrenceInterval":null, "recurrenceIntervalUnit":null } }, "outputTimeZone":null } 3. Headers : content-type: application/job+json accept: application/job+json X-HTTP-Method-Override: PUT authorization: Basic ........(using the admin username and password for authentication) and response: { "error": [ { "errorCode": "error.not.empty", "defaultMessage": "The value cannot be empty", "field": "contentRepositoryDestination.folderURI" }], } The same request works with JRS 6.4.0 and the job is getting scheduled with no issues.
  5. I am facing the same issue while using 7.1.1. Are you able to fix it ?
  6. 1. I created a server attribute with name 'env_url' and value ="http://......." 2. I want to use this in the JSON data adapter. Is it possible to pass a server attribute like below to a JSON data adapter ? <?xml version="1.0" encoding="UTF-8" ?> <jsonDataAdapter class="net.sf.jasperreports.data.json.JsonDataAdapterImpl"><name>smc-per-calendar-json-adapter_2</name> <dataFile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="httpDataLocation"> <url>$P{ServerAttribute_env_url}+"/users"</url> <method>GET</method> <header> <name>contentType</name><value>application/json;charset=utf-8</value> </header> <header> <name>accept</name><value>application/json;charset=utf-8</value> </header> <urlParameter> ...... I get : net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.JRException: Error opening input stream from URL: repo:/reports/dataadapter/myJsonDataAdapter.xml. at net.sf.jasperreports.repo.DefaultRepositoryService.getInputStream(DefaultRepositoryService.java:116) at net.sf.jasperreports.repo.InputStreamPersistenceService.load(InputStreamPersistenceService.java:45) at net.sf.jasperreports.repo.DefaultRepositoryService.getResource(DefaultRepositoryService.java:149) . . . . The data source url changes per environment (dev, qa, prod), so I would like it dynamically set. I am trying achieve it with server attributes (I may have a jasper server instance running per environment). Any other suggestions are appreciated.
  7. I do not about SSRS and I am also learning jasper. So, with the inforamtion you gave: 1 . Check your jasper server logs for more informatin. 2. The error says "serialization.error" that means you are sending wrong data to your report. What are the input controls (PARAM 2, PARAM 1) for the report "NEW ACCOUNT", are you able to run this report directly from jasper server UI ? Coming to your question on postman: How to call the report (i believe login is needed, how to tie the login before calling the report) service to execute a rerport - to tie the login in POSTMAN: 1. In the url field paste your server url to reportexecution: http://MYSERVER:8080/jasperserver-pro/rest_v2/reportExecutions 2. Select the method to "POST" 3. In the authorization tab , select basic auth, enter user name and password 4. In the headers tab, you may add: Key Value Content-Type application/xml Accept application/xml X-REMOTE-DOMAIN 1 note: X-REMOTE-DOMAIN 1 may not be necessary, but try adding it if you get any error. 5. In the body tab, paste your request (xml) example: <reportExecutionRequest> <reportUnitUri>/reports/interactive/CustomersReport</reportUnitUri> <async>true</async> <freshData>false</freshData> <saveDataSnapshot>false</saveDataSnapshot> <outputFormat>html</outputFormat> <interactive>true</interactive> <ignorePagination>false</ignorePagination> <pages>1-5</pages> </reportExecutionRequest> 6. Send response should be somthing like : <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <reportExecution> <exports> <export> <id>33c98001-c0af-41bb-8659-8e44bddc339e</id> <status>queued</status> </export> </exports> <reportURI>/reports/interactive/CustomersReport</reportURI> <requestId>04e91a83-e9ca-4629-bca9-6e5028f5f6be</requestId> <status>queued</status> </reportExecution> and then work with export Id and request id and follow : https://community.jaspersoft.com/documentation/tibco-jasperreports-server-rest-api-reference/v630/reportexecutions-service
  8. Ok.It was my mistake while creating the report parameter map. So by changing the follwing code from : reportParamsMap.put("paramA", "2012"); reportParamsMap.put("paramB", "xyz"); to reportParamsMap.put("paramA", new String[]{"2012"}); reportParamsMap.put("paramB", new String[]{"xyz"}); // you can set list of strings too resolved my problem.
  9. I have a report with some required parameters(paramA="default_a", paramB="default_b") with default values, it works as expected when I run it from jasper server UI or by using jasper rest client (https://github.com/Jaspersoft/jrs-rest-java-client). While scheduling this report I am supplying the parameters (paramA="2012", paramB="xyz") using the rest client like below : Job job = new Job(); JobSource s = new JobSource(); Map<String, Object> reportParamsMap = new HashMap<String, Object>(); reportParamsMap.put("paramA", "2012"); reportParamsMap.put("paramB", "xyz"); s.setParameters(reportParamsMap); job.setSource(s); ..... set other job fileds (label, description, outputforamts etc ). OperationResult<Job> result = session.jobsService().scheduleReport(job); and my json that was sent to http://localhost:8080/jasperserver/rest_v2/jobs is { "id":null, "version":null, "username":null, "label":"MyReport", "description":"Scheduling my report to run daily", "creationDate":null, "baseOutputFilename":"MyReport_UserID_1546020148418", "outputLocale":null, "repositoryDestination":{ "folderURI":"/reports/Test", "id":null, "outputDescription":null, "overwriteFiles":null, "sequentialFilenames":null, "version":null, "timestampPattern":null, "saveToRepository":null, "defaultReportOutputFolderURI":null, "usingDefaultReportOutputFolderURI":null, "outputLocalFolder":"/reports/Test", "outputFTPInfo":null }, "source":{ "reportUnitURI":"/reports/Test/MyReport", "parameters":{ "parameterValues":{ "paramA":"2012", "paramB":"xyz" } } }, "outputFormats":{ "outputFormat":[ "PDF" ] }, "trigger":{ "simpleTrigger":{ "id":null, "version":null, "timezone":null, "calendarName":null, "startType":2, "startDate":"2018-12-28 12:02", "endDate":null, "misfireInstruction":null, "occurrenceCount":1, "recurrenceInterval":0, "recurrenceIntervalUnit":"DAY" } }, "outputTimeZone":null } And I get : 2 < 400 2 < Connection: close 2 < Content-Length: 279 2 < Content-Type: application/errorDescriptor+json 2 < Date: Fri, 28 Dec 2018 19:37:39 GMT 2 < P3P: CP="ALL" 2 < X-XSS-Protection: 1; mode=block {"message":"There was an error on the server. Try again or contact site administrators. (Error UID: 145f1d97-8204-4a99-a1c7-1912c44a7597)","errorCode":"serialization.error","errorUid":"145f1d97-8204-4a99-a1c7-1912c44a7597","parameters":["source.parameters.parameterValues",null]} After this statement System.out.println(result.getEntity()); com.jaspersoft.jasperserver.jaxrs.client.core.exceptions.BadRequestException: Bad Request at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at com.jaspersoft.jasperserver.jaxrs.client.core.exceptions.handling.DefaultErrorHandler.handleStatusCodeError(DefaultErrorHandler.java:111) at com.jaspersoft.jasperserver.jaxrs.client.core.exceptions.handling.DefaultErrorHandler.handleError(DefaultErrorHandler.java:68) at com.jaspersoft.jasperserver.jaxrs.client.core.operationresult.NullEntityOperationResult.getEntity(NullEntityOperationResult.java:53) .... When I do not set the parameters to the job source like ( s.setParameters(reportParamsMap); ), the scheduler creates the job but with the default parameters which is pointless in my case. Question: How to send report parameters dynamically while scheduling a job. UPDATE-1: Jasper server versin 7.1.0. produced above errors UPDATE-2: Jasper server versin 6.4.0 does not produce the above error but it schedules the report with default parameters.
  10. JSON adapters created in TIBCO Jaspersoft® Studio for a web service and a report is created and executed successfully. Next, empty out the url, body elements in the data adapter xml (call it my_json_ws_adap.xml) <?xml version="1.0" encoding="UTF-8" ?><jsonDataAdapter class="net.sf.jasperreports.data.json.JsonDataAdapterImpl"> <name>smc-per-ws-json-adapter</name> <dataFile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="httpDataLocation"> <method>POST</method> <url></url> <username></username> <password></password> <body></body> <header> <name></name> <value></value> </header> </dataFile> <language>json</language> <useConnection>true</useConnection> <timeZone xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:java="http://java.sun.com" xsi:type="java:java.lang.String"> America/Chicago </timeZone> <locale xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:java="http://java.sun.com" xsi:type="java:java.lang.String"> en_US </locale> <selectExpression></selectExpression></jsonDataAdapter>[/code]Then define parameters in the report for the url ,body <property name="com.jaspersoft.studio.data.defaultdataadapter" value="proj my_json_ws_adap.xml"/><parameter name="url" class="java.lang.String" isForPrompting="false" evaluationTime="Early"> <property name="net.sf.jasperreports.http.data.url"/> </parameter><parameter name="body" class="java.lang.String" isForPrompting="false" evaluationTime="Early"> <property name="net.sf.jasperreports.http.data.body"/> </parameter>[/code]Save the report and go to preview tab, report executes and throws an error (pasted below), and asks for "The report requires that you specify the value for some parameters before running it". When I enter the values and hit run, it works fine. net.sf.jasperreports.engine.JRRuntimeException: No HTTP URL set. at net.sf.jasperreports.data.http.HttpDataService.getRequestURI(HttpDataService.java:575) at net.sf.jasperreports.data.http.HttpDataService.createRequest(HttpDataService.java:287) at net.sf.jasperreports.data.http.HttpDataService.getDataFileConnection(HttpDataService.java:220) at net.sf.jasperreports.data.DataFileUtils.createConnection(DataFileUtils.java:72) at net.sf.jasperreports.data.DataFileUtils.getDataStream(DataFileUtils.java:78) at net.sf.jasperreports.data.json.JsonDataAdapterService.contributeParameters(JsonDataAdapterService.java:75) at net.sf.jasperreports.engine.fill.JRFillDataset.contributeParameters(JRFillDataset.java:1153) at net.sf.jasperreports.engine.fill.JRFillDataset.setParameterValues(JRFillDataset.java:665) at net.sf.jasperreports.engine.fill.JRParameterDefaultValuesEvaluator.evaluateParameterDefaultValues(JRParameterDefaultValuesEvaluator.java:89) at com.jaspersoft.studio.utils.ExpressionUtil.initBuiltInParameters(ExpressionUtil.java:399) at com.jaspersoft.studio.editor.preview.view.control.ReportController$1.run(ReportController.java:381) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)[/code]Next, upload the my_json_ws_adap.xml to jasper server as xml and set it as default data adapters expression in jasper studio like below: <property name="net.sf.jasperreports.data.adapter" value="/reports/my_json_ws_adap.xml"/>[/code]Publish the report to jasper server and click on it. Gets the following error along with a dialog. "There was an error on the server. Try again or contact site administrators. (Error UID: 5d62fb9a-204c-447e-8634-6f703699926d)" Jasper Server Logs: ERROR GenericExceptionMapper,http-apr-8080-exec-2:50 - Unexpected error occurs net.sf.jasperreports.engine.JRRuntimeException: org.apache.http.client.ClientProtocolException at net.sf.jasperreports.data.http.HttpDataConnection.getInputStream(HttpDataConnection.java:97) at net.sf.jasperreports.data.DataFileStream.<init>(DataFileStream.java:47) at net.sf.jasperreports.data.DataFileUtils.getDataStream(DataFileUtils.java:79) at net.sf.jasperreports.data.json.JsonDataAdapterService.contributeParameters(JsonDataAdapterService.java:75) at net.sf.jasperreports.engine.fill.JRFillDataset.contributeParameters(JRFillDataset.java:1150) at net.sf.jasperreports.engine.fill.JRFillDataset.setParameterValues(JRFillDataset.java:662) at net.sf.jasperreports.engine.fill.JRParameterDefaultValuesEvaluator.evaluateParameterDefaultValues(JRParameterDefaultValuesEvaluator.java:88) at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.getReportInputControlsInformation(EngineServiceImpl.java:2643) at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.getReportInputControlsInformation(EngineServiceImpl.java:2601) at com.jaspersoft.jasperserver.war.cascade.CachedEngineService.getReportInputControlsInformation(CachedEngineService.java:85) at com.jaspersoft.jasperserver.war.cascade.GenericInputControlLogic.getReportInputControlsInformation(GenericInputControlLogic.java:187) at com.jaspersoft.jasperserver.war.cascade.GenericInputControlLogic.getInputControlsStructure(GenericInputControlLogic.java:85) at com.jaspersoft.jasperserver.war.cascade.InputControlsLogicServiceImpl$3.callByContainer(InputControlsLogicServiceImpl.java:118) at com.jaspersoft.jasperserver.war.cascade.InputControlsLogicServiceImpl$3.callByContainer(InputControlsLogicServiceImpl.java:110) at com.jaspersoft.jasperserver.war.cascade.InputControlsLogicServiceImpl.callControlLogic(InputControlsLogicServiceImpl.java:248) at com.jaspersoft.jasperserver.war.cascade.InputControlsLogicServiceImpl.getInputControlsStructure(InputControlsLogicServiceImpl.java:110) at com.jaspersoft.jasperserver.war.cascade.InputControlsLogicServiceImpl.getInputControlsWithValues(InputControlsLogicServiceImpl.java:128) at com.jaspersoft.jasperserver.jaxrs.report.InputControlsJaxrsService$1.call(InputControlsJaxrsService.java:99) at com.jaspersoft.jasperserver.jaxrs.report.InputControlsJaxrsService$1.call(InputControlsJaxrsService.java:91) at com.jaspersoft.jasperserver.jaxrs.report.ReportsServiceCallTemplate.callRemoteService(ReportsServiceCallTemplate.java:49) at com.jaspersoft.jasperserver.remote.common.RemoteServiceWrapper.callRemoteService(RemoteServiceWrapper.java:44) at com.jaspersoft.jasperserver.jaxrs.report.InputControlsJaxrsService.internalGetReportInputParameters(InputControlsJaxrsService.java:91) at com.jaspersoft.jasperserver.jaxrs.report.InputControlsJaxrsService.getReportInputParametersViaPost(InputControlsJaxrsService.java:80) at sun.reflect.GeneratedMethodAccessor690.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205) at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302) at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409) at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.owasp.csrfguard.CsrfGuardFilter.doFilter(CsrfGuardFilter.java:88) at com.jaspersoft.jasperserver.api.security.csrf.JSCsrfGuardFilter.doFilter(JSCsrfGuardFilter.java:72) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at com.jaspersoft.jasperserver.api.security.csrf.CrossDomainCommunicationFilter.doFilter(CrossDomainCommunicationFilter.java:116) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at com.jaspersoft.jasperserver.war.NullFilter.doFilter(NullFilter.java:43) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at com.jaspersoft.jasperserver.api.metadata.user.service.impl.MetadataAuthenticationProcessingFilter.doFilter(MetadataAuthenticationProcessingFilter.java:98) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at com.jaspersoft.jasperserver.war.util.RequestParameterAuthenticationFilter.doFilter(RequestParameterAuthenticationFilter.java:99) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at com.jaspersoft.jasperserver.war.UserPreferencesFilter.doFilter(UserPreferencesFilter.java:235) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter.doFilter(AbstractPreAuthenticatedProcessingFilter.java:94) at com.jaspersoft.jasperserver.api.security.externalAuth.preauth.BasePreAuthenticatedProcessingFilter.doFilter(BasePreAuthenticatedProcessingFilter.java:104) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at com.jaspersoft.jasperserver.war.UserPreferencesFilter.doFilter(UserPreferencesFilter.java:235) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at com.jaspersoft.jasperserver.api.logging.filter.BasicLoggingFilter.doFilter(BasicLoggingFilter.java:57) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at com.jaspersoft.jasperserver.api.security.WebAppSecurityFilter.doFilter(WebAppSecurityFilter.java:80) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at com.jaspersoft.jasperserver.war.NullFilter.doFilter(NullFilter.java:43) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at com.jaspersoft.jasperserver.api.security.encryption.EncryptionFilter.doFilter(EncryptionFilter.java:150) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at com.jaspersoft.jasperserver.war.util.SessionDecoratorFilter.doFilter(SessionDecoratorFilter.java:63) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at com.jaspersoft.jasperserver.war.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:67) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at com.jaspersoft.jasperserver.war.httpheaders.ResourceHTTPHeadersFilter.doFilter(ResourceHTTPHeadersFilter.java:77) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at com.jaspersoft.jasperserver.war.P3PFilter.doFilter(P3PFilter.java:43) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:616) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1132) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2521) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2510) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Unknown Source) Caused by: org.apache.http.client.ClientProtocolException at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106) at net.sf.jasperreports.data.http.HttpDataConnection.getInputStream(HttpDataConnection.java:67) ... 142 more Caused by: org.apache.http.ProtocolException: Target host is not specified at org.apache.http.impl.conn.DefaultRoutePlanner.determineRoute(DefaultRoutePlanner.java:69) at org.apache.http.impl.client.InternalHttpClient.determineRoute(InternalHttpClient.java:124) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:183) ... 145 more QUESTION: When I run the report, it is hitting the rest service URL(if there is a default expression for URL - No ERROR, if not - produced ERROR as described in Step 3) first , then prompts with parameters. I enter the parameters for the URL, BODY and run it , it hits the URL again (this is expected). So why does the report hits the URL twice (should not happen)
×
×
  • Create New...