dev@jersey.java.net

Build failed in Hudson: Jersey #2558

From: Hudson <hudson-admins_at_sun.com>
Date: Wed, 30 Dec 2009 03:37:33 -0800 (PST)

See <http://hudson.sfbay/job/Jersey/2558/changes>

Changes:

[Paul Sandoz] - Fixed issue 446
  https://jersey.dev.java.net/issues/show_bug.cgi?id=447
  Deprecated TemplateProcessor, instead use ViewProcessor, which provides
  better support when resolving a template name and writing out a template.
  Note that existing implementations of TemplateProcessor are still supported.
  When writing out an view with an absolute template name, or a view with a
  resolving class then it is not required that an HTTP request be in scope
  (unless the ViewProcessor implementation requires it).
  *BREAKING CHANGES* for com.sun.jersey.spi.template.TemplateContext and
  com.sun.jersey.spi.template.ResolvedViewable.
  TemplateContext no longer has a method to obtain the set of TemplateProcessor.
  The constructors of ResolvedViewable were modified to be compatible with
  ViewProcessor.

------------------------------------------
[...truncated 27713 lines...]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:993)
Caused by: com.sun.jersey.api.container.ContainerException: Unable to create resource class com.sun.jersey.impl.methodparams.FormParamTest$ParamBean
        at com.sun.jersey.server.impl.resource.PerRequestFactory$PerRequest._getInstance(PerRequestFactory.java:190)
        at com.sun.jersey.server.impl.resource.PerRequestFactory$AbstractPerRequest.getInstance(PerRequestFactory.java:141)
        at com.sun.jersey.server.impl.application.WebApplicationImpl$8$1.getValue(WebApplicationImpl.java:692)
        at com.sun.jersey.server.impl.inject.AbstractHttpContextInjectable$1.getValue(AbstractHttpContextInjectable.java:100)
        at com.sun.jersey.server.spi.component.ResourceComponentConstructor._construct(ResourceComponentConstructor.java:175)
        at com.sun.jersey.server.spi.component.ResourceComponentConstructor.construct(ResourceComponentConstructor.java:159)
        at com.sun.jersey.server.impl.resource.PerRequestFactory$PerRequest._getInstance(PerRequestFactory.java:179)
        ... 39 more
Caused by: java.lang.IllegalStateException: The @FormParam is utilized when the content type of the request entity is not application/x-www-form-urlencoded
        at com.sun.jersey.server.impl.model.parameter.FormParamInjectableProvider$FormParamInjectable.getValue(FormParamInjectableProvider.java:78)
        at com.sun.jersey.server.spi.component.ResourceComponentInjector.inject(ResourceComponentInjector.java:221)
        at com.sun.jersey.server.spi.component.ResourceComponentConstructor.construct(ResourceComponentConstructor.java:160)
        at com.sun.jersey.server.impl.resource.PerRequestFactory$PerRequest._getInstance(PerRequestFactory.java:179)
        ... 45 more
Dec 30, 2009 3:35:30 AM com.sun.jersey.server.impl.application.WebApplicationImpl _handleRequest
SEVERE: The RuntimeException could not be mapped to a response, re-throwing to the HTTP container
com.sun.jersey.api.container.ContainerException: Unable to create resource class com.sun.jersey.impl.methodparams.FormParamTest$FormResourceBeanConstructor
        at com.sun.jersey.server.impl.resource.PerRequestFactory$PerRequest._getInstance(PerRequestFactory.java:190)
        at com.sun.jersey.server.impl.resource.PerRequestFactory$AbstractPerRequest.getInstance(PerRequestFactory.java:141)
        at com.sun.jersey.server.impl.application.WebApplicationContext.getResource(WebApplicationContext.java:181)
        at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:66)
        at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:133)
        at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:71)
        at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:990)
        at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:941)
        at com.sun.jersey.impl.TestResourceClientHandler.handle(TestResourceClientHandler.java:116)
        at com.sun.jersey.impl.AbstractResourceTester$1.handle(AbstractResourceTester.java:139)
        at com.sun.jersey.api.client.Client.handle(Client.java:457)
        at com.sun.jersey.api.client.WebResource.handle(WebResource.java:557)
        at com.sun.jersey.api.client.WebResource.post(WebResource.java:227)
        at com.sun.jersey.impl.methodparams.FormParamTest.testFormParamBeanConstructorIllegalState(FormParamTest.java:599)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at junit.framework.TestCase.runTest(TestCase.java:154)
        at junit.framework.TestCase.runBare(TestCase.java:127)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:107)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:993)
