You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Zabrane Mickael (JIRA)" <ji...@apache.org> on 2011/02/20 19:51:38 UTC
[jira] Created: (TIKA-603) Tika 0.9 compiles fine but failed a unit
test
Tika 0.9 compiles fine but failed a unit test
---------------------------------------------
Key: TIKA-603
URL: https://issues.apache.org/jira/browse/TIKA-603
Project: Tika
Issue Type: Bug
Components: general
Affects Versions: 0.9
Environment: [OSX 10.5.8 + java 1.5.0_26 + mvn 2.2.1]
[OSX 10.6.5 + java 1.6.0_22 + mvn 2.2.1]
Reporter: Zabrane Mickael
Priority: Minor
Fix For: 1.0
I've sent the both surefire reports output to the mailing list.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (TIKA-603) Tika 0.9 compiles fine but failed a unit
test
Posted by "Zabrane Mickael (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TIKA-603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zabrane Mickael updated TIKA-603:
---------------------------------
Attachment: testRFC822_quoted_CRLF.png
I've uncompressed Tika0.9 with:
unzip -a apache-tika-0.9-src.zip
As you can see on the attached screenshot, it seems that there's only \n.
/Zab
> Tika 0.9 compiles fine but failed a unit test
> ---------------------------------------------
>
> Key: TIKA-603
> URL: https://issues.apache.org/jira/browse/TIKA-603
> Project: Tika
> Issue Type: Bug
> Components: general
> Affects Versions: 0.9
> Environment: [OSX 10.5.8 + java 1.5.0_26 + mvn 2.2.1]
> [OSX 10.6.5 + java 1.6.0_22 + mvn 2.2.1]
> Reporter: Zabrane Mickael
> Priority: Minor
> Fix For: 1.0
>
> Attachments: surefire-reports-osx-10.5.8.tbz2, surefire-reports-osx-10.6-5.tbz2, testRFC822_quoted_CRLF.png
>
>
> See attachement for both surefire reports output.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (TIKA-603) Tika 0.9 compiles fine but failed a
unit test
Posted by "Chris A. Mattmann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TIKA-603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12997201#comment-12997201 ]
Chris A. Mattmann commented on TIKA-603:
----------------------------------------
Hi Zabrane,
Yep, it's *Chris* BTW, not *Matt*.
You just run:
{noformat}
mvn -Dmaven.test.skip=true install
{noformat}
> Tika 0.9 compiles fine but failed a unit test
> ---------------------------------------------
>
> Key: TIKA-603
> URL: https://issues.apache.org/jira/browse/TIKA-603
> Project: Tika
> Issue Type: Bug
> Components: general
> Affects Versions: 0.9
> Environment: [OSX 10.5.8 + java 1.5.0_26 + mvn 2.2.1]
> [OSX 10.6.5 + java 1.6.0_22 + mvn 2.2.1]
> Reporter: Zabrane Mickael
> Priority: Minor
> Fix For: 1.0
>
> Attachments: surefire-reports-osx-10.5.8.tbz2, surefire-reports-osx-10.6-5.tbz2
>
>
> See attachement for both surefire reports output.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (TIKA-603) Tika 0.9 compiles fine but failed a
unit test
Posted by "Andreas Kemkes (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TIKA-603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12999647#comment-12999647 ]
Andreas Kemkes commented on TIKA-603:
-------------------------------------
I had an issue compiling using
Apache Maven 2.2.1 (r801777; 2009-08-06 12:16:01-0700)
Java version: 1.5.0_26
Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x" version: "10.5.8" arch: "i386" Family: "unix"
[INFO] [bundle:bundle {execution: default-bundle}]
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Java heap space
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.OutOfMemoryError: Java heap space
at sun.util.calendar.Gregorian.newCalendarDate(Gregorian.java:51)
at java.util.Date.<init>(Date.java:235)
at java.util.zip.ZipEntry.dosToJavaTime(ZipEntry.java:288)
at java.util.zip.ZipEntry.getTime(ZipEntry.java:127)
at aQute.lib.osgi.ZipResource.build(ZipResource.java:50)
at aQute.lib.osgi.ZipResource.build(ZipResource.java:33)
at aQute.lib.osgi.Jar.<init>(Jar.java:36)
at aQute.lib.osgi.Jar.<init>(Jar.java:55)
at aQute.lib.osgi.Analyzer.getJarFromName(Analyzer.java:741)
at aQute.lib.osgi.Builder.extractFromJar(Builder.java:750)
at aQute.lib.osgi.Builder.doIncludeResource(Builder.java:570)
at aQute.lib.osgi.Builder.doIncludeResources(Builder.java:556)
at aQute.lib.osgi.Builder.build(Builder.java:69)
at org.apache.felix.bundleplugin.BundlePlugin.buildOSGiBundle(BundlePlugin.java:393)
at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:284)
at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:238)
at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:229)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
Using MAVEN_OPTS=-Xmx512m mvn install helped. Can this be added to the maven configuration.
All tests seem to have passed though.
> Tika 0.9 compiles fine but failed a unit test
> ---------------------------------------------
>
> Key: TIKA-603
> URL: https://issues.apache.org/jira/browse/TIKA-603
> Project: Tika
> Issue Type: Bug
> Components: general
> Affects Versions: 0.9
> Environment: [OSX 10.5.8 + java 1.5.0_26 + mvn 2.2.1]
> [OSX 10.6.5 + java 1.6.0_22 + mvn 2.2.1]
> Reporter: Zabrane Mickael
> Priority: Minor
> Fix For: 1.0
>
> Attachments: surefire-reports-osx-10.5.8.tbz2, surefire-reports-osx-10.6-5.tbz2
>
>
> See attachement for both surefire reports output.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (TIKA-603) Tika 0.9 compiles fine but failed a
unit test
Posted by "Chris A. Mattmann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TIKA-603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12997191#comment-12997191 ]
Chris A. Mattmann commented on TIKA-603:
----------------------------------------
Hi Zabrane, thanks! The mailing list filters attachments, so attaching them here is the best bet. Thanks!
> Tika 0.9 compiles fine but failed a unit test
> ---------------------------------------------
>
> Key: TIKA-603
> URL: https://issues.apache.org/jira/browse/TIKA-603
> Project: Tika
> Issue Type: Bug
> Components: general
> Affects Versions: 0.9
> Environment: [OSX 10.5.8 + java 1.5.0_26 + mvn 2.2.1]
> [OSX 10.6.5 + java 1.6.0_22 + mvn 2.2.1]
> Reporter: Zabrane Mickael
> Priority: Minor
> Fix For: 1.0
>
>
> I've sent both surefire reports output to the mailing list.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (TIKA-603) Tika 0.9 compiles fine but failed a unit
test
Posted by "Zabrane Mickael (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TIKA-603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zabrane Mickael updated TIKA-603:
---------------------------------
Attachment: surefire-reports-osx-10.6-5.tbz2
surefire-reports-osx-10.5.8.tbz2
> Tika 0.9 compiles fine but failed a unit test
> ---------------------------------------------
>
> Key: TIKA-603
> URL: https://issues.apache.org/jira/browse/TIKA-603
> Project: Tika
> Issue Type: Bug
> Components: general
> Affects Versions: 0.9
> Environment: [OSX 10.5.8 + java 1.5.0_26 + mvn 2.2.1]
> [OSX 10.6.5 + java 1.6.0_22 + mvn 2.2.1]
> Reporter: Zabrane Mickael
> Priority: Minor
> Fix For: 1.0
>
> Attachments: surefire-reports-osx-10.5.8.tbz2, surefire-reports-osx-10.6-5.tbz2
>
>
> I've sent both surefire reports output to the mailing list.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Issue Comment Edited: (TIKA-603) Tika 0.9 compiles fine but
failed a unit test
Posted by "Zabrane Mickael (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TIKA-603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13004661#comment-13004661 ]
Zabrane Mickael edited comment on TIKA-603 at 3/9/11 5:15 PM:
--------------------------------------------------------------
I've uncompressed Tika0.9 with:
unzip -a apache-tika-0.9-src.zip
As you can see on the attached screenshot (https://issues.apache.org/jira/secure/attachment/12473162/testRFC822_quoted_CRLF.png), it seems that there's only \n.
/Zab
was (Author: zab):
I've uncompressed Tika0.9 with:
unzip -a apache-tika-0.9-src.zip
As you can see on the attached screenshot, it seems that there's only \n.
/Zab
> Tika 0.9 compiles fine but failed a unit test
> ---------------------------------------------
>
> Key: TIKA-603
> URL: https://issues.apache.org/jira/browse/TIKA-603
> Project: Tika
> Issue Type: Bug
> Components: general
> Affects Versions: 0.9
> Environment: [OSX 10.5.8 + java 1.5.0_26 + mvn 2.2.1]
> [OSX 10.6.5 + java 1.6.0_22 + mvn 2.2.1]
> Reporter: Zabrane Mickael
> Priority: Minor
> Fix For: 1.0
>
> Attachments: surefire-reports-osx-10.5.8.tbz2, surefire-reports-osx-10.6-5.tbz2, testRFC822_quoted_CRLF.png
>
>
> See attachement for both surefire reports output.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (TIKA-603) Tika 0.9 compiles fine but failed a
unit test
Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TIKA-603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jukka Zitting resolved TIKA-603.
--------------------------------
Resolution: Invalid
Fix Version/s: (was: 0.10)
Assignee: Jukka Zitting
I checked the 0.9 source archive and the test file there contains the correct line endings.
The problem here is that you used the "-a" option to unzip, which seems to have transformed the line endings also in this
test file.
> Tika 0.9 compiles fine but failed a unit test
> ---------------------------------------------
>
> Key: TIKA-603
> URL: https://issues.apache.org/jira/browse/TIKA-603
> Project: Tika
> Issue Type: Bug
> Components: general
> Affects Versions: 0.9
> Environment: [OSX 10.5.8 + java 1.5.0_26 + mvn 2.2.1]
> [OSX 10.6.5 + java 1.6.0_22 + mvn 2.2.1]
> Reporter: Zabrane Mickael
> Assignee: Jukka Zitting
> Priority: Minor
> Attachments: surefire-reports-osx-10.5.8.tbz2, surefire-reports-osx-10.6-5.tbz2, testRFC822_quoted_CRLF.png
>
>
> See attachement for both surefire reports output.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (TIKA-603) Tika 0.9 compiles fine but failed a
unit test
Posted by "Zabrane Mickael (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TIKA-603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12997200#comment-12997200 ]
Zabrane Mickael commented on TIKA-603:
--------------------------------------
Hi Matt,
Yep. Is there a way to just SKIP unit tests
and let it build all the jars (I'm interested in tika-app-${ver}.jar) ?
Regards,
Zabrane
> Tika 0.9 compiles fine but failed a unit test
> ---------------------------------------------
>
> Key: TIKA-603
> URL: https://issues.apache.org/jira/browse/TIKA-603
> Project: Tika
> Issue Type: Bug
> Components: general
> Affects Versions: 0.9
> Environment: [OSX 10.5.8 + java 1.5.0_26 + mvn 2.2.1]
> [OSX 10.6.5 + java 1.6.0_22 + mvn 2.2.1]
> Reporter: Zabrane Mickael
> Priority: Minor
> Fix For: 1.0
>
> Attachments: surefire-reports-osx-10.5.8.tbz2, surefire-reports-osx-10.6-5.tbz2
>
>
> See attachement for both surefire reports output.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (TIKA-603) Tika 0.9 compiles fine but failed a
unit test
Posted by "Zabrane Mickael (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TIKA-603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12997214#comment-12997214 ]
Zabrane Mickael commented on TIKA-603:
--------------------------------------
Hi Chris,
Worked like a charm. Thanks again ;-)
Regards,
Zabrane
> Tika 0.9 compiles fine but failed a unit test
> ---------------------------------------------
>
> Key: TIKA-603
> URL: https://issues.apache.org/jira/browse/TIKA-603
> Project: Tika
> Issue Type: Bug
> Components: general
> Affects Versions: 0.9
> Environment: [OSX 10.5.8 + java 1.5.0_26 + mvn 2.2.1]
> [OSX 10.6.5 + java 1.6.0_22 + mvn 2.2.1]
> Reporter: Zabrane Mickael
> Priority: Minor
> Fix For: 1.0
>
> Attachments: surefire-reports-osx-10.5.8.tbz2, surefire-reports-osx-10.6-5.tbz2
>
>
> See attachement for both surefire reports output.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (TIKA-603) Tika 0.9 compiles fine but failed a unit
test
Posted by "Zabrane Mickael (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TIKA-603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zabrane Mickael updated TIKA-603:
---------------------------------
Description: See attachement for both surefire reports output. (was: I've sent both surefire reports output to the mailing list.)
> Tika 0.9 compiles fine but failed a unit test
> ---------------------------------------------
>
> Key: TIKA-603
> URL: https://issues.apache.org/jira/browse/TIKA-603
> Project: Tika
> Issue Type: Bug
> Components: general
> Affects Versions: 0.9
> Environment: [OSX 10.5.8 + java 1.5.0_26 + mvn 2.2.1]
> [OSX 10.6.5 + java 1.6.0_22 + mvn 2.2.1]
> Reporter: Zabrane Mickael
> Priority: Minor
> Fix For: 1.0
>
> Attachments: surefire-reports-osx-10.5.8.tbz2, surefire-reports-osx-10.6-5.tbz2
>
>
> See attachement for both surefire reports output.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (TIKA-603) Tika 0.9 compiles fine but failed a
unit test
Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TIKA-603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13004652#comment-13004652 ]
Jukka Zitting commented on TIKA-603:
------------------------------------
The reported test failure is:
{code}
-------------------------------------------------------------------------------
Test set: org.apache.tika.parser.mail.RFC822ParserTest
-------------------------------------------------------------------------------
Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.044 sec <<< FAILURE!
testQuotedPrintable(org.apache.tika.parser.mail.RFC822ParserTest) Time elapsed: 0.025 sec <<< FAILURE!
junit.framework.AssertionFailedError
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.assertTrue(Assert.java:20)
at junit.framework.Assert.assertTrue(Assert.java:27)
at org.apache.tika.parser.mail.RFC822ParserTest.testQuotedPrintable(RFC822ParserTest.java:113)
{code}
The test case looks at line wrapping in email messages, and the test file in question has explicitly been marked with svn:eol-style=CRLF to prevent svn from changing the line endings. Can you check whether the tika-parsers/src/test/resources/testRFC822_quoted file in your local checkout has CRLF line endings?
> Tika 0.9 compiles fine but failed a unit test
> ---------------------------------------------
>
> Key: TIKA-603
> URL: https://issues.apache.org/jira/browse/TIKA-603
> Project: Tika
> Issue Type: Bug
> Components: general
> Affects Versions: 0.9
> Environment: [OSX 10.5.8 + java 1.5.0_26 + mvn 2.2.1]
> [OSX 10.6.5 + java 1.6.0_22 + mvn 2.2.1]
> Reporter: Zabrane Mickael
> Priority: Minor
> Fix For: 1.0
>
> Attachments: surefire-reports-osx-10.5.8.tbz2, surefire-reports-osx-10.6-5.tbz2
>
>
> See attachement for both surefire reports output.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira