You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@any23.apache.org by Lewis John Mcgibbney <le...@gmail.com> on 2012/05/08 20:13:08 UTC

Issues with build

Hi Guys,

I've been off the beaten track for a week or so and haven't had much
time to put towards Any23.

I'm getting some pretty horrible build output when checking out trunk
and doing mvn clean install.

Failed tests:
testSpeciesMicroformatExtractOverTaxoBox(org.apache.any23.extractor.html.SpeciesExtractorTest):
Unexpected number of matching statements. expected:<29> but was:<27>
  testListingWithouthContent(org.apache.any23.extractor.html.HListingExtractorTest):
Unexpected number of matching statements. expected:<4> but was:<3>
  testVCardMultiAddress(org.apache.any23.extractor.html.AdrExtractorTest):
Unexpected statement size: 5
  testAdvancedItemrefManagement(org.apache.any23.extractor.microdata.MicrodataParserTest):
Error while comparing error [1] expected:<...[2]", "begin_row" : [10,
"begin_col" : 5, "end_row" : 10], "end_col" : 97 }> but was:<...[2]",
"begin_row" : [26, "begin_col" : 5, "end_row" : 26], "end_col" : 97 }>
  testMicroformatDomains(org.apache.any23.extractor.SingleDocumentExtractionTest):
Cannot find triple (* http://vocab.sindice.net/any23#domain
"nested.test.com") 1 times expected:<1> but was:<0>
  testNestedMicroformats(org.apache.any23.extractor.SingleDocumentExtractionTest):
Cannot find triple (* http://vocab.sindice.net/any23#domain
"nested.test.com") 2 times expected:<2> but was:<0>
  testNestedMicroformatsInduced(org.apache.any23.extractor.SingleDocumentExtractionTest):
Cannot find triple (* http://vocab.sindice.net/any23#domain
"nested.test.com") 2 times expected:<2> but was:<0>
  testNestedMicroformatsManaged(org.apache.any23.extractor.SingleDocumentExtractionTest):
Cannot find triple (* http://vocab.sindice.net/any23#domain
"nested.test.com") 3 times expected:<3> but was:<0>
  testDetectRSS1ByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
Error in mimetype detection for file
/home/lewis/ASF/any23/core/src/test/resources/application/rss1/test1
expected:<application/[rdf+xml]> but was:<application/[octet-stream]>
  testDetectRDFN3ByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
Error in mimetype detection for file
/home/lewis/ASF/any23/core/src/test/resources/application/rdfn3/test1
expected:<[text/n3]> but was:<[application/octet-stream]>
  testDetectRDFNQuadsByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
Error in mimetype detection for file
/home/lewis/ASF/any23/core/src/test/resources/application/nquads/test1.nq
expected:<[text/nq]> but was:<[application/octet-stream]>
  testDetectRDFXMLByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
Error in mimetype detection for file
/home/lewis/ASF/any23/core/src/test/resources/application/rdfxml/test1
expected:<application/[rdf+xml]> but was:<application/[octet-stream]>
  testDetectHTMLByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
Error in mimetype detection for file
/home/lewis/ASF/any23/core/src/test/resources/text/html/test1
expected:<[text/html]> but was:<[application/octet-stream]>
  testRDFXMLByContentAndName(org.apache.any23.mime.TikaMIMETypeDetectorTest):
Error while detecting mimetype in file
src/test/resources/application/rdfxml/test1
expected:<application/[rdf+xml]> but was:<application/[octet-stream]>
  testRSS1ByContentAndName(org.apache.any23.mime.TikaMIMETypeDetectorTest):
Error while detecting mimetype in file
src/test/resources/application/rss1/test1
expected:<application/[rdf+xml]> but was:<application/[octet-stream]>
  testDetectRDFN3ByContentAndName(org.apache.any23.mime.TikaMIMETypeDetectorTest):
Error while detecting mimetype in file
src/test/resources/application/rdfn3/test1 expected:<[text/n3]> but
was:<[application/octet-stream]>
  testHTMLByContentAndName(org.apache.any23.mime.TikaMIMETypeDetectorTest):
Error while detecting mimetype in file
src/test/resources/text/html/test1 expected:<[text/html]> but
was:<[application/octet-stream]>

Tests run: 399, Failures: 17, Errors: 0, Skipped: 1

When I last tried... some 2 weeks or so ago, I was getting one failed
test (this is reflected by the nightly build output... when it
actually runs the tests), now it seems to have snowballed quite a bit
and my situation locally is pretty dim.

Can anyone reproduce this behaviour?
Thank you

Lewis

-- 
Lewis

Re: Issues with build

Posted by Lewis John Mcgibbney <le...@gmail.com>.
Guys please see the ticket I opened e.g. ANY23-87 I think this is the
bug that we've been looking for.

Also w.r.t an .nq file, I loaded one [0] into my public area on the
apache servers... and believe it or not actually found a bug in
Crawler4j as well [1]... time for some whisky I think ;0)

[0] http://people.apache.org/~lewismc/rover-test1.nq
[1] http://code.google.com/p/crawler4j/issues/detail?id=145

On Fri, May 11, 2012 at 11:53 PM, Lewis John Mcgibbney
<le...@gmail.com> wrote:
> Hi Guys,
>
> Can anyone please provide me with a live site hosting .nq URL's?
>
> I'm messing around generally with some tests, and specifically with
> RDFUtils and would like to try grabbing different mimeTypes... I can't
> find an .nq though!
>
> Thanks and have a great weekend.
>
> Michele please see below
>
> On Fri, May 11, 2012 at 1:22 PM, Michele Mostarda
> <mi...@gmail.com> wrote:
>> org.apache.any23.plugin.PluginIT line 109:
>>
>> assertEquals(7 + 1, toolClasses.size());
>>
>> It seems there is a CLI tool less than expected.
>> What did we remove here?
>>
>
> I really really don't know but am committed to rooting this one out.
> It's a tricky one!
>
> Lewis



-- 
Lewis

Re: Issues with build

Posted by Lewis John Mcgibbney <le...@gmail.com>.
Hi Guys,

Can anyone please provide me with a live site hosting .nq URL's?

I'm messing around generally with some tests, and specifically with
RDFUtils and would like to try grabbing different mimeTypes... I can't
find an .nq though!

Thanks and have a great weekend.

Michele please see below

On Fri, May 11, 2012 at 1:22 PM, Michele Mostarda
<mi...@gmail.com> wrote:
> org.apache.any23.plugin.PluginIT line 109:
>
> assertEquals(7 + 1, toolClasses.size());
>
> It seems there is a CLI tool less than expected.
> What did we remove here?
>

I really really don't know but am committed to rooting this one out.
It's a tricky one!

Lewis

Re: Issues with build

Posted by Michele Mostarda <mi...@gmail.com>.
Hi Guys,

org.apache.any23.plugin.PluginIT line 109:

assertEquals(7 + 1, toolClasses.size());

It seems there is a CLI tool less than expected.
What did we remove here?

The best.
Mic

On 11 May 2012 13:13, Lewis John Mcgibbney <le...@gmail.com>wrote:

