Re: ConcurrentModificationException using RDFLanguages.getRegisteredLanguages()

2020-07-01 Thread Martynas Jusevičius
I know. I have no explanation. Maybe the NetBeans are messing with me. On Wed, Jul 1, 2020 at 2:52 PM Andy Seaborne wrote: > > > > On 01/07/2020 09:58, Martynas Jusevičius wrote: > > Thanks. > > > > What jar is missing though? I have apache-jena-libs as a dependency. I > > can see it includes TDB

Re: ConcurrentModificationException using RDFLanguages.getRegisteredLanguages()

2020-07-01 Thread Andy Seaborne
On 01/07/2020 09:58, Martynas Jusevičius wrote: Thanks. What jar is missing though? I have apache-jena-libs as a dependency. I can see it includes TDB and TDB2. And ARQ - but that disagrees with the error you are seeing: java.lang.NoClassDefFoundError: org/apache/jena/sparql/engine/main/St

Re: ConcurrentModificationException using RDFLanguages.getRegisteredLanguages()

2020-07-01 Thread Martynas Jusevičius
Thanks. What jar is missing though? I have apache-jena-libs as a dependency. I can see it includes TDB and TDB2. What weirds me out is that this only happens during debugging. On Wed, Jul 1, 2020 at 9:56 AM Andy Seaborne wrote: > > > > On 30/06/2020 23:11, Martynas Jusevičius wrote: > > Andy, >

Re: ConcurrentModificationException using RDFLanguages.getRegisteredLanguages()

2020-07-01 Thread Andy Seaborne
On 30/06/2020 23:11, Martynas Jusevičius wrote: Andy, where do you put JenaSystem.init() in unit tests, for example? Using 3.16.0-SNAPSHOT, I've changed the test code a little and started getting this - though only when I attempt to debug the ConstraintTest class: com.atomgraph.spinrdf.cons

Re: ConcurrentModificationException using RDFLanguages.getRegisteredLanguages()

2020-06-30 Thread Martynas Jusevičius
Andy, where do you put JenaSystem.init() in unit tests, for example? Using 3.16.0-SNAPSHOT, I've changed the test code a little and started getting this - though only when I attempt to debug the ConstraintTest class: com.atomgraph.spinrdf.constraints.ConstraintTest Time elapsed: 0.419 sec <<<

Re: ConcurrentModificationException using RDFLanguages.getRegisteredLanguages()

2020-06-29 Thread Martynas Jusevičius
On Mon, Jun 29, 2020 at 6:34 PM Andy Seaborne wrote: > > > > On 29/06/2020 14:47, Martynas Jusevičius wrote: > > Hi, > > > > I've got a class that is initialized with Jena's registered languages: > > And how/when is that called? > > I presume you don't use Jena initialization mechanism. > > https:

Re: ConcurrentModificationException using RDFLanguages.getRegisteredLanguages()

2020-06-29 Thread Andy Seaborne
On 29/06/2020 14:47, Martynas Jusevičius wrote: Hi, I've got a class that is initialized with Jena's registered languages: And how/when is that called? I presume you don't use Jena initialization mechanism. https://jena.apache.org/documentation/notes/system-initialization public M

ConcurrentModificationException using RDFLanguages.getRegisteredLanguages()

2020-06-29 Thread Martynas Jusevičius
Hi, I've got a class that is initialized with Jena's registered languages: public MediaTypes() { this(RDFLanguages.getRegisteredLanguages(), UTF8_PARAM); } protected MediaTypes(Collection registered, Map parameters) { ... Iterator langIt = registered.i