You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by Fred Hansen <zw...@yahoo.com> on 2013/08/06 15:38:59 UTC

build of 2.0 fails


I have some PDF files that produce empty images for 
PDPage.convertToImage(). 

I would like to test them in 2.0. However, 2.0 
fails to build. 

The commands 

svn checkout http://svn.apache.org/repos/asf/pdfbox/trunk/
cd trunk
mvn package
fail with the error below. The same error I reported in PDFBOX-1633. 

Some time ago, I appended to that report a revised DateConverter that does not have this error. 




             How can I get the fix installed so the build will not fail?????



Here is the error output

Writing: target/test-output/tiger-as-form-xobject.pdf-1.wbmp
Tests run: 133, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 13.719 sec <<< FAILURE!
Running org.apache.pdfbox.util.TestTextStripper
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.641 sec

Results :

Failed
 tests:  


testDateConverter(org.apache.pdfbox.util.TestDateUtil): null 
expected:<2008-11-04T0[0]:00:00+00:00> but 
was:<2008-11-04T0[5]:00:00+00:00>

testExtract(org.apache.pdfbox.util.TestDateUtil): 
expected:
<java.util.GregorianCalendar[time=1115870400000,areFieldsSet=true,
areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[
id="UTC",offset=0,dstSavings=0,useDaylight=false,transitions=0,lastRule=null
],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2005,MONTH=4,
WEEK_OF_YEAR=20,WEEK_OF_MONTH=2,DAY_OF_MONTH=12,DAY_OF_YEAR=132,
DAY_OF_WEEK=5,DAY_OF_WEEK_IN_MONTH=2,AM_PM=0,
HOUR=4,HOUR_OF_DAY=4,MINUTE=0,SECOND=0,MILLISECOND=0,
ZONE_OFFSET=0,DST_OFFSET=0]> 

but 
was: 

<java.util.GregorianCalendar[time=?,areFieldsSet=false,
areAllFieldsSet=false,lenient=true,zone=sun.util.calendar.ZoneInfo[
id="UTC",offset=0,dstSavings=0,useDaylight=false,transitions=0,lastRule=null
],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=?,YEAR=2005,MONTH=4,
WEEK_OF_YEAR=?,WEEK_OF_MONTH=?,DAY_OF_MONTH=12,DAY_OF_YEAR=?,
DAY_OF_WEEK=?,DAY_OF_WEEK_IN_MONTH=?,AM_PM=0,
HOUR=0,HOUR_OF_DAY=0,MINUTE=0,SECOND=0,MILLISECOND=?,
ZONE_OFFSET=?,DST_OFFSET=?]>

Tests run: 134, Failures: 2, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] PDFBox parent ..................................... SUCCESS [2.140s]
[INFO] Apache FontBox .................................... SUCCESS [3.782s]
[INFO] Apache JempBox .................................... SUCCESS [1.219s]
[INFO] Apache XmpBox ..................................... SUCCESS [3.140s]
[INFO] Apache PDFBox ..................................... FAILURE [21.705s]
[INFO] Apache Preflight .................................. SKIPPED
[INFO] Apache Preflight application ...................... SKIPPED
[INFO] Apache PDFBox for Lucene .......................... SKIPPED
[INFO] Apache PDFBox for Ant ............................. SKIPPED
[INFO] Apache PDFBox webapp .............................. SKIPPED
[INFO] Apache PDFBox application ......................... SKIPPED
[INFO] Apache PDFBox examples ............................ SKIPPED
[INFO] PDFBox reactor .................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 32.471s
[INFO] Finished at: Tue Aug 06 09:03:24 EDT 2013
[INFO] Final Memory: 51M/159M
[INFO] ------------------------------------------------------------------------
[ERROR]
 Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.9:test (default-test) 
on project pdfbox: There are test failures.