> OK this looks 'better'
>
> I'm going to make a clean check out of trunk then build using Maven 3.X
>
> I'll also stick in some time today and see if we can get to the bottom
> of this one. It's been quite a while since our builds were on track
> and it would be real nice to sort that out if anything.
>
> On Fri, May 11, 2012 at 11:20 AM, Michele Mostarda
> <mi...@gmail.com> wrote:
> > Hi guys,
> >
> >  I tried to replicate the issue performing a
> >
> >        trunk(v1337100) $ mvn clean install
> >
> > and I found a different issue occurring during the integration test:
> > =============
> > Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.365 sec
> > <<< FAILURE!
> >
> > Results :
> >
> > Failed tests:
> >  testDetectCLIPlugins(org.apache.any23.plugin.PluginIT)
> >
> > Tests run: 2, Failures: 1, Errors: 0, Skipped: 0
> >
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Reactor Summary:
> > [INFO]
> > [INFO] Apache Any23 :: Plugins :: Integration Test ....... FAILURE
> > [1:12.274s]
> > [INFO] Apache Any23 :: Service ........................... SKIPPED
> > [INFO] Apache Any23 :: Sources distribution module ....... SKIPPED
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > =============
> >
> > Any idea?
> >
> > Investigating.
> >
> > Mic
> >
> >
> > On 10 May 2012 11:09, Michele Mostarda <mi...@gmail.com>
> wrote:
> >
> >>
> >>
> >> On 9 May 2012 08:23, Simone Tripodi <si...@apache.org> wrote:
> >>
> >>> Hi Lewis,
> >>>
> >>> apologize but I am not in the position to establish a diagnosis :( We
> >>> need help from more hardcore experts, like Mike!
> >>>
> >>
> >> Sorry guys for delay, having a look ASAP.
> >> Mic
> >>
> >>
> >>>
> >>> best,
> >>> -Simo
> >>>
> >>> http://people.apache.org/~simonetripodi/
> >>> http://simonetripodi.livejournal.com/
> >>> http://twitter.com/simonetripodi
> >>> http://www.99soft.org/
> >>>
> >>>
> >>> On Tue, May 8, 2012 at 9:21 PM, Lewis John Mcgibbney
> >>> <le...@gmail.com> wrote:
> >>> > Hi Simo
> >>> >
> >>> > OK so first Maven
> >>> >
> >>> > lewis@lewis-01:~/ASF/any23$ mvn --version
> >>> > Apache Maven 3.0.4 (r1232337; 2012-01-17 08:44:56+0000)
> >>> > Maven home: /home/lewis/ASF/maven
> >>> > Java version: 1.6.0_23, vendor: Sun Microsystems Inc.
> >>> > Java home: /usr/lib/jvm/java-6-openjdk/jre
> >>> > Default locale: en_GB, platform encoding: UTF-8
> >>> > OS name: "linux", version: "3.0.0-19-generic", arch: "i386", family:
> >>> "unix"
> >>> >
> >>> > then a replicate of my local test failures...
> >>> >
> >>> > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.318
> >>> sec
> >>> > Running org.apache.any23.cli.RoverTest
> >>> > Expected a directory for --plugins-dir option value.
> >>> >
> >>> > Results :
> >>> >
> >>> > Failed tests:
> >>> >
> >>>
> testSpeciesMicroformatExtractOverTaxoBox(org.apache.any23.extractor.html.SpeciesExtractorTest):
> >>> > Unexpected number of matching statements. expected:<29> but was:<27>
> >>> >
> >>>
>  testListingWithouthContent(org.apache.any23.extractor.html.HListingExtractorTest):
> >>> > Unexpected number of matching statements. expected:<4> but was:<3>
> >>> >
> >>>
>  testVCardMultiAddress(org.apache.any23.extractor.html.AdrExtractorTest):
> >>> > Unexpected statement size: 5
> >>> >
> >>>
>  testAdvancedItemrefManagement(org.apache.any23.extractor.microdata.MicrodataParserTest):
> >>> > Error while comparing error [1] expected:<...[2]", "begin_row" : [10,
> >>> > "begin_col" : 5, "end_row" : 10], "end_col" : 97 }> but was:<...[2]",
> >>> > "begin_row" : [26, "begin_col" : 5, "end_row" : 26], "end_col" : 97
> }>
> >>> >
> >>>
>  testMicroformatDomains(org.apache.any23.extractor.SingleDocumentExtractionTest):
> >>> > Cannot find triple (* http://vocab.sindice.net/any23#domain
> >>> > "nested.test.com") 1 times expected:<1> but was:<0>
> >>> >
> >>>
>  testNestedMicroformats(org.apache.any23.extractor.SingleDocumentExtractionTest):
> >>> > Cannot find triple (* http://vocab.sindice.net/any23#domain
> >>> > "nested.test.com") 2 times expected:<2> but was:<0>
> >>> >
> >>>
>  testNestedMicroformatsInduced(org.apache.any23.extractor.SingleDocumentExtractionTest):
> >>> > Cannot find triple (* http://vocab.sindice.net/any23#domain
> >>> > "nested.test.com") 2 times expected:<2> but was:<0>
> >>> >
> >>>
>  testNestedMicroformatsManaged(org.apache.any23.extractor.SingleDocumentExtractionTest):
> >>> > Cannot find triple (* http://vocab.sindice.net/any23#domain
> >>> > "nested.test.com") 3 times expected:<3> but was:<0>
> >>> >
> >>>
>  testDetectRSS1ByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> >>> > Error in mimetype detection for file
> >>> > /home/lewis/ASF/any23/core/src/test/resources/application/rss1/test1
> >>> > expected:<application/[rdf+xml]> but was:<application/[octet-stream]>
> >>> >
> >>>
>  testDetectRDFN3ByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> >>> > Error in mimetype detection for file
> >>> > /home/lewis/ASF/any23/core/src/test/resources/application/rdfn3/test1
> >>> > expected:<[text/n3]> but was:<[application/octet-stream]>
> >>> >
> >>>
>  testDetectRDFNQuadsByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> >>> > Error in mimetype detection for file
> >>> >
> >>>
> /home/lewis/ASF/any23/core/src/test/resources/application/nquads/test1.nq
> >>> > expected:<[text/nq]> but was:<[application/octet-stream]>
> >>> >
> >>>
>  testDetectRDFXMLByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> >>> > Error in mimetype detection for file
> >>> >
> /home/lewis/ASF/any23/core/src/test/resources/application/rdfxml/test1
> >>> > expected:<application/[rdf+xml]> but was:<application/[octet-stream]>
> >>> >
> >>>
>  testDetectHTMLByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> >>> > Error in mimetype detection for file
> >>> > /home/lewis/ASF/any23/core/src/test/resources/text/html/test1
> >>> > expected:<[text/html]> but was:<[application/octet-stream]>
> >>> >
> >>>
>  testRDFXMLByContentAndName(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> >>> > Error while detecting mimetype in file
> >>> > src/test/resources/application/rdfxml/test1
> >>> > expected:<application/[rdf+xml]> but was:<application/[octet-stream]>
> >>> >
> >>>
>  testRSS1ByContentAndName(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> >>> > Error while detecting mimetype in file
> >>> > src/test/resources/application/rss1/test1
> >>> > expected:<application/[rdf+xml]> but was:<application/[octet-stream]>
> >>> >
> >>>
>  testDetectRDFN3ByContentAndName(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> >>> > Error while detecting mimetype in file
> >>> > src/test/resources/application/rdfn3/test1 expected:<[text/n3]> but
> >>> > was:<[application/octet-stream]>
> >>> >
> >>>
>  testHTMLByContentAndName(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> >>> > Error while detecting mimetype in file
> >>> > src/test/resources/text/html/test1 expected:<[text/html]> but
> >>> > was:<[application/octet-stream]>
> >>> >
> >>> > Tests run: 399, Failures: 17, Errors: 0, Skipped: 1
> >>> >
> >>> > [INFO]
> >>>
> ------------------------------------------------------------------------
> >>> > [INFO] Reactor Summary:
> >>> > [INFO]
> >>> > [INFO] Apache Any23 ...................................... SUCCESS
> >>> [9.470s]
> >>> > [INFO] Apache Any23 :: Core .............................. FAILURE
> >>> [35.228s]
> >>> > [INFO] Apache Any23 :: Plugins :: Basic Crawler .......... SKIPPED
> >>> > [INFO] Apache Any23 :: Plugins :: HTML Scraper ........... SKIPPED
> >>> > [INFO] Apache Any23 :: Plugins :: Office Scraper ......... SKIPPED
> >>> > [INFO] Apache Any23 :: Plugins :: Integration Test ....... SKIPPED
> >>> > [INFO] Apache Any23 :: Service ........................... SKIPPED
> >>> > [INFO] Apache Any23 :: Sources distribution module ....... SKIPPED
> >>> > [INFO]
> >>>
> ------------------------------------------------------------------------
> >>> > [INFO] BUILD FAILURE
> >>> > [INFO]
> >>>
> ------------------------------------------------------------------------
> >>> > [INFO] Total time: 45.642s
> >>> > [INFO] Finished at: Tue May 08 20:18:48 BST 2012
> >>> > [INFO] Final Memory: 22M/66M
> >>> > [INFO]
> >>>
> ------------------------------------------------------------------------
> >>> > [ERROR] Failed to execute goal
> >>> > org.apache.maven.plugins:maven-surefire-plugin:2.9:test
> (default-test)
> >>> > on project any23-core: There are test failures.
> >>> > [ERROR]
> >>> > [ERROR] Please refer to
> >>> > /home/lewis/ASF/any23/core/target/surefire-reports for the individual
> >>> > test results.
> >>> > [ERROR] -> [Help 1]
> >>> > [ERROR]
> >>> > [ERROR] To see the full stack trace of the errors, re-run Maven with
> >>> > the -e switch.
> >>> > [ERROR] Re-run Maven using the -X switch to enable full debug
> logging.
> >>> > [ERROR]
> >>> > [ERROR] For more information about the errors and possible solutions,
> >>> > please read the following articles:
> >>> > [ERROR] [Help 1]
> >>> >
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> >>> > [ERROR]
> >>> > [ERROR] After correcting the problems, you can resume the build with
> >>> the command
> >>> > [ERROR]   mvn <goals> -rf :any23-core
> >>>
> >>
> >>
> >>
> >> --
> >> Michele Mostarda
> >> Senior Software Engineer
> >> skype: michele.mostarda
> >> twitter: micmos
> >> mail: me@michelemostarda.com
> >> site : http://www.michelemostarda.com
> >>
> >>
> >
> >
> > --
> > Michele Mostarda
> > Senior Software Engineer
> > skype: michele.mostarda
> > twitter: micmos
> > mail: me@michelemostarda.com
> > site : http://www.michelemostarda.com
>
>
>
> --
> Lewis
>



-- 
Michele Mostarda
Senior Software Engineer
skype: michele.mostarda
twitter: micmos
mail: me@michelemostarda.com
site : http://www.michelemostarda.com

Re: Issues with build

Posted by Lewis John Mcgibbney <le...@gmail.com>.
OK this looks 'better'

I'm going to make a clean check out of trunk then build using Maven 3.X

I'll also stick in some time today and see if we can get to the bottom
of this one. It's been quite a while since our builds were on track
and it would be real nice to sort that out if anything.

On Fri, May 11, 2012 at 11:20 AM, Michele Mostarda
<mi...@gmail.com> wrote:
> Hi guys,
>
>  I tried to replicate the issue performing a
>
>        trunk(v1337100) $ mvn clean install
>
> and I found a different issue occurring during the integration test:
> =============
> Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.365 sec
> <<< FAILURE!
>
> Results :
>
> Failed tests:
>  testDetectCLIPlugins(org.apache.any23.plugin.PluginIT)
>
> Tests run: 2, Failures: 1, Errors: 0, Skipped: 0
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Apache Any23 :: Plugins :: Integration Test ....... FAILURE
> [1:12.274s]
> [INFO] Apache Any23 :: Service ........................... SKIPPED
> [INFO] Apache Any23 :: Sources distribution module ....... SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> =============
>
> Any idea?
>
> Investigating.
>
> Mic
>
>
> On 10 May 2012 11:09, Michele Mostarda <mi...@gmail.com> wrote:
>
>>
>>
>> On 9 May 2012 08:23, Simone Tripodi <si...@apache.org> wrote:
>>
>>> Hi Lewis,
>>>
>>> apologize but I am not in the position to establish a diagnosis :( We
>>> need help from more hardcore experts, like Mike!
>>>
>>
>> Sorry guys for delay, having a look ASAP.
>> Mic
>>
>>
>>>
>>> best,
>>> -Simo
>>>
>>> http://people.apache.org/~simonetripodi/
>>> http://simonetripodi.livejournal.com/
>>> http://twitter.com/simonetripodi
>>> http://www.99soft.org/
>>>
>>>
>>> On Tue, May 8, 2012 at 9:21 PM, Lewis John Mcgibbney
>>> <le...@gmail.com> wrote:
>>> > Hi Simo
>>> >
>>> > OK so first Maven
>>> >
>>> > lewis@lewis-01:~/ASF/any23$ mvn --version
>>> > Apache Maven 3.0.4 (r1232337; 2012-01-17 08:44:56+0000)
>>> > Maven home: /home/lewis/ASF/maven
>>> > Java version: 1.6.0_23, vendor: Sun Microsystems Inc.
>>> > Java home: /usr/lib/jvm/java-6-openjdk/jre
>>> > Default locale: en_GB, platform encoding: UTF-8
>>> > OS name: "linux", version: "3.0.0-19-generic", arch: "i386", family:
>>> "unix"
>>> >
>>> > then a replicate of my local test failures...
>>> >
>>> > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.318
>>> sec
>>> > Running org.apache.any23.cli.RoverTest
>>> > Expected a directory for --plugins-dir option value.
>>> >
>>> > Results :
>>> >
>>> > Failed tests:
>>> >
>>> testSpeciesMicroformatExtractOverTaxoBox(org.apache.any23.extractor.html.SpeciesExtractorTest):
>>> > Unexpected number of matching statements. expected:<29> but was:<27>
>>> >
>>>  testListingWithouthContent(org.apache.any23.extractor.html.HListingExtractorTest):
>>> > Unexpected number of matching statements. expected:<4> but was:<3>
>>> >
>>>  testVCardMultiAddress(org.apache.any23.extractor.html.AdrExtractorTest):
>>> > Unexpected statement size: 5
>>> >
>>>  testAdvancedItemrefManagement(org.apache.any23.extractor.microdata.MicrodataParserTest):
>>> > Error while comparing error [1] expected:<...[2]", "begin_row" : [10,
>>> > "begin_col" : 5, "end_row" : 10], "end_col" : 97 }> but was:<...[2]",
>>> > "begin_row" : [26, "begin_col" : 5, "end_row" : 26], "end_col" : 97 }>
>>> >
>>>  testMicroformatDomains(org.apache.any23.extractor.SingleDocumentExtractionTest):
>>> > Cannot find triple (* http://vocab.sindice.net/any23#domain
>>> > "nested.test.com") 1 times expected:<1> but was:<0>
>>> >
>>>  testNestedMicroformats(org.apache.any23.extractor.SingleDocumentExtractionTest):
>>> > Cannot find triple (* http://vocab.sindice.net/any23#domain
>>> > "nested.test.com") 2 times expected:<2> but was:<0>
>>> >
>>>  testNestedMicroformatsInduced(org.apache.any23.extractor.SingleDocumentExtractionTest):
>>> > Cannot find triple (* http://vocab.sindice.net/any23#domain
>>> > "nested.test.com") 2 times expected:<2> but was:<0>
>>> >
>>>  testNestedMicroformatsManaged(org.apache.any23.extractor.SingleDocumentExtractionTest):
>>> > Cannot find triple (* http://vocab.sindice.net/any23#domain
>>> > "nested.test.com") 3 times expected:<3> but was:<0>
>>> >
>>>  testDetectRSS1ByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
>>> > Error in mimetype detection for file
>>> > /home/lewis/ASF/any23/core/src/test/resources/application/rss1/test1
>>> > expected:<application/[rdf+xml]> but was:<application/[octet-stream]>
>>> >
>>>  testDetectRDFN3ByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
>>> > Error in mimetype detection for file
>>> > /home/lewis/ASF/any23/core/src/test/resources/application/rdfn3/test1
>>> > expected:<[text/n3]> but was:<[application/octet-stream]>
>>> >
>>>  testDetectRDFNQuadsByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
>>> > Error in mimetype detection for file
>>> >
>>> /home/lewis/ASF/any23/core/src/test/resources/application/nquads/test1.nq
>>> > expected:<[text/nq]> but was:<[application/octet-stream]>
>>> >
>>>  testDetectRDFXMLByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
>>> > Error in mimetype detection for file
>>> > /home/lewis/ASF/any23/core/src/test/resources/application/rdfxml/test1
>>> > expected:<application/[rdf+xml]> but was:<application/[octet-stream]>
>>> >
>>>  testDetectHTMLByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
>>> > Error in mimetype detection for file
>>> > /home/lewis/ASF/any23/core/src/test/resources/text/html/test1
>>> > expected:<[text/html]> but was:<[application/octet-stream]>
>>> >
>>>  testRDFXMLByContentAndName(org.apache.any23.mime.TikaMIMETypeDetectorTest):
>>> > Error while detecting mimetype in file
>>> > src/test/resources/application/rdfxml/test1
>>> > expected:<application/[rdf+xml]> but was:<application/[octet-stream]>
>>> >
>>>  testRSS1ByContentAndName(org.apache.any23.mime.TikaMIMETypeDetectorTest):
>>> > Error while detecting mimetype in file
>>> > src/test/resources/application/rss1/test1
>>> > expected:<application/[rdf+xml]> but was:<application/[octet-stream]>
>>> >
>>>  testDetectRDFN3ByContentAndName(org.apache.any23.mime.TikaMIMETypeDetectorTest):
>>> > Error while detecting mimetype in file
>>> > src/test/resources/application/rdfn3/test1 expected:<[text/n3]> but
>>> > was:<[application/octet-stream]>
>>> >
>>>  testHTMLByContentAndName(org.apache.any23.mime.TikaMIMETypeDetectorTest):
>>> > Error while detecting mimetype in file
>>> > src/test/resources/text/html/test1 expected:<[text/html]> but
>>> > was:<[application/octet-stream]>
>>> >
>>> > Tests run: 399, Failures: 17, Errors: 0, Skipped: 1
>>> >
>>> > [INFO]
>>> ------------------------------------------------------------------------
>>> > [INFO] Reactor Summary:
>>> > [INFO]
>>> > [INFO] Apache Any23 ...................................... SUCCESS
>>> [9.470s]
>>> > [INFO] Apache Any23 :: Core .............................. FAILURE
>>> [35.228s]
>>> > [INFO] Apache Any23 :: Plugins :: Basic Crawler .......... SKIPPED
>>> > [INFO] Apache Any23 :: Plugins :: HTML Scraper ........... SKIPPED
>>> > [INFO] Apache Any23 :: Plugins :: Office Scraper ......... SKIPPED
>>> > [INFO] Apache Any23 :: Plugins :: Integration Test ....... SKIPPED
>>> > [INFO] Apache Any23 :: Service ........................... SKIPPED
>>> > [INFO] Apache Any23 :: Sources distribution module ....... SKIPPED
>>> > [INFO]
>>> ------------------------------------------------------------------------
>>> > [INFO] BUILD FAILURE
>>> > [INFO]
>>> ------------------------------------------------------------------------
>>> > [INFO] Total time: 45.642s
>>> > [INFO] Finished at: Tue May 08 20:18:48 BST 2012
>>> > [INFO] Final Memory: 22M/66M
>>> > [INFO]
>>> ------------------------------------------------------------------------
>>> > [ERROR] Failed to execute goal
>>> > org.apache.maven.plugins:maven-surefire-plugin:2.9:test (default-test)
>>> > on project any23-core: There are test failures.
>>> > [ERROR]
>>> > [ERROR] Please refer to
>>> > /home/lewis/ASF/any23/core/target/surefire-reports for the individual
>>> > test results.
>>> > [ERROR] -> [Help 1]
>>> > [ERROR]
>>> > [ERROR] To see the full stack trace of the errors, re-run Maven with
>>> > the -e switch.
>>> > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>>> > [ERROR]
>>> > [ERROR] For more information about the errors and possible solutions,
>>> > please read the following articles:
>>> > [ERROR] [Help 1]
>>> > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>>> > [ERROR]
>>> > [ERROR] After correcting the problems, you can resume the build with
>>> the command
>>> > [ERROR]   mvn <goals> -rf :any23-core
>>>
>>
>>
>>
>> --
>> Michele Mostarda
>> Senior Software Engineer
>> skype: michele.mostarda
>> twitter: micmos
>> mail: me@michelemostarda.com
>> site : http://www.michelemostarda.com
>>
>>
>
>
> --
> Michele Mostarda
> Senior Software Engineer
> skype: michele.mostarda
> twitter: micmos
> mail: me@michelemostarda.com
> site : http://www.michelemostarda.com



-- 
Lewis

Re: Issues with build

Posted by Michele Mostarda <mi...@gmail.com>.
Hi guys,

  I tried to replicate the issue performing a

        trunk(v1337100) $ mvn clean install

and I found a different issue occurring during the integration test:
=============
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.365 sec
<<< FAILURE!

Results :

Failed tests:
  testDetectCLIPlugins(org.apache.any23.plugin.PluginIT)

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

[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Any23 :: Plugins :: Integration Test ....... FAILURE
[1:12.274s]
[INFO] Apache Any23 :: Service ........................... SKIPPED
[INFO] Apache Any23 :: Sources distribution module ....... SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
=============

Any idea?

Investigating.

Mic


On 10 May 2012 11:09, Michele Mostarda <mi...@gmail.com> wrote:

>
>
> On 9 May 2012 08:23, Simone Tripodi <si...@apache.org> wrote:
>
>> Hi Lewis,
>>
>> apologize but I am not in the position to establish a diagnosis :( We
>> need help from more hardcore experts, like Mike!
>>
>
> Sorry guys for delay, having a look ASAP.
> Mic
>
>
>>
>> best,
>> -Simo
>>
>> http://people.apache.org/~simonetripodi/
>> http://simonetripodi.livejournal.com/
>> http://twitter.com/simonetripodi
>> http://www.99soft.org/
>>
>>
>> On Tue, May 8, 2012 at 9:21 PM, Lewis John Mcgibbney
>> <le...@gmail.com> wrote:
>> > Hi Simo
>> >
>> > OK so first Maven
>> >
>> > lewis@lewis-01:~/ASF/any23$ mvn --version
>> > Apache Maven 3.0.4 (r1232337; 2012-01-17 08:44:56+0000)
>> > Maven home: /home/lewis/ASF/maven
>> > Java version: 1.6.0_23, vendor: Sun Microsystems Inc.
>> > Java home: /usr/lib/jvm/java-6-openjdk/jre
>> > Default locale: en_GB, platform encoding: UTF-8
>> > OS name: "linux", version: "3.0.0-19-generic", arch: "i386", family:
>> "unix"
>> >
>> > then a replicate of my local test failures...
>> >
>> > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.318
>> sec
>> > Running org.apache.any23.cli.RoverTest
>> > Expected a directory for --plugins-dir option value.
>> >
>> > Results :
>> >
>> > Failed tests:
>> >
>> testSpeciesMicroformatExtractOverTaxoBox(org.apache.any23.extractor.html.SpeciesExtractorTest):
>> > Unexpected number of matching statements. expected:<29> but was:<27>
>> >
>>  testListingWithouthContent(org.apache.any23.extractor.html.HListingExtractorTest):
>> > Unexpected number of matching statements. expected:<4> but was:<3>
>> >
>>  testVCardMultiAddress(org.apache.any23.extractor.html.AdrExtractorTest):
>> > Unexpected statement size: 5
>> >
>>  testAdvancedItemrefManagement(org.apache.any23.extractor.microdata.MicrodataParserTest):
>> > Error while comparing error [1] expected:<...[2]", "begin_row" : [10,
>> > "begin_col" : 5, "end_row" : 10], "end_col" : 97 }> but was:<...[2]",
>> > "begin_row" : [26, "begin_col" : 5, "end_row" : 26], "end_col" : 97 }>
>> >
>>  testMicroformatDomains(org.apache.any23.extractor.SingleDocumentExtractionTest):
>> > Cannot find triple (* http://vocab.sindice.net/any23#domain
>> > "nested.test.com") 1 times expected:<1> but was:<0>
>> >
>>  testNestedMicroformats(org.apache.any23.extractor.SingleDocumentExtractionTest):
>> > Cannot find triple (* http://vocab.sindice.net/any23#domain
>> > "nested.test.com") 2 times expected:<2> but was:<0>
>> >
>>  testNestedMicroformatsInduced(org.apache.any23.extractor.SingleDocumentExtractionTest):
>> > Cannot find triple (* http://vocab.sindice.net/any23#domain
>> > "nested.test.com") 2 times expected:<2> but was:<0>
>> >
>>  testNestedMicroformatsManaged(org.apache.any23.extractor.SingleDocumentExtractionTest):
>> > Cannot find triple (* http://vocab.sindice.net/any23#domain
>> > "nested.test.com") 3 times expected:<3> but was:<0>
>> >
>>  testDetectRSS1ByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
>> > Error in mimetype detection for file
>> > /home/lewis/ASF/any23/core/src/test/resources/application/rss1/test1
>> > expected:<application/[rdf+xml]> but was:<application/[octet-stream]>
>> >
>>  testDetectRDFN3ByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
>> > Error in mimetype detection for file
>> > /home/lewis/ASF/any23/core/src/test/resources/application/rdfn3/test1
>> > expected:<[text/n3]> but was:<[application/octet-stream]>
>> >
>>  testDetectRDFNQuadsByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
>> > Error in mimetype detection for file
>> >
>> /home/lewis/ASF/any23/core/src/test/resources/application/nquads/test1.nq
>> > expected:<[text/nq]> but was:<[application/octet-stream]>
>> >
>>  testDetectRDFXMLByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
>> > Error in mimetype detection for file
>> > /home/lewis/ASF/any23/core/src/test/resources/application/rdfxml/test1
>> > expected:<application/[rdf+xml]> but was:<application/[octet-stream]>
>> >
>>  testDetectHTMLByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
>> > Error in mimetype detection for file
>> > /home/lewis/ASF/any23/core/src/test/resources/text/html/test1
>> > expected:<[text/html]> but was:<[application/octet-stream]>
>> >
>>  testRDFXMLByContentAndName(org.apache.any23.mime.TikaMIMETypeDetectorTest):
>> > Error while detecting mimetype in file
>> > src/test/resources/application/rdfxml/test1
>> > expected:<application/[rdf+xml]> but was:<application/[octet-stream]>
>> >
>>  testRSS1ByContentAndName(org.apache.any23.mime.TikaMIMETypeDetectorTest):
>> > Error while detecting mimetype in file
>> > src/test/resources/application/rss1/test1
>> > expected:<application/[rdf+xml]> but was:<application/[octet-stream]>
>> >
>>  testDetectRDFN3ByContentAndName(org.apache.any23.mime.TikaMIMETypeDetectorTest):
>> > Error while detecting mimetype in file
>> > src/test/resources/application/rdfn3/test1 expected:<[text/n3]> but
>> > was:<[application/octet-stream]>
>> >
>>  testHTMLByContentAndName(org.apache.any23.mime.TikaMIMETypeDetectorTest):
>> > Error while detecting mimetype in file
>> > src/test/resources/text/html/test1 expected:<[text/html]> but
>> > was:<[application/octet-stream]>
>> >
>> > Tests run: 399, Failures: 17, Errors: 0, Skipped: 1
>> >
>> > [INFO]
>> ------------------------------------------------------------------------
>> > [INFO] Reactor Summary:
>> > [INFO]
>> > [INFO] Apache Any23 ...................................... SUCCESS
>> [9.470s]
>> > [INFO] Apache Any23 :: Core .............................. FAILURE
>> [35.228s]
>> > [INFO] Apache Any23 :: Plugins :: Basic Crawler .......... SKIPPED
>> > [INFO] Apache Any23 :: Plugins :: HTML Scraper ........... SKIPPED
>> > [INFO] Apache Any23 :: Plugins :: Office Scraper ......... SKIPPED
>> > [INFO] Apache Any23 :: Plugins :: Integration Test ....... SKIPPED
>> > [INFO] Apache Any23 :: Service ........................... SKIPPED
>> > [INFO] Apache Any23 :: Sources distribution module ....... SKIPPED
>> > [INFO]
>> ------------------------------------------------------------------------
>> > [INFO] BUILD FAILURE
>> > [INFO]
>> ------------------------------------------------------------------------
>> > [INFO] Total time: 45.642s
>> > [INFO] Finished at: Tue May 08 20:18:48 BST 2012
>> > [INFO] Final Memory: 22M/66M
>> > [INFO]
>> ------------------------------------------------------------------------
>> > [ERROR] Failed to execute goal
>> > org.apache.maven.plugins:maven-surefire-plugin:2.9:test (default-test)
>> > on project any23-core: There are test failures.
>> > [ERROR]
>> > [ERROR] Please refer to
>> > /home/lewis/ASF/any23/core/target/surefire-reports for the individual
>> > test results.
>> > [ERROR] -> [Help 1]
>> > [ERROR]
>> > [ERROR] To see the full stack trace of the errors, re-run Maven with
>> > the -e switch.
>> > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>> > [ERROR]
>> > [ERROR] For more information about the errors and possible solutions,
>> > please read the following articles:
>> > [ERROR] [Help 1]
>> > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>> > [ERROR]
>> > [ERROR] After correcting the problems, you can resume the build with
>> the command
>> > [ERROR]   mvn <goals> -rf :any23-core
>>
>
>
>
> --
> Michele Mostarda
> Senior Software Engineer
> skype: michele.mostarda
> twitter: micmos
> mail: me@michelemostarda.com
> site : http://www.michelemostarda.com
>
>


-- 
Michele Mostarda
Senior Software Engineer
skype: michele.mostarda
twitter: micmos
mail: me@michelemostarda.com
site : http://www.michelemostarda.com

Re: Issues with build

Posted by Michele Mostarda <mi...@gmail.com>.
On 9 May 2012 08:23, Simone Tripodi <si...@apache.org> wrote:

> Hi Lewis,
>
> apologize but I am not in the position to establish a diagnosis :( We
> need help from more hardcore experts, like Mike!
>

Sorry guys for delay, having a look ASAP.
Mic


>
> best,
> -Simo
>
> http://people.apache.org/~simonetripodi/
> http://simonetripodi.livejournal.com/
> http://twitter.com/simonetripodi
> http://www.99soft.org/
>
>
> On Tue, May 8, 2012 at 9:21 PM, Lewis John Mcgibbney
> <le...@gmail.com> wrote:
> > Hi Simo
> >
> > OK so first Maven
> >
> > lewis@lewis-01:~/ASF/any23$ mvn --version
> > Apache Maven 3.0.4 (r1232337; 2012-01-17 08:44:56+0000)
> > Maven home: /home/lewis/ASF/maven
> > Java version: 1.6.0_23, vendor: Sun Microsystems Inc.
> > Java home: /usr/lib/jvm/java-6-openjdk/jre
> > Default locale: en_GB, platform encoding: UTF-8
> > OS name: "linux", version: "3.0.0-19-generic", arch: "i386", family:
> "unix"
> >
> > then a replicate of my local test failures...
> >
> > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.318 sec
> > Running org.apache.any23.cli.RoverTest
> > Expected a directory for --plugins-dir option value.
> >
> > Results :
> >
> > Failed tests:
> >
> testSpeciesMicroformatExtractOverTaxoBox(org.apache.any23.extractor.html.SpeciesExtractorTest):
> > Unexpected number of matching statements. expected:<29> but was:<27>
> >
>  testListingWithouthContent(org.apache.any23.extractor.html.HListingExtractorTest):
> > Unexpected number of matching statements. expected:<4> but was:<3>
> >  testVCardMultiAddress(org.apache.any23.extractor.html.AdrExtractorTest):
> > Unexpected statement size: 5
> >
>  testAdvancedItemrefManagement(org.apache.any23.extractor.microdata.MicrodataParserTest):
> > Error while comparing error [1] expected:<...[2]", "begin_row" : [10,
> > "begin_col" : 5, "end_row" : 10], "end_col" : 97 }> but was:<...[2]",
> > "begin_row" : [26, "begin_col" : 5, "end_row" : 26], "end_col" : 97 }>
> >
>  testMicroformatDomains(org.apache.any23.extractor.SingleDocumentExtractionTest):
> > Cannot find triple (* http://vocab.sindice.net/any23#domain
> > "nested.test.com") 1 times expected:<1> but was:<0>
> >
>  testNestedMicroformats(org.apache.any23.extractor.SingleDocumentExtractionTest):
> > Cannot find triple (* http://vocab.sindice.net/any23#domain
> > "nested.test.com") 2 times expected:<2> but was:<0>
> >
>  testNestedMicroformatsInduced(org.apache.any23.extractor.SingleDocumentExtractionTest):
> > Cannot find triple (* http://vocab.sindice.net/any23#domain
> > "nested.test.com") 2 times expected:<2> but was:<0>
> >
>  testNestedMicroformatsManaged(org.apache.any23.extractor.SingleDocumentExtractionTest):
> > Cannot find triple (* http://vocab.sindice.net/any23#domain
> > "nested.test.com") 3 times expected:<3> but was:<0>
> >  testDetectRSS1ByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> > Error in mimetype detection for file
> > /home/lewis/ASF/any23/core/src/test/resources/application/rss1/test1
> > expected:<application/[rdf+xml]> but was:<application/[octet-stream]>
> >
>  testDetectRDFN3ByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> > Error in mimetype detection for file
> > /home/lewis/ASF/any23/core/src/test/resources/application/rdfn3/test1
> > expected:<[text/n3]> but was:<[application/octet-stream]>
> >
>  testDetectRDFNQuadsByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> > Error in mimetype detection for file
> > /home/lewis/ASF/any23/core/src/test/resources/application/nquads/test1.nq
> > expected:<[text/nq]> but was:<[application/octet-stream]>
> >
>  testDetectRDFXMLByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> > Error in mimetype detection for file
> > /home/lewis/ASF/any23/core/src/test/resources/application/rdfxml/test1
> > expected:<application/[rdf+xml]> but was:<application/[octet-stream]>
> >  testDetectHTMLByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> > Error in mimetype detection for file
> > /home/lewis/ASF/any23/core/src/test/resources/text/html/test1
> > expected:<[text/html]> but was:<[application/octet-stream]>
> >
>  testRDFXMLByContentAndName(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> > Error while detecting mimetype in file
> > src/test/resources/application/rdfxml/test1
> > expected:<application/[rdf+xml]> but was:<application/[octet-stream]>
> >
>  testRSS1ByContentAndName(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> > Error while detecting mimetype in file
> > src/test/resources/application/rss1/test1
> > expected:<application/[rdf+xml]> but was:<application/[octet-stream]>
> >
>  testDetectRDFN3ByContentAndName(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> > Error while detecting mimetype in file
> > src/test/resources/application/rdfn3/test1 expected:<[text/n3]> but
> > was:<[application/octet-stream]>
> >
>  testHTMLByContentAndName(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> > Error while detecting mimetype in file
> > src/test/resources/text/html/test1 expected:<[text/html]> but
> > was:<[application/octet-stream]>
> >
> > Tests run: 399, Failures: 17, Errors: 0, Skipped: 1
> >
> > [INFO]
> ------------------------------------------------------------------------
> > [INFO] Reactor Summary:
> > [INFO]
> > [INFO] Apache Any23 ...................................... SUCCESS
> [9.470s]
> > [INFO] Apache Any23 :: Core .............................. FAILURE
> [35.228s]
> > [INFO] Apache Any23 :: Plugins :: Basic Crawler .......... SKIPPED
> > [INFO] Apache Any23 :: Plugins :: HTML Scraper ........... SKIPPED
> > [INFO] Apache Any23 :: Plugins :: Office Scraper ......... SKIPPED
> > [INFO] Apache Any23 :: Plugins :: Integration Test ....... SKIPPED
> > [INFO] Apache Any23 :: Service ........................... SKIPPED
> > [INFO] Apache Any23 :: Sources distribution module ....... SKIPPED
> > [INFO]
> ------------------------------------------------------------------------
> > [INFO] BUILD FAILURE
> > [INFO]
> ------------------------------------------------------------------------
> > [INFO] Total time: 45.642s
> > [INFO] Finished at: Tue May 08 20:18:48 BST 2012
> > [INFO] Final Memory: 22M/66M
> > [INFO]
> ------------------------------------------------------------------------
> > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-surefire-plugin:2.9:test (default-test)
> > on project any23-core: There are test failures.
> > [ERROR]
> > [ERROR] Please refer to
> > /home/lewis/ASF/any23/core/target/surefire-reports for the individual
> > test results.
> > [ERROR] -> [Help 1]
> > [ERROR]
> > [ERROR] To see the full stack trace of the errors, re-run Maven with
> > the -e switch.
> > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> > [ERROR]
> > [ERROR] For more information about the errors and possible solutions,
> > please read the following articles:
> > [ERROR] [Help 1]
> > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> > [ERROR]
> > [ERROR] After correcting the problems, you can resume the build with the
> command
> > [ERROR]   mvn <goals> -rf :any23-core
>



-- 
Michele Mostarda
Senior Software Engineer
skype: michele.mostarda
twitter: micmos
mail: me@michelemostarda.com
site : http://www.michelemostarda.com

Re: Issues with build

Posted by Simone Tripodi <si...@apache.org>.
Hi Lewis,

apologize but I am not in the position to establish a diagnosis :( We
need help from more hardcore experts, like Mike!

best,
-Simo

http://people.apache.org/~simonetripodi/
http://simonetripodi.livejournal.com/
http://twitter.com/simonetripodi
http://www.99soft.org/


On Tue, May 8, 2012 at 9:21 PM, Lewis John Mcgibbney
<le...@gmail.com> wrote:
> Hi Simo
>
> OK so first Maven
>
> lewis@lewis-01:~/ASF/any23$ mvn --version
> Apache Maven 3.0.4 (r1232337; 2012-01-17 08:44:56+0000)
> Maven home: /home/lewis/ASF/maven
> Java version: 1.6.0_23, vendor: Sun Microsystems Inc.
> Java home: /usr/lib/jvm/java-6-openjdk/jre
> Default locale: en_GB, platform encoding: UTF-8
> OS name: "linux", version: "3.0.0-19-generic", arch: "i386", family: "unix"
>
> then a replicate of my local test failures...
>
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.318 sec
> Running org.apache.any23.cli.RoverTest
> Expected a directory for --plugins-dir option value.
>
> Results :
>
> Failed tests:
> testSpeciesMicroformatExtractOverTaxoBox(org.apache.any23.extractor.html.SpeciesExtractorTest):
> Unexpected number of matching statements. expected:<29> but was:<27>
>  testListingWithouthContent(org.apache.any23.extractor.html.HListingExtractorTest):
> Unexpected number of matching statements. expected:<4> but was:<3>
>  testVCardMultiAddress(org.apache.any23.extractor.html.AdrExtractorTest):
> Unexpected statement size: 5
>  testAdvancedItemrefManagement(org.apache.any23.extractor.microdata.MicrodataParserTest):
> Error while comparing error [1] expected:<...[2]", "begin_row" : [10,
> "begin_col" : 5, "end_row" : 10], "end_col" : 97 }> but was:<...[2]",
> "begin_row" : [26, "begin_col" : 5, "end_row" : 26], "end_col" : 97 }>
>  testMicroformatDomains(org.apache.any23.extractor.SingleDocumentExtractionTest):
> Cannot find triple (* http://vocab.sindice.net/any23#domain
> "nested.test.com") 1 times expected:<1> but was:<0>
>  testNestedMicroformats(org.apache.any23.extractor.SingleDocumentExtractionTest):
> Cannot find triple (* http://vocab.sindice.net/any23#domain
> "nested.test.com") 2 times expected:<2> but was:<0>
>  testNestedMicroformatsInduced(org.apache.any23.extractor.SingleDocumentExtractionTest):
> Cannot find triple (* http://vocab.sindice.net/any23#domain
> "nested.test.com") 2 times expected:<2> but was:<0>
>  testNestedMicroformatsManaged(org.apache.any23.extractor.SingleDocumentExtractionTest):
> Cannot find triple (* http://vocab.sindice.net/any23#domain
> "nested.test.com") 3 times expected:<3> but was:<0>
>  testDetectRSS1ByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> Error in mimetype detection for file
> /home/lewis/ASF/any23/core/src/test/resources/application/rss1/test1
> expected:<application/[rdf+xml]> but was:<application/[octet-stream]>
>  testDetectRDFN3ByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> Error in mimetype detection for file
> /home/lewis/ASF/any23/core/src/test/resources/application/rdfn3/test1
> expected:<[text/n3]> but was:<[application/octet-stream]>
>  testDetectRDFNQuadsByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> Error in mimetype detection for file
> /home/lewis/ASF/any23/core/src/test/resources/application/nquads/test1.nq
> expected:<[text/nq]> but was:<[application/octet-stream]>
>  testDetectRDFXMLByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> Error in mimetype detection for file
> /home/lewis/ASF/any23/core/src/test/resources/application/rdfxml/test1
> expected:<application/[rdf+xml]> but was:<application/[octet-stream]>
>  testDetectHTMLByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> Error in mimetype detection for file
> /home/lewis/ASF/any23/core/src/test/resources/text/html/test1
> expected:<[text/html]> but was:<[application/octet-stream]>
>  testRDFXMLByContentAndName(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> Error while detecting mimetype in file
> src/test/resources/application/rdfxml/test1
> expected:<application/[rdf+xml]> but was:<application/[octet-stream]>
>  testRSS1ByContentAndName(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> Error while detecting mimetype in file
> src/test/resources/application/rss1/test1
> expected:<application/[rdf+xml]> but was:<application/[octet-stream]>
>  testDetectRDFN3ByContentAndName(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> Error while detecting mimetype in file
> src/test/resources/application/rdfn3/test1 expected:<[text/n3]> but
> was:<[application/octet-stream]>
>  testHTMLByContentAndName(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> Error while detecting mimetype in file
> src/test/resources/text/html/test1 expected:<[text/html]> but
> was:<[application/octet-stream]>
>
> Tests run: 399, Failures: 17, Errors: 0, Skipped: 1
>
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Apache Any23 ...................................... SUCCESS [9.470s]
> [INFO] Apache Any23 :: Core .............................. FAILURE [35.228s]
> [INFO] Apache Any23 :: Plugins :: Basic Crawler .......... SKIPPED
> [INFO] Apache Any23 :: Plugins :: HTML Scraper ........... SKIPPED
> [INFO] Apache Any23 :: Plugins :: Office Scraper ......... SKIPPED
> [INFO] Apache Any23 :: Plugins :: Integration Test ....... SKIPPED
> [INFO] Apache Any23 :: Service ........................... SKIPPED
> [INFO] Apache Any23 :: Sources distribution module ....... SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 45.642s
> [INFO] Finished at: Tue May 08 20:18:48 BST 2012
> [INFO] Final Memory: 22M/66M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.9:test (default-test)
> on project any23-core: There are test failures.
> [ERROR]
> [ERROR] Please refer to
> /home/lewis/ASF/any23/core/target/surefire-reports for the individual
> test results.
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with
> the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the command
> [ERROR]   mvn <goals> -rf :any23-core

Re: Issues with build

Posted by Lewis John Mcgibbney <le...@gmail.com>.
Hi Simo

OK so first Maven

lewis@lewis-01:~/ASF/any23$ mvn --version
Apache Maven 3.0.4 (r1232337; 2012-01-17 08:44:56+0000)
Maven home: /home/lewis/ASF/maven
Java version: 1.6.0_23, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-6-openjdk/jre
Default locale: en_GB, platform encoding: UTF-8
OS name: "linux", version: "3.0.0-19-generic", arch: "i386", family: "unix"

then a replicate of my local test failures...

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.318 sec
Running org.apache.any23.cli.RoverTest
Expected a directory for --plugins-dir option value.

Results :

Failed tests:
testSpeciesMicroformatExtractOverTaxoBox(org.apache.any23.extractor.html.SpeciesExtractorTest):
Unexpected number of matching statements. expected:<29> but was:<27>
  testListingWithouthContent(org.apache.any23.extractor.html.HListingExtractorTest):
Unexpected number of matching statements. expected:<4> but was:<3>
  testVCardMultiAddress(org.apache.any23.extractor.html.AdrExtractorTest):
Unexpected statement size: 5
  testAdvancedItemrefManagement(org.apache.any23.extractor.microdata.MicrodataParserTest):
Error while comparing error [1] expected:<...[2]", "begin_row" : [10,
"begin_col" : 5, "end_row" : 10], "end_col" : 97 }> but was:<...[2]",
"begin_row" : [26, "begin_col" : 5, "end_row" : 26], "end_col" : 97 }>
  testMicroformatDomains(org.apache.any23.extractor.SingleDocumentExtractionTest):
Cannot find triple (* http://vocab.sindice.net/any23#domain
"nested.test.com") 1 times expected:<1> but was:<0>
  testNestedMicroformats(org.apache.any23.extractor.SingleDocumentExtractionTest):
Cannot find triple (* http://vocab.sindice.net/any23#domain
"nested.test.com") 2 times expected:<2> but was:<0>
  testNestedMicroformatsInduced(org.apache.any23.extractor.SingleDocumentExtractionTest):
Cannot find triple (* http://vocab.sindice.net/any23#domain
"nested.test.com") 2 times expected:<2> but was:<0>
  testNestedMicroformatsManaged(org.apache.any23.extractor.SingleDocumentExtractionTest):
Cannot find triple (* http://vocab.sindice.net/any23#domain
"nested.test.com") 3 times expected:<3> but was:<0>
  testDetectRSS1ByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
Error in mimetype detection for file
/home/lewis/ASF/any23/core/src/test/resources/application/rss1/test1
expected:<application/[rdf+xml]> but was:<application/[octet-stream]>
  testDetectRDFN3ByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
Error in mimetype detection for file
/home/lewis/ASF/any23/core/src/test/resources/application/rdfn3/test1
expected:<[text/n3]> but was:<[application/octet-stream]>
  testDetectRDFNQuadsByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
Error in mimetype detection for file
/home/lewis/ASF/any23/core/src/test/resources/application/nquads/test1.nq
expected:<[text/nq]> but was:<[application/octet-stream]>
  testDetectRDFXMLByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
Error in mimetype detection for file
/home/lewis/ASF/any23/core/src/test/resources/application/rdfxml/test1
expected:<application/[rdf+xml]> but was:<application/[octet-stream]>
  testDetectHTMLByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
Error in mimetype detection for file
/home/lewis/ASF/any23/core/src/test/resources/text/html/test1
expected:<[text/html]> but was:<[application/octet-stream]>
  testRDFXMLByContentAndName(org.apache.any23.mime.TikaMIMETypeDetectorTest):
Error while detecting mimetype in file
src/test/resources/application/rdfxml/test1
expected:<application/[rdf+xml]> but was:<application/[octet-stream]>
  testRSS1ByContentAndName(org.apache.any23.mime.TikaMIMETypeDetectorTest):
Error while detecting mimetype in file
src/test/resources/application/rss1/test1
expected:<application/[rdf+xml]> but was:<application/[octet-stream]>
  testDetectRDFN3ByContentAndName(org.apache.any23.mime.TikaMIMETypeDetectorTest):
Error while detecting mimetype in file
src/test/resources/application/rdfn3/test1 expected:<[text/n3]> but
was:<[application/octet-stream]>
  testHTMLByContentAndName(org.apache.any23.mime.TikaMIMETypeDetectorTest):
Error while detecting mimetype in file
src/test/resources/text/html/test1 expected:<[text/html]> but
was:<[application/octet-stream]>

Tests run: 399, Failures: 17, Errors: 0, Skipped: 1

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Any23 ...................................... SUCCESS [9.470s]
[INFO] Apache Any23 :: Core .............................. FAILURE [35.228s]
[INFO] Apache Any23 :: Plugins :: Basic Crawler .......... SKIPPED
[INFO] Apache Any23 :: Plugins :: HTML Scraper ........... SKIPPED
[INFO] Apache Any23 :: Plugins :: Office Scraper ......... SKIPPED
[INFO] Apache Any23 :: Plugins :: Integration Test ....... SKIPPED
[INFO] Apache Any23 :: Service ........................... SKIPPED
[INFO] Apache Any23 :: Sources distribution module ....... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 45.642s
[INFO] Finished at: Tue May 08 20:18:48 BST 2012
[INFO] Final Memory: 22M/66M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.9:test (default-test)
on project any23-core: There are test failures.
[ERROR]
[ERROR] Please refer to
/home/lewis/ASF/any23/core/target/surefire-reports for the individual
test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with
the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :any23-core

Re: Issues with build

Posted by Simone Tripodi <si...@apache.org>.
Hi Lewis,

I spent almost hals a day on building Any23 and I complete
successfully the build, unless I activate the release profile wich
detects files with unapproved licenses - otherwise, it works well.

No idea why it behaves in such way on your environment, this is mine:

$ mvn --version
Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
Maven home: /Applications/apache-maven-3.0.4
Java version: 1.6.0_31, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.7.3", arch: "x86_64", family: "mac"

what's yours?
all the best,
-Simo

http://people.apache.org/~simonetripodi/
http://simonetripodi.livejournal.com/
http://twitter.com/simonetripodi
http://www.99soft.org/


On Tue, May 8, 2012 at 8:13 PM, Lewis John Mcgibbney
<le...@gmail.com> wrote:
> Hi Guys,
>
> I've been off the beaten track for a week or so and haven't had much
> time to put towards Any23.
>
> I'm getting some pretty horrible build output when checking out trunk
> and doing mvn clean install.
>
> Failed tests:
> testSpeciesMicroformatExtractOverTaxoBox(org.apache.any23.extractor.html.SpeciesExtractorTest):
> Unexpected number of matching statements. expected:<29> but was:<27>
>  testListingWithouthContent(org.apache.any23.extractor.html.HListingExtractorTest):
> Unexpected number of matching statements. expected:<4> but was:<3>
>  testVCardMultiAddress(org.apache.any23.extractor.html.AdrExtractorTest):
> Unexpected statement size: 5
>  testAdvancedItemrefManagement(org.apache.any23.extractor.microdata.MicrodataParserTest):
> Error while comparing error [1] expected:<...[2]", "begin_row" : [10,
> "begin_col" : 5, "end_row" : 10], "end_col" : 97 }> but was:<...[2]",
> "begin_row" : [26, "begin_col" : 5, "end_row" : 26], "end_col" : 97 }>
>  testMicroformatDomains(org.apache.any23.extractor.SingleDocumentExtractionTest):
> Cannot find triple (* http://vocab.sindice.net/any23#domain
> "nested.test.com") 1 times expected:<1> but was:<0>
>  testNestedMicroformats(org.apache.any23.extractor.SingleDocumentExtractionTest):
> Cannot find triple (* http://vocab.sindice.net/any23#domain
> "nested.test.com") 2 times expected:<2> but was:<0>
>  testNestedMicroformatsInduced(org.apache.any23.extractor.SingleDocumentExtractionTest):
> Cannot find triple (* http://vocab.sindice.net/any23#domain
> "nested.test.com") 2 times expected:<2> but was:<0>
>  testNestedMicroformatsManaged(org.apache.any23.extractor.SingleDocumentExtractionTest):
> Cannot find triple (* http://vocab.sindice.net/any23#domain
> "nested.test.com") 3 times expected:<3> but was:<0>
>  testDetectRSS1ByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> Error in mimetype detection for file
> /home/lewis/ASF/any23/core/src/test/resources/application/rss1/test1
> expected:<application/[rdf+xml]> but was:<application/[octet-stream]>
>  testDetectRDFN3ByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> Error in mimetype detection for file
> /home/lewis/ASF/any23/core/src/test/resources/application/rdfn3/test1
> expected:<[text/n3]> but was:<[application/octet-stream]>
>  testDetectRDFNQuadsByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> Error in mimetype detection for file
> /home/lewis/ASF/any23/core/src/test/resources/application/nquads/test1.nq
> expected:<[text/nq]> but was:<[application/octet-stream]>
>  testDetectRDFXMLByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> Error in mimetype detection for file
> /home/lewis/ASF/any23/core/src/test/resources/application/rdfxml/test1
> expected:<application/[rdf+xml]> but was:<application/[octet-stream]>
>  testDetectHTMLByContent(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> Error in mimetype detection for file
> /home/lewis/ASF/any23/core/src/test/resources/text/html/test1
> expected:<[text/html]> but was:<[application/octet-stream]>
>  testRDFXMLByContentAndName(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> Error while detecting mimetype in file
> src/test/resources/application/rdfxml/test1
> expected:<application/[rdf+xml]> but was:<application/[octet-stream]>
>  testRSS1ByContentAndName(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> Error while detecting mimetype in file
> src/test/resources/application/rss1/test1
> expected:<application/[rdf+xml]> but was:<application/[octet-stream]>
>  testDetectRDFN3ByContentAndName(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> Error while detecting mimetype in file
> src/test/resources/application/rdfn3/test1 expected:<[text/n3]> but
> was:<[application/octet-stream]>
>  testHTMLByContentAndName(org.apache.any23.mime.TikaMIMETypeDetectorTest):
> Error while detecting mimetype in file
> src/test/resources/text/html/test1 expected:<[text/html]> but
> was:<[application/octet-stream]>
>
> Tests run: 399, Failures: 17, Errors: 0, Skipped: 1
>
> When I last tried... some 2 weeks or so ago, I was getting one failed
> test (this is reflected by the nightly build output... when it
> actually runs the tests), now it seems to have snowballed quite a bit
> and my situation locally is pretty dim.
>
> Can anyone reproduce this behaviour?
> Thank you
>
> Lewis
>
> --
> Lewis