Caused by: com.sun.jersey.api.container.ContainerException: Unable to create resource class com.sun.jersey.impl.methodparams.FormParamTest$ParamBean
        at com.sun.jersey.server.impl.resource.PerRequestFactory$PerRequest._getInstance(PerRequestFactory.java:190)
        at com.sun.jersey.server.impl.resource.PerRequestFactory$AbstractPerRequest.getInstance(PerRequestFactory.java:141)
        at com.sun.jersey.server.impl.application.WebApplicationImpl$8$1.getValue(WebApplicationImpl.java:692)
        at com.sun.jersey.server.impl.inject.AbstractHttpContextInjectable$1.getValue(AbstractHttpContextInjectable.java:100)
        at com.sun.jersey.server.spi.component.ResourceComponentConstructor._construct(ResourceComponentConstructor.java:175)
        at com.sun.jersey.server.spi.component.ResourceComponentConstructor.construct(ResourceComponentConstructor.java:159)
        at com.sun.jersey.server.impl.resource.PerRequestFactory$PerRequest._getInstance(PerRequestFactory.java:179)
        ... 39 more
Caused by: java.lang.IllegalStateException: The @FormParam is utilized when the content type of the request entity is not application/x-www-form-urlencoded
        at com.sun.jersey.server.impl.model.parameter.FormParamInjectableProvider$FormParamInjectable.getValue(FormParamInjectableProvider.java:78)
        at com.sun.jersey.server.spi.component.ResourceComponentInjector.inject(ResourceComponentInjector.java:221)
        at com.sun.jersey.server.spi.component.ResourceComponentConstructor.construct(ResourceComponentConstructor.java:160)
        at com.sun.jersey.server.impl.resource.PerRequestFactory$PerRequest._getInstance(PerRequestFactory.java:179)
        ... 45 more
