You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@opennlp.apache.org by James Kosin <ja...@cox.net> on 2014/01/23 02:19:38 UTC
Recent Changes Causing Test Failures
Jorn,
Not sure what is causing; but, the source no longer passes the tests for
the following:
testChunkingParserTraining
testTreeInsertParserTraining
Both test fail with the same error:
caused an ERROR: java.lang.NullPointerException
---
testChunkingParserTraining(opennlp.tools.parser.chunking.ParserTest)
Time elapsed: 0.297 sec <<< ERROR!
java.lang.NullPointerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at
opennlp.tools.ml.TrainerFactory.getPluggableTrainerType(TrainerFactory.java:48)
at
opennlp.tools.ml.TrainerFactory.isSupportEvent(TrainerFactory.java:69)
at opennlp.tools.ml.model.TrainUtil.train(TrainUtil.java:47)
at opennlp.tools.parser.chunking.Parser.train(Parser.java:283)
at opennlp.tools.parser.chunking.Parser.train(Parser.java:334)
at
opennlp.tools.parser.chunking.ParserTest.testChunkingParserTraining(ParserTest.java:47)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
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:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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)
Re: Recent Changes Causing Test Failures
Posted by James Kosin <ja...@gmail.com>.
Thanks, I'll check it out.
On 1/24/2014 7:38 AM, Jörn Kottmann wrote:
> It should be fixed now.
> I reproduced the build failure on my machine related to a missing null
> reference check.
>
> Jörn
>
> On 01/23/2014 10:25 AM, Jörn Kottmann wrote:
>> Hmm, I will have a look. Thanks for reporting!
>>
>> Jörn
>>
>> On 01/23/2014 02:19 AM, James Kosin wrote:
>>> Jorn,
>>>
>>> Not sure what is causing; but, the source no longer passes the tests
>>> for the following:
>>> testChunkingParserTraining
>>> testTreeInsertParserTraining
>>>
>>> Both test fail with the same error:
>>> caused an ERROR: java.lang.NullPointerException
>>>
>>> ---
>>>
>>> testChunkingParserTraining(opennlp.tools.parser.chunking.ParserTest)
>>> Time elapsed: 0.297 sec <<< ERROR!
>>> java.lang.NullPointerException
>>> at java.lang.Class.forName0(Native Method)
>>> at java.lang.Class.forName(Class.java:190)
>>> at
>>> opennlp.tools.ml.TrainerFactory.getPluggableTrainerType(TrainerFactory.java:48)
>>> at
>>> opennlp.tools.ml.TrainerFactory.isSupportEvent(TrainerFactory.java:69)
>>> at opennlp.tools.ml.model.TrainUtil.train(TrainUtil.java:47)
>>> at opennlp.tools.parser.chunking.Parser.train(Parser.java:283)
>>> at opennlp.tools.parser.chunking.Parser.train(Parser.java:334)
>>> at
>>> opennlp.tools.parser.chunking.ParserTest.testChunkingParserTraining(ParserTest.java:47)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>> at
>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
>>> at
>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>> at
>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
>>> at
>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
>>> at
>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
>>> at
>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
>>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
>>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
>>> at
>>> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
>>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
>>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
>>> at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
>>> 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:57)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>> 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)
>>>
>>>
>>
>
>
Re: Recent Changes Causing Test Failures
Posted by Jörn Kottmann <ko...@gmail.com>.
It should be fixed now.
I reproduced the build failure on my machine related to a missing null
reference check.
Jörn
On 01/23/2014 10:25 AM, Jörn Kottmann wrote:
> Hmm, I will have a look. Thanks for reporting!
>
> Jörn
>
> On 01/23/2014 02:19 AM, James Kosin wrote:
>> Jorn,
>>
>> Not sure what is causing; but, the source no longer passes the tests
>> for the following:
>> testChunkingParserTraining
>> testTreeInsertParserTraining
>>
>> Both test fail with the same error:
>> caused an ERROR: java.lang.NullPointerException
>>
>> ---
>>
>> testChunkingParserTraining(opennlp.tools.parser.chunking.ParserTest)
>> Time elapsed: 0.297 sec <<< ERROR!
>> java.lang.NullPointerException
>> at java.lang.Class.forName0(Native Method)
>> at java.lang.Class.forName(Class.java:190)
>> at
>> opennlp.tools.ml.TrainerFactory.getPluggableTrainerType(TrainerFactory.java:48)
>> at
>> opennlp.tools.ml.TrainerFactory.isSupportEvent(TrainerFactory.java:69)
>> at opennlp.tools.ml.model.TrainUtil.train(TrainUtil.java:47)
>> at opennlp.tools.parser.chunking.Parser.train(Parser.java:283)
>> at opennlp.tools.parser.chunking.Parser.train(Parser.java:334)
>> at
>> opennlp.tools.parser.chunking.ParserTest.testChunkingParserTraining(ParserTest.java:47)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> at
>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
>> at
>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>> at
>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
>> at
>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
>> at
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
>> at
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
>> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
>> at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
>> 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:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> 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)
>>
>
Re: Recent Changes Causing Test Failures
Posted by Jörn Kottmann <ko...@gmail.com>.
Hmm, I will have a look. Thanks for reporting!
Jörn
On 01/23/2014 02:19 AM, James Kosin wrote:
> Jorn,
>
> Not sure what is causing; but, the source no longer passes the tests
> for the following:
> testChunkingParserTraining
> testTreeInsertParserTraining
>
> Both test fail with the same error:
> caused an ERROR: java.lang.NullPointerException
>
> ---
>
> testChunkingParserTraining(opennlp.tools.parser.chunking.ParserTest)
> Time elapsed: 0.297 sec <<< ERROR!
> java.lang.NullPointerException
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:190)
> at
> opennlp.tools.ml.TrainerFactory.getPluggableTrainerType(TrainerFactory.java:48)
> at
> opennlp.tools.ml.TrainerFactory.isSupportEvent(TrainerFactory.java:69)
> at opennlp.tools.ml.model.TrainUtil.train(TrainUtil.java:47)
> at opennlp.tools.parser.chunking.Parser.train(Parser.java:283)
> at opennlp.tools.parser.chunking.Parser.train(Parser.java:334)
> at
> opennlp.tools.parser.chunking.ParserTest.testChunkingParserTraining(ParserTest.java:47)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
> at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
> at
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
> at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
> at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> 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:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> 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)
>