URGENT problem with junit
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Manish_Bishnoi
Posted On:   Sunday, July 7, 2002 11:10 PM

Hi, I am getting these errors when i first installed junit and did >>java junit.textui.TestRunner junit.samples.AllTests It happens when i run it repeatedly. It runs ok some time but gives me this error after repeated runs. There were 3 errors: 1) testActiveRepeatedTest(junit.tests.ActiveTestTest) java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start(Native Method) at junit.extensions.ActiveTestSuite.runTest(ActiveTestSuite.java:32) at junit.extensions.ActiveTestSuite.run(ActiveTestSuite.java:16) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) at junit.extensions.TestDecorat   More>>

Hi,


I am getting these errors when i first installed junit and
did

>>java junit.textui.TestRunner junit.samples.AllTests


It happens when i run it repeatedly. It runs ok some time but gives me this error after repeated runs.

There were 3 errors:

1) testActiveRepeatedTest(junit.tests.ActiveTestTest)
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start(Native Method)
at junit.extensions.ActiveTestSuite.runTest(ActiveTestSuite.java:32)
at junit.extensions.ActiveTestSuite.run(ActiveTestSuite.java:16)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestDecorator.run(TestDecorator.java:28)
at junit.extensions.RepeatedTest.run(RepeatedTest.java:25)
at junit.tests.ActiveTestTest.testActiveRepeatedTest(ActiveTestTest.java:37)


2) testActiveRepeatedTest1(junit.tests.ActiveTestTest)
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start(Native Method)
at junit.extensions.ActiveTestSuite.runTest(ActiveTestSuite.java:32)
at junit.extensions.ActiveTestSuite.run(ActiveTestSuite.java:16)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestDecorator.run(TestDecorator.java:28)
at junit.extensions.RepeatedTest.run(RepeatedTest.java:25)
at junit.tests.ActiveTestTest.testActiveRepeatedTest1(ActiveTestTest.java:55)


3) testActiveTest(junit.tests.ActiveTestTest)
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start(Native Method)
at junit.extensions.ActiveTestSuite.runTest(ActiveTestSuite.java:32)
at junit.extensions.ActiveTestSuite.run(ActiveTestSuite.java:16)
at junit.tests.ActiveTestTest.testActiveTest(ActiveTestTest.java:28)


FAILURES!!!

Tests run: 90, Failures: 0, Errors: 3

   <<Less

Re: URGENT problem with junit

Posted By:   Manish_Bishnoi  
Posted On:   Monday, July 8, 2002 02:25 AM


I figured out that this problem does not arises when I run the program in dos on a 261,136 KB ram machine but when i run it on my unix account at university where my limit is 200000 KB I encounter the problem. I think 200000 KB is reasonable amount of memory.


cheers

manish

About | Sitemap | Contact