You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by "Everitt, Glenn" <Gl...@compuware.com> on 2007/05/30 16:15:58 UTC

Newbie Build Help

I'm trying to build poi (poi-3.0-rc4) using the ant build.xml and I'm
getting errors when running "ant clean-dist"

 

I followed the instructions here:
http://jakarta.apache.org/poi/howtobuild.html

 

All of the test failures seem to be:

java.lang.OutOfMemoryError: PermGen space

 

I'm running 

Apache Ant version 1.6.5 compiled on June 2 2005

java.vm.version : 1.5.0_06-b05

 

If I just run "ant test"

It executes successfully. The problem is I don't know how to build a
distribution without using "clean-dist"

 

Failures consistently start at this point.

 

    [junit] Running org.apache.poi.hslf.record.TestExHyperlink

    [junit] Tests run: 6, Failures: 0, Errors: 6, Time elapsed: 1.953
sec

    [junit] Test org.apache.poi.hslf.record.TestExHyperlink FAILED

    [junit] Running org.apache.poi.hslf.record.TestExHyperlinkAtom

 

Any help would be appreciated,

 

Glenn Everitt

 

See partial build output below:

 

-test-scratchpad-check:

 

test-scratchpad:

    [junit] Running org.apache.poi.TestPOIDocument

    [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.515
sec

    [junit] Running org.apache.poi.hdf.model.TestHDFDocument

    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.016
sec

    [junit] Running org.apache.poi.hslf.TestEncryptedFile

    [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.157
sec

    [junit] Running org.apache.poi.hslf.TestReWrite

    [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.406
sec

    [junit] Running org.apache.poi.hslf.TestReWriteSanity

    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.031
sec

    [junit] Running org.apache.poi.hslf.TestRecordCounts

    [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0 sec

    [junit] Running org.apache.poi.hslf.extractor.TestCruddyExtractor

    [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.062
sec

    [junit] Running org.apache.poi.hslf.model.TestBackground

    [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.531
sec

    [junit] Running org.apache.poi.hslf.model.TestLine

    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.187
sec

    [junit] Running org.apache.poi.hslf.model.TestPPGraphics2D

    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.187
sec

    [junit] Running org.apache.poi.hslf.model.TestSetBoldItalic

    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.219
sec

    [junit] Running org.apache.poi.hslf.model.TestShapes

    [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0.328
sec

    [junit] Running org.apache.poi.hslf.model.TestSlideChangeNotes

    [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0 sec

    [junit] Running org.apache.poi.hslf.model.TestSlideMaster

    [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.516
sec

    [junit] Running org.apache.poi.hslf.model.TestSlides

    [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.219
sec

    [junit] Running org.apache.poi.hslf.model.TestTextRun

    [junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 0.297
sec

    [junit] Running org.apache.poi.hslf.model.TestTextRunReWrite

    [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.25 sec

    [junit] Running org.apache.poi.hslf.record.TestCString

    [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0 sec

    [junit] Running org.apache.poi.hslf.record.TestColorSchemeAtom

    [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0.016
sec

    [junit] Running org.apache.poi.hslf.record.TestComment2000

    [junit] Tests run: 7, Failures: 0, Errors: 0, Time elapsed: 0.063
sec

    [junit] Running org.apache.poi.hslf.record.TestComment2000Atom

    [junit] Tests run: 7, Failures: 0, Errors: 0, Time elapsed: 0.063
sec

    [junit] Running org.apache.poi.hslf.record.TestDocument

    [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0 sec

    [junit] Running org.apache.poi.hslf.record.TestDocumentAtom

    [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 0.016
sec

    [junit] Running
org.apache.poi.hslf.record.TestDocumentEncryptionAtom

    [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.016
sec

    [junit] Running org.apache.poi.hslf.record.TestExHyperlink

    [junit] Tests run: 6, Failures: 0, Errors: 6, Time elapsed: 1.953
sec

    [junit] Test org.apache.poi.hslf.record.TestExHyperlink FAILED

    [junit] Running org.apache.poi.hslf.record.TestExHyperlinkAtom

    [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0.063
sec

    [junit] Running org.apache.poi.hslf.record.TestExObjList

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.641
sec

    [junit] Test org.apache.poi.hslf.record.TestExObjList FAILED

    [junit] Running org.apache.poi.hslf.record.TestExObjListAtom

    [junit] Tests run: 5, Failures: 0, Errors: 5, Time elapsed: 5.672
sec

    [junit] Test org.apache.poi.hslf.record.TestExObjListAtom FAILED

    [junit] Running org.apache.poi.hslf.record.TestFontCollection

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hslf.record.TestFontCollection FAILED

    [junit] Running org.apache.poi.hslf.record.TestInteractiveInfo

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hslf.record.TestInteractiveInfo FAILED

    [junit] Running org.apache.poi.hslf.record.TestInteractiveInfoAtom

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hslf.record.TestInteractiveInfoAtom
FAILED

    [junit] Running org.apache.poi.hslf.record.TestNotesAtom

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hslf.record.TestNotesAtom FAILED

    [junit] Running org.apache.poi.hslf.record.TestRecordContainer

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hslf.record.TestRecordContainer FAILED

    [junit] Running org.apache.poi.hslf.record.TestRecordTypes

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hslf.record.TestRecordTypes FAILED

    [junit] Running org.apache.poi.hslf.record.TestSlideAtom

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hslf.record.TestSlideAtom FAILED

    [junit] Running org.apache.poi.hslf.record.TestSlidePersistAtom

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hslf.record.TestSlidePersistAtom FAILED

    [junit] Running org.apache.poi.hslf.record.TestStyleTextPropAtom

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hslf.record.TestStyleTextPropAtom FAILED

    [junit] Running org.apache.poi.hslf.record.TestTextBytesAtom

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hslf.record.TestTextBytesAtom FAILED

    [junit] Running org.apache.poi.hslf.record.TestTextCharsAtom

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hslf.record.TestTextCharsAtom FAILED

    [junit] Running org.apache.poi.hslf.record.TestTextHeaderAtom

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hslf.record.TestTextHeaderAtom FAILED

    [junit] Running org.apache.poi.hslf.record.TestTxMasterStyleAtom

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hslf.record.TestTxMasterStyleAtom FAILED

    [junit] Running org.apache.poi.hslf.record.TestUserEditAtom

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hslf.record.TestUserEditAtom FAILED

    [junit] Running org.apache.poi.hslf.usermodel.TestAddingSlides

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hslf.usermodel.TestAddingSlides FAILED

    [junit] Running org.apache.poi.hslf.usermodel.TestBugs

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hslf.usermodel.TestBugs FAILED

    [junit] Running org.apache.poi.hslf.usermodel.TestCounts

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hslf.usermodel.TestCounts FAILED

    [junit] Running org.apache.poi.hslf.usermodel.TestMostRecentRecords

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hslf.usermodel.TestMostRecentRecords
FAILED

    [junit] Running org.apache.poi.hslf.usermodel.TestNotesText

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hslf.usermodel.TestNotesText FAILED

    [junit] Running org.apache.poi.hslf.usermodel.TestPictures

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hslf.usermodel.TestPictures FAILED

    [junit] Running org.apache.poi.hslf.usermodel.TestReOrderingSlides

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hslf.usermodel.TestReOrderingSlides
FAILED

    [junit] Running org.apache.poi.hslf.usermodel.TestRecordSetup

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hslf.usermodel.TestRecordSetup FAILED

    [junit] Running org.apache.poi.hslf.usermodel.TestRichTextRun

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hslf.usermodel.TestRichTextRun FAILED

    [junit] Running org.apache.poi.hslf.usermodel.TestSheetText

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hslf.usermodel.TestSheetText FAILED

    [junit] Running org.apache.poi.hslf.usermodel.TestSlideOrdering

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hslf.usermodel.TestSlideOrdering FAILED

    [junit] Running org.apache.poi.hslf.util.TestSystemTimeUtils

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hslf.util.TestSystemTimeUtils FAILED

    [junit] Running
org.apache.poi.hssf.record.formula.eval.TestEverything

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hssf.record.formula.eval.TestEverything
FAILED

    [junit] Running
org.apache.poi.hssf.record.formula.functions.TestEverything

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test
org.apache.poi.hssf.record.formula.functions.TestEverything FAILE

    [junit] Running
org.apache.poi.hssf.record.formula.functions.TestFinanceLib

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test
org.apache.poi.hssf.record.formula.functions.TestFinanceLib FAILE

    [junit] Running
org.apache.poi.hssf.record.formula.functions.TestMathX

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hssf.record.formula.functions.TestMathX
FAILED

    [junit] Running
org.apache.poi.hssf.record.formula.functions.TestStatsLib

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test
org.apache.poi.hssf.record.formula.functions.TestStatsLib FAILED

    [junit] Running org.apache.poi.hwpf.TestHWPFPictures

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hwpf.TestHWPFPictures FAILED

    [junit] Running org.apache.poi.hwpf.extractor.TestDifferentRoutes

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hwpf.extractor.TestDifferentRoutes
FAILED

    [junit] Running org.apache.poi.hwpf.extractor.TestWordExtractor

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hwpf.extractor.TestWordExtractor FAILED

    [junit] Running org.apache.poi.hwpf.model.TestCHPBinTable

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hwpf.model.TestCHPBinTable FAILED

    [junit] Running org.apache.poi.hwpf.model.TestDocumentProperties

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hwpf.model.TestDocumentProperties FAILED

    [junit] Running org.apache.poi.hwpf.model.TestFileInformationBlock

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hwpf.model.TestFileInformationBlock
FAILED

    [junit] Running org.apache.poi.hwpf.model.TestFontTable

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hwpf.model.TestFontTable FAILED

    [junit] Running org.apache.poi.hwpf.model.TestListTables

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hwpf.model.TestListTables FAILED

    [junit] Running org.apache.poi.hwpf.model.TestPAPBinTable

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hwpf.model.TestPAPBinTable FAILED

    [junit] Running org.apache.poi.hwpf.model.TestPlexOfCps

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hwpf.model.TestPlexOfCps FAILED

    [junit] Running org.apache.poi.hwpf.model.TestSavedByTable

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hwpf.model.TestSavedByTable FAILED

    [junit] Running org.apache.poi.hwpf.model.TestSectionTable

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hwpf.model.TestSectionTable FAILED

    [junit] Running org.apache.poi.hwpf.model.TestStyleSheet

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hwpf.model.TestStyleSheet FAILED

    [junit] Running org.apache.poi.hwpf.model.TestTextPieceTable

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hwpf.model.TestTextPieceTable FAILED

    [junit] Running org.apache.poi.hwpf.usermodel.TestPictures

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test org.apache.poi.hwpf.usermodel.TestPictures FAILED

 

BUILD FAILED

java.lang.OutOfMemoryError: PermGen space

 

Total time: 2 minutes 10 seconds

C:\Dev\poi\poi-3.0-rc4>


The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. 

RE: Newbie Build Help

Posted by "Everitt, Glenn" <Gl...@compuware.com>.
I set ANT_OPTS=-XX:PermSize=128M and it worked!

Thanks for the help!

One little note is that Forrest 0.5.1 is required as mentioned in the
build.xml which is a little newer than Forrest 0.4 that is mentioned
here:  http://jakarta.apache.org/poi/howtobuild.html

Thanks again!
Glenn Everitt

-----Original Message-----
From: Nick Burch [mailto:nick@torchbox.com] 
Sent: Wednesday, May 30, 2007 11:31 AM
To: POI Developers List
Subject: Re: Newbie Build Help

On Wed, 30 May 2007, Andrew C. Oliver wrote:
> that will have no effect.  -Xmx doens't affect perm gen.
>
> http://wiki.jboss.org/wiki/Wiki.jsp?page=PermanentGeneration

Ah, that's worth knowing.

Looks like "ANT_OPTS=-XX:PermSize=64M ant" might be the one to go for

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/


The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. 

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/


Re: Newbie Build Help

Posted by Nick Burch <ni...@torchbox.com>.
On Wed, 30 May 2007, Andrew C. Oliver wrote:
> that will have no effect.  -Xmx doens't affect perm gen.
>
> http://wiki.jboss.org/wiki/Wiki.jsp?page=PermanentGeneration

Ah, that's worth knowing.

Looks like "ANT_OPTS=-XX:PermSize=64M ant" might be the one to go for

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/


Re: Newbie Build Help

Posted by "Andrew C. Oliver" <ac...@buni.org>.
that will have no effect.  -Xmx doens't affect perm gen.

http://wiki.jboss.org/wiki/Wiki.jsp?page=PermanentGeneration

Nick Burch wrote:
> On Wed, 30 May 2007, Everitt, Glenn wrote:
>> All of the test failures seem to be:
>>
>> java.lang.OutOfMemoryError: PermGen space
> 
> Try increasing the amount of memory you allocate to java. Since you're 
> running ant, you can't just tack on -Xmx, instead you need to pop that 
> in the environment variable ANT_OPTS
> 
> On unix, try:
>     ANT_OPTS=-Xmx512m ant test
> and that'll tell ant to run under a JVM with 512mb of memory for the 
> heap size
> 
>> It executes successfully. The problem is I don't know how to build a 
>> distribution without using "clean-dist"
> 
> You can just edit your build.xml. Find the line
>     <target name="dist" depends="clean, fail-unless-to.....
> and remove clean from the depends list.
> 
> Nick
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
> Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
> The Apache Jakarta POI Project: http://jakarta.apache.org/poi/


-- 
Buni Meldware Communication Suite
http://buni.org
Multi-platform and extensible Email,
Calendaring (including freebusy),
Rich Webmail, Web-calendaring, ease
of installation/administration.

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/


Re: Newbie Build Help

Posted by Nick Burch <ni...@torchbox.com>.
On Wed, 30 May 2007, Everitt, Glenn wrote:
> All of the test failures seem to be:
>
> java.lang.OutOfMemoryError: PermGen space

Try increasing the amount of memory you allocate to java. Since you're 
running ant, you can't just tack on -Xmx, instead you need to pop that in 
the environment variable ANT_OPTS

On unix, try:
 	ANT_OPTS=-Xmx512m ant test
and that'll tell ant to run under a JVM with 512mb of memory for the heap 
size

> It executes successfully. The problem is I don't know how to build a 
> distribution without using "clean-dist"

You can just edit your build.xml. Find the line
 	<target name="dist" depends="clean, fail-unless-to.....
and remove clean from the depends list.

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/