You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Colm O hEigeartaigh <co...@apache.org> on 2018/01/17 20:03:03 UTC
Failing tests with latest JDK
Hi all,
With the latest JDK (8-161) some tests have started to fail (at least for
me locally), e.g.:
[ERROR]
testWriteNullValueAsString(org.apache.cxf.jaxrs.provider.json.JSONProviderTest)
Time elapsed: 0.006 s <<< FAILURE!
java.lang.AssertionError
at
org.apache.cxf.jaxrs.provider.json.JSONProviderTest.doTestWriteNullValue(JSONProviderTest.java:354)
at
org.apache.cxf.jaxrs.provider.json.JSONProviderTest.testWriteNullValueAsString(JSONProviderTest.java:329)
[ERROR]
testWriteNullValueAsNull(org.apache.cxf.jaxrs.provider.json.JSONProviderTest)
Time elapsed: 0.003 s <<< FAILURE!
java.lang.AssertionError
at
org.apache.cxf.jaxrs.provider.json.JSONProviderTest.doTestWriteNullValue(JSONProviderTest.java:356)
at
org.apache.cxf.jaxrs.provider.json.JSONProviderTest.testWriteNullValueAsNull(JSONProviderTest.java:335)
Colm.
--
Colm O hEigeartaigh
Talend Community Coder
http://coders.talend.com
Re: Failing tests with latest JDK
Posted by Sergey Beryozkin <sb...@gmail.com>.
I mean, does it still work with the older Java 1.8.x after your PR is
applied ?
Sergey
On 18/01/18 10:08, Sergey Beryozkin wrote:
> Hi Jim
>
> Will it work with the earlier JDK 1.8.x, say, 1.8.144 ?
>
> Cheers, Sergey
> On 18/01/18 05:09, Jim Ma wrote:
>> Looks like this jaxb change goes into jdk8 now :
>> https://github.com/javaee/jaxb-v2/commit/8cbd5e0ec41c94d743c6ae993289e7a18d00aed4
>>
>> I already sent a PR(https://github.com/apache/cxf/pull/365/files) to fix
>> these test failures and it should work for jdk1.8.0_161, jdk 9.0.1 and
>> jaxb
>> 2.3.
>>
>> Cheers,
>> Jim
>>
>> On Thu, Jan 18, 2018 at 9:29 AM, Freeman Fang <fr...@gmail.com>
>> wrote:
>>
>>> Yeah, this is an issue we found in JDK9 built-in jaxb firstly, than ran
>>> into same problem in JAXB 2.3, and now seems latest JDK8 built-in
>>> jaxb is
>>> also affected.
>>>
>>> Btw, it is tracked by CXF-7520
>>> [1]https://issues.apache.org/jira/browse/CXF-7520
>>> -------------
>>> Freeman(Yue) Fang
>>>
>>> Red Hat, Inc.
>>> FuseSource is now part of Red Hat
>>>
>>>
>>>
>>>> On Jan 18, 2018, at 4:31 AM, Daniel Kulp <dk...@apache.org> wrote:
>>>>
>>>> These are the same tests that fail on Java9 that Freeman and Jim are
>>> trying to get fixed. I’m willing to bet Oracle back ported the
>>> changes.
>>>>
>>>> Dan
>>>>
>>>>
>>>>> On Jan 17, 2018, at 3:03 PM, Colm O hEigeartaigh <co...@apache.org>
>>> wrote:
>>>>>
>>>>> Hi all,
>>>>>
>>>>> With the latest JDK (8-161) some tests have started to fail (at least
>>> for
>>>>> me locally), e.g.:
>>>>>
>>>>> [ERROR]
>>>>> testWriteNullValueAsString(org.apache.cxf.jaxrs.provider.
>>> json.JSONProviderTest)
>>>>> Time elapsed: 0.006 s <<< FAILURE!
>>>>> java.lang.AssertionError
>>>>> at
>>>>> org.apache.cxf.jaxrs.provider.json.JSONProviderTest.
>>> doTestWriteNullValue(JSONProviderTest.java:354)
>>>>> at
>>>>> org.apache.cxf.jaxrs.provider.json.JSONProviderTest.
>>> testWriteNullValueAsString(JSONProviderTest.java:329)
>>>>>
>>>>> [ERROR]
>>>>> testWriteNullValueAsNull(org.apache.cxf.jaxrs.provider.
>>> json.JSONProviderTest)
>>>>> Time elapsed: 0.003 s <<< FAILURE!
>>>>> java.lang.AssertionError
>>>>> at
>>>>> org.apache.cxf.jaxrs.provider.json.JSONProviderTest.
>>> doTestWriteNullValue(JSONProviderTest.java:356)
>>>>> at
>>>>> org.apache.cxf.jaxrs.provider.json.JSONProviderTest.
>>> testWriteNullValueAsNull(JSONProviderTest.java:335)
>>>>>
>>>>> Colm.
>>>>>
>>>>>
>>>>> --
>>>>> Colm O hEigeartaigh
>>>>>
>>>>> Talend Community Coder
>>>>> http://coders.talend.com
>>>>
>>>> --
>>>> Daniel Kulp
>>>> dkulp@apache.org - http://dankulp.com/blog
>>>> Talend Community Coder - http://coders.talend.com
>>>>
>>>
>>>
>>
Re: Failing tests with latest JDK
Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi Jim
Will it work with the earlier JDK 1.8.x, say, 1.8.144 ?
Cheers, Sergey
On 18/01/18 05:09, Jim Ma wrote:
> Looks like this jaxb change goes into jdk8 now :
> https://github.com/javaee/jaxb-v2/commit/8cbd5e0ec41c94d743c6ae993289e7a18d00aed4
> I already sent a PR(https://github.com/apache/cxf/pull/365/files) to fix
> these test failures and it should work for jdk1.8.0_161, jdk 9.0.1 and jaxb
> 2.3.
>
> Cheers,
> Jim
>
> On Thu, Jan 18, 2018 at 9:29 AM, Freeman Fang <fr...@gmail.com>
> wrote:
>
>> Yeah, this is an issue we found in JDK9 built-in jaxb firstly, than ran
>> into same problem in JAXB 2.3, and now seems latest JDK8 built-in jaxb is
>> also affected.
>>
>> Btw, it is tracked by CXF-7520
>> [1]https://issues.apache.org/jira/browse/CXF-7520
>> -------------
>> Freeman(Yue) Fang
>>
>> Red Hat, Inc.
>> FuseSource is now part of Red Hat
>>
>>
>>
>>> On Jan 18, 2018, at 4:31 AM, Daniel Kulp <dk...@apache.org> wrote:
>>>
>>> These are the same tests that fail on Java9 that Freeman and Jim are
>> trying to get fixed. I’m willing to bet Oracle back ported the changes.
>>>
>>> Dan
>>>
>>>
>>>> On Jan 17, 2018, at 3:03 PM, Colm O hEigeartaigh <co...@apache.org>
>> wrote:
>>>>
>>>> Hi all,
>>>>
>>>> With the latest JDK (8-161) some tests have started to fail (at least
>> for
>>>> me locally), e.g.:
>>>>
>>>> [ERROR]
>>>> testWriteNullValueAsString(org.apache.cxf.jaxrs.provider.
>> json.JSONProviderTest)
>>>> Time elapsed: 0.006 s <<< FAILURE!
>>>> java.lang.AssertionError
>>>> at
>>>> org.apache.cxf.jaxrs.provider.json.JSONProviderTest.
>> doTestWriteNullValue(JSONProviderTest.java:354)
>>>> at
>>>> org.apache.cxf.jaxrs.provider.json.JSONProviderTest.
>> testWriteNullValueAsString(JSONProviderTest.java:329)
>>>>
>>>> [ERROR]
>>>> testWriteNullValueAsNull(org.apache.cxf.jaxrs.provider.
>> json.JSONProviderTest)
>>>> Time elapsed: 0.003 s <<< FAILURE!
>>>> java.lang.AssertionError
>>>> at
>>>> org.apache.cxf.jaxrs.provider.json.JSONProviderTest.
>> doTestWriteNullValue(JSONProviderTest.java:356)
>>>> at
>>>> org.apache.cxf.jaxrs.provider.json.JSONProviderTest.
>> testWriteNullValueAsNull(JSONProviderTest.java:335)
>>>>
>>>> Colm.
>>>>
>>>>
>>>> --
>>>> Colm O hEigeartaigh
>>>>
>>>> Talend Community Coder
>>>> http://coders.talend.com
>>>
>>> --
>>> Daniel Kulp
>>> dkulp@apache.org - http://dankulp.com/blog
>>> Talend Community Coder - http://coders.talend.com
>>>
>>
>>
>
Re: Failing tests with latest JDK
Posted by Jim Ma <ma...@gmail.com>.
Looks like this jaxb change goes into jdk8 now :
https://github.com/javaee/jaxb-v2/commit/8cbd5e0ec41c94d743c6ae993289e7a18d00aed4
I already sent a PR(https://github.com/apache/cxf/pull/365/files) to fix
these test failures and it should work for jdk1.8.0_161, jdk 9.0.1 and jaxb
2.3.
Cheers,
Jim
On Thu, Jan 18, 2018 at 9:29 AM, Freeman Fang <fr...@gmail.com>
wrote:
> Yeah, this is an issue we found in JDK9 built-in jaxb firstly, than ran
> into same problem in JAXB 2.3, and now seems latest JDK8 built-in jaxb is
> also affected.
>
> Btw, it is tracked by CXF-7520
> [1]https://issues.apache.org/jira/browse/CXF-7520
> -------------
> Freeman(Yue) Fang
>
> Red Hat, Inc.
> FuseSource is now part of Red Hat
>
>
>
> > On Jan 18, 2018, at 4:31 AM, Daniel Kulp <dk...@apache.org> wrote:
> >
> > These are the same tests that fail on Java9 that Freeman and Jim are
> trying to get fixed. I’m willing to bet Oracle back ported the changes.
> >
> > Dan
> >
> >
> >> On Jan 17, 2018, at 3:03 PM, Colm O hEigeartaigh <co...@apache.org>
> wrote:
> >>
> >> Hi all,
> >>
> >> With the latest JDK (8-161) some tests have started to fail (at least
> for
> >> me locally), e.g.:
> >>
> >> [ERROR]
> >> testWriteNullValueAsString(org.apache.cxf.jaxrs.provider.
> json.JSONProviderTest)
> >> Time elapsed: 0.006 s <<< FAILURE!
> >> java.lang.AssertionError
> >> at
> >> org.apache.cxf.jaxrs.provider.json.JSONProviderTest.
> doTestWriteNullValue(JSONProviderTest.java:354)
> >> at
> >> org.apache.cxf.jaxrs.provider.json.JSONProviderTest.
> testWriteNullValueAsString(JSONProviderTest.java:329)
> >>
> >> [ERROR]
> >> testWriteNullValueAsNull(org.apache.cxf.jaxrs.provider.
> json.JSONProviderTest)
> >> Time elapsed: 0.003 s <<< FAILURE!
> >> java.lang.AssertionError
> >> at
> >> org.apache.cxf.jaxrs.provider.json.JSONProviderTest.
> doTestWriteNullValue(JSONProviderTest.java:356)
> >> at
> >> org.apache.cxf.jaxrs.provider.json.JSONProviderTest.
> testWriteNullValueAsNull(JSONProviderTest.java:335)
> >>
> >> Colm.
> >>
> >>
> >> --
> >> Colm O hEigeartaigh
> >>
> >> Talend Community Coder
> >> http://coders.talend.com
> >
> > --
> > Daniel Kulp
> > dkulp@apache.org - http://dankulp.com/blog
> > Talend Community Coder - http://coders.talend.com
> >
>
>
Re: Failing tests with latest JDK
Posted by Freeman Fang <fr...@gmail.com>.
Yeah, this is an issue we found in JDK9 built-in jaxb firstly, than ran into same problem in JAXB 2.3, and now seems latest JDK8 built-in jaxb is also affected.
Btw, it is tracked by CXF-7520
[1]https://issues.apache.org/jira/browse/CXF-7520
-------------
Freeman(Yue) Fang
Red Hat, Inc.
FuseSource is now part of Red Hat
> On Jan 18, 2018, at 4:31 AM, Daniel Kulp <dk...@apache.org> wrote:
>
> These are the same tests that fail on Java9 that Freeman and Jim are trying to get fixed. I’m willing to bet Oracle back ported the changes.
>
> Dan
>
>
>> On Jan 17, 2018, at 3:03 PM, Colm O hEigeartaigh <co...@apache.org> wrote:
>>
>> Hi all,
>>
>> With the latest JDK (8-161) some tests have started to fail (at least for
>> me locally), e.g.:
>>
>> [ERROR]
>> testWriteNullValueAsString(org.apache.cxf.jaxrs.provider.json.JSONProviderTest)
>> Time elapsed: 0.006 s <<< FAILURE!
>> java.lang.AssertionError
>> at
>> org.apache.cxf.jaxrs.provider.json.JSONProviderTest.doTestWriteNullValue(JSONProviderTest.java:354)
>> at
>> org.apache.cxf.jaxrs.provider.json.JSONProviderTest.testWriteNullValueAsString(JSONProviderTest.java:329)
>>
>> [ERROR]
>> testWriteNullValueAsNull(org.apache.cxf.jaxrs.provider.json.JSONProviderTest)
>> Time elapsed: 0.003 s <<< FAILURE!
>> java.lang.AssertionError
>> at
>> org.apache.cxf.jaxrs.provider.json.JSONProviderTest.doTestWriteNullValue(JSONProviderTest.java:356)
>> at
>> org.apache.cxf.jaxrs.provider.json.JSONProviderTest.testWriteNullValueAsNull(JSONProviderTest.java:335)
>>
>> Colm.
>>
>>
>> --
>> Colm O hEigeartaigh
>>
>> Talend Community Coder
>> http://coders.talend.com
>
> --
> Daniel Kulp
> dkulp@apache.org - http://dankulp.com/blog
> Talend Community Coder - http://coders.talend.com
>
Re: Failing tests with latest JDK
Posted by Daniel Kulp <dk...@apache.org>.
These are the same tests that fail on Java9 that Freeman and Jim are trying to get fixed. I’m willing to bet Oracle back ported the changes.
Dan
> On Jan 17, 2018, at 3:03 PM, Colm O hEigeartaigh <co...@apache.org> wrote:
>
> Hi all,
>
> With the latest JDK (8-161) some tests have started to fail (at least for
> me locally), e.g.:
>
> [ERROR]
> testWriteNullValueAsString(org.apache.cxf.jaxrs.provider.json.JSONProviderTest)
> Time elapsed: 0.006 s <<< FAILURE!
> java.lang.AssertionError
> at
> org.apache.cxf.jaxrs.provider.json.JSONProviderTest.doTestWriteNullValue(JSONProviderTest.java:354)
> at
> org.apache.cxf.jaxrs.provider.json.JSONProviderTest.testWriteNullValueAsString(JSONProviderTest.java:329)
>
> [ERROR]
> testWriteNullValueAsNull(org.apache.cxf.jaxrs.provider.json.JSONProviderTest)
> Time elapsed: 0.003 s <<< FAILURE!
> java.lang.AssertionError
> at
> org.apache.cxf.jaxrs.provider.json.JSONProviderTest.doTestWriteNullValue(JSONProviderTest.java:356)
> at
> org.apache.cxf.jaxrs.provider.json.JSONProviderTest.testWriteNullValueAsNull(JSONProviderTest.java:335)
>
> Colm.
>
>
> --
> Colm O hEigeartaigh
>
> Talend Community Coder
> http://coders.talend.com
--
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com