The test machine probably has a non-UTF8 character encoding.
You can make this test fail locally if you set the -Dfile.encoding to
something other than UTF-8 when you run the tests.
In XMLTokenStream.openStream() adding explicit encoding fixes the problem
InputStreamReader rawReader = new InputStreamReader(rawStream, "UTF8");
LineNumberReader reader = new LineNumberReader(rawReader);
ByteArrayOutputStream bos = new ByteArrayOutputStream(5000);
PrintWriter writer = new PrintWriter(new
OutputStreamWriter(bos, "UTF8"));
This forces users to UTF8 instead of the default system encoding.
The better option would be to add support for <?xml encoding="ASCII">
and default explicitly to UTF8.
This was pointed out on the user list a while back, I assumed this
test was added to validate the case but I haven't done any further
research.
Josh
On Thu, Jan 5, 2012 at 1:30 PM, Howard Lewis Ship <[email protected]> wrote:
> I wonder if this is a real bug caused by, perhaps, some different JDK
> configuration on the Jenkins server than on our workstations?
>
> On Thu, Jan 5, 2012 at 12:45 PM, Igor Drobiazko
> <[email protected]> wrote:
>> The build is failing since December 15th. Apart from Ajax test that fail
>> from time to time, we have a test case which fails constantly. See the
>> following link.
>>
>> https://builds.apache.org/job/tapestry-trunk-freestyle/ws/trunk/tapestry-core/build/reports/tests/Tapestry%20Core/Service%20Unit%20Tests.html
>>
>> The funny thing is that this test is successful on my local machine. I vote
>> for disabling this test until we have a solution for it. I'd like to have
>> all the other test running.
>>
>> --
>> Best regards,
>>
>> Igor Drobiazko
>> http://tapestry5.de
>> http://twitter.com/drobiazko
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
>
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
>
> (971) 678-5210
> http://howardlewisship.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]