Hi Are you sure that this error does not happen in the junit test or even in the junit framework? You may can check this while running these junit tests in Eclipse. If the error still occures, it is a junit problem. If not, it is a Ant problem.
Remo > -----Original Message----- > From: Mikael Petterson (KI/EAB) > [mailto:[EMAIL PROTECTED] > Sent: Mittwoch, 26. Oktober 2005 10:13 > To: user@ant.apache.org > Subject: java.nio.BufferOverflowException in junit task > > Hi, > > we are running some junit (3.8.1) tests with ant (1.6.2) and > after a while when running the tests we get the following > error (see below). > we are using sun's jdk 1.4.2_04. > Any ideas what this might be? > > cheers, > > //mikael > > > The ' characters around the executable and arguments are not > part of the command. > [junit] Tests run: 3, Failures: 0, Errors: 0, Time > elapsed: 0.873 sec > [junit] Tests run: 19, Failures: 0, Errors: 0, Time > elapsed: 0.103 sec > [junit] Exception in thread "main" > java.nio.BufferOverflowException > [junit] at > java.nio.charset.CoderResult.throwException(CoderResult.java:259) > [junit] at > java.lang.StringCoding$CharsetSD.decode(StringCoding.java:188) > [junit] at > java.lang.StringCoding.decode(StringCoding.java:224) > [junit] at > java.lang.StringCoding.decode(StringCoding.java:230) > [junit] at java.lang.String.<init>(String.java:371) > [junit] at java.lang.String.<init>(String.java:390) > [junit] at > org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.r > un(JUnitTestRunner.java:305) > [junit] at > org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.l > aunch(JUnitTestRunner.java:656) > [junit] at > org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.m > ain(JUnitTestRunner.java:537) > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] For > additional commands, e-mail: [EMAIL PROTECTED] > > > ____________________________________________________________ > This message has been checked for all known viruses by Messagelabs. > ____________________________________________________________ This message may contain legally privileged or confidential information and is therefore addressed to the named persons only. The recipient should inform the sender and delete this message, if he/she is not named as addressee. The sender disclaims any and all liability for the integrity and punctuality of this message. The sender has activated an automatic virus scanning by Messagelabs, but does not guarantee the virus free transmission of this message. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]