You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Christian Schneider <ch...@die-schneider.net> on 2008/10/01 09:06:15 UTC

Error in full build on JAX-RS Frontend

I am just trying a sucessful full build before commiting the next 
changes on JMS Transport.
On JAX-RS I am getting the following error. Any ideas what is going wrong?

Could it have to do with my german language settings?

Greetings

Christian

[INFO] 
------------------------------------------------------------------------
[INFO] Building Apache CXF Runtime JAX-RS Frontend
[INFO]    task-segment: [install]
[INFO] 
------------------------------------------------------------------------
[INFO] [cxf-xml2fastinfoset:xml2fastinfoset {execution: xml2fastinfoset}]
[INFO] [remote-resources:process {execution: default}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Compiling 40 source files to 
C:\java\cxf\apache-cxf-head\rt\frontend\jaxrs\target\test-classes
[INFO] [surefire:test]
[INFO] Surefire report directory: 
C:\java\cxf\apache-cxf-head\rt\frontend\jaxrs\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.cxf.jaxrs.impl.UriBuilderImplTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.101 sec
Running org.apache.cxf.jaxrs.provider.AtomEntryProviderTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.608 sec
Running org.apache.cxf.jaxrs.impl.HttpHeadersImplTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.079 sec
Running org.apache.cxf.jaxrs.impl.VariantListBuilderImplTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.023 sec
Running org.apache.cxf.jaxrs.impl.CacheControlHeaderProviderTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running org.apache.cxf.jaxrs.impl.RuntimeDelegateImplTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.017 sec
Running org.apache.cxf.jaxrs.provider.BinaryDataProviderTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.02 sec
Running org.apache.cxf.jaxrs.impl.RequestImplTest
Tests run: 5, Failures: 0, Errors: 1, Skipped: 1, Time elapsed: 0.032 
sec <<< FAILURE!
testBeforeDate(org.apache.cxf.jaxrs.impl.RequestImplTest)  Time elapsed: 
0.008 sec  <<< ERROR!
java.text.ParseException: Unparseable date: "Sun, 29 Oct 1994 19:43:31 GMT"
        at java.text.DateFormat.parse(DateFormat.java:337)
        at 
org.apache.cxf.jaxrs.impl.RequestImplTest.testBeforeDate(RequestImplTest.java:90)
        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:597)
        at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
        at 
org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
        at 
org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
        at 
org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
        at 
org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
        at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
        at 
org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
        at 
org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
        at 
org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
        at 
org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
        at 
org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
        at 
org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
        at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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:597)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)

Running org.apache.cxf.jaxrs.impl.EntityTagHeaderProviderTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running org.apache.cxf.jaxrs.model.ClassResourceInfoTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.06 sec
Running org.apache.cxf.jaxrs.model.OperationResourceInfoTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 sec
Running org.apache.cxf.jaxrs.utils.JAXRSUtilsTest
Tests run: 28, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.271 sec
Running org.apache.cxf.jaxrs.impl.NewCookieHeaderProviderTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 sec
Running org.apache.cxf.jaxrs.provider.SourceProviderTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.087 sec
Running org.apache.cxf.jaxrs.SelectMethodCandidatesTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 sec
Running org.apache.cxf.jaxrs.impl.MediaTypeHeaderProviderTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.021 sec
Running org.apache.cxf.jaxrs.model.URITemplateTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.017 sec
Running org.apache.cxf.jaxrs.provider.FormEncodingReaderProviderTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running org.apache.cxf.jaxrs.provider.ProviderFactoryTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.041 sec
Running org.apache.cxf.jaxrs.impl.ResponseBuilderImplTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 sec
Running org.apache.cxf.jaxrs.JAXRSServiceFactoryBeanTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 sec
Running org.apache.cxf.jaxrs.provider.AtomFeedProviderTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 sec
Running org.apache.cxf.jaxrs.impl.UriInfoImplTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.039 sec
Running org.apache.cxf.jaxrs.impl.MetadataMapTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec
Running org.apache.cxf.jaxrs.impl.CookieHeaderProviderTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running org.apache.cxf.jaxrs.impl.ResponseImplTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec

Results :

Tests in error:
  testBeforeDate(org.apache.cxf.jaxrs.impl.RequestImplTest)

Tests run: 126, Failures: 0, Errors: 1, Skipped: 1

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

