ashokpant / dkpro-tc

Automatically exported from code.google.com/p/dkpro-tc
Other
0 stars 0 forks source link

NERSequenceDemo trunk version fails #164

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
NERSequenceDemo trunk version fails with the following error:

Couldn't open cc.mallet.util.MalletLogger resources/logging.properties file.
 Perhaps the 'resources' directories weren't copied into the 'class' directory.
 Continuing.
Exception in thread "main" 
de.tudarmstadt.ukp.dkpro.lab.engine.ExecutionException: 
de.tudarmstadt.ukp.dkpro.lab.engine.ExecutionException: 
de.tudarmstadt.ukp.dkpro.lab.engine.ExecutionException: 
java.lang.NoClassDefFoundError: gnu/trove/TObjectIntHashMap
    at de.tudarmstadt.ukp.dkpro.lab.engine.impl.ExecutableTaskEngine.run(ExecutableTaskEngine.java:68)
    at de.tudarmstadt.ukp.dkpro.lab.engine.impl.DefaultTaskExecutionService.run(DefaultTaskExecutionService.java:48)
    at de.tudarmstadt.ukp.dkpro.lab.Lab.run(Lab.java:97)
    at de.tudarmstadt.ukp.dkpro.tc.examples.single.sequence.NERSequenceDemo.runCrossValidation(NERSequenceDemo.java:78)
    at de.tudarmstadt.ukp.dkpro.tc.examples.single.sequence.NERSequenceDemo.main(NERSequenceDemo.java:63)
Caused by: de.tudarmstadt.ukp.dkpro.lab.engine.ExecutionException: 
de.tudarmstadt.ukp.dkpro.lab.engine.ExecutionException: 
java.lang.NoClassDefFoundError: gnu/trove/TObjectIntHashMap
    at de.tudarmstadt.ukp.dkpro.lab.engine.impl.ExecutableTaskEngine.run(ExecutableTaskEngine.java:68)
    at de.tudarmstadt.ukp.dkpro.lab.task.impl.BatchTask.runNewExecution(BatchTask.java:350)
    at de.tudarmstadt.ukp.dkpro.lab.task.impl.BatchTask.executeConfiguration(BatchTask.java:255)
    at de.tudarmstadt.ukp.dkpro.lab.task.impl.BatchTask.execute(BatchTask.java:185)
    at de.tudarmstadt.ukp.dkpro.tc.mallet.task.BatchTaskCrossValidation.execute(BatchTaskCrossValidation.java:226)
    at de.tudarmstadt.ukp.dkpro.lab.engine.impl.ExecutableTaskEngine.run(ExecutableTaskEngine.java:55)
    ... 4 more
Caused by: de.tudarmstadt.ukp.dkpro.lab.engine.ExecutionException: 
java.lang.NoClassDefFoundError: gnu/trove/TObjectIntHashMap
    at de.tudarmstadt.ukp.dkpro.lab.engine.impl.ExecutableTaskEngine.run(ExecutableTaskEngine.java:68)
    at de.tudarmstadt.ukp.dkpro.lab.task.impl.BatchTask.runNewExecution(BatchTask.java:350)
    at de.tudarmstadt.ukp.dkpro.lab.task.impl.BatchTask.executeConfiguration(BatchTask.java:255)
    at de.tudarmstadt.ukp.dkpro.lab.task.impl.BatchTask.execute(BatchTask.java:185)
    at de.tudarmstadt.ukp.dkpro.tc.mallet.task.BatchTaskCrossValidation$1.execute(BatchTaskCrossValidation.java:159)
    at de.tudarmstadt.ukp.dkpro.lab.engine.impl.ExecutableTaskEngine.run(ExecutableTaskEngine.java:55)
    ... 9 more
Caused by: java.lang.NoClassDefFoundError: gnu/trove/TObjectIntHashMap
    at cc.mallet.types.Alphabet.<init>(Alphabet.java:51)
    at cc.mallet.types.Alphabet.<init>(Alphabet.java:70)
    at de.tudarmstadt.ukp.dkpro.tc.mallet.util.ConversionToFeatureVectorSequence.<init>(ConversionToFeatureVectorSequence.java:49)
    at de.tudarmstadt.ukp.dkpro.tc.mallet.util.TaskUtils.runTrainCRF(TaskUtils.java:98)
    at de.tudarmstadt.ukp.dkpro.tc.mallet.util.TaskUtils.runTrainTest(TaskUtils.java:180)
    at de.tudarmstadt.ukp.dkpro.tc.mallet.task.TestTask.execute(TestTask.java:96)
    at de.tudarmstadt.ukp.dkpro.lab.engine.impl.ExecutableTaskEngine.run(ExecutableTaskEngine.java:55)
    ... 14 more
Caused by: java.lang.ClassNotFoundException: gnu.trove.TObjectIntHashMap
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    ... 21 more

Original issue reported on code.google.com by eckle.kohler on 15 Jul 2014 at 9:31

GoogleCodeExporter commented 9 years ago
Sounds like this may also be a problem in the last release?

Original comment by richard.eckart on 15 Jul 2014 at 1:14

GoogleCodeExporter commented 9 years ago
This is caused by a trove4j version conflict (Mallet requires 2.0.2, we use a 
3.0.3). It has gone unnoticed since there are no tests for the mallet demo, due 
to issue 115. And yes, the 0.6.0 release should be affected as well. 

Original comment by daxenber...@gmail.com on 16 Jul 2014 at 10:34

GoogleCodeExporter commented 9 years ago

Original comment by daxenber...@gmail.com on 16 Jul 2014 at 10:34

GoogleCodeExporter commented 9 years ago
In DKPro Core 1.6.1, we (should have) removed the managed version for trove 
because we never use it directly anywhere. Do you directly use trove in TC?

Original comment by richard.eckart on 16 Jul 2014 at 10:39

GoogleCodeExporter commented 9 years ago
As far as I can see trove4j 3.0.3 was introduced by ark-tweet-nlp.

Original comment by daxenber...@gmail.com on 16 Jul 2014 at 10:53

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1013.

Original comment by daxenber...@gmail.com on 16 Jul 2014 at 12:19

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r1014.

added test cases for Mallet demos to avoid problems like this in the future.

Original comment by daxenber...@gmail.com on 16 Jul 2014 at 12:20

GoogleCodeExporter commented 9 years ago

Original comment by daxenber...@gmail.com on 1 Apr 2015 at 5:10