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

How to run the sample program given in Getting Started with REST Web Service API?


ganesh.simhadri

Recommended Posts

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

SLF4J: Defaulting to no-operation (NOP) logger implementation


[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:


 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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