Please refer to 
C:\java\cxf\apache-cxf-head\rt\frontend\jaxrs\target\surefire-reports 
for the individual test results.
[INFO] 
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 12 minutes 58 seconds
[INFO] Finished at: Wed Oct 01 08:50:47 CEST 2008
[INFO] Final Memory: 90M/171M
[INFO] 
------------------------------------------------------------------------

-- 

Christian Schneider
---
http://www.liquid-reality.de


Re: Error in full build on JAX-RS Frontend

Posted by Sergey Beryozkin <se...@iona.com>.
Hi Christian

Perfect - thanks for taking care of it. 

Cheers, Sergey

> Hi Sergey,
> 
> I have simply added the locale. It works for me now:
> 
> Date serverDate = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", 
> Locale.ENGLISH)
>            .parse("Sun, 29 Oct 1994 19:43:31 GMT");
> 
> Greetings
> 
> Christian
> 
> Sergey Beryozkin schrieb:
>> Hi
>>
>>> I am just trying a sucessful full build before commiting the next 
>>> changes on JMS Transport.
>>> On JAX-RS I am getting the following error. Any ideas what is going 
>>> wrong?
>>>
>>> Could it have to do with my german language settings?
>>
>> I'm not sure. Can you please try to update 'Sat' and 'Oct' in
>>
>> "Sat, 29 Oct 1994 19:43:31 GMT"
>>
>> (and possibly GMT ? ) with German language equivalents and see what 
>> happens ?
>>
>> May be this test needs to be updated such that the dates are not 
>> hardcoded. If it blocks you then please
>> disable it and create a JIRA and I'll look into it when I start 
>> completing JAXRS Request implementation.
>>
>> Cheers, Sergey
> 
> 
> -- 
> 
> Christian Schneider
> ---
> http://www.liquid-reality.de

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland

Re: Error in full build on JAX-RS Frontend

Posted by Christian Schneider <ch...@die-schneider.net>.
Hi Sergey,

I have simply added the locale. It works for me now:

 Date serverDate = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", 
Locale.ENGLISH)
            .parse("Sun, 29 Oct 1994 19:43:31 GMT");

Greetings

Christian

Sergey Beryozkin schrieb:
> Hi
>
>> I am just trying a sucessful full build before commiting the next 
>> changes on JMS Transport.
>> On JAX-RS I am getting the following error. Any ideas what is going 
>> wrong?
>>
>> Could it have to do with my german language settings?
>
> I'm not sure. Can you please try to update 'Sat' and 'Oct' in
>
> "Sat, 29 Oct 1994 19:43:31 GMT"
>
> (and possibly GMT ? ) with German language equivalents and see what 
> happens ?
>
> May be this test needs to be updated such that the dates are not 
> hardcoded. If it blocks you then please
> disable it and create a JIRA and I'll look into it when I start 
> completing JAXRS Request implementation.
>
> Cheers, Sergey


-- 

Christian Schneider
---
http://www.liquid-reality.de


Re: Error in full build on JAX-RS Frontend

Posted by Sergey Beryozkin <se...@iona.com>.
Hi

>I am just trying a sucessful full build before commiting the next 
> changes on JMS Transport.
> On JAX-RS I am getting the following error. Any ideas what is going wrong?
> 
> Could it have to do with my german language settings?

I'm not sure. Can you please try to update 'Sat' and 'Oct' in

"Sat, 29 Oct 1994 19:43:31 GMT"

(and possibly GMT ? ) with German language equivalents and see what happens ?

May be this test needs to be updated such that the dates are not hardcoded. If it blocks you then please
disable it and create a JIRA and I'll look into it when I start completing JAXRS Request implementation.

Cheers, Sergey

> 
> Greetings
> 
> Christian
> 
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building Apache CXF Runtime JAX-RS Frontend
> [INFO]    task-segment: [install]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] [cxf-xml2fastinfoset:xml2fastinfoset {execution: xml2fastinfoset}]
> [INFO] [remote-resources:process {execution: default}]
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] Compiling 40 source files to 
> C:\java\cxf\apache-cxf-head\rt\frontend\jaxrs\target\test-classes
> [INFO] [surefire:test]
> [INFO] Surefire report directory: 
> C:\java\cxf\apache-cxf-head\rt\frontend\jaxrs\target\surefire-reports
> 
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> Running org.apache.cxf.jaxrs.impl.UriBuilderImplTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.101 sec
> Running org.apache.cxf.jaxrs.provider.AtomEntryProviderTest
> Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.608 sec
> Running org.apache.cxf.jaxrs.impl.HttpHeadersImplTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.079 sec
> Running org.apache.cxf.jaxrs.impl.VariantListBuilderImplTest
> Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.023 sec
> Running org.apache.cxf.jaxrs.impl.CacheControlHeaderProviderTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
> Running org.apache.cxf.jaxrs.impl.RuntimeDelegateImplTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.017 sec
> Running org.apache.cxf.jaxrs.provider.BinaryDataProviderTest
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.02 sec
> Running org.apache.cxf.jaxrs.impl.RequestImplTest
> Tests run: 5, Failures: 0, Errors: 1, Skipped: 1, Time elapsed: 0.032 
> sec <<< FAILURE!
> testBeforeDate(org.apache.cxf.jaxrs.impl.RequestImplTest)  Time elapsed: 
> 0.008 sec  <<< ERROR!
> java.text.ParseException: Unparseable date: "Sun, 29 Oct 1994 19:43:31 GMT"
>        at java.text.DateFormat.parse(DateFormat.java:337)
>        at 
> org.apache.cxf.jaxrs.impl.RequestImplTest.testBeforeDate(RequestImplTest.java:90)
>        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:597)
>        at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
>        at 
> org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
>        at 
> org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
>        at 
> org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
>        at 
> org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
>        at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
>        at 
> org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
>        at 
> org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
>        at 
> org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
>        at 
> org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
>        at 
> org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
>        at 
> org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
>        at 
> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
>        at 
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
>        at 
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
>        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
>        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:597)
>        at 
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
>        at 
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
> 
> Running org.apache.cxf.jaxrs.impl.EntityTagHeaderProviderTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
> Running org.apache.cxf.jaxrs.model.ClassResourceInfoTest
> Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.06 sec
> Running org.apache.cxf.jaxrs.model.OperationResourceInfoTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 sec
> Running org.apache.cxf.jaxrs.utils.JAXRSUtilsTest
> Tests run: 28, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.271 sec
> Running org.apache.cxf.jaxrs.impl.NewCookieHeaderProviderTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 sec
> Running org.apache.cxf.jaxrs.provider.SourceProviderTest
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.087 sec
> Running org.apache.cxf.jaxrs.SelectMethodCandidatesTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 sec
> Running org.apache.cxf.jaxrs.impl.MediaTypeHeaderProviderTest
> Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.021 sec
> Running org.apache.cxf.jaxrs.model.URITemplateTest
> Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.017 sec
> Running org.apache.cxf.jaxrs.provider.FormEncodingReaderProviderTest
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
> Running org.apache.cxf.jaxrs.provider.ProviderFactoryTest
> Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.041 sec
> Running org.apache.cxf.jaxrs.impl.ResponseBuilderImplTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 sec
> Running org.apache.cxf.jaxrs.JAXRSServiceFactoryBeanTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 sec
> Running org.apache.cxf.jaxrs.provider.AtomFeedProviderTest
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 sec
> Running org.apache.cxf.jaxrs.impl.UriInfoImplTest
> Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.039 sec
> Running org.apache.cxf.jaxrs.impl.MetadataMapTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec
> Running org.apache.cxf.jaxrs.impl.CookieHeaderProviderTest
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
> Running org.apache.cxf.jaxrs.impl.ResponseImplTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec
> 
> Results :
> 
> Tests in error:
>  testBeforeDate(org.apache.cxf.jaxrs.impl.RequestImplTest)
> 
> Tests run: 126, Failures: 0, Errors: 1, Skipped: 1
> 
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] There are test failures.
> 
> Please refer to 
> C:\java\cxf\apache-cxf-head\rt\frontend\jaxrs\target\surefire-reports 
> for the individual test results.
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 12 minutes 58 seconds
> [INFO] Finished at: Wed Oct 01 08:50:47 CEST 2008
> [INFO] Final Memory: 90M/171M
> [INFO] 
> ------------------------------------------------------------------------
> 
> -- 
> 
> Christian Schneider
> ---
> http://www.liquid-reality.de

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland