db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ole Solberg <Ole.Solb...@Sun.COM>
Subject Re: Regression Test Report - tinderbox_trunk16 523602 - Sun DBTG
Date Fri, 30 Mar 2007 12:47:38 GMT
Rick Hillegas wrote:
> I am also looking at this error. I have managed to get a pared-down
> version of the lang _Suite to fail on my machine running under jdk 1.6
> and using jar files built insane+debug. However, I don't think this is
> the same failure being seen on the tinderbox machine. For the record,
> the same pared-down test runs cleanly under jdk1.4.
> 
> Regards,
> -Rick
> 
> Ole Solberg wrote:
>> Kristian Waagan wrote:
>>  
>>> Any plans to fix the failing test?
>>>
>>> It has been failing for a while now, and if there are no plans to fix it
>>> soon, I will disable it.
>>>
>>> As far as I can see, it is related to DERBY-2466: Allow dynamic
>>> reloading of the security policy file.
>>>
>>>
>>>
>>>     
>>
>> The test seems to fail only in "my" runs, i.e.
>> http://dbtg.thresher.com/derby/test/trunk16/jvmAll/testing/Limited/index.html
>>
>> http://dbtg.thresher.com/derby/test/trunk15/jvm1.5/testing/Limited/index.html
>>
>> http://dbtg.thresher.com/derby/test/tinderbox_trunk16/jvm1.6/testing/Limited/index.html
>>
>>
>> but not in e.g.
>> http://dbtg.thresher.com/derby/test/Daily/jvm1.6/testing/Limited/
>> http://dbtg.thresher.com/derby/test/Daily/jvm1.5/testing/Limited/
>>
>> I am looking for differences between these test environments.
>>
>>
>>
>>   
> 

The NPE I am getting is caused by 'java.security.policy' property being
undefined in

Index:
trunk/java/testing/org/apache/derbyTesting/junit/SecurityManagerSetup.java
===================================================================
---
trunk/java/testing/org/apache/derbyTesting/junit/SecurityManagerSetup.java
 (revision 523593)
+++
trunk/java/testing/org/apache/derbyTesting/junit/SecurityManagerSetup.java
 (working copy)
@@ -155,7 +155,7 @@
                if (sm != null) {
                        // SecurityManager installed, see if it has the
same settings.

-                       if (set.getProperty("java.security.policy").equals(
+                       if
(set.getProperty("java.security.policy").equals( // NPE if
'java.security.policy' property is undefined.

BaseTestCase.getSystemProperty("java.security.policy")))
                                        return;



-- 
Ole Solberg, Database Technology Group,
Sun Microsystems, Trondheim, Norway

Mime
View raw message