This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 108023 - OutOfMemory in SuitePropertiesTest
Summary: OutOfMemory in SuitePropertiesTest
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jesse Glick
URL: http://beetle.czech.sun.com:8080/unit...
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2007-06-25 14:45 UTC by Jaroslav Tulach
Modified: 2007-06-28 16:59 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2007-06-25 14:45:20 UTC
java.lang.OutOfMemoryError: Java heap space
        at java.nio.ByteBuffer.wrap(ByteBuffer.java:350)
        at java.nio.ByteBuffer.wrap(ByteBuffer.java:373)
        at java.lang.StringCoding$StringEncoder.encode(StringCoding.java:237)
        at java.lang.StringCoding.encode(StringCoding.java:272)
        at java.lang.String.getBytes(String.java:947)
        at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
        at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228)
        at java.io.File.isFile(File.java:778)
        at org.netbeans.modules.apisupport.project.universe.ModuleList.findBinaryNBMFiles(ModuleList.java:657)
        at 
org.netbeans.modules.apisupport.project.universe.ModuleList.createModuleListFromBinaries(ModuleList.java:623)
        at 
org.netbeans.modules.apisupport.project.universe.ModuleList.findOrCreateModuleListFromBinaries(ModuleList.java:563)
        at org.netbeans.modules.apisupport.project.universe.NbPlatform.getModules(NbPlatform.java:745)
        at org.netbeans.modules.apisupport.project.ui.customizer.SuiteProperties.<init>(SuiteProperties.java:93)
        at 
org.netbeans.modules.apisupport.project.ui.customizer.SuitePropertiesTest.getSuiteProperties(SuitePropertiesTest.java:66)
        at 
org.netbeans.modules.apisupport.project.ui.customizer.SuitePropertiesTest.testSuitePropertiesWithAnonymousPlatform
Comment 1 Jesse Glick 2007-06-25 16:44:11 UTC
Passes fine on my machine. I don't know of any way to increase the heap on the tester machine so I am just disabling the
test in the XTest config.

Checking in cfg-unit.xml;
/shared/data/ccvs/repository/apisupport/project/test/cfg-unit.xml,v  <--  cfg-unit.xml
new revision: 1.13; previous revision: 1.12
done
Comment 2 pzajac 2007-06-27 08:12:31 UTC
http://xtest.netbeans.org/plugins/plugins_overview.html#jvm

We can override xtest.jvm.args property to increase heap size.  What size is recommended? 
Comment 3 Jesse Glick 2007-06-27 20:08:38 UTC
I don't know what size to request because it passes on my machine.
Comment 4 pzajac 2007-06-28 16:59:07 UTC
I added -Xmx256m to xtest.jvm.args. The test was included to stable suite.

Checking in cfg-unit.xml;
/cvs/apisupport/project/test/cfg-unit.xml,v  <--  cfg-unit.xml
new revision: 1.14; previous revision: 1.13
done