<div dir="ltr"><div><div>Using "5.0" will likely solve the issue for now, but what happens if search starts using slot "6.0" because of a version change? <br>The test would suddenly fail again, because ispn would still drag "5.0" into the classpath<br></div><br></div>Gustavo<br><div><div><br> </div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 17, 2014 at 12:44 AM, Sanne Grinovero <span dir="ltr"><<a href="mailto:sanne@infinispan.org" target="_blank">sanne@infinispan.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
during bootstrap of tests of the Hibernate Search modules on WildFly<br>
8.1 (via Arquillian), when using Infinispan 7.0.0.Beta1 everything<br>
works fine.<br>
<br>
When upgrading to latest Beta2 - and no other changes - I get:<br>
<br>
Caused by: java.lang.IllegalAccessError: tried to access class<br>
org.hibernate.search.util.impl.ConcurrentReferenceHashMap from class<br>
org.hibernate.search.util.impl.Maps<br>
at org.hibernate.search.util.impl.Maps.createIdentityWeakKeyConcurrentMap(Maps.java:39)<br>
[hibernate-search-engine-5.0.0-SNAPSHOT.jar:5.0.0-SNAPSHOT]<br>
at org.hibernate.search.event.impl.FullTextIndexEventListener.<init>(FullTextIndexEventListener.java:81)<br>
[hibernate-search-orm-5.0.0-SNAPSHOT.jar:5.0.0-SNAPSHOT]<br>
<br>
The code in Maps.java:39 is simply invoking the constructor of the<br>
ConcurrentReferenceHashMap, which is public and located in the same<br>
jar, in the same package.<br>
<br>
It seems that the problem is that the infinispan module is now<br>
depending on the infinispan-query module, which is depending on the<br>
hibernate-search module distributed by the Infinispan project.<br>
In other words, I'm having a duplicate of the Hibernate Search jars on<br>
classpath, specifically an older version of what I'm aiming to test.<br>
<br>
Ideas?<br>
<br>
A workaround I could apply is to not use the modules published by the<br>
Infinispan project and assemble my own modules, removing<br>
infinispan-query and all other stuff I don't need, but I hope for a<br>
better solution.<br>
<br>
Ideally like Infinispan uses slot "ispn-7.0", which we download and<br>
use, I think Infinispan should depend (and download) an Hibernate<br>
Search specific slot, rather then re-bundling a specific micro version<br>
without our permission :-P<br>
Modules released by Hibernate Search are currently released using a<br>
slot which matches exactly the release version (so<br>
slot="5.0.0-SNAPSHOT" as built in this test), but I'd be happy to<br>
change that to say "5.0".<br>
<br>
Could we try that please?<br>
<br>
-- Sanne<br>
_______________________________________________<br>
infinispan-dev mailing list<br>
<a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
</blockquote></div><br></div>