Dec 30, 2009 3:35:30 AM com.sun.jersey.server.impl.application.WebApplicationImpl initiate
INFO: Initiating Jersey application, version 'Jersey: 1.1.5-ea-SNAPSHOT 12/30/2009 02:40 AM'
Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 35.04 sec
Running com.sun.jersey.impl.entity.ParameterTypeArgumentOrderTest
Dec 30, 2009 3:35:34 AM com.sun.jersey.server.impl.application.WebApplicationImpl initiate
INFO: Initiating Jersey application, version 'Jersey: 1.1.5-ea-SNAPSHOT 12/30/2009 02:40 AM'
Dec 30, 2009 3:35:39 AM com.sun.jersey.server.impl.application.WebApplicationImpl initiate
INFO: Initiating Jersey application, version 'Jersey: 1.1.5-ea-SNAPSHOT 12/30/2009 02:40 AM'
Dec 30, 2009 3:35:41 AM com.sun.jersey.server.impl.application.WebApplicationImpl initiate
INFO: Initiating Jersey application, version 'Jersey: 1.1.5-ea-SNAPSHOT 12/30/2009 02:40 AM'
Dec 30, 2009 3:35:43 AM com.sun.jersey.server.impl.application.WebApplicationImpl initiate
INFO: Initiating Jersey application, version 'Jersey: 1.1.5-ea-SNAPSHOT 12/30/2009 02:40 AM'
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 11.106 sec
Running com.sun.jersey.impl.resource.EmptyPathSegSRMTest
Dec 30, 2009 3:35:47 AM com.sun.jersey.server.impl.application.WebApplicationImpl initiate
INFO: Initiating Jersey application, version 'Jersey: 1.1.5-ea-SNAPSHOT 12/30/2009 02:40 AM'
Dec 30, 2009 3:35:53 AM com.sun.jersey.server.impl.application.WebApplicationImpl newResourceClass
WARNING: A sub-resource method, public java.lang.String com.sun.jersey.impl.resource.EmptyPathSegSRMTest$SlashResource.get(), with URI template, "/", is treated as a resource method
Dec 30, 2009 3:35:53 AM com.sun.jersey.server.impl.application.WebApplicationImpl newResourceClass
WARNING: A sub-resource method, public java.lang.String com.sun.jersey.impl.resource.EmptyPathSegSRMTest$Resource3.get(), with URI template, "", is treated as a resource method
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.729 sec
Running com.sun.jersey.impl.client.AsyncHttpMethodTest
Dec 30, 2009 3:35:58 AM com.sun.jersey.server.impl.application.WebApplicationImpl initiate
INFO: Initiating Jersey application, version 'Jersey: 1.1.5-ea-SNAPSHOT 12/30/2009 02:40 AM'
Starting GrizzlyServer port number = 55577
Started GrizzlyServer
Sleeping for 2000 ms
Dec 30, 2009 3:36:09 AM com.sun.jersey.server.impl.application.WebApplicationImpl initiate
INFO: Initiating Jersey application, version 'Jersey: 1.1.5-ea-SNAPSHOT 12/30/2009 02:40 AM'
Starting GrizzlyServer port number = 55577
Started GrizzlyServer
Sleeping for 2000 ms
Dec 30, 2009 3:36:16 AM com.sun.jersey.server.impl.application.WebApplicationImpl initiate
INFO: Initiating Jersey application, version 'Jersey: 1.1.5-ea-SNAPSHOT 12/30/2009 02:40 AM'
Starting GrizzlyServer port number = 55577
Started GrizzlyServer
Sleeping for 2000 ms
Dec 30, 2009 3:36:20 AM com.sun.jersey.server.impl.application.WebApplicationImpl initiate
INFO: Initiating Jersey application, version 'Jersey: 1.1.5-ea-SNAPSHOT 12/30/2009 02:40 AM'
Starting GrizzlyServer port number = 55577
Started GrizzlyServer
Sleeping for 2000 ms
Dec 30, 2009 3:36:24 AM com.sun.jersey.server.impl.application.WebApplicationImpl initiate
INFO: Initiating Jersey application, version 'Jersey: 1.1.5-ea-SNAPSHOT 12/30/2009 02:40 AM'
Starting GrizzlyServer port number = 55577
Started GrizzlyServer
Sleeping for 2000 ms
Dec 30, 2009 3:36:27 AM com.sun.jersey.server.impl.application.WebApplicationImpl initiate
INFO: Initiating Jersey application, version 'Jersey: 1.1.5-ea-SNAPSHOT 12/30/2009 02:40 AM'
Starting GrizzlyServer port number = 55577
Started GrizzlyServer
Sleeping for 2000 ms
Dec 30, 2009 3:36:31 AM com.sun.jersey.server.impl.application.WebApplicationImpl initiate
INFO: Initiating Jersey application, version 'Jersey: 1.1.5-ea-SNAPSHOT 12/30/2009 02:40 AM'
Starting GrizzlyServer port number = 55577
Started GrizzlyServer
Sleeping for 2000 ms
Dec 30, 2009 3:36:33 AM com.sun.jersey.server.impl.application.WebApplicationImpl initiate
INFO: Initiating Jersey application, version 'Jersey: 1.1.5-ea-SNAPSHOT 12/30/2009 02:40 AM'
Starting GrizzlyServer port number = 55577
Started GrizzlyServer
Sleeping for 2000 ms
Dec 30, 2009 3:36:37 AM com.sun.jersey.server.impl.application.WebApplicationImpl initiate
INFO: Initiating Jersey application, version 'Jersey: 1.1.5-ea-SNAPSHOT 12/30/2009 02:40 AM'
Starting GrizzlyServer port number = 55577
Started GrizzlyServer
Sleeping for 2000 ms
Dec 30, 2009 3:36:41 AM com.sun.jersey.server.impl.application.WebApplicationImpl initiate
INFO: Initiating Jersey application, version 'Jersey: 1.1.5-ea-SNAPSHOT 12/30/2009 02:40 AM'
Starting GrizzlyServer port number = 55577
Started GrizzlyServer
Sleeping for 2000 ms
Dec 30, 2009 3:36:45 AM com.sun.jersey.server.impl.application.WebApplicationImpl initiate
INFO: Initiating Jersey application, version 'Jersey: 1.1.5-ea-SNAPSHOT 12/30/2009 02:40 AM'
Starting GrizzlyServer port number = 55577
Started GrizzlyServer
Sleeping for 2000 ms
Dec 30, 2009 3:36:53 AM com.sun.jersey.server.impl.application.WebApplicationImpl initiate
INFO: Initiating Jersey application, version 'Jersey: 1.1.5-ea-SNAPSHOT 12/30/2009 02:40 AM'
Starting GrizzlyServer port number = 55577
Started GrizzlyServer
Sleeping for 2000 ms
Dec 30, 2009 3:36:56 AM com.sun.jersey.server.impl.application.WebApplicationImpl initiate
INFO: Initiating Jersey application, version 'Jersey: 1.1.5-ea-SNAPSHOT 12/30/2009 02:40 AM'
Starting GrizzlyServer port number = 55577
Started GrizzlyServer
Sleeping for 2000 ms
Dec 30, 2009 3:37:00 AM com.sun.jersey.server.impl.application.WebApplicationImpl initiate
INFO: Initiating Jersey application, version 'Jersey: 1.1.5-ea-SNAPSHOT 12/30/2009 02:40 AM'
Starting GrizzlyServer port number = 55577
Started GrizzlyServer
Sleeping for 2000 ms
Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 66.442 sec
Running com.sun.jersey.impl.template.ImplicitProducesTemplateProcessorTest
Dec 30, 2009 3:37:04 AM com.sun.jersey.server.impl.application.WebApplicationImpl initiate
INFO: Initiating Jersey application, version 'Jersey: 1.1.5-ea-SNAPSHOT 12/30/2009 02:40 AM'
Dec 30, 2009 3:37:06 AM com.sun.jersey.server.impl.application.WebApplicationImpl initiate
INFO: Initiating Jersey application, version 'Jersey: 1.1.5-ea-SNAPSHOT 12/30/2009 02:40 AM'
Dec 30, 2009 3:37:07 AM com.sun.jersey.server.impl.application.WebApplicationImpl initiate
INFO: Initiating Jersey application, version 'Jersey: 1.1.5-ea-SNAPSHOT 12/30/2009 02:40 AM'
Tests run: 3, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 3.296 sec <<< FAILURE!

