Jump to content
JasperReports 7.0 is now available ×

ganesh.simhadri

Members
  • Posts

    14
  • Joined

  • Last visited

ganesh.simhadri's Achievements

Apprentice

Apprentice (3/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Collaborator Rare

Recent Badges

0

Reputation

  1. I got resource descriptor as mentioned in web services guide . Now what i have to do display dashboard.
  2. They just mentioned a resource descriptor there but they didn't mention the URI or httprequest (Get,post or put) to get that resource descriptor. so can you help in that aspect.
  3. I want to know how to display dash boards and ad hoc views uisng rest API in a web application.
  4. After changing the URI as you mentioned it is still reporting Invalid resource descriptor. Here is my code for getting resource descriptor using rest api httpReqCE=new HttpPut(); String str="http://localhost:8080/jasperserver/rest/report/reports/samples/"; str=str+report; str=str+"?RUN_OUTPUT_FORMAT=PDF"; //str=str+".html"; URI uri; uri=new URI(str); httpReqCE.setURI(uri); try { httpRes = httpClient.execute(httpReqCE, httpContext); xml=IOUtils.toString(httpRes.getEntity().getContent()); System.out.println(xml); } catch (ClientProtocolException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } return xml; please help me , Thanks in advance
  5. I have written the following code to get resource descriptor httpReqCE=new HttpPut();String str="http://localhost:8080/jasperserver/rest/report/Reports/Samples/";str=str+report;str=str+"?RUN_OUTPUT_FORMAT=PDF";//str=str+".html"; URI uri;uri=new URI(str);httpReqCE.setURI(uri); try {httpRes = httpClient.execute(httpReqCE, httpContext);xml=IOUtils.toString(httpRes.getEntity().getContent());System.out.println(xml);} catch (ClientProtocolException e) {// TODO Auto-generated catch blocke.printStackTrace();} catch (IOException e) {// TODO Auto-generated catch blocke.printStackTrace();} return xml;But it was returning invalid resource descriptor
  6. I am able to run reports using rest_v2 but not able to display images present in the report. In which folder we have to keep the images and als provide me wwith a directory structure.
  7. I got the resource descriptor using the second step http://localhost:8080/jasperserver/rest/resource/reports/samples/AllAccounts now what i have to do to show this report on web application. I didn't understand your third step clearly
  8. I got the following resource descriptor form of a string <resourceDescriptors> <resourceDescriptor name="AllAccounts" wsType="reportUnit" uriString="/reports/samples/AllAccounts" isNew="false"><label><![CDATA[Accounts Report]]></label><description><![CDATA[All Accounts Report]]></description><creationDate>1371461422953</creationDate><resourceProperty name="PROP_RESOURCE_TYPE"><value><![CDATA[com.jaspersoft.jasperserver.api.metadata.jasperreports.domain.ReportUnit]]></value></resourceProperty><resourceProperty name="PROP_PARENT_FOLDER"><value><![CDATA[/reports/samples]]></value></resourceProperty><resourceProperty name="PROP_VERSION"><value><![CDATA[0]]></value></resourceProperty><resourceProperty name="PROP_SECURITY_PERMISSION_MASK"><value><![CDATA[31]]></value></resourceProperty><resourceProperty name="PROP_RU_ALWAYS_PROPMT_CONTROLS"><value><![CDATA[false]]></value></resourceProperty><resourceProperty name="PROP_RU_CONTROLS_LAYOUT"><value><![CDATA[1]]></value></resourceProperty></resourceDescriptor><resourceDescriptor name="Cascading_multi_select_report" wsType="reportUnit" uriString="/reports/samples/Cascading_multi_select_report" isNew="false"><label><![CDATA[Cascading multi select example report]]></label><description><![CDATA[Example report with Cascading multi select input controls]]></description><creationDate>1371461423060</creationDate><resourceProperty name="PROP_RESOURCE_TYPE"><value><![CDATA[com.jaspersoft.jasperserver.api.metadata.jasperreports.domain.ReportUnit]]></value></resourceProperty><resourceProperty name="PROP_PARENT_FOLDER"><value><![CDATA[/reports/samples]]></value></resourceProperty><resourceProperty name="PROP_VERSION"><value><![CDATA[0]]></value></resourceProperty><resourceProperty name="PROP_SECURITY_PERMISSION_MASK"><value><![CDATA[31]]></value></resourceProperty><resourceProperty name="PROP_RU_ALWAYS_PROPMT_CONTROLS"><value><![CDATA[false]]></value></resourceProperty><resourceProperty name="PROP_RU_CONTROLS_LAYOUT"><value><![CDATA[4]]></value></resourceProperty></resourceDescriptor><resourceDescriptor name="cp1" wsType="reportUnit" uriString="/reports/cp/cp1" isNew="false"><label><![CDATA[cp1]]></label><description><![CDATA[coreplatform]]></description><creationDate>1371561476766</creationDate><resourceProperty name="PROP_RESOURCE_TYPE"><value><![CDATA[com.jaspersoft.jasperserver.api.metadata.jasperreports.domain.ReportUnit]]></value></resourceProperty><resourceProperty name="PROP_PARENT_FOLDER"><value><![CDATA[/reports/cp]]></value></resourceProperty><resourceProperty name="PROP_VERSION"><value><![CDATA[2]]></value></resourceProperty><resourceProperty name="PROP_SECURITY_PERMISSION_MASK"><value><![CDATA[31]]></value></resourceProperty><resourceProperty name="PROP_RU_ALWAYS_PROPMT_CONTROLS"><value><![CDATA[true]]></value></resourceProperty><resourceProperty name="PROP_RU_CONTROLS_LAYOUT"><value><![CDATA[1]]></value></resourceProperty></resourceDescriptor><resourceDescriptor name="CustomersReport" wsType="reportUnit" uriString="/reports/interactive/CustomersReport" isNew="false"><label><![CDATA[Customers Report]]></label><description><![CDATA[Customers Report]]></description><creationDate>1371461422781</creationDate><resourceProperty name="PROP_RESOURCE_TYPE"><value><![CDATA[com.jaspersoft.jasperserver.api.metadata.jasperreports.domain.ReportUnit]]></value></resourceProperty><resourceProperty name="PROP_PARENT_FOLDER"><value><![CDATA[/reports/interactive]]></value></resourceProperty><resourceProperty name="PROP_VERSION"><value><![CDATA[0]]></value></resourceProperty><resourceProperty name="PROP_SECURITY_PERMISSION_MASK"><value><![CDATA[31]]></value></resourceProperty><resourceProperty name="PROP_RU_ALWAYS_PROPMT_CONTROLS"><value><![CDATA[false]]></value></resourceProperty><resourceProperty name="PROP_RU_CONTROLS_LAYOUT"><value><![CDATA[1]]></value></resourceProperty></resourceDescriptor><resourceDescriptor name="Department" wsType="reportUnit" uriString="/reports/samples/Department" isNew="false"><label><![CDATA[Department]]></label><description><![CDATA[A report that displays multi-lingual input controls]]></description><creationDate>1371461423217</creationDate><resourceProperty name="PROP_RESOURCE_TYPE"><value><![CDATA[com.jaspersoft.jasperserver.api.metadata.jasperreports.domain.ReportUnit]]></value></resourceProperty><resourceProperty name="PROP_PARENT_FOLDER"><value><![CDATA[/reports/samples]]></value></resourceProperty><resourceProperty name="PROP_VERSION"><value><![CDATA[0]]></value></resourceProperty><resourceProperty name="PROP_SECURITY_PERMISSION_MASK"><value><![CDATA[31]]></value></resourceProperty><resourceProperty name="PROP_RU_ALWAYS_PROPMT_CONTROLS"><value><![CDATA[false]]></value></resourceProperty><resourceProperty name="PROP_RU_CONTROLS_LAYOUT"><value><![CDATA[1]]></value></resourceProperty></resourceDescriptor><resourceDescriptor name="EmployeeAccounts" wsType="reportUnit" uriString="/reports/samples/EmployeeAccounts" isNew="false"><label><![CDATA[Employee Accounts]]></label><description><![CDATA]></description><creationDate>1371461423379</creationDate><resourceProperty name="PROP_RESOURCE_TYPE"><value><![CDATA[com.jaspersoft.jasperserver.api.metadata.jasperreports.domain.ReportUnit]]></value></resourceProperty><resourceProperty name="PROP_PARENT_FOLDER"><value><![CDATA[/reports/samples]]></value></resourceProperty><resourceProperty name="PROP_VERSION"><value><![CDATA[0]]></value></resourceProperty><resourceProperty name="PROP_SECURITY_PERMISSION_MASK"><value><![CDATA[31]]></value></resourceProperty><resourceProperty name="PROP_RU_ALWAYS_PROPMT_CONTROLS"><value><![CDATA[false]]></value></resourceProperty><resourceProperty name="PROP_RU_CONTROLS_LAYOUT"><value><![CDATA[1]]></value></resourceProperty></resourceDescriptor><resourceDescriptor name="Employees" wsType="reportUnit" uriString="/reports/samples/Employees" isNew="false"><label><![CDATA[Employee List]]></label><description><![CDATA[Employee List]]></description><creationDate>1371461423444</creationDate><resourceProperty name="PROP_RESOURCE_TYPE"><value><![CDATA[com.jaspersoft.jasperserver.api.metadata.jasperreports.domain.ReportUnit]]></value></resourceProperty><resourceProperty name="PROP_PARENT_FOLDER"><value><![CDATA[/reports/samples]]></value></resourceProperty><resourceProperty name="PROP_VERSION"><value><![CDATA[0]]></value></resourceProperty><resourceProperty name="PROP_SECURITY_PERMISSION_MASK"><value><![CDATA[31]]></value></resourceProperty><resourceProperty name="PROP_RU_ALWAYS_PROPMT_CONTROLS"><value><![CDATA[false]]></value></resourceProperty><resourceProperty name="PROP_RU_CONTROLS_LAYOUT"><value><![CDATA[1]]></value></resourceProperty></resourceDescriptor><resourceDescriptor name="Freight" wsType="reportUnit" uriString="/reports/samples/Freight" isNew="false"><label><![CDATA[Freight Report]]></label><description><![CDATA[Freight Report with Saved Parameters]]></description><creationDate>1371461423530</creationDate><resourceProperty name="PROP_RESOURCE_TYPE"><value><![CDATA[com.jaspersoft.jasperserver.api.metadata.jasperreports.domain.ReportUnit]]></value></resourceProperty><resourceProperty name="PROP_PARENT_FOLDER"><value><![CDATA[/reports/samples]]></value></resourceProperty><resourceProperty name="PROP_VERSION"><value><![CDATA[0]]></value></resourceProperty><resourceProperty name="PROP_SECURITY_PERMISSION_MASK"><value><![CDATA[31]]></value></resourceProperty><resourceProperty name="PROP_RU_ALWAYS_PROPMT_CONTROLS"><value><![CDATA[false]]></value></resourceProperty><resourceProperty name="PROP_RU_CONTROLS_LAYOUT"><value><![CDATA[1]]></value></resourceProperty></resourceDescriptor><resourceDescriptor name="MapReport" wsType="reportUnit" uriString="/reports/interactive/MapReport" isNew="false"><label><![CDATA[Map Report]]></label><description><![CDATA[Map Report]]></description><creationDate>1371461422848</creationDate><resourceProperty name="PROP_RESOURCE_TYPE"><value><![CDATA[com.jaspersoft.jasperserver.api.metadata.jasperreports.domain.ReportUnit]]></value></resourceProperty><resourceProperty name="PROP_PARENT_FOLDER"><value><![CDATA[/reports/interactive]]></value></resourceProperty><resourceProperty name="PROP_VERSION"><value><![CDATA[0]]></value></resourceProperty><resourceProperty name="PROP_SECURITY_PERMISSION_MASK"><value><![CDATA[31]]></value></resourceProperty><resourceProperty name="PROP_RU_ALWAYS_PROPMT_CONTROLS"><value><![CDATA[false]]></value></resourceProperty><resourceProperty name="PROP_RU_CONTROLS_LAYOUT"><value><![CDATA[1]]></value></resourceProperty></resourceDescriptor><resourceDescriptor name="PermissionsOfUsersWithARoleSharedByLoggedIn" wsType="reportUnit" uriString="/reports/samples/PermissionsOfUsersWithARoleSharedByLoggedIn" isNew="false"><label><![CDATA[Permissions Of Users with a role shared by LoggedIn]]></label><description><![CDATA[input control controlled by user profile]]></description><creationDate>1371461423620</creationDate><resourceProperty name="PROP_RESOURCE_TYPE"><value><![CDATA[com.jaspersoft.jasperserver.api.metadata.jasperreports.domain.ReportUnit]]></value></resourceProperty><resourceProperty name="PROP_PARENT_FOLDER"><value><![CDATA[/reports/samples]]></value></resourceProperty><resourceProperty name="PROP_VERSION"><value><![CDATA[0]]></value></resourceProperty><resourceProperty name="PROP_SECURITY_PERMISSION_MASK"><value><![CDATA[1]]></value></resourceProperty><resourceProperty name="PROP_RU_ALWAYS_PROPMT_CONTROLS"><value><![CDATA[true]]></value></resourceProperty><resourceProperty name="PROP_RU_CONTROLS_LAYOUT"><value><![CDATA[1]]></value></resourceProperty></resourceDescriptor><resourceDescriptor name="roles" wsType="reportUnit" uriString="/reports/cp/roles" isNew="false"><label><![CDATA[roles]]></label><description><![CDATA[Describes user roles]]></description><creationDate>1371708649285</creationDate><resourceProperty name="PROP_RESOURCE_TYPE"><value><![CDATA[com.jaspersoft.jasperserver.api.metadata.jasperreports.domain.ReportUnit]]></value></resourceProperty><resourceProperty name="PROP_PARENT_FOLDER"><value><![CDATA[/reports/cp]]></value></resourceProperty><resourceProperty name="PROP_VERSION"><value><![CDATA[0]]></value></resourceProperty><resourceProperty name="PROP_SECURITY_PERMISSION_MASK"><value><![CDATA[31]]></value></resourceProperty><resourceProperty name="PROP_RU_ALWAYS_PROPMT_CONTROLS"><value><![CDATA[true]]></value></resourceProperty><resourceProperty name="PROP_RU_CONTROLS_LAYOUT"><value><![CDATA[1]]></value></resourceProperty></resourceDescriptor><resourceDescriptor name="SalesByMonth" wsType="reportUnit" uriString="/reports/samples/SalesByMonth" isNew="false"><label><![CDATA[sales By Month Report]]></label><description><![CDATA[sales By Month Report]]></description><creationDate>1371461423748</creationDate><resourceProperty name="PROP_RESOURCE_TYPE"><value><![CDATA[com.jaspersoft.jasperserver.api.metadata.jasperreports.domain.ReportUnit]]></value></resourceProperty><resourceProperty name="PROP_PARENT_FOLDER"><value><![CDATA[/reports/samples]]></value></resourceProperty><resourceProperty name="PROP_VERSION"><value><![CDATA[0]]></value></resourceProperty><resourceProperty name="PROP_SECURITY_PERMISSION_MASK"><value><![CDATA[31]]></value></resourceProperty><resourceProperty name="PROP_RU_ALWAYS_PROPMT_CONTROLS"><value><![CDATA[false]]></value></resourceProperty><resourceProperty name="PROP_RU_CONTROLS_LAYOUT"><value><![CDATA[1]]></value></resourceProperty></resourceDescriptor><resourceDescriptor name="StandardChartsAegeanReport" wsType="reportUnit" uriString="/reports/samples/StandardChartsAegeanReport" isNew="false"><label><![CDATA[standard Charts Aegean Report]]></label><description><![CDATA[standard Charts Aegean Report]]></description><creationDate>1371461423893</creationDate><resourceProperty name="PROP_RESOURCE_TYPE"><value><![CDATA[com.jaspersoft.jasperserver.api.metadata.jasperreports.domain.ReportUnit]]></value></resourceProperty><resourceProperty name="PROP_PARENT_FOLDER"><value><![CDATA[/reports/samples]]></value></resourceProperty><resourceProperty name="PROP_VERSION"><value><![CDATA[0]]></value></resourceProperty><resourceProperty name="PROP_SECURITY_PERMISSION_MASK"><value><![CDATA[31]]></value></resourceProperty><resourceProperty name="PROP_RU_ALWAYS_PROPMT_CONTROLS"><value><![CDATA[false]]></value></resourceProperty><resourceProperty name="PROP_RU_CONTROLS_LAYOUT"><value><![CDATA[1]]></value></resourceProperty></resourceDescriptor><resourceDescriptor name="StandardChartsEyeCandyReport" wsType="reportUnit" uriString="/reports/samples/StandardChartsEyeCandyReport" isNew="false"><label><![CDATA[standard Charts Eye Candy Report]]></label><description><![CDATA[standard Charts Eye Candy Report]]></description><creationDate>1371461424030</creationDate><resourceProperty name="PROP_RESOURCE_TYPE"><value><![CDATA[com.jaspersoft.jasperserver.api.metadata.jasperreports.domain.ReportUnit]]></value></resourceProperty><resourceProperty name="PROP_PARENT_FOLDER"><value><![CDATA[/reports/samples]]></value></resourceProperty><resourceProperty name="PROP_VERSION"><value><![CDATA[0]]></value></resourceProperty><resourceProperty name="PROP_SECURITY_PERMISSION_MASK"><value><![CDATA[31]]></value></resourceProperty><resourceProperty name="PROP_RU_ALWAYS_PROPMT_CONTROLS"><value><![CDATA[false]]></value></resourceProperty><resourceProperty name="PROP_RU_CONTROLS_LAYOUT"><value><![CDATA[1]]></value></resourceProperty></resourceDescriptor><resourceDescriptor name="StandardChartsReport" wsType="reportUnit" uriString="/reports/samples/StandardChartsReport" isNew="false"><label><![CDATA[standard Charts Report]]></label><description><![CDATA[standard Charts Report]]></description><creationDate>1371461424119</creationDate><resourceProperty name="PROP_RESOURCE_TYPE"><value><![CDATA[com.jaspersoft.jasperserver.api.metadata.jasperreports.domain.ReportUnit]]></value></resourceProperty><resourceProperty name="PROP_PARENT_FOLDER"><value><![CDATA[/reports/samples]]></value></resourceProperty><resourceProperty name="PROP_VERSION"><value><![CDATA[0]]></value></resourceProperty><resourceProperty name="PROP_SECURITY_PERMISSION_MASK"><value><![CDATA[31]]></value></resourceProperty><resourceProperty name="PROP_RU_ALWAYS_PROPMT_CONTROLS"><value><![CDATA[false]]></value></resourceProperty><resourceProperty name="PROP_RU_CONTROLS_LAYOUT"><value><![CDATA[1]]></value></resourceProperty></resourceDescriptor><resourceDescriptor name="TableReport" wsType="reportUnit" uriString="/reports/interactive/TableReport" isNew="false"><label><![CDATA[Table Report]]></label><description><![CDATA[Table Report]]></description><creationDate>1371461422897</creationDate><resourceProperty name="PROP_RESOURCE_TYPE"><value><![CDATA[com.jaspersoft.jasperserver.api.metadata.jasperreports.domain.ReportUnit]]></value></resourceProperty><resourceProperty name="PROP_PARENT_FOLDER"><value><![CDATA[/reports/interactive]]></value></resourceProperty><resourceProperty name="PROP_VERSION"><value><![CDATA[0]]></value></resourceProperty><resourceProperty name="PROP_SECURITY_PERMISSION_MASK"><value><![CDATA[31]]></value></resourceProperty><resourceProperty name="PROP_RU_ALWAYS_PROPMT_CONTROLS"><value><![CDATA[false]]></value></resourceProperty><resourceProperty name="PROP_RU_CONTROLS_LAYOUT"><value><![CDATA[1]]></value></resourceProperty></resourceDescriptor><resourceDescriptor name="users" wsType="reportUnit" uriString="/reports/cp/users" isNew="false"><label><![CDATA[userrole]]></label><description><![CDATA[describes user roles]]></description><creationDate>1371564109129</creationDate><resourceProperty name="PROP_RESOURCE_TYPE"><value><![CDATA[com.jaspersoft.jasperserver.api.metadata.jasperreports.domain.ReportUnit]]></value></resourceProperty><resourceProperty name="PROP_PARENT_FOLDER"><value><![CDATA[/reports/cp]]></value></resourceProperty><resourceProperty name="PROP_VERSION"><value><![CDATA[2]]></value></resourceProperty><resourceProperty name="PROP_SECURITY_PERMISSION_MASK"><value><![CDATA[31]]></value></resourceProperty><resourceProperty name="PROP_RU_ALWAYS_PROPMT_CONTROLS"><value><![CDATA[true]]></value></resourceProperty><resourceProperty name="PROP_RU_CONTROLS_LAYOUT"><value><![CDATA[1]]></value></resourceProperty></resourceDescriptor></resourceDescriptors> now i am want to display all the reports available using this xml on to the html page.For example i want to display 1. All Accounts2. Cascading_multi_select_report
  9. Please let me know if you got solution to your above problem or mail the solution to chandraganeshchowdary@gmail.com
  10. How to display all the files in jasperserver using restapi. In the web services guide it was mentioned we can get it by using /jasperserver/rest/resources/reports?type=reportUnit&recursive=1 i am new to jasper and using rest api. so can any provide me the code how to execute the mentioned get request. or mail the codechandraganeshchowdary@gmail.com
  11. Answering my self the problem is due to embedded maven in eclipse Have a look at the following link http://usersprofile.blogspot.in/2013/06/how-to-run-sample-program-given-in.html
  12. For the first time itself it reported failure. and my login username and password are similar to jasperserver. thanks for responding.
  13. SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. [iNFO] Scanning for projects... [iNFO] [iNFO] ------------------------------------------------------------------------ [iNFO] Building REST Code Sample 1.0-SNAPSHOT [iNFO] ------------------------------------------------------------------------ [WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons-io:commons-io:jar:1.3.2 [iNFO] [iNFO] --- maven-resources-plugin:2.5:resources (default-resources) @ RESTCodeSample --- [debug] execute contextualize [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [iNFO] skip non existing resourceDirectory C:UsersBizAct20Desktoprestapicodesamplesrcmainresources [iNFO] [iNFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ RESTCodeSample --- [iNFO] Nothing to compile - all classes are up to date [iNFO] [iNFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ RESTCodeSample --- [debug] execute contextualize [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [iNFO] skip non existing resourceDirectory C:UsersBizAct20Desktoprestapicodesamplesrctestresources [iNFO] [iNFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ RESTCodeSample --- [iNFO] Nothing to compile - all classes are up to date [iNFO] [iNFO] --- maven-surefire-plugin:2.10:test (default-test) @ RESTCodeSample --- [iNFO] Surefire report directory: C:UsersBizAct20Desktoprestapicodesampletargetsurefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running com.jaspersoft.jasperserver.rest.sample.BasicResourceCRUDTest log4j:WARN No appenders could be found for logger (com.jaspersoft.jasperserver.rest.sample.RestAPIUtils). log4j:WARN Please initialize the log4j system properly. INFO [com.jaspersoft.jasperserver.rest.sample.RestAPIUtils] sending Request. url: http://localhost:8080/jasperserver/rest/resource req verb: PUT INFO [com.jaspersoft.jasperserver.rest.sample.RestAPIUtils] response status line: HTTP/1.1 400 Bad Request INFO [com.jaspersoft.jasperserver.rest.sample.RestAPIUtils] sending Request. url: http://localhost:8080/jasperserver/rest/resource/SAMPLE_REST_FOLDER req verb: DELETE Tests run: 2, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: 0.625 sec <<< FAILURE! Results : Failed tests: com.jaspersoft.jasperserver.rest.sample.BasicResourceCRUDTest: basic response check did not pass Tests in error: com.jaspersoft.jasperserver.rest.sample.BasicResourceCRUDTest: Invalid use of SingleClientConnManager: connection still allocated. Tests run: 2, Failures: 1, Errors: 1, Skipped: 0 [iNFO] ------------------------------------------------------------------------ [iNFO] BUILD FAILURE [iNFO] ------------------------------------------------------------------------ [iNFO] Total time: 2.952s [iNFO] Finished at: Tue Jun 25 12:47:47 IST 2013 [iNFO] Final Memory: 7M/106M [iNFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project RESTCodeSample: There are test failures. [ERROR] [ERROR] Please refer to C:UsersBizAct20Desktoprestapicodesampletargetsurefire-reports for the individual test results. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
  14. As it was mentioned in http://community.jaspersoft.com/wiki/getting-started-rest-web-service-api Example -> executing the sample code i did mvn test i am getting the following Running com.jaspersoft.jasperserver.rest.sample.BasicResourceCRUDTest log4j:WARN No appenders could be found for logger (com.jaspersoft.jasperserver.rest.sample.RestAPIUtils).log4j:WARN Please initialize the log4j system properly. INFO [com.jaspersoft.jasperserver.rest.sample.RestAPIUtils] sending Request. url: http://localhost:8080/jasperserver-pro/rest/resource req verb: PUT INFO [com.jaspersoft.jasperserver.rest.sample.RestAPIUtils] response status line: HTTP/1.1 403 ForbiddenTests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.538 sec <<< FAILURE! Results : Failed tests: com.jaspersoft.jasperserver.rest.sample.BasicResourceCRUDTest: basic response check did not pass Tests run: 1, Failures: 1, Errors: 0, Skipped: 0 [iNFO] ------------------------------------------------------------------------[iNFO] BUILD FAILURE[iNFO] ------------------------------------------------------------------------[iNFO] Total time: 15.809s[iNFO] Finished at: Fri Jun 21 10:54:18 IST 2013[iNFO] Final Memory: 7M/106M[iNFO] ------------------------------------------------------------------------[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project RESTCodeSample: There are test failures.[ERROR] [ERROR] Please refer to C:UsersBizAct20Desktoprestapicodesampletargetsurefire-reports for the individual test results.[ERROR] -> [Help 1][ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.[ERROR] Re-run Maven using the -X switch to enable full debug logging.[ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles:[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException can any one help me
×
×
  • Create New...