Hi, Fixed. parallelStream from lambda was calling non synchronized method.
Best On 17 Nov 2014, at 13:00, [email protected] wrote: > Send Biojava-l mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://mailman.open-bio.org/mailman/listinfo/biojava-l > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Biojava-l digest..." > > > Today's Topics: > > 1. java 8 - Term cannot be null (Khalil El Mazouari) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 16 Nov 2014 15:03:30 +0100 > From: Khalil El Mazouari <[email protected]> > To: [email protected] > Subject: [Biojava-l] java 8 - Term cannot be null > Message-ID: <[email protected]> > Content-Type: text/plain; charset=windows-1252 > > 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) > > > ------------------------------ > > _______________________________________________ > Biojava-l mailing list - [email protected] > http://mailman.open-bio.org/mailman/listinfo/biojava-l > > End of Biojava-l Digest, Vol 141, Issue 11 > ****************************************** _______________________________________________ Biojava-l mailing list - [email protected] http://mailman.open-bio.org/mailman/listinfo/biojava-l