Results :

Failed tests:
  testImplicitTemplate(com.sun.jersey.impl.template.ImplicitProducesTemplateProcessorTest)
  testImplicitWithGetTemplate(com.sun.jersey.impl.template.ImplicitProducesTemplateProcessorTest)
  testImplicitWithSubResourceGetTemplate(com.sun.jersey.impl.template.ImplicitProducesTemplateProcessorTest)

Tests in error:

Tests run: 1206, Failures: 4, Errors: 4, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to <http://hudson.sfbay/job/Jersey/ws/jersey/jersey-tests/target/surefire-reports> for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: There are test failures.

Please refer to <http://hudson.sfbay/job/Jersey/ws/jersey/jersey-tests/target/surefire-reports> for the individual test results.
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:579)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures.

Please refer to <http://hudson.sfbay/job/Jersey/ws/jersey/jersey-tests/target/surefire-reports> for the individual test results.
        at org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:530)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
        ... 16 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 57 minutes 42 seconds
[INFO] Finished at: Wed Dec 30 03:37:07 PST 2009
[INFO] Final Memory: 98M/508M
[INFO] ------------------------------------------------------------------------
2009-12-30 03:37:09.628::INFO: Shutdown hook executing
2009-12-30 03:37:09.628::INFO: Shutdown hook complete
2009-12-30 03:37:10.628::INFO: Shutdown hook complete
2009-12-30 03:37:11.629::INFO: Shutdown hook complete
2009-12-30 03:37:12.629::INFO: Shutdown hook complete
2009-12-30 03:37:13.629::INFO: Shutdown hook complete
2009-12-30 03:37:14.629::INFO: Shutdown hook complete
2009-12-30 03:37:15.629::INFO: Shutdown hook complete
2009-12-30 03:37:16.629::INFO: Shutdown hook complete
2009-12-30 03:37:17.629::INFO: Shutdown hook complete
2009-12-30 03:37:18.629::INFO: Shutdown hook complete
2009-12-30 03:37:19.630::INFO: Shutdown hook complete
2009-12-30 03:37:20.630::INFO: Shutdown hook complete
2009-12-30 03:37:21.630::INFO: Shutdown hook complete
2009-12-30 03:37:22.630::INFO: Shutdown hook complete
2009-12-30 03:37:23.630::INFO: Shutdown hook complete
Recording test results