[JBoss JIRA] (ISPN-7308) Kryo marshaller throws ArrayIndexOutOfBoundsException when storing String values
by Ryan Emerson (JIRA)
[ https://issues.jboss.org/browse/ISPN-7308?page=com.atlassian.jira.plugin.... ]
Ryan Emerson reassigned ISPN-7308:
----------------------------------
Assignee: Ryan Emerson
> Kryo marshaller throws ArrayIndexOutOfBoundsException when storing String values
> --------------------------------------------------------------------------------
>
> Key: ISPN-7308
> URL: https://issues.jboss.org/browse/ISPN-7308
> Project: Infinispan
> Issue Type: Bug
> Components: Marshalling
> Affects Versions: 9.0.0.Beta1
> Reporter: Roman Macor
> Assignee: Ryan Emerson
>
> Storing String values using Kryo marshaller sometimes throws Index out of bounds warning:
> WARN [org.radargun.stages.cache.test.LoadStage] (Loader-4) Attempt 1/10 to insert entry into cache failed, waiting 1000 ms before next attempt
> java.lang.ArrayIndexOutOfBoundsException: 64
> at com.esotericsoftware.kryo.util.IdentityObjectIntMap.putStash(IdentityObjectIntMap.java:310) ~[kryo-4.0.0.jar:?]
> at com.esotericsoftware.kryo.util.IdentityObjectIntMap.push(IdentityObjectIntMap.java:298) ~[kryo-4.0.0.jar:?]
> at com.esotericsoftware.kryo.util.IdentityObjectIntMap.put(IdentityObjectIntMap.java:161) ~[kryo-4.0.0.jar:?]
> at com.esotericsoftware.kryo.util.MapReferenceResolver.addWrittenObject(MapReferenceResolver.java:41) ~[kryo-4.0.0.jar:?]
> at com.esotericsoftware.kryo.Kryo.writeReferenceOrNull(Kryo.java:681) ~[kryo-4.0.0.jar:?]
> at com.esotericsoftware.kryo.Kryo.writeClassAndObject(Kryo.java:646) ~[kryo-4.0.0.jar:?]
> at org.infinispan.marshaller.kryo.KryoMarshaller.objectToBuffer(KryoMarshaller.java:58) ~[infinispan-marshaller-kryo-9.0.0-SNAPSHOT.jar:9.0.0-SNAPSHOT]
> at org.infinispan.commons.marshall.AbstractMarshaller.objectToByteBuffer(AbstractMarshaller.java:70) ~[infinispan-commons-9.0.0-SNAPSHOT.jar:9.0.0-SNAPSHOT]
> at org.infinispan.client.hotrod.impl.RemoteCacheImpl.obj2bytes(RemoteCacheImpl.java:498) ~[infinispan-client-hotrod-9.0.0-SNAPSHOT.jar:9.0.0-SNAPSHOT]
> at org.infinispan.client.hotrod.impl.RemoteCacheImpl.put(RemoteCacheImpl.java:270) ~[infinispan-client-hotrod-9.0.0-SNAPSHOT.jar:9.0.0-SNAPSHOT]
> at org.infinispan.client.hotrod.impl.RemoteCacheSupport.put(RemoteCacheSupport.java:79) ~[infinispan-client-hotrod-9.0.0-SNAPSHOT.jar:9.0.0-SNAPSHOT]
> at org.radargun.service.HotRodOperations$HotRodCache.put(HotRodOperations.java:83) ~[plugin-infinispan52-3.0.0-SNAPSHOT.jar:?]
> at org.radargun.stages.cache.test.LoadStage$NonTxLoader.loadDataUnit(LoadStage.java:275) [radargun-cache-3.0.0-SNAPSHOT.jar:?]
> at org.radargun.stages.test.LoadStage$Loader.run(LoadStage.java:125) [radargun-core-3.0.0-SNAPSHOT.jar:?
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 3 months
[JBoss JIRA] (ISPN-7308) Kryo marshaller throws ArrayIndexOutOfBoundsException when storing String values
by Roman Macor (JIRA)
Roman Macor created ISPN-7308:
---------------------------------
Summary: Kryo marshaller throws ArrayIndexOutOfBoundsException when storing String values
Key: ISPN-7308
URL: https://issues.jboss.org/browse/ISPN-7308
Project: Infinispan
Issue Type: Bug
Components: Marshalling
Affects Versions: 9.0.0.Beta1
Reporter: Roman Macor
Storing String values using Kryo marshaller sometimes throws Index out of bounds warning:
WARN [org.radargun.stages.cache.test.LoadStage] (Loader-4) Attempt 1/10 to insert entry into cache failed, waiting 1000 ms before next attempt
java.lang.ArrayIndexOutOfBoundsException: 64
at com.esotericsoftware.kryo.util.IdentityObjectIntMap.putStash(IdentityObjectIntMap.java:310) ~[kryo-4.0.0.jar:?]
at com.esotericsoftware.kryo.util.IdentityObjectIntMap.push(IdentityObjectIntMap.java:298) ~[kryo-4.0.0.jar:?]
at com.esotericsoftware.kryo.util.IdentityObjectIntMap.put(IdentityObjectIntMap.java:161) ~[kryo-4.0.0.jar:?]
at com.esotericsoftware.kryo.util.MapReferenceResolver.addWrittenObject(MapReferenceResolver.java:41) ~[kryo-4.0.0.jar:?]
at com.esotericsoftware.kryo.Kryo.writeReferenceOrNull(Kryo.java:681) ~[kryo-4.0.0.jar:?]
at com.esotericsoftware.kryo.Kryo.writeClassAndObject(Kryo.java:646) ~[kryo-4.0.0.jar:?]
at org.infinispan.marshaller.kryo.KryoMarshaller.objectToBuffer(KryoMarshaller.java:58) ~[infinispan-marshaller-kryo-9.0.0-SNAPSHOT.jar:9.0.0-SNAPSHOT]
at org.infinispan.commons.marshall.AbstractMarshaller.objectToByteBuffer(AbstractMarshaller.java:70) ~[infinispan-commons-9.0.0-SNAPSHOT.jar:9.0.0-SNAPSHOT]
at org.infinispan.client.hotrod.impl.RemoteCacheImpl.obj2bytes(RemoteCacheImpl.java:498) ~[infinispan-client-hotrod-9.0.0-SNAPSHOT.jar:9.0.0-SNAPSHOT]
at org.infinispan.client.hotrod.impl.RemoteCacheImpl.put(RemoteCacheImpl.java:270) ~[infinispan-client-hotrod-9.0.0-SNAPSHOT.jar:9.0.0-SNAPSHOT]
at org.infinispan.client.hotrod.impl.RemoteCacheSupport.put(RemoteCacheSupport.java:79) ~[infinispan-client-hotrod-9.0.0-SNAPSHOT.jar:9.0.0-SNAPSHOT]
at org.radargun.service.HotRodOperations$HotRodCache.put(HotRodOperations.java:83) ~[plugin-infinispan52-3.0.0-SNAPSHOT.jar:?]
at org.radargun.stages.cache.test.LoadStage$NonTxLoader.loadDataUnit(LoadStage.java:275) [radargun-cache-3.0.0-SNAPSHOT.jar:?]
at org.radargun.stages.test.LoadStage$Loader.run(LoadStage.java:125) [radargun-core-3.0.0-SNAPSHOT.jar:?
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 3 months
[JBoss JIRA] (ISPN-7307) Byte array values are not marshalled correctly
by Roman Macor (JIRA)
[ https://issues.jboss.org/browse/ISPN-7307?page=com.atlassian.jira.plugin.... ]
Roman Macor updated ISPN-7307:
------------------------------
Attachment: marshallerReproducer.zip
> Byte array values are not marshalled correctly
> ----------------------------------------------
>
> Key: ISPN-7307
> URL: https://issues.jboss.org/browse/ISPN-7307
> Project: Infinispan
> Issue Type: Bug
> Components: Marshalling
> Affects Versions: 9.0.0.Beta1
> Reporter: Roman Macor
> Assignee: Ryan Emerson
> Attachments: marshallerReproducer.zip
>
>
> Marshalling byte array values results in error for Kryo and Protostuff marshaller and JBoss marshaller returns wrong value after storing and then retrieving byte array value.
> Please see the attached [reproducer|https://github.com/rmacor/jdg-qe/tree/reproducers/marshaller-b...]
> jboss Marshaller:
> expected:<[B@70f02c32> but was:<[B@1fa1cab1>
> Tests in error:
> Kryo marshaller:
> ISPN004034: Unable to unmarshall bytes 3d90a41b0aba45df87286a6473369e47385ca1e9ff20b6e8dde01261f70953546e61069f66f7a33fc7d85b3acf23ac19fe72
> Protostuff marshaller:
> ISPN004034: Unable to unmarshall bytes 49d5a211c1f77b2160a976258f8b3154f8364fd942b77e28affeae0d5e7a2d442cdac7dd0bfaecbc260793e43dc06447f1e4
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 3 months
[JBoss JIRA] (ISPN-7158) EmbeddedApplicationPublishedBridgeTest.testEventBridge random failures
by Dan Berindei (JIRA)
[ https://issues.jboss.org/browse/ISPN-7158?page=com.atlassian.jira.plugin.... ]
Dan Berindei updated ISPN-7158:
-------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
> EmbeddedApplicationPublishedBridgeTest.testEventBridge random failures
> ----------------------------------------------------------------------
>
> Key: ISPN-7158
> URL: https://issues.jboss.org/browse/ISPN-7158
> Project: Infinispan
> Issue Type: Bug
> Components: Spring Integration
> Reporter: Dan Berindei
> Assignee: Sebastian Łaskawiec
> Priority: Critical
> Labels: testsuite_stability
> Fix For: 9.0.0.Beta2
>
>
> {{TimeUnit.SECONDS.sleep(1)}} doesn't guarantee that the thread actually sleeps for a full second. And if it wakes up a millisecond too early, the entry is not expired by the time of the check:
> {noformat}
> java.lang.AssertionError: expected [null] but found [org.springframework.cache.support.SimpleValueWrapper@7bbbe232]
> at org.testng.Assert.fail(Assert.java:94)
> at org.testng.Assert.failNotSame(Assert.java:490)
> at org.testng.Assert.assertNull(Assert.java:426)
> at org.testng.Assert.assertNull(Assert.java:415)
> at org.infinispan.spring.session.InfinispanApplicationPublishedBridgeTCK.testEventBridge(InfinispanApplicationPublishedBridgeTCK.java:58)
> at org.infinispan.spring.session.EmbeddedApplicationPublishedBridgeTest.testEventBridge(EmbeddedApplicationPublishedBridgeTest.java:59)
> {noformat}
> The test should use a {{TimeService}} to guarantee that the entry expires without having to wait so long.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 3 months
[JBoss JIRA] (ISPN-7160) RemoteSpringSessionTest random failures
by Dan Berindei (JIRA)
[ https://issues.jboss.org/browse/ISPN-7160?page=com.atlassian.jira.plugin.... ]
Dan Berindei updated ISPN-7160:
-------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
> RemoteSpringSessionTest random failures
> ---------------------------------------
>
> Key: ISPN-7160
> URL: https://issues.jboss.org/browse/ISPN-7160
> Project: Infinispan
> Issue Type: Bug
> Components: Spring Integration
> Reporter: Dan Berindei
> Assignee: Sebastian Łaskawiec
> Priority: Critical
> Labels: testsuite_stability
> Fix For: 9.0.0.Beta2
>
>
> {{RemoteSpringSessionTest}} and {{EmbeddedSpringSessionTest}} use the default cache jmx configuration, so they try to register the same JMX object names. If they run in parallel, one of them will fail to start the cache manager:
> {noformat}
> org.infinispan.jmx.JmxDomainConflictException: ISPN000034: There's already a JMX MBean instance type=CacheManager,name="DefaultCacheManager" already registered under 'org.infinispan' JMX domain. If you want to allow multiple instances configured with same JMX domain enable 'allowDuplicateDomains' attribute in 'globalJmxStatistics' config element
> at org.infinispan.jmx.JmxUtil.buildJmxDomain(JmxUtil.java:53)
> at org.infinispan.jmx.CacheManagerJmxRegistration.updateDomain(CacheManagerJmxRegistration.java:79)
> at org.infinispan.jmx.CacheManagerJmxRegistration.buildRegistrar(CacheManagerJmxRegistration.java:73)
> at org.infinispan.jmx.AbstractJmxRegistration.registerMBeans(AbstractJmxRegistration.java:37)
> at org.infinispan.jmx.CacheManagerJmxRegistration.start(CacheManagerJmxRegistration.java:41)
> at org.infinispan.manager.DefaultCacheManager.start(DefaultCacheManager.java:661)
> at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:235)
> at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:147)
> at org.infinispan.integrationtests.spring.boot.session.remote.RemoteSpringSessionTest.beforeclass(RemoteSpringSessionTest.java:29)
> {noformat}
> If the cache manager was not created, teardown also fails with a NPE:
> {noformat}
> java.lang.NullPointerException
> at org.infinispan.integrationtests.spring.boot.session.remote.RemoteSpringSessionTest.afterClass(RemoteSpringSessionTest.java:41)
> {noformat}
> The test should use the {{TestCacheManagerFactory}} methods to create the cache manager, which will set a unique JMX domain name for each instance.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 3 months
[JBoss JIRA] (ISPN-7307) Byte array values are not marshalled correctly
by Ryan Emerson (JIRA)
[ https://issues.jboss.org/browse/ISPN-7307?page=com.atlassian.jira.plugin.... ]
Ryan Emerson reassigned ISPN-7307:
----------------------------------
Assignee: Ryan Emerson
> Byte array values are not marshalled correctly
> ----------------------------------------------
>
> Key: ISPN-7307
> URL: https://issues.jboss.org/browse/ISPN-7307
> Project: Infinispan
> Issue Type: Bug
> Components: Marshalling
> Affects Versions: 9.0.0.Beta1
> Reporter: Roman Macor
> Assignee: Ryan Emerson
>
> Marshalling byte array values results in error for Kryo and Protostuff marshaller and JBoss marshaller returns wrong value after storing and then retrieving byte array value.
> Please see the attached [reproducer|https://github.com/rmacor/jdg-qe/tree/reproducers/marshaller-b...]
> jboss Marshaller:
> expected:<[B@70f02c32> but was:<[B@1fa1cab1>
> Tests in error:
> Kryo marshaller:
> ISPN004034: Unable to unmarshall bytes 3d90a41b0aba45df87286a6473369e47385ca1e9ff20b6e8dde01261f70953546e61069f66f7a33fc7d85b3acf23ac19fe72
> Protostuff marshaller:
> ISPN004034: Unable to unmarshall bytes 49d5a211c1f77b2160a976258f8b3154f8364fd942b77e28affeae0d5e7a2d442cdac7dd0bfaecbc260793e43dc06447f1e4
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 3 months
[JBoss JIRA] (ISPN-7307) Byte array values are not marshalled correctly
by Roman Macor (JIRA)
Roman Macor created ISPN-7307:
---------------------------------
Summary: Byte array values are not marshalled correctly
Key: ISPN-7307
URL: https://issues.jboss.org/browse/ISPN-7307
Project: Infinispan
Issue Type: Bug
Components: Marshalling
Affects Versions: 9.0.0.Beta1
Reporter: Roman Macor
Marshalling byte array values results in error for Kryo and Protostuff marshaller and JBoss marshaller returns wrong value after storing and then retrieving byte array value.
Please see the attached [reproducer|https://github.com/rmacor/jdg-qe/tree/reproducers/marshaller-b...]
jboss Marshaller:
expected:<[B@70f02c32> but was:<[B@1fa1cab1>
Tests in error:
Kryo marshaller:
ISPN004034: Unable to unmarshall bytes 3d90a41b0aba45df87286a6473369e47385ca1e9ff20b6e8dde01261f70953546e61069f66f7a33fc7d85b3acf23ac19fe72
Protostuff marshaller:
ISPN004034: Unable to unmarshall bytes 49d5a211c1f77b2160a976258f8b3154f8364fd942b77e28affeae0d5e7a2d442cdac7dd0bfaecbc260793e43dc06447f1e4
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 3 months