You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by "Mikhail Loenko (JIRA)" <ji...@apache.org> on 2006/02/01 05:32:00 UTC

[jira] Commented: (HARMONY-58) Problems trying to run the security2 test suite

    [ http://issues.apache.org/jira/browse/HARMONY-58?page=comments#action_12364766 ] 

Mikhail Loenko commented on HARMONY-58:
---------------------------------------

BouncyCastle tend to hang up when BigInteger returns nulls. Will investigate

> Problems trying to run the security2 test suite
> -----------------------------------------------
>
>          Key: HARMONY-58
>          URL: http://issues.apache.org/jira/browse/HARMONY-58
>      Project: Harmony
>         Type: Test
>   Components: Classlib
>  Environment: x86, WinXP, repo revision 373866
>     Reporter: Tim Ellison

>
> With a combination of Stepan and Geir's instructions I have:
> Built the classlib successfully code by:
>  - putting a JDK on the path, unset JAVA_HOME and CLASSPATH
>  - invoke the default target in trunk/make/build.xml
>  - put in the VM
> Built the security tests successfully by:
>  - cd modules/security2/make
>  - ant tests.run  (ignore the run failures)
> Tried to run the tests by:
>  - set CLASSPATH=%CLASSPATH%;<junit.jar>;<bcprov.jar>
>  - set JAVA_HOME=<trunk/deploy/jre>
>  - set PATH=%JAVA_HOME%/bin;%PATH%
>  - hack the build.xml to remove the clean-ups
>  - ant tests.run
> After a few targets going by it trys to run the test, but seems to hang with CPU at 100% and the following output on the console:
> ---------------------
> <<snip>>
> run:
>     [junit] Running java.security.AccessControlExceptionTest
>     [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.04 sec
>     [junit] Running java.security.AlgorithmParameterGeneratorSpiTests
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.209 sec
>     [junit] Running java.security.AlgorithmParameterGeneratorTest1

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Re: [jira] Commented: (HARMONY-58) Problems trying to run the security2 test suite

Posted by Tim Ellison <t....@gmail.com>.
Geir Magnusson Jr wrote:
> What I don't get is why.

Presumably BC is assuming that BigInteger does something real -- and is
spinning 'cos we return null today.  (Only speculation, I never attached
a debugger).

> Oh - what version of BC are people using?
> 
> I used v 1.3.1 for jdk1.4

Me too (bcprov-jdk14-131.jar).

Tim

> geir
> 
> Mikhail Loenko (JIRA) wrote:
>>     [
>> http://issues.apache.org/jira/browse/HARMONY-58?page=comments#action_12364766
>> ]
>> Mikhail Loenko commented on HARMONY-58:
>> ---------------------------------------
>>
>> BouncyCastle tend to hang up when BigInteger returns nulls. Will
>> investigate
>>
>>> Problems trying to run the security2 test suite
>>> -----------------------------------------------
>>>
>>>          Key: HARMONY-58
>>>          URL: http://issues.apache.org/jira/browse/HARMONY-58
>>>      Project: Harmony
>>>         Type: Test
>>>   Components: Classlib
>>>  Environment: x86, WinXP, repo revision 373866
>>>     Reporter: Tim Ellison
>>
>>> With a combination of Stepan and Geir's instructions I have:
>>> Built the classlib successfully code by:
>>>  - putting a JDK on the path, unset JAVA_HOME and CLASSPATH
>>>  - invoke the default target in trunk/make/build.xml
>>>  - put in the VM
>>> Built the security tests successfully by:
>>>  - cd modules/security2/make
>>>  - ant tests.run  (ignore the run failures)
>>> Tried to run the tests by:
>>>  - set CLASSPATH=%CLASSPATH%;<junit.jar>;<bcprov.jar>
>>>  - set JAVA_HOME=<trunk/deploy/jre>
>>>  - set PATH=%JAVA_HOME%/bin;%PATH%
>>>  - hack the build.xml to remove the clean-ups
>>>  - ant tests.run
>>> After a few targets going by it trys to run the test, but seems to
>>> hang with CPU at 100% and the following output on the console:
>>> ---------------------
>>> <<snip>>
>>> run:
>>>     [junit] Running java.security.AccessControlExceptionTest
>>>     [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.04 sec
>>>     [junit] Running java.security.AlgorithmParameterGeneratorSpiTests
>>>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.209
>>> sec
>>>     [junit] Running java.security.AlgorithmParameterGeneratorTest1
>>
> 

-- 

Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.

Re: [jira] Commented: (HARMONY-58) Problems trying to run the security2 test suite

Posted by Geir Magnusson Jr <ge...@pobox.com>.
What I don't get is why.

Oh - what version of BC are people using?

I used v 1.3.1 for jdk1.4

geir

Mikhail Loenko (JIRA) wrote:
>     [ http://issues.apache.org/jira/browse/HARMONY-58?page=comments#action_12364766 ] 
> 
> Mikhail Loenko commented on HARMONY-58:
> ---------------------------------------
> 
> BouncyCastle tend to hang up when BigInteger returns nulls. Will investigate
> 
>> Problems trying to run the security2 test suite
>> -----------------------------------------------
>>
>>          Key: HARMONY-58
>>          URL: http://issues.apache.org/jira/browse/HARMONY-58
>>      Project: Harmony
>>         Type: Test
>>   Components: Classlib
>>  Environment: x86, WinXP, repo revision 373866
>>     Reporter: Tim Ellison
> 
>> With a combination of Stepan and Geir's instructions I have:
>> Built the classlib successfully code by:
>>  - putting a JDK on the path, unset JAVA_HOME and CLASSPATH
>>  - invoke the default target in trunk/make/build.xml
>>  - put in the VM
>> Built the security tests successfully by:
>>  - cd modules/security2/make
>>  - ant tests.run  (ignore the run failures)
>> Tried to run the tests by:
>>  - set CLASSPATH=%CLASSPATH%;<junit.jar>;<bcprov.jar>
>>  - set JAVA_HOME=<trunk/deploy/jre>
>>  - set PATH=%JAVA_HOME%/bin;%PATH%
>>  - hack the build.xml to remove the clean-ups
>>  - ant tests.run
>> After a few targets going by it trys to run the test, but seems to hang with CPU at 100% and the following output on the console:
>> ---------------------
>> <<snip>>
>> run:
>>     [junit] Running java.security.AccessControlExceptionTest
>>     [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.04 sec
>>     [junit] Running java.security.AlgorithmParameterGeneratorSpiTests
>>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.209 sec
>>     [junit] Running java.security.AlgorithmParameterGeneratorTest1
>