FTBFS with jtidy 7+svn20110807-1

Bug #841695 reported by James Page
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
jtidy (Ubuntu)
Fix Released
High
James Page
lucene2 (Debian)
Fix Released
Unknown
lucene2 (Ubuntu)
Fix Released
High
James Page

Bug Description

Discovered whilst testing reverse build-dependencies of jtidy to support bug 837990:

common.test:
    [mkdir] Created dir: /build/jamespage-lucene2_2.9.4+ds1-2-amd64-qB5aEF/lucene2-2.9.4+ds1/build/contrib/ant/test
    [junit] WARNING: multiple versions of ant detected in path for junit
    [junit] jar:file:/usr/share/java/ant-1.8.2.jar!/org/apache/tools/ant/Project.class
    [junit] and jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/Project.class
    [junit] Testsuite: org.apache.lucene.ant.HtmlDocumentTest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.059 sec
    [junit]
    [junit] Testcase: testDoc(org.apache.lucene.ant.HtmlDocumentTest): Caused an ERROR
    [junit] null
    [junit] java.lang.ExceptionInInitializerError
    [junit] at org.w3c.tidy.Tidy.<init>(Tidy.java:135)
    [junit] at org.apache.lucene.ant.HtmlDocument.<init>(HtmlDocument.java:60)
    [junit] at org.apache.lucene.ant.HtmlDocumentTest.setUp(HtmlDocumentTest.java:34)
    [junit] Caused by: java.lang.RuntimeException: Failed to load jtidy.properties
    [junit] at org.w3c.tidy.Report.readReleaseDate(Report.java:94)
    [junit] at org.w3c.tidy.Report.<clinit>(Report.java:85)
    [junit] Caused by: java.lang.NullPointerException
    [junit] at java.util.Properties$LineReader.readLine(Properties.java:435)
    [junit] at java.util.Properties.load0(Properties.java:354)
    [junit] at java.util.Properties.load(Properties.java:342)
    [junit] at org.w3c.tidy.Report.readReleaseDate(Report.java:91)
    [junit]
    [junit]
    [junit] Test org.apache.lucene.ant.HtmlDocumentTest FAILED
    [junit] Testsuite: org.apache.lucene.ant.IndexTaskTest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.19 sec
    [junit]
    [junit] Testcase: testSearch(org.apache.lucene.ant.IndexTaskTest): Caused an ERROR
    [junit] null
    [junit] java.lang.ExceptionInInitializerError
    [junit] at org.w3c.tidy.Tidy.<init>(Tidy.java:135)
    [junit] at org.apache.lucene.ant.HtmlDocument.<init>(HtmlDocument.java:60)
    [junit] at org.apache.lucene.ant.HtmlDocument.Document(HtmlDocument.java:175)
    [junit] at org.apache.lucene.ant.FileExtensionDocumentHandler.getDocument(FileExtensionDocumentHandler.java:56)
    [junit] at org.apache.lucene.ant.IndexTask.indexDocs(IndexTask.java:340)
    [junit] at org.apache.lucene.ant.IndexTask.execute(IndexTask.java:236)
    [junit] at org.apache.lucene.ant.IndexTaskTest.setUp(IndexTaskTest.java:69)
    [junit] Caused by: java.lang.RuntimeException: Failed to load jtidy.properties
    [junit] at org.w3c.tidy.Report.readReleaseDate(Report.java:94)
    [junit] at org.w3c.tidy.Report.<clinit>(Report.java:85)
    [junit] Caused by: java.lang.NullPointerException
    [junit] at java.util.Properties$LineReader.readLine(Properties.java:435)
    [junit] at java.util.Properties.load0(Properties.java:354)
    [junit] at java.util.Properties.load(Properties.java:342)
    [junit] at org.w3c.tidy.Report.readReleaseDate(Report.java:91)
    [junit]
    [junit]
    [junit] Test org.apache.lucene.ant.IndexTaskTest FAILED
    [junit] Testsuite: org.apache.lucene.ant.TextDocumentTest
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.039 sec
    [junit]
   [subant] Failure for target 'test' of: /build/jamespage-lucene2_2.9.4+ds1-2-amd64-qB5aEF/lucene2-2.9.4+ds1/contrib/ant/build.xml
   [subant] The following error occurred while executing this line:
   [subant] /build/jamespage-lucene2_2.9.4+ds1-2-amd64-qB5aEF/lucene2-2.9.4+ds1/contrib/contrib-build.xml:130: The following error occurred while executing this line:
   [subant] /build/jamespage-lucene2_2.9.4+ds1-2-amd64-qB5aEF/lucene2-2.9.4+ds1/common-build.xml:455: The following error occurred while executing this line:
   [subant] /build/jamespage-lucene2_2.9.4+ds1-2-amd64-qB5aEF/lucene2-2.9.4+ds1/common-build.xml:448: Tests failed!
     [echo] Building benchmark...

Tags: ftbfs oneiric
Revision history for this message
James Page (james-page) wrote :
Changed in lucene2 (Debian):
status: Unknown → New
James Page (james-page)
tags: added: ftbfs
tags: added: oneiric
Revision history for this message
James Page (james-page) wrote :

This looks like a missing properties file from libjtidy-java

Changed in lucene2 (Ubuntu):
status: New → In Progress
importance: Undecided → High
assignee: nobody → James Page (james-page)
Changed in jtidy (Ubuntu):
status: New → In Progress
importance: Undecided → High
assignee: nobody → James Page (james-page)
Revision history for this message
James Page (james-page) wrote :

This also applied to lucene2_2.9.4+ds1-3

Revision history for this message
James Page (james-page) wrote :

The newer revision in Debian would also resolve the issue with jitdy,jar - builds OK on oneiric if a little noisy with warning messages during the clean build phase; I'm a little reticent about switching build system this late in the cycle.

--

jtidy (7+svn20110807-2) unstable; urgency=high

   * Team upload
   * Use Maven to build the package.
   * Set urgency to high because the last version is broken.
   * Switch to debhelper compat level 7.
   * Update Standards-Version: 3.9.1.
 -- Torsten Werner <email address hidden> Sun, 11 Sep 2011 12:06:10 +0200

Revision history for this message
James Page (james-page) wrote :

OK - so we should sync as follows:

jtidy from Debian unstable - it builds just fine and fixes the issue in the current package

lucene2 from Debian experimental - in order to pickup new packaging changes to support eclipse 3.7

Both built fine in https://launchpad.net/~james-page/+archive/java-universe-oneiric/+packages

Revision history for this message
Benjamin Drung (bdrung) wrote :

This bug was fixed in the package jtidy - 7+svn20110807-2

---------------
jtidy (7+svn20110807-2) unstable; urgency=high

  * Team upload
  * Use Maven to build the package.
  * Set urgency to high because the last version is broken.
  * Switch to debhelper compat level 7.
  * Update Standards-Version: 3.9.1.

 -- Torsten Werner <email address hidden> Sun, 11 Sep 2011 12:06:10 +0200

Changed in jtidy (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
James Page (james-page) wrote :

lucene2 synced from Debian - marking fixed released.

Changed in lucene2 (Ubuntu):
status: In Progress → Fix Released
Changed in lucene2 (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.