You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Dennis Lundberg <de...@apache.org> on 2007/07/04 23:10:44 UTC
[logging] Running tests on earlier JVMs
Hi
I'm trying to put together an an script that will do nothing more than
run the tests for commons logging. It's going fairly well. A couple of
issues that I found though that I need assistance with.
Failing test
============
The two test files in the security package both fail. These tests were
run using a 1.3 jvm (see below why that is).
Testsuite: org.apache.commons.logging.security.SecurityAllowedTestCase
Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0,016 sec
------------- Standard Output ---------------
testing permission:class
java.util.PropertyPermission:(java.util.PropertyPermission
sun.net.inetaddr.ttl read)
------------- ---------------- ---------------
Testcase: testAllAllowed took 0,016 sec
Caused an ERROR
null
java.lang.NoClassDefFoundError
at java.lang.System.setSecurityManager0(System.java:239)
at java.lang.System.setSecurityManager(System.java:208)
at
org.apache.commons.logging.security.SecurityAllowedTestCase.tearDown(SecurityAllowedTestCase.java:77)
at
org.apache.commons.logging.PathableTestSuite.runTest(PathableTestSuite.java:142)
Testsuite: org.apache.commons.logging.security.SecurityForbiddenTestCase
Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0,015 sec
Testcase: testAllForbidden took 0,015 sec
Caused an ERROR
null
java.lang.NoClassDefFoundError
at java.lang.System.setSecurityManager0(System.java:239)
at java.lang.System.setSecurityManager(System.java:208)
at
org.apache.commons.logging.security.SecurityForbiddenTestCase.tearDown(SecurityForbiddenTestCase.java:80)
at
org.apache.commons.logging.PathableTestSuite.runTest(PathableTestSuite.java:142)
Finding a (really old) platform to run on
=========================================
We've said earlier that we should ideally run the tests using a 1.2 jvm.
So I installed 1.2.2_17 on my Windows machine and started running tests.
That didn't go to well. Here's what I get:
Buildfile: build-testing.xml
A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
occurred in :
'org/apache/tools/ant/Project.addReference
(Ljava/lang/String;Ljava/lang/Object;)V': Interpreting method.
Please report this error in detail to
http://java.sun.com/cgi-bin/bugreport.cgi
A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
occurred in :
'org/apache/tools/ant/Project.fireMessageLoggedEvent
(Lorg/apache/tools/ant/BuildEvent;Ljava/lang/String;I)V': Interpreting
method
.
Please report this error in detail to
http://java.sun.com/cgi-bin/bugreport.cgi
A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
occurred in :
'org/apache/tools/ant/ComponentHelper.addCreatedTask
(Ljava/lang/String;Lorg/apache/tools/ant/Task;)V': Interpreting method.
Please report this error in detail to
http://java.sun.com/cgi-bin/bugreport.cgi
init:
[echo] -------- Logging Wrapper Library 1.1.1-SNAPSHOT --------
discovery:
log4j12-test-warning:
test:
[echo] Test output can be found in directory
G:\apache\jakarta\commons-logging/target/test-reports.
[delete] Deleting directory
G:\apache\jakarta\commons-logging\target\test-reports
[mkdir] Created dir:
G:\apache\jakarta\commons-logging\target\test-reports
[echo] executing tests [**/*TestCase.java]
A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
occurred in :
'org/apache/tools/ant/ComponentHelper.getDataTypeDefinitions
()Ljava/util/Hashtable;': Interpreting method.
Please report this error in detail to
http://java.sun.com/cgi-bin/bugreport.cgi
A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
occurred in :
'org/apache/tools/ant/DirectoryScanner.scan ()V': Interpreting method.
Please report this error in detail to
http://java.sun.com/cgi-bin/bugreport.cgi
A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
occurred in :
'org/apache/tools/ant/util/FileUtils.createTempFile
(Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File;':
Interpret
ing method.
Please report this error in detail to
http://java.sun.com/cgi-bin/bugreport.cgi
A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
occurred in :
'org/apache/tools/ant/taskdefs/ProcessDestroyer.add
(Ljava/lang/Process;)Z': Interpreting method.
Please report this error in detail to
http://java.sun.com/cgi-bin/bugreport.cgi
[junit] java.lang.IllegalMonitorStateException: current thread not
owner
[junit] at
org.apache.tools.ant.taskdefs.StreamPumper.run(StreamPumper.java,
Compiled Code)
[junit] at java.lang.Thread.run(Thread.java:479)
[junit] java.lang.IllegalMonitorStateException: current thread not
owner
[junit] at
org.apache.tools.ant.taskdefs.StreamPumper.run(StreamPumper.java,
Compiled Code)
[junit] at java.lang.Thread.run(Thread.java:479)
And then it just hangs! This is done using ant 1.6.5. When I tried with
ant 1.5.4 it didn't work at all because we use "propertyset":
BUILD FAILED
file:G:/apache/jakarta/commons-logging/build-testing.xml:171: Unexpected
element "propertyset"
I don't know the jvm requirements for the different ant versions.
I'll be checking in the ant script shortly... Any pointers to what might
be going wrong here is greatly appreciated.
--
Dennis Lundberg
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: [logging] Running tests on earlier JVMs
Posted by simon <si...@chello.at>.
On Mon, 2007-07-23 at 02:30 +0200, Dennis Lundberg wrote:
> Dennis Lundberg wrote:
> > My plan is to create a 1.1.1 release with Maven 2. However, Maven 2 runs
> > on a 1.4 JVM so we can't be 100% sure that the tests really pass on a
> > 1.2 JVM. The idea is that the RM will run a separate Ant script that
> > uses the binaries that M2 created (both main and test jars) and run it
> > on an earlier JVM, for verification.
Sounds good to me. I was initally thinking that Maven could use "run in
external jvm" to execute tests under 1.2/1.3 JVMs, but an Ant script
also sounds ok to me.
> >> JCL source will not compile for me on a 1.2.2 JVM (IIRC some 1.2 JVM had
> >> compilers bugs)
> >
> > Compiler bugs are of no concern to me at the moment. As explained above
> > the goal is to build with Maven 2 on a 1.4 JVM.
+1
> However, I'm seeing
> > runtime bugs in the JVM, which is disturbing.
>
> OK, I turned to old friend Google with the JIT error messages. After
> some digging it turns out that Ant doesn't like to run on an old JVM
> with the JIT turned on, so it has to be turned off. I've added
> instructions for this in build-testing.xml.
Well spotted :-)
>
> >> the tests will not compile for me on 1.3.1 JVM: MockSecurityManager uses
> >> Exception.getStackTrace() which was introduced with 1.4
> >
> > Aah, brilliant! I looked and looked at the two tests that use the damned
> > thing and couldn't find anything wrong with them. Thanks for the extra
> > pair of eyes!
>
> I've excluded the security tests from the Ant testing script, because I
> couldn't find a way to rewrite the MockSecurityManager so that it could
> run on earlier JVMs.
Fine with me.
Cheers,
Simon
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: [logging] Running tests on earlier JVMs
Posted by Dennis Lundberg <de...@apache.org>.
Dennis Lundberg wrote:
> Robert Burrell Donkin wrote:
>> (fetchmail->jsieve->IMAP is now working fine for me in JAMES and i've
>> stopped buggy FETCH response crashing evolution so but i won't have
>> access to my old mail until i've rewritten the backend so that it will
>> perform against big message sets. in short, i think i'm getting commons
>> mail ok but i'm short on archives...)
>>
>> so could people help me get back up to speed on where we are with JCL
>> and were we want to get to...?
>
> There is need for a 1.1.1 release of commons-logging. All the pressing
> bugs have been fixed and tested. The build system has been expanded to
> include Maven, though Ant and Maven 1 should still work too.
>
> My plan is to create a 1.1.1 release with Maven 2. However, Maven 2 runs
> on a 1.4 JVM so we can't be 100% sure that the tests really pass on a
> 1.2 JVM. The idea is that the RM will run a separate Ant script that
> uses the binaries that M2 created (both main and test jars) and run it
> on an earlier JVM, for verification.
>
> It is that Ant script that I'm currently working on, and am having
> trouble with. See more below...
>
>>
>> On Thu, 2007-07-19 at 22:19 +0200, Dennis Lundberg wrote:
>>> Henri Yandell wrote:
>>
>> <snip>
>>
>>>>>> Finding a (really old) platform to run on
>>>>>> =========================================
>>>>>>
>>>>>> We've said earlier that we should ideally run the tests using a 1.2
>>>>> jvm.
>>>>>> So I installed 1.2.2_17 on my Windows machine and started running
>>>>> tests.
>>>>>> That didn't go to well. Here's what I get:
>>>>>>
>>>>>>
>>>>>> Buildfile: build-testing.xml
>>>>>> A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional'
>>>>>> has
>>>>>> occurred in :
>>>>>> 'org/apache/tools/ant/Project.addReference
>>>>>> (Ljava/lang/String;Ljava/lang/Object;)V': Interpreting method.
>>>>>> Please report this error in detail to
>>>>>> http://java.sun.com/cgi-bin/bugreport.cgi
>>>>>>
>>>>>> A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional'
>>>>>> has
>>>>>> occurred in :
>>>>>> 'org/apache/tools/ant/Project.fireMessageLoggedEvent
>>>>>> (Lorg/apache/tools/ant/BuildEvent;Ljava/lang/String;I)V':
>>>>>> Interpreting
>>>>>> method
>>>>>> .
>>>>>> Please report this error in detail to
>>>>>> http://java.sun.com/cgi-bin/bugreport.cgi
>>>>>>
>>>>>> A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional'
>>>>>> has
>>>>>> occurred in :
>>>>>> 'org/apache/tools/ant/ComponentHelper.addCreatedTask
>>>>>> (Ljava/lang/String;Lorg/apache/tools/ant/Task;)V': Interpreting
>>>>>> method.
>>>>>> Please report this error in detail to
>>>>>> http://java.sun.com/cgi-bin/bugreport.cgi
>>>>>>
>>>>>>
>>>>>> init:
>>>>>> [echo] -------- Logging Wrapper Library 1.1.1-SNAPSHOT --------
>>>>>>
>>>>>> discovery:
>>>>>>
>>>>>> log4j12-test-warning:
>>>>>>
>>>>>> test:
>>>>>> [echo] Test output can be found in directory
>>>>>> G:\apache\jakarta\commons-logging/target/test-reports.
>>>>>> [delete] Deleting directory
>>>>>> G:\apache\jakarta\commons-logging\target\test-reports
>>>>>> [mkdir] Created dir:
>>>>>> G:\apache\jakarta\commons-logging\target\test-reports
>>>>>> [echo] executing tests [**/*TestCase.java]
>>>>>> A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional'
>>>>>> has
>>>>>> occurred in :
>>>>>> 'org/apache/tools/ant/ComponentHelper.getDataTypeDefinitions
>>>>>> ()Ljava/util/Hashtable;': Interpreting method.
>>>>>> Please report this error in detail to
>>>>>> http://java.sun.com/cgi-bin/bugreport.cgi
>>>>>>
>>>>>> A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional'
>>>>>> has
>>>>>> occurred in :
>>>>>> 'org/apache/tools/ant/DirectoryScanner.scan ()V': Interpreting
>>>>> method.
>>>>>> Please report this error in detail to
>>>>>> http://java.sun.com/cgi-bin/bugreport.cgi
>>>>>>
>>>>>> A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional'
>>>>>> has
>>>>>> occurred in :
>>>>>> 'org/apache/tools/ant/util/FileUtils.createTempFile
>>>>>> (Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File;':
>>>>>> Interpret
>>>>>> ing method.
>>>>>> Please report this error in detail to
>>>>>> http://java.sun.com/cgi-bin/bugreport.cgi
>>>>>>
>>>>>> A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional'
>>>>>> has
>>>>>> occurred in :
>>>>>> 'org/apache/tools/ant/taskdefs/ProcessDestroyer.add
>>>>>> (Ljava/lang/Process;)Z': Interpreting method.
>>>>>> Please report this error in detail to
>>>>>> http://java.sun.com/cgi-bin/bugreport.cgi
>>>>>>
>>>>>> [junit] java.lang.IllegalMonitorStateException: current thread
>>>>>> not
>>>>>> owner
>>>>>> [junit] at
>>>>>> org.apache.tools.ant.taskdefs.StreamPumper.run(StreamPumper.java,
>>>>>> Compiled Code)
>>>>>> [junit] at java.lang.Thread.run(Thread.java:479)
>>>>>> [junit] java.lang.IllegalMonitorStateException: current thread
>>>>>> not
>>>>>> owner
>>>>>> [junit] at
>>>>>> org.apache.tools.ant.taskdefs.StreamPumper.run(StreamPumper.java,
>>>>>> Compiled Code)
>>>>>> [junit] at java.lang.Thread.run(Thread.java:479)
>>>>>>
>>>>>>
>>>>>> And then it just hangs! This is done using ant 1.6.5. When I tried
>>>>>> with
>>>>>> ant 1.5.4 it didn't work at all because we use "propertyset":
>>>>>>
>>>>>> BUILD FAILED
>>>>>> file:G:/apache/jakarta/commons-logging/build-testing.xml:171:
>>>>> Unexpected
>>>>>> element "propertyset"
>>>>>>
>>>>>> I don't know the jvm requirements for the different ant versions.
>>>>>>
>>>>>>
>>>>>> I'll be checking in the ant script shortly... Any pointers to what
>>>>> might
>>>>>> be going wrong here is greatly appreciated.
>>
>> the good news is that my old machine is now working again :-)
>>
>> here's my bad news:
>>
>> JCL source will not compile for me on a 1.2.2 JVM (IIRC some 1.2 JVM had
>> compilers bugs)
>
> Compiler bugs are of no concern to me at the moment. As explained above
> the goal is to build with Maven 2 on a 1.4 JVM. However, I'm seeing
> runtime bugs in the JVM, which is disturbing.
OK, I turned to old friend Google with the JIT error messages. After
some digging it turns out that Ant doesn't like to run on an old JVM
with the JIT turned on, so it has to be turned off. I've added
instructions for this in build-testing.xml.
>> the tests will not compile for me on 1.3.1 JVM: MockSecurityManager uses
>> Exception.getStackTrace() which was introduced with 1.4
>
> Aah, brilliant! I looked and looked at the two tests that use the damned
> thing and couldn't find anything wrong with them. Thanks for the extra
> pair of eyes!
I've excluded the security tests from the Ant testing script, because I
couldn't find a way to rewrite the MockSecurityManager so that it could
run on earlier JVMs.
>> runs well for me on 1.4
>>
>> - robert
>
>
--
Dennis Lundberg
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: [logging] Running tests on earlier JVMs
Posted by Dennis Lundberg <de...@apache.org>.
Robert Burrell Donkin wrote:
> (fetchmail->jsieve->IMAP is now working fine for me in JAMES and i've
> stopped buggy FETCH response crashing evolution so but i won't have
> access to my old mail until i've rewritten the backend so that it will
> perform against big message sets. in short, i think i'm getting commons
> mail ok but i'm short on archives...)
>
> so could people help me get back up to speed on where we are with JCL
> and were we want to get to...?
There is need for a 1.1.1 release of commons-logging. All the pressing
bugs have been fixed and tested. The build system has been expanded to
include Maven, though Ant and Maven 1 should still work too.
My plan is to create a 1.1.1 release with Maven 2. However, Maven 2 runs
on a 1.4 JVM so we can't be 100% sure that the tests really pass on a
1.2 JVM. The idea is that the RM will run a separate Ant script that
uses the binaries that M2 created (both main and test jars) and run it
on an earlier JVM, for verification.
It is that Ant script that I'm currently working on, and am having
trouble with. See more below...
>
> On Thu, 2007-07-19 at 22:19 +0200, Dennis Lundberg wrote:
>> Henri Yandell wrote:
>
> <snip>
>
>>>>> Finding a (really old) platform to run on
>>>>> =========================================
>>>>>
>>>>> We've said earlier that we should ideally run the tests using a 1.2
>>>> jvm.
>>>>> So I installed 1.2.2_17 on my Windows machine and started running
>>>> tests.
>>>>> That didn't go to well. Here's what I get:
>>>>>
>>>>>
>>>>> Buildfile: build-testing.xml
>>>>> A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
>>>>> occurred in :
>>>>> 'org/apache/tools/ant/Project.addReference
>>>>> (Ljava/lang/String;Ljava/lang/Object;)V': Interpreting method.
>>>>> Please report this error in detail to
>>>>> http://java.sun.com/cgi-bin/bugreport.cgi
>>>>>
>>>>> A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
>>>>> occurred in :
>>>>> 'org/apache/tools/ant/Project.fireMessageLoggedEvent
>>>>> (Lorg/apache/tools/ant/BuildEvent;Ljava/lang/String;I)V': Interpreting
>>>>> method
>>>>> .
>>>>> Please report this error in detail to
>>>>> http://java.sun.com/cgi-bin/bugreport.cgi
>>>>>
>>>>> A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
>>>>> occurred in :
>>>>> 'org/apache/tools/ant/ComponentHelper.addCreatedTask
>>>>> (Ljava/lang/String;Lorg/apache/tools/ant/Task;)V': Interpreting method.
>>>>> Please report this error in detail to
>>>>> http://java.sun.com/cgi-bin/bugreport.cgi
>>>>>
>>>>>
>>>>> init:
>>>>> [echo] -------- Logging Wrapper Library 1.1.1-SNAPSHOT --------
>>>>>
>>>>> discovery:
>>>>>
>>>>> log4j12-test-warning:
>>>>>
>>>>> test:
>>>>> [echo] Test output can be found in directory
>>>>> G:\apache\jakarta\commons-logging/target/test-reports.
>>>>> [delete] Deleting directory
>>>>> G:\apache\jakarta\commons-logging\target\test-reports
>>>>> [mkdir] Created dir:
>>>>> G:\apache\jakarta\commons-logging\target\test-reports
>>>>> [echo] executing tests [**/*TestCase.java]
>>>>> A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
>>>>> occurred in :
>>>>> 'org/apache/tools/ant/ComponentHelper.getDataTypeDefinitions
>>>>> ()Ljava/util/Hashtable;': Interpreting method.
>>>>> Please report this error in detail to
>>>>> http://java.sun.com/cgi-bin/bugreport.cgi
>>>>>
>>>>> A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
>>>>> occurred in :
>>>>> 'org/apache/tools/ant/DirectoryScanner.scan ()V': Interpreting
>>>> method.
>>>>> Please report this error in detail to
>>>>> http://java.sun.com/cgi-bin/bugreport.cgi
>>>>>
>>>>> A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
>>>>> occurred in :
>>>>> 'org/apache/tools/ant/util/FileUtils.createTempFile
>>>>> (Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File;':
>>>>> Interpret
>>>>> ing method.
>>>>> Please report this error in detail to
>>>>> http://java.sun.com/cgi-bin/bugreport.cgi
>>>>>
>>>>> A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
>>>>> occurred in :
>>>>> 'org/apache/tools/ant/taskdefs/ProcessDestroyer.add
>>>>> (Ljava/lang/Process;)Z': Interpreting method.
>>>>> Please report this error in detail to
>>>>> http://java.sun.com/cgi-bin/bugreport.cgi
>>>>>
>>>>> [junit] java.lang.IllegalMonitorStateException: current thread not
>>>>> owner
>>>>> [junit] at
>>>>> org.apache.tools.ant.taskdefs.StreamPumper.run(StreamPumper.java,
>>>>> Compiled Code)
>>>>> [junit] at java.lang.Thread.run(Thread.java:479)
>>>>> [junit] java.lang.IllegalMonitorStateException: current thread not
>>>>> owner
>>>>> [junit] at
>>>>> org.apache.tools.ant.taskdefs.StreamPumper.run(StreamPumper.java,
>>>>> Compiled Code)
>>>>> [junit] at java.lang.Thread.run(Thread.java:479)
>>>>>
>>>>>
>>>>> And then it just hangs! This is done using ant 1.6.5. When I tried with
>>>>> ant 1.5.4 it didn't work at all because we use "propertyset":
>>>>>
>>>>> BUILD FAILED
>>>>> file:G:/apache/jakarta/commons-logging/build-testing.xml:171:
>>>> Unexpected
>>>>> element "propertyset"
>>>>>
>>>>> I don't know the jvm requirements for the different ant versions.
>>>>>
>>>>>
>>>>> I'll be checking in the ant script shortly... Any pointers to what
>>>> might
>>>>> be going wrong here is greatly appreciated.
>
> the good news is that my old machine is now working again :-)
>
> here's my bad news:
>
> JCL source will not compile for me on a 1.2.2 JVM (IIRC some 1.2 JVM had
> compilers bugs)
Compiler bugs are of no concern to me at the moment. As explained above
the goal is to build with Maven 2 on a 1.4 JVM. However, I'm seeing
runtime bugs in the JVM, which is disturbing.
> the tests will not compile for me on 1.3.1 JVM: MockSecurityManager uses
> Exception.getStackTrace() which was introduced with 1.4
Aah, brilliant! I looked and looked at the two tests that use the damned
thing and couldn't find anything wrong with them. Thanks for the extra
pair of eyes!
> runs well for me on 1.4
>
> - robert
--
Dennis Lundberg
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: [logging] Running tests on earlier JVMs
Posted by Robert Burrell Donkin <ro...@blueyonder.co.uk>.
(fetchmail->jsieve->IMAP is now working fine for me in JAMES and i've
stopped buggy FETCH response crashing evolution so but i won't have
access to my old mail until i've rewritten the backend so that it will
perform against big message sets. in short, i think i'm getting commons
mail ok but i'm short on archives...)
so could people help me get back up to speed on where we are with JCL
and were we want to get to...?
On Thu, 2007-07-19 at 22:19 +0200, Dennis Lundberg wrote:
> Henri Yandell wrote:
<snip>
> >> > Finding a (really old) platform to run on
> >> > =========================================
> >> >
> >> > We've said earlier that we should ideally run the tests using a 1.2
> >> jvm.
> >> > So I installed 1.2.2_17 on my Windows machine and started running
> >> tests.
> >> > That didn't go to well. Here's what I get:
> >> >
> >> >
> >> > Buildfile: build-testing.xml
> >> > A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
> >> > occurred in :
> >> > 'org/apache/tools/ant/Project.addReference
> >> > (Ljava/lang/String;Ljava/lang/Object;)V': Interpreting method.
> >> > Please report this error in detail to
> >> > http://java.sun.com/cgi-bin/bugreport.cgi
> >> >
> >> > A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
> >> > occurred in :
> >> > 'org/apache/tools/ant/Project.fireMessageLoggedEvent
> >> > (Lorg/apache/tools/ant/BuildEvent;Ljava/lang/String;I)V': Interpreting
> >> > method
> >> > .
> >> > Please report this error in detail to
> >> > http://java.sun.com/cgi-bin/bugreport.cgi
> >> >
> >> > A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
> >> > occurred in :
> >> > 'org/apache/tools/ant/ComponentHelper.addCreatedTask
> >> > (Ljava/lang/String;Lorg/apache/tools/ant/Task;)V': Interpreting method.
> >> > Please report this error in detail to
> >> > http://java.sun.com/cgi-bin/bugreport.cgi
> >> >
> >> >
> >> > init:
> >> > [echo] -------- Logging Wrapper Library 1.1.1-SNAPSHOT --------
> >> >
> >> > discovery:
> >> >
> >> > log4j12-test-warning:
> >> >
> >> > test:
> >> > [echo] Test output can be found in directory
> >> > G:\apache\jakarta\commons-logging/target/test-reports.
> >> > [delete] Deleting directory
> >> > G:\apache\jakarta\commons-logging\target\test-reports
> >> > [mkdir] Created dir:
> >> > G:\apache\jakarta\commons-logging\target\test-reports
> >> > [echo] executing tests [**/*TestCase.java]
> >> > A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
> >> > occurred in :
> >> > 'org/apache/tools/ant/ComponentHelper.getDataTypeDefinitions
> >> > ()Ljava/util/Hashtable;': Interpreting method.
> >> > Please report this error in detail to
> >> > http://java.sun.com/cgi-bin/bugreport.cgi
> >> >
> >> > A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
> >> > occurred in :
> >> > 'org/apache/tools/ant/DirectoryScanner.scan ()V': Interpreting
> >> method.
> >> > Please report this error in detail to
> >> > http://java.sun.com/cgi-bin/bugreport.cgi
> >> >
> >> > A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
> >> > occurred in :
> >> > 'org/apache/tools/ant/util/FileUtils.createTempFile
> >> > (Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File;':
> >> > Interpret
> >> > ing method.
> >> > Please report this error in detail to
> >> > http://java.sun.com/cgi-bin/bugreport.cgi
> >> >
> >> > A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
> >> > occurred in :
> >> > 'org/apache/tools/ant/taskdefs/ProcessDestroyer.add
> >> > (Ljava/lang/Process;)Z': Interpreting method.
> >> > Please report this error in detail to
> >> > http://java.sun.com/cgi-bin/bugreport.cgi
> >> >
> >> > [junit] java.lang.IllegalMonitorStateException: current thread not
> >> > owner
> >> > [junit] at
> >> > org.apache.tools.ant.taskdefs.StreamPumper.run(StreamPumper.java,
> >> > Compiled Code)
> >> > [junit] at java.lang.Thread.run(Thread.java:479)
> >> > [junit] java.lang.IllegalMonitorStateException: current thread not
> >> > owner
> >> > [junit] at
> >> > org.apache.tools.ant.taskdefs.StreamPumper.run(StreamPumper.java,
> >> > Compiled Code)
> >> > [junit] at java.lang.Thread.run(Thread.java:479)
> >> >
> >> >
> >> > And then it just hangs! This is done using ant 1.6.5. When I tried with
> >> > ant 1.5.4 it didn't work at all because we use "propertyset":
> >> >
> >> > BUILD FAILED
> >> > file:G:/apache/jakarta/commons-logging/build-testing.xml:171:
> >> Unexpected
> >> > element "propertyset"
> >> >
> >> > I don't know the jvm requirements for the different ant versions.
> >> >
> >> >
> >> > I'll be checking in the ant script shortly... Any pointers to what
> >> might
> >> > be going wrong here is greatly appreciated.
the good news is that my old machine is now working again :-)
here's my bad news:
JCL source will not compile for me on a 1.2.2 JVM (IIRC some 1.2 JVM had
compilers bugs)
the tests will not compile for me on 1.3.1 JVM: MockSecurityManager uses
Exception.getStackTrace() which was introduced with 1.4
runs well for me on 1.4
- robert
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: [logging] Running tests on earlier JVMs
Posted by Dennis Lundberg <de...@apache.org>.
Henri Yandell wrote:
> So sounds like we need an older version of Ant.
Like I said (way below) I tried using ant 1.5.4, but that didn't work
because the build script is using features that were added to ant 1.6.
> Do the Security errors happen on more modern JVMs? Are they new tests?
They work fine on 1.4.2 for me.
They were added, by Simon, to test one of the bugs that were fixed in 1.1.1.
> On 7/19/07, Dennis Lundberg <de...@apache.org> wrote:
>> Anyone?
>>
>> Dennis Lundberg wrote:
>> > Hi
>> >
>> > I'm trying to put together an an script that will do nothing more than
>> > run the tests for commons logging. It's going fairly well. A couple of
>> > issues that I found though that I need assistance with.
>> >
>> > Failing test
>> > ============
>> >
>> > The two test files in the security package both fail. These tests were
>> > run using a 1.3 jvm (see below why that is).
>> >
>> >
>> > Testsuite: org.apache.commons.logging.security.SecurityAllowedTestCase
>> > Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0,016 sec
>> > ------------- Standard Output ---------------
>> >
>> >
>> > testing permission:class
>> > java.util.PropertyPermission:(java.util.PropertyPermission
>> > sun.net.inetaddr.ttl read)
>> > ------------- ---------------- ---------------
>> >
>> > Testcase: testAllAllowed took 0,016 sec
>> > Caused an ERROR
>> > null
>> > java.lang.NoClassDefFoundError
>> > at java.lang.System.setSecurityManager0(System.java:239)
>> > at java.lang.System.setSecurityManager(System.java:208)
>> > at
>> >
>> org.apache.commons.logging.security.SecurityAllowedTestCase.tearDown(SecurityAllowedTestCase.java:77)
>>
>> >
>> > at
>> >
>> org.apache.commons.logging.PathableTestSuite.runTest(PathableTestSuite.java:142)
>>
>> >
>> >
>> >
>> >
>> > Testsuite:
>> org.apache.commons.logging.security.SecurityForbiddenTestCase
>> > Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0,015 sec
>> >
>> > Testcase: testAllForbidden took 0,015 sec
>> > Caused an ERROR
>> > null
>> > java.lang.NoClassDefFoundError
>> > at java.lang.System.setSecurityManager0(System.java:239)
>> > at java.lang.System.setSecurityManager(System.java:208)
>> > at
>> >
>> org.apache.commons.logging.security.SecurityForbiddenTestCase.tearDown(SecurityForbiddenTestCase.java:80)
>>
>> >
>> > at
>> >
>> org.apache.commons.logging.PathableTestSuite.runTest(PathableTestSuite.java:142)
>>
>> >
>> >
>> >
>> >
>> > Finding a (really old) platform to run on
>> > =========================================
>> >
>> > We've said earlier that we should ideally run the tests using a 1.2
>> jvm.
>> > So I installed 1.2.2_17 on my Windows machine and started running
>> tests.
>> > That didn't go to well. Here's what I get:
>> >
>> >
>> > Buildfile: build-testing.xml
>> > A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
>> > occurred in :
>> > 'org/apache/tools/ant/Project.addReference
>> > (Ljava/lang/String;Ljava/lang/Object;)V': Interpreting method.
>> > Please report this error in detail to
>> > http://java.sun.com/cgi-bin/bugreport.cgi
>> >
>> > A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
>> > occurred in :
>> > 'org/apache/tools/ant/Project.fireMessageLoggedEvent
>> > (Lorg/apache/tools/ant/BuildEvent;Ljava/lang/String;I)V': Interpreting
>> > method
>> > .
>> > Please report this error in detail to
>> > http://java.sun.com/cgi-bin/bugreport.cgi
>> >
>> > A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
>> > occurred in :
>> > 'org/apache/tools/ant/ComponentHelper.addCreatedTask
>> > (Ljava/lang/String;Lorg/apache/tools/ant/Task;)V': Interpreting method.
>> > Please report this error in detail to
>> > http://java.sun.com/cgi-bin/bugreport.cgi
>> >
>> >
>> > init:
>> > [echo] -------- Logging Wrapper Library 1.1.1-SNAPSHOT --------
>> >
>> > discovery:
>> >
>> > log4j12-test-warning:
>> >
>> > test:
>> > [echo] Test output can be found in directory
>> > G:\apache\jakarta\commons-logging/target/test-reports.
>> > [delete] Deleting directory
>> > G:\apache\jakarta\commons-logging\target\test-reports
>> > [mkdir] Created dir:
>> > G:\apache\jakarta\commons-logging\target\test-reports
>> > [echo] executing tests [**/*TestCase.java]
>> > A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
>> > occurred in :
>> > 'org/apache/tools/ant/ComponentHelper.getDataTypeDefinitions
>> > ()Ljava/util/Hashtable;': Interpreting method.
>> > Please report this error in detail to
>> > http://java.sun.com/cgi-bin/bugreport.cgi
>> >
>> > A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
>> > occurred in :
>> > 'org/apache/tools/ant/DirectoryScanner.scan ()V': Interpreting
>> method.
>> > Please report this error in detail to
>> > http://java.sun.com/cgi-bin/bugreport.cgi
>> >
>> > A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
>> > occurred in :
>> > 'org/apache/tools/ant/util/FileUtils.createTempFile
>> > (Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File;':
>> > Interpret
>> > ing method.
>> > Please report this error in detail to
>> > http://java.sun.com/cgi-bin/bugreport.cgi
>> >
>> > A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
>> > occurred in :
>> > 'org/apache/tools/ant/taskdefs/ProcessDestroyer.add
>> > (Ljava/lang/Process;)Z': Interpreting method.
>> > Please report this error in detail to
>> > http://java.sun.com/cgi-bin/bugreport.cgi
>> >
>> > [junit] java.lang.IllegalMonitorStateException: current thread not
>> > owner
>> > [junit] at
>> > org.apache.tools.ant.taskdefs.StreamPumper.run(StreamPumper.java,
>> > Compiled Code)
>> > [junit] at java.lang.Thread.run(Thread.java:479)
>> > [junit] java.lang.IllegalMonitorStateException: current thread not
>> > owner
>> > [junit] at
>> > org.apache.tools.ant.taskdefs.StreamPumper.run(StreamPumper.java,
>> > Compiled Code)
>> > [junit] at java.lang.Thread.run(Thread.java:479)
>> >
>> >
>> > And then it just hangs! This is done using ant 1.6.5. When I tried with
>> > ant 1.5.4 it didn't work at all because we use "propertyset":
>> >
>> > BUILD FAILED
>> > file:G:/apache/jakarta/commons-logging/build-testing.xml:171:
>> Unexpected
>> > element "propertyset"
>> >
>> > I don't know the jvm requirements for the different ant versions.
>> >
>> >
>> > I'll be checking in the ant script shortly... Any pointers to what
>> might
>> > be going wrong here is greatly appreciated.
>> >
>>
>>
>> --
>> Dennis Lundberg
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
--
Dennis Lundberg
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: [logging] Running tests on earlier JVMs
Posted by Henri Yandell <fl...@gmail.com>.
So sounds like we need an older version of Ant.
Do the Security errors happen on more modern JVMs? Are they new tests?
On 7/19/07, Dennis Lundberg <de...@apache.org> wrote:
> Anyone?
>
> Dennis Lundberg wrote:
> > Hi
> >
> > I'm trying to put together an an script that will do nothing more than
> > run the tests for commons logging. It's going fairly well. A couple of
> > issues that I found though that I need assistance with.
> >
> > Failing test
> > ============
> >
> > The two test files in the security package both fail. These tests were
> > run using a 1.3 jvm (see below why that is).
> >
> >
> > Testsuite: org.apache.commons.logging.security.SecurityAllowedTestCase
> > Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0,016 sec
> > ------------- Standard Output ---------------
> >
> >
> > testing permission:class
> > java.util.PropertyPermission:(java.util.PropertyPermission
> > sun.net.inetaddr.ttl read)
> > ------------- ---------------- ---------------
> >
> > Testcase: testAllAllowed took 0,016 sec
> > Caused an ERROR
> > null
> > java.lang.NoClassDefFoundError
> > at java.lang.System.setSecurityManager0(System.java:239)
> > at java.lang.System.setSecurityManager(System.java:208)
> > at
> > org.apache.commons.logging.security.SecurityAllowedTestCase.tearDown(SecurityAllowedTestCase.java:77)
> >
> > at
> > org.apache.commons.logging.PathableTestSuite.runTest(PathableTestSuite.java:142)
> >
> >
> >
> >
> > Testsuite: org.apache.commons.logging.security.SecurityForbiddenTestCase
> > Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0,015 sec
> >
> > Testcase: testAllForbidden took 0,015 sec
> > Caused an ERROR
> > null
> > java.lang.NoClassDefFoundError
> > at java.lang.System.setSecurityManager0(System.java:239)
> > at java.lang.System.setSecurityManager(System.java:208)
> > at
> > org.apache.commons.logging.security.SecurityForbiddenTestCase.tearDown(SecurityForbiddenTestCase.java:80)
> >
> > at
> > org.apache.commons.logging.PathableTestSuite.runTest(PathableTestSuite.java:142)
> >
> >
> >
> >
> > Finding a (really old) platform to run on
> > =========================================
> >
> > We've said earlier that we should ideally run the tests using a 1.2 jvm.
> > So I installed 1.2.2_17 on my Windows machine and started running tests.
> > That didn't go to well. Here's what I get:
> >
> >
> > Buildfile: build-testing.xml
> > A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
> > occurred in :
> > 'org/apache/tools/ant/Project.addReference
> > (Ljava/lang/String;Ljava/lang/Object;)V': Interpreting method.
> > Please report this error in detail to
> > http://java.sun.com/cgi-bin/bugreport.cgi
> >
> > A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
> > occurred in :
> > 'org/apache/tools/ant/Project.fireMessageLoggedEvent
> > (Lorg/apache/tools/ant/BuildEvent;Ljava/lang/String;I)V': Interpreting
> > method
> > .
> > Please report this error in detail to
> > http://java.sun.com/cgi-bin/bugreport.cgi
> >
> > A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
> > occurred in :
> > 'org/apache/tools/ant/ComponentHelper.addCreatedTask
> > (Ljava/lang/String;Lorg/apache/tools/ant/Task;)V': Interpreting method.
> > Please report this error in detail to
> > http://java.sun.com/cgi-bin/bugreport.cgi
> >
> >
> > init:
> > [echo] -------- Logging Wrapper Library 1.1.1-SNAPSHOT --------
> >
> > discovery:
> >
> > log4j12-test-warning:
> >
> > test:
> > [echo] Test output can be found in directory
> > G:\apache\jakarta\commons-logging/target/test-reports.
> > [delete] Deleting directory
> > G:\apache\jakarta\commons-logging\target\test-reports
> > [mkdir] Created dir:
> > G:\apache\jakarta\commons-logging\target\test-reports
> > [echo] executing tests [**/*TestCase.java]
> > A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
> > occurred in :
> > 'org/apache/tools/ant/ComponentHelper.getDataTypeDefinitions
> > ()Ljava/util/Hashtable;': Interpreting method.
> > Please report this error in detail to
> > http://java.sun.com/cgi-bin/bugreport.cgi
> >
> > A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
> > occurred in :
> > 'org/apache/tools/ant/DirectoryScanner.scan ()V': Interpreting method.
> > Please report this error in detail to
> > http://java.sun.com/cgi-bin/bugreport.cgi
> >
> > A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
> > occurred in :
> > 'org/apache/tools/ant/util/FileUtils.createTempFile
> > (Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File;':
> > Interpret
> > ing method.
> > Please report this error in detail to
> > http://java.sun.com/cgi-bin/bugreport.cgi
> >
> > A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
> > occurred in :
> > 'org/apache/tools/ant/taskdefs/ProcessDestroyer.add
> > (Ljava/lang/Process;)Z': Interpreting method.
> > Please report this error in detail to
> > http://java.sun.com/cgi-bin/bugreport.cgi
> >
> > [junit] java.lang.IllegalMonitorStateException: current thread not
> > owner
> > [junit] at
> > org.apache.tools.ant.taskdefs.StreamPumper.run(StreamPumper.java,
> > Compiled Code)
> > [junit] at java.lang.Thread.run(Thread.java:479)
> > [junit] java.lang.IllegalMonitorStateException: current thread not
> > owner
> > [junit] at
> > org.apache.tools.ant.taskdefs.StreamPumper.run(StreamPumper.java,
> > Compiled Code)
> > [junit] at java.lang.Thread.run(Thread.java:479)
> >
> >
> > And then it just hangs! This is done using ant 1.6.5. When I tried with
> > ant 1.5.4 it didn't work at all because we use "propertyset":
> >
> > BUILD FAILED
> > file:G:/apache/jakarta/commons-logging/build-testing.xml:171: Unexpected
> > element "propertyset"
> >
> > I don't know the jvm requirements for the different ant versions.
> >
> >
> > I'll be checking in the ant script shortly... Any pointers to what might
> > be going wrong here is greatly appreciated.
> >
>
>
> --
> Dennis Lundberg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: [logging] Running tests on earlier JVMs
Posted by Niall Pemberton <ni...@gmail.com>.
Is it worth pinging Simon or Robert (last 2 release managers) directly
for help - this may be going under their radar.
Niall
On 7/19/07, Dennis Lundberg <de...@apache.org> wrote:
> Anyone?
>
> Dennis Lundberg wrote:
> > Hi
> >
> > I'm trying to put together an an script that will do nothing more than
> > run the tests for commons logging. It's going fairly well. A couple of
> > issues that I found though that I need assistance with.
> >
> > Failing test
> > ============
> >
> > The two test files in the security package both fail. These tests were
> > run using a 1.3 jvm (see below why that is).
> >
> >
> > Testsuite: org.apache.commons.logging.security.SecurityAllowedTestCase
> > Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0,016 sec
> > ------------- Standard Output ---------------
> >
> >
> > testing permission:class
> > java.util.PropertyPermission:(java.util.PropertyPermission
> > sun.net.inetaddr.ttl read)
> > ------------- ---------------- ---------------
> >
> > Testcase: testAllAllowed took 0,016 sec
> > Caused an ERROR
> > null
> > java.lang.NoClassDefFoundError
> > at java.lang.System.setSecurityManager0(System.java:239)
> > at java.lang.System.setSecurityManager(System.java:208)
> > at
> > org.apache.commons.logging.security.SecurityAllowedTestCase.tearDown(SecurityAllowedTestCase.java:77)
> >
> > at
> > org.apache.commons.logging.PathableTestSuite.runTest(PathableTestSuite.java:142)
> >
> >
> >
> >
> > Testsuite: org.apache.commons.logging.security.SecurityForbiddenTestCase
> > Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0,015 sec
> >
> > Testcase: testAllForbidden took 0,015 sec
> > Caused an ERROR
> > null
> > java.lang.NoClassDefFoundError
> > at java.lang.System.setSecurityManager0(System.java:239)
> > at java.lang.System.setSecurityManager(System.java:208)
> > at
> > org.apache.commons.logging.security.SecurityForbiddenTestCase.tearDown(SecurityForbiddenTestCase.java:80)
> >
> > at
> > org.apache.commons.logging.PathableTestSuite.runTest(PathableTestSuite.java:142)
> >
> >
> >
> >
> > Finding a (really old) platform to run on
> > =========================================
> >
> > We've said earlier that we should ideally run the tests using a 1.2 jvm.
> > So I installed 1.2.2_17 on my Windows machine and started running tests.
> > That didn't go to well. Here's what I get:
> >
> >
> > Buildfile: build-testing.xml
> > A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
> > occurred in :
> > 'org/apache/tools/ant/Project.addReference
> > (Ljava/lang/String;Ljava/lang/Object;)V': Interpreting method.
> > Please report this error in detail to
> > http://java.sun.com/cgi-bin/bugreport.cgi
> >
> > A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
> > occurred in :
> > 'org/apache/tools/ant/Project.fireMessageLoggedEvent
> > (Lorg/apache/tools/ant/BuildEvent;Ljava/lang/String;I)V': Interpreting
> > method
> > .
> > Please report this error in detail to
> > http://java.sun.com/cgi-bin/bugreport.cgi
> >
> > A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
> > occurred in :
> > 'org/apache/tools/ant/ComponentHelper.addCreatedTask
> > (Ljava/lang/String;Lorg/apache/tools/ant/Task;)V': Interpreting method.
> > Please report this error in detail to
> > http://java.sun.com/cgi-bin/bugreport.cgi
> >
> >
> > init:
> > [echo] -------- Logging Wrapper Library 1.1.1-SNAPSHOT --------
> >
> > discovery:
> >
> > log4j12-test-warning:
> >
> > test:
> > [echo] Test output can be found in directory
> > G:\apache\jakarta\commons-logging/target/test-reports.
> > [delete] Deleting directory
> > G:\apache\jakarta\commons-logging\target\test-reports
> > [mkdir] Created dir:
> > G:\apache\jakarta\commons-logging\target\test-reports
> > [echo] executing tests [**/*TestCase.java]
> > A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
> > occurred in :
> > 'org/apache/tools/ant/ComponentHelper.getDataTypeDefinitions
> > ()Ljava/util/Hashtable;': Interpreting method.
> > Please report this error in detail to
> > http://java.sun.com/cgi-bin/bugreport.cgi
> >
> > A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
> > occurred in :
> > 'org/apache/tools/ant/DirectoryScanner.scan ()V': Interpreting method.
> > Please report this error in detail to
> > http://java.sun.com/cgi-bin/bugreport.cgi
> >
> > A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
> > occurred in :
> > 'org/apache/tools/ant/util/FileUtils.createTempFile
> > (Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File;':
> > Interpret
> > ing method.
> > Please report this error in detail to
> > http://java.sun.com/cgi-bin/bugreport.cgi
> >
> > A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
> > occurred in :
> > 'org/apache/tools/ant/taskdefs/ProcessDestroyer.add
> > (Ljava/lang/Process;)Z': Interpreting method.
> > Please report this error in detail to
> > http://java.sun.com/cgi-bin/bugreport.cgi
> >
> > [junit] java.lang.IllegalMonitorStateException: current thread not
> > owner
> > [junit] at
> > org.apache.tools.ant.taskdefs.StreamPumper.run(StreamPumper.java,
> > Compiled Code)
> > [junit] at java.lang.Thread.run(Thread.java:479)
> > [junit] java.lang.IllegalMonitorStateException: current thread not
> > owner
> > [junit] at
> > org.apache.tools.ant.taskdefs.StreamPumper.run(StreamPumper.java,
> > Compiled Code)
> > [junit] at java.lang.Thread.run(Thread.java:479)
> >
> >
> > And then it just hangs! This is done using ant 1.6.5. When I tried with
> > ant 1.5.4 it didn't work at all because we use "propertyset":
> >
> > BUILD FAILED
> > file:G:/apache/jakarta/commons-logging/build-testing.xml:171: Unexpected
> > element "propertyset"
> >
> > I don't know the jvm requirements for the different ant versions.
> >
> >
> > I'll be checking in the ant script shortly... Any pointers to what might
> > be going wrong here is greatly appreciated.
> >
>
>
> --
> Dennis Lundberg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: [logging] Running tests on earlier JVMs
Posted by Dennis Lundberg <de...@apache.org>.
Anyone?
Dennis Lundberg wrote:
> Hi
>
> I'm trying to put together an an script that will do nothing more than
> run the tests for commons logging. It's going fairly well. A couple of
> issues that I found though that I need assistance with.
>
> Failing test
> ============
>
> The two test files in the security package both fail. These tests were
> run using a 1.3 jvm (see below why that is).
>
>
> Testsuite: org.apache.commons.logging.security.SecurityAllowedTestCase
> Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0,016 sec
> ------------- Standard Output ---------------
>
>
> testing permission:class
> java.util.PropertyPermission:(java.util.PropertyPermission
> sun.net.inetaddr.ttl read)
> ------------- ---------------- ---------------
>
> Testcase: testAllAllowed took 0,016 sec
> Caused an ERROR
> null
> java.lang.NoClassDefFoundError
> at java.lang.System.setSecurityManager0(System.java:239)
> at java.lang.System.setSecurityManager(System.java:208)
> at
> org.apache.commons.logging.security.SecurityAllowedTestCase.tearDown(SecurityAllowedTestCase.java:77)
>
> at
> org.apache.commons.logging.PathableTestSuite.runTest(PathableTestSuite.java:142)
>
>
>
>
> Testsuite: org.apache.commons.logging.security.SecurityForbiddenTestCase
> Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0,015 sec
>
> Testcase: testAllForbidden took 0,015 sec
> Caused an ERROR
> null
> java.lang.NoClassDefFoundError
> at java.lang.System.setSecurityManager0(System.java:239)
> at java.lang.System.setSecurityManager(System.java:208)
> at
> org.apache.commons.logging.security.SecurityForbiddenTestCase.tearDown(SecurityForbiddenTestCase.java:80)
>
> at
> org.apache.commons.logging.PathableTestSuite.runTest(PathableTestSuite.java:142)
>
>
>
>
> Finding a (really old) platform to run on
> =========================================
>
> We've said earlier that we should ideally run the tests using a 1.2 jvm.
> So I installed 1.2.2_17 on my Windows machine and started running tests.
> That didn't go to well. Here's what I get:
>
>
> Buildfile: build-testing.xml
> A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
> occurred in :
> 'org/apache/tools/ant/Project.addReference
> (Ljava/lang/String;Ljava/lang/Object;)V': Interpreting method.
> Please report this error in detail to
> http://java.sun.com/cgi-bin/bugreport.cgi
>
> A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
> occurred in :
> 'org/apache/tools/ant/Project.fireMessageLoggedEvent
> (Lorg/apache/tools/ant/BuildEvent;Ljava/lang/String;I)V': Interpreting
> method
> .
> Please report this error in detail to
> http://java.sun.com/cgi-bin/bugreport.cgi
>
> A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
> occurred in :
> 'org/apache/tools/ant/ComponentHelper.addCreatedTask
> (Ljava/lang/String;Lorg/apache/tools/ant/Task;)V': Interpreting method.
> Please report this error in detail to
> http://java.sun.com/cgi-bin/bugreport.cgi
>
>
> init:
> [echo] -------- Logging Wrapper Library 1.1.1-SNAPSHOT --------
>
> discovery:
>
> log4j12-test-warning:
>
> test:
> [echo] Test output can be found in directory
> G:\apache\jakarta\commons-logging/target/test-reports.
> [delete] Deleting directory
> G:\apache\jakarta\commons-logging\target\test-reports
> [mkdir] Created dir:
> G:\apache\jakarta\commons-logging\target\test-reports
> [echo] executing tests [**/*TestCase.java]
> A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
> occurred in :
> 'org/apache/tools/ant/ComponentHelper.getDataTypeDefinitions
> ()Ljava/util/Hashtable;': Interpreting method.
> Please report this error in detail to
> http://java.sun.com/cgi-bin/bugreport.cgi
>
> A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
> occurred in :
> 'org/apache/tools/ant/DirectoryScanner.scan ()V': Interpreting method.
> Please report this error in detail to
> http://java.sun.com/cgi-bin/bugreport.cgi
>
> A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
> occurred in :
> 'org/apache/tools/ant/util/FileUtils.createTempFile
> (Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File;':
> Interpret
> ing method.
> Please report this error in detail to
> http://java.sun.com/cgi-bin/bugreport.cgi
>
> A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has
> occurred in :
> 'org/apache/tools/ant/taskdefs/ProcessDestroyer.add
> (Ljava/lang/Process;)Z': Interpreting method.
> Please report this error in detail to
> http://java.sun.com/cgi-bin/bugreport.cgi
>
> [junit] java.lang.IllegalMonitorStateException: current thread not
> owner
> [junit] at
> org.apache.tools.ant.taskdefs.StreamPumper.run(StreamPumper.java,
> Compiled Code)
> [junit] at java.lang.Thread.run(Thread.java:479)
> [junit] java.lang.IllegalMonitorStateException: current thread not
> owner
> [junit] at
> org.apache.tools.ant.taskdefs.StreamPumper.run(StreamPumper.java,
> Compiled Code)
> [junit] at java.lang.Thread.run(Thread.java:479)
>
>
> And then it just hangs! This is done using ant 1.6.5. When I tried with
> ant 1.5.4 it didn't work at all because we use "propertyset":
>
> BUILD FAILED
> file:G:/apache/jakarta/commons-logging/build-testing.xml:171: Unexpected
> element "propertyset"
>
> I don't know the jvm requirements for the different ant versions.
>
>
> I'll be checking in the ant script shortly... Any pointers to what might
> be going wrong here is greatly appreciated.
>
--
Dennis Lundberg
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org