Lewis John McGibbney created ANY23-159:
------------------------------------------
Summary: Error with nodes and markup extracted from
HListingExtractorTest.testKelkoo & testKelkooFull
Key: ANY23-159
URL: https://issues.apache.org/jira/browse/ANY23-159
Project: Apache Any23
Issue Type: Bug
Components: core
Affects Versions: 0.7.0
Reporter: Lewis John McGibbney
Priority: Minor
Fix For: 0.9.0
I cannot reproduce this locally. The Jenkins build does however indicate that
nodes within the HTML DOM are not being correctly represented, or that there is
a problem with the serialization, I am just not sure.
For testKelkoo
{code}
Error Message
Assertion failed! Extracted triples: @prefix rdf:
<http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix hlisting:
<http://sindice.com/hlisting/0.1/> . _:node69ed49d37cc7b946efb5e2057f4b6ea a
hlisting:Listing ; hlisting:action hlisting:offer . _:node17rvr65dbx275 a
hlisting:Lister . _:node69ed49d37cc7b946efb5e2057f4b6ea hlisting:lister
_:node17rvr65dbx275 . Cannot find triple (null
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://sindice.com/hlisting/0.1/Item)
Stacktrace
java.lang.AssertionError: Assertion failed! Extracted triples:
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix hlisting: <http://sindice.com/hlisting/0.1/> .
_:node69ed49d37cc7b946efb5e2057f4b6ea a hlisting:Listing ;
hlisting:action hlisting:offer .
_:node17rvr65dbx275 a hlisting:Lister .
_:node69ed49d37cc7b946efb5e2057f4b6ea hlisting:lister _:node17rvr65dbx275 .
Cannot find triple (null http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://sindice.com/hlisting/0.1/Item)
at org.junit.Assert.fail(Assert.java:93)
at org.junit.Assert.assertTrue(Assert.java:43)
at
org.apache.any23.extractor.html.AbstractExtractorTestCase.assertContains(AbstractExtractorTestCase.java:244)
at
org.apache.any23.extractor.html.AbstractExtractorTestCase.assertContains(AbstractExtractorTestCase.java:210)
at
org.apache.any23.extractor.html.HListingExtractorTest.testKelkoo(HListingExtractorTest.java:158)
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:597)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:46)
at org.junit.rules.RunRules.evaluate(RunRules.java:18)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
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:597)
at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
at
org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:172)
at
org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:104)
at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:70)
Standard Output
[2013-06-01 12:25:35,048] INFO 8268[main] -
org.apache.any23.extractor.SingleDocumentExtraction.run(SingleDocumentExtraction.java:221)
- Processing http://bob.example.com/
{code}
For testKelkooFull
{code}
Assertion failed! Extracted triples: @prefix rdf:
<http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix hlisting:
<http://sindice.com/hlisting/0.1/> . _:node1f1f5feb3e8cf29cdb5dec7694db3f2 a
hlisting:Listing ; hlisting:action hlisting:offer . _:node17rvr65dbx276 a
hlisting:Lister . _:node1f1f5feb3e8cf29cdb5dec7694db3f2 hlisting:lister
_:node17rvr65dbx276 . _:nodeb593dac65dca2b1baec2eb27cac8cd2c a
hlisting:Listing ; hlisting:action hlisting:offer . _:node17rvr65dbx277 a
hlisting:Lister . _:nodeb593dac65dca2b1baec2eb27cac8cd2c hlisting:lister
_:node17rvr65dbx277 . _:nodeead7ed8d79ce8169cd193515dd86234 a hlisting:Listing
; hlisting:action hlisting:offer . _:node17rvr65dbx278 a hlisting:Lister .
_:nodeead7ed8d79ce8169cd193515dd86234 hlisting:lister _:node17rvr65dbx278 .
Cannot find triple (null http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://sindice.com/hlisting/0.1/Item)
Stacktrace
java.lang.AssertionError: Assertion failed! Extracted triples:
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix hlisting: <http://sindice.com/hlisting/0.1/> .
_:node1f1f5feb3e8cf29cdb5dec7694db3f2 a hlisting:Listing ;
hlisting:action hlisting:offer .
_:node17rvr65dbx276 a hlisting:Lister .
_:node1f1f5feb3e8cf29cdb5dec7694db3f2 hlisting:lister _:node17rvr65dbx276 .
_:nodeb593dac65dca2b1baec2eb27cac8cd2c a hlisting:Listing ;
hlisting:action hlisting:offer .
_:node17rvr65dbx277 a hlisting:Lister .
_:nodeb593dac65dca2b1baec2eb27cac8cd2c hlisting:lister _:node17rvr65dbx277 .
_:nodeead7ed8d79ce8169cd193515dd86234 a hlisting:Listing ;
hlisting:action hlisting:offer .
_:node17rvr65dbx278 a hlisting:Lister .
_:nodeead7ed8d79ce8169cd193515dd86234 hlisting:lister _:node17rvr65dbx278 .
Cannot find triple (null http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://sindice.com/hlisting/0.1/Item)
at org.junit.Assert.fail(Assert.java:93)
at org.junit.Assert.assertTrue(Assert.java:43)
at
org.apache.any23.extractor.html.AbstractExtractorTestCase.assertContains(AbstractExtractorTestCase.java:244)
at
org.apache.any23.extractor.html.AbstractExtractorTestCase.assertContains(AbstractExtractorTestCase.java:210)
at
org.apache.any23.extractor.html.HListingExtractorTest.testKelkooFull(HListingExtractorTest.java:186)
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:597)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:46)
at org.junit.rules.RunRules.evaluate(RunRules.java:18)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
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:597)
at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
at
org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:172)
at
org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:104)
at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:70)
Standard Output
[2013-06-01 12:25:35,061] INFO 8281[main] -
org.apache.any23.extractor.SingleDocumentExtraction.run(SingleDocumentExtraction.java:221)
- Processing http://bob.example.com/
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira