[infinispan-issues] [JBoss JIRA] (ISPN-9657) Multimap jar is not OSGi compliant

Dan Berindei (Jira) issues at jboss.org
Wed Sep 11 09:32:01 EDT 2019


    [ https://issues.jboss.org/browse/ISPN-9657?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13782911#comment-13782911 ] 

Dan Berindei commented on ISPN-9657:
------------------------------------

Missed a failure in HotRodCounterIT caused by the counter module jar including counter API classes (which should have been only in the commons jar).

{noformat}
[OK:     0, KO:     1, SKIP:     0] Test failed: HotRodCounterIT.testCounters 
org.infinispan.client.hotrod.exceptions.HotRodClientException:Request for messageId=5 returned server error (status=0x85): java.lang.LinkageError: loader constraint violation: when resolving method "org.infinispan.counter.impl.manager.EmbeddedCounterManager.defineCounterAsync(Ljava/lang/String;Lorg/infinispan/counter/api/CounterConfiguration;)Ljava/util/concurrent/CompletableFuture;" the class loader 'org.infinispan.server.hotrod:ispn-10.0 at 10.0.0-SNAPSHOT' @3869578e (instance of org.jboss.modules.ModuleClassLoader, child of 'app' jdk.internal.loader.ClassLoaders$AppClassLoader) of the current class, org/infinispan/server/hotrod/CounterRequestProcessor, and the class loader 'org.infinispan.counter:ispn-10.0 at 10.0.0-SNAPSHOT' @21b834d3 (instance of org.jboss.modules.ModuleClassLoader, child of 'app' jdk.internal.loader.ClassLoaders$AppClassLoader) for the method's defining class, org/infinispan/counter/impl/manager/EmbeddedCounterManager, have different Class objects for the type org/infinispan/counter/api/CounterConfiguration used in the signature
	at org.infinispan.client.hotrod.impl.protocol.Codec20.checkForErrorsInResponseStatus(Codec20.java:340)
	at org.infinispan.client.hotrod.impl.protocol.Codec20.readHeader(Codec20.java:177)
	at org.infinispan.client.hotrod.impl.transport.netty.HeaderDecoder.decode(HeaderDecoder.java:138)
	at org.infinispan.client.hotrod.impl.transport.netty.HintedReplayingDecoder.callDecode(HintedReplayingDecoder.java:94)
{noformat}

> Multimap jar is not OSGi compliant
> ----------------------------------
>
>                 Key: ISPN-9657
>                 URL: https://issues.jboss.org/browse/ISPN-9657
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Multimap
>    Affects Versions: 9.4.0.Final
>            Reporter: Alain Picard
>            Assignee: Dan Berindei
>            Priority: Major
>             Fix For: 10.0.0.CR2, 10.0.0.Final
>
>
> Due to issues related to using the embedded jar (see [here|https://developer.jboss.org/message/986042#986042], when switching to individual jars, the multimap jar (infinispan-multimap-9.4.0.Final.jar) doesn't provide a valid OSGi manifest.



--
This message was sent by Atlassian Jira
(v7.13.5#713005)



More information about the infinispan-issues mailing list