[Biojava-l] java 8 - Term cannot be null
Khalil El Mazouari
khalil.elmazouari at gmail.com
Sun Nov 16 14:03:30 UTC 2014
Hi,
I am porting my java/BioJava project to BioJava 1.9.1/java 8, in order to use lambda expressions.
IllegalArgumentException: Term cannot be null exception is sometimes raised. Can’t trace it back as it’s not raised at every run. It seems to be Thread-Related… and it’s not raised if I use BioJava 1.8.2/Java 7.
Best
Exception in thread "main" java.lang.IllegalArgumentException: Term cannot be null
at org.biojavax.bio.seq.SimpleRichFeature.setTypeTerm(SimpleRichFeature.java:330)
at org.biojavax.bio.seq.SimpleRichFeature.setType(SimpleRichFeature.java:315)
….
at com.kem.ae.core.AnnotationManager.lambda$annotate$5(AnnotationManager.java:122)
at com.kem.ae.core.AnnotationManager$$Lambda$1/10347942.accept(Unknown Source)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512)
at java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:290)
at java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:731)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:902)
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1689)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1644)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
More information about the Biojava-l
mailing list