[Red Hat JIRA] (ISPN-12727) org.infinispan.protostream.DescriptorParserException: Failed to resolve type of field on Windows Server 2019
by Loic Guillemaud (Jira)
Loic Guillemaud created ISPN-12727:
--------------------------------------
Summary: org.infinispan.protostream.DescriptorParserException: Failed to resolve type of field on Windows Server 2019
Key: ISPN-12727
URL: https://issues.redhat.com/browse/ISPN-12727
Project: Infinispan
Issue Type: Bug
Affects Versions: 10.1.3.Final
Reporter: Loic Guillemaud
Hello,
I am using Infinispan Cache inside my application and it's work perfectly fine on Linux but when I run it on Windows Server 2019 environment I have the following issue :
{quote}Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.infinispan.manager.DefaultCacheManager]: Factory method 'defaultCacheManager' threw exception; nested exception is org.infinispan.commons.CacheException: Unable to construct a GlobalComponentRegistry!
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:620)
... 145 more
Caused by: org.infinispan.commons.CacheException: Unable to construct a GlobalComponentRegistry!
at org.infinispan.factories.GlobalComponentRegistry.<init>(GlobalComponentRegistry.java:173)
at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:267)
at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:234)
at com.myApp.dsi.service.config.CacheConfiguration.defaultCacheManager(CacheConfiguration.java:186)
at com.myApp.dsi.service.config.CacheConfiguration$$EnhancerBySpringCGLIB$$e52c9d72.CGLIB$defaultCacheManager$2(<generated>)
at com.myApp.dsi.service.config.CacheConfiguration$$EnhancerBySpringCGLIB$$e52c9d72$$FastClassBySpringCGLIB$$25a6cc05.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363)
at com.myApp.dsi.service.config.CacheConfiguration$$EnhancerBySpringCGLIB$$e52c9d72.defaultCacheManager(<generated>)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
... 146 more
Caused by: org.infinispan.commons.CacheConfigurationException: Error starting component org.infinispan.marshall.protostream.impl.SerializationContextRegistry
at org.infinispan.factories.impl.BasicComponentRegistryImpl.startWrapper(BasicComponentRegistryImpl.java:555)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.access$700(BasicComponentRegistryImpl.java:30)
at org.infinispan.factories.impl.BasicComponentRegistryImpl$ComponentWrapper.running(BasicComponentRegistryImpl.java:770)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.startDependencies(BasicComponentRegistryImpl.java:605)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.doStartWrapper(BasicComponentRegistryImpl.java:569)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.startWrapper(BasicComponentRegistryImpl.java:547)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.access$700(BasicComponentRegistryImpl.java:30)
at org.infinispan.factories.impl.BasicComponentRegistryImpl$ComponentWrapper.running(BasicComponentRegistryImpl.java:770)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.startDependencies(BasicComponentRegistryImpl.java:605)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.doStartWrapper(BasicComponentRegistryImpl.java:569)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.startWrapper(BasicComponentRegistryImpl.java:547)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.access$700(BasicComponentRegistryImpl.java:30)
at org.infinispan.factories.impl.BasicComponentRegistryImpl$ComponentWrapper.running(BasicComponentRegistryImpl.java:770)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.findFactory(BasicComponentRegistryImpl.java:258)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.getComponent0(BasicComponentRegistryImpl.java:127)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.getComponent(BasicComponentRegistryImpl.java:65)
at org.infinispan.factories.impl.BasicComponentRegistry.getComponent(BasicComponentRegistry.java:74)
at org.infinispan.factories.GlobalComponentRegistry.<init>(GlobalComponentRegistry.java:166)
... 159 more
Caused by: org.infinispan.protostream.DescriptorParserException: Failed to resolve type of field "org.infinispan.persistence.commons.MediaType.tree". Type not found : string
at org.infinispan.protostream.descriptors.FileDescriptor.resolveFieldTypes(FileDescriptor.java:307)
at org.infinispan.protostream.descriptors.FileDescriptor.resolveDependencies(FileDescriptor.java:217)
at org.infinispan.protostream.descriptors.FileDescriptor.resolveDependencies(FileDescriptor.java:173)
at org.infinispan.protostream.descriptors.ResolutionContext.resolve(ResolutionContext.java:57)
at org.infinispan.protostream.impl.SerializationContextImpl.registerProtoFiles(SerializationContextImpl.java:117)
at org.infinispan.commons.marshall.PersistenceContextInitializerImpl.registerSchema(PersistenceContextInitializerImpl.java:44)
at org.infinispan.marshall.persistence.impl.PersistenceContextInitializerImpl.registerSchema(PersistenceContextInitializerImpl.java:70)
at org.infinispan.marshall.protostream.impl.SerializationContextRegistryImpl$MarshallerContext.lambda$update$0(SerializationContextRegistryImpl.java:123)
at org.infinispan.marshall.protostream.impl.SerializationContextRegistryImpl$MarshallerContext$$Lambda$587/0000000000000000.accept(Unknown Source)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
at org.infinispan.marshall.protostream.impl.SerializationContextRegistryImpl$MarshallerContext.update(SerializationContextRegistryImpl.java:122)
at org.infinispan.marshall.protostream.impl.SerializationContextRegistryImpl.lambda$start$0(SerializationContextRegistryImpl.java:42)
at org.infinispan.marshall.protostream.impl.SerializationContextRegistryImpl$$Lambda$586/0000000000000000.accept(Unknown Source)
at org.infinispan.marshall.protostream.impl.SerializationContextRegistryImpl.update(SerializationContextRegistryImpl.java:86)
at org.infinispan.marshall.protostream.impl.SerializationContextRegistryImpl.start(SerializationContextRegistryImpl.java:35)
at org.infinispan.marshall.protostream.impl.CorePackageImpl$1.start(CorePackageImpl.java:33)
at org.infinispan.marshall.protostream.impl.CorePackageImpl$1.start(CorePackageImpl.java:27)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.invokeStart(BasicComponentRegistryImpl.java:587)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.doStartWrapper(BasicComponentRegistryImpl.java:578)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.startWrapper(BasicComponentRegistryImpl.java:547)
{quote}
and this is my defaultCacheManager configuration :
{quote}{{}}{{@Bean(destroyMethod = "stop")}}
{{ @Conditional(InfinispanCondition.class)}}
{{ public DefaultCacheManager defaultCacheManager(Set<InfinispanCacheConfigurer> configurers,}}
{{ @Value("${uwp.deployment.external-ip:#\{null}}") String externalIp) throws Exception {}}
{{ Default properties = cacheProperties.getDefault();}}{{ConfigurationBuilder configurationBuilder = new ConfigurationBuilder();}}
{{ // @formatter:off}}
{{ configurationBuilder}}
{{ .statistics().enabled(properties.isStatisticsEnabled())}}
{{ .memory()}}
{{ .evictionType(properties.getEvictionType()).size(properties.getEvictionSize())}}
{{ .expiration()}}
{{ .lifespan(properties.getExpirationLifetime().toMillis())}}
{{ .maxIdle(properties.getExpirationMaxIdle().toMillis());}}
{{ if (properties.isPersistenceEnabled()) {}}
{{ configurationBuilder.persistence()}}
{{ .passivation(properties.isPersistencePassivationEnabled())}}
{{ .addSingleFileStore()}}
{{ .purgeOnStartup(properties.isPersistencePurgeOnStartup())}}
{{ .maxEntries(properties.getPersistenceMaxEntries())}}
{{ .location(System.getProperty("java.io.tmpdir") + "/wap-caches");}}
{{ }}}
{{ // @formatter:on}}{{GlobalConfigurationBuilder globalConfigurationBuilder = new GlobalConfigurationBuilder();}}
{{ globalConfigurationBuilder.jmx().domain("infinispan").enable();}}
{{ if (!isLocal) {}}
{{ configurationBuilder.clustering().stateTransfer().awaitInitialTransfer(false);}}
{{ globalConfigurationBuilder}}
{{ .transport()}}
{{ .defaultTransport()}}
{{ .clusterName("infinispan-cluster")}}
{{ .jgroups()}}
{{ .transport(new JGroupsTransport(createChannel(cacheProperties, externalIp)));}}
{{ }}}
{{ globalConfigurationBuilder.defaultCacheName("default");}}
{{ // @formatter:off}}
{{ globalConfigurationBuilder}}
{{ .serialization()}}
{{ .marshaller(new JavaSerializationMarshaller())}}
{{ .whiteList()}}
{{ .addRegexp(".*");}}
{{ globalConfigurationBuilder}}
{{ .serialization()}}
{{ .whiteList()}}
{{ .addRegexp(".*");}}
{{ // @formatter:on}}
{{ DefaultCacheManager cacheManager = new DefaultCacheManager(globalConfigurationBuilder.build(),}}
{{ configurationBuilder.build());}}
{{ configurers.forEach(c -> c.configureCache(cacheManager));}}
{{ return cacheManager;}}
{{}}}
{quote}
{{Have you an idea where it come from and how I can solve this issue ?}}
{{Thanks,}}
--
This message was sent by Atlassian Jira
(v8.13.1#813001)
3 years, 10 months
[Red Hat JIRA] (ISPN-12717) DefaultConflictManager.getAllVersions fails in transactional caches
by Dan Berindei (Jira)
[ https://issues.redhat.com/browse/ISPN-12717?page=com.atlassian.jira.plugi... ]
Dan Berindei updated ISPN-12717:
--------------------------------
Git Pull Request: https://github.com/infinispan/infinispan/pull/9051, https://github.com/infinispan/infinispan/pull/9052 (was: https://github.com/infinispan/infinispan/pull/9051)
> DefaultConflictManager.getAllVersions fails in transactional caches
> -------------------------------------------------------------------
>
> Key: ISPN-12717
> URL: https://issues.redhat.com/browse/ISPN-12717
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> Affects Versions: 12.0.0.Final
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Priority: Major
> Fix For: 12.1.0.Final
>
>
> {noformat}
> java.lang.ClassCastException: class org.infinispan.container.entries.VersionedRepeatableReadEntry cannot be cast to class org.infinispan.container.entries.InternalCacheEntry (org.infinispan.container.entries.VersionedRepeatableReadEntry and org.infinispan.container.entries.InternalCacheEntry are in unnamed module of loader 'app')
> at org.infinispan.conflict.impl.DefaultConflictManager$VersionRequest.start(DefaultConflictManager.java:393)
> at org.infinispan.conflict.impl.DefaultConflictManager$VersionRequest.<init>(DefaultConflictManager.java:365)
> at org.infinispan.conflict.impl.DefaultConflictManager.lambda$getAllVersions$0(DefaultConflictManager.java:174)
> at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1224)
> at org.infinispan.conflict.impl.DefaultConflictManager.getAllVersions(DefaultConflictManager.java:174)
> at org.infinispan.conflict.impl.ConflictManagerTest.getAllVersions(ConflictManagerTest.java:270)
> at org.infinispan.conflict.impl.ConflictManagerTest.compareCacheValuesForKey(ConflictManagerTest.java:222)
> at org.infinispan.conflict.impl.ConflictManagerTest.testAllVersionsOfKeyReturned(ConflictManagerTest.java:134)
> {noformat}
--
This message was sent by Atlassian Jira
(v8.13.1#813001)
3 years, 10 months
[Red Hat JIRA] (ISPN-12715) Conflict resolution failure logged at debug level
by Dan Berindei (Jira)
[ https://issues.redhat.com/browse/ISPN-12715?page=com.atlassian.jira.plugi... ]
Dan Berindei updated ISPN-12715:
--------------------------------
Git Pull Request: https://github.com/infinispan/infinispan/pull/9051, https://github.com/infinispan/infinispan/pull/9052 (was: https://github.com/infinispan/infinispan/pull/9051)
> Conflict resolution failure logged at debug level
> -------------------------------------------------
>
> Key: ISPN-12715
> URL: https://issues.redhat.com/browse/ISPN-12715
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> Affects Versions: 11.0.9.Final, 12.0.0.Final
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Priority: Major
> Fix For: 12.1.0.Final, 11.0.10.Final
>
>
> When conflict resolution fails, an ambiguous error message is logged, and the details are only logged at the debug level:
> {noformat}
> 13:11:27,305+0100 ERROR [org.infinispan.conflict.impl.DefaultConflictManager] (non-blocking-thread--p2-t1) Cache org.infinispan.AdvancedCache encountered exception whilst trying to resolve conflicts on merge: java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Cannot create a transactional context without a valid Transaction instance.
> 13:11:27,307+0100 DEBUG [org.infinispan.CLUSTER] (non-blocking-thread--p2-t1) ISPN000524: Conflict resolution failed for cache C with topology CacheTopology{id=50, phase=CONFLICT_RESOLUTION, rebalanceId=15, currentCH=DefaultConsistentHash{ns=256, owners = (3)[D-32271: 128+128, C-48322: 64+64, A-7433: 64+64]}, pendingCH=null, unionCH=null, actualMembers=[D-32271, C-48322, A-7433], persistentUUIDs=[00355068-c9b0-465f-9be8-3bb214f7af74, 8a353c3d-8d9f-41b4-a3ae-81cb15336e0a, 07936251-a5c8-480b-ad24-fa6b804c60c5]}: java.lang.IllegalArgumentException: Cannot create a transactional context without a valid Transaction instance.
> at org.infinispan.context.impl.TransactionalInvocationContextFactory.createInvocationContext(TransactionalInvocationContextFactory.java:63) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at org.infinispan.cache.impl.InvocationHelper.createInvocationContextWithImplicitTransaction(InvocationHelper.java:174) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at org.infinispan.cache.impl.InvocationHelper.lambda$new$0(InvocationHelper.java:47) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at org.infinispan.cache.impl.DecoratedCache.writeContext(DecoratedCache.java:740) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at org.infinispan.cache.impl.InvocationHelper.invokeAsync(InvocationHelper.java:129) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at org.infinispan.cache.impl.CacheImpl.putAsync(CacheImpl.java:1398) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at org.infinispan.cache.impl.DecoratedCache.putAsync(DecoratedCache.java:683) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at org.infinispan.cache.impl.AbstractDelegatingAdvancedCache.putAsync(AbstractDelegatingAdvancedCache.java:338) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at org.infinispan.cache.impl.EncoderCache.putAsync(EncoderCache.java:456) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at org.infinispan.conflict.impl.DefaultConflictManager.lambda$doResolveConflicts$7(DefaultConflictManager.java:324) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) [rt.jar:1.8.0_275]
> at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) [rt.jar:1.8.0_275]
> at org.infinispan.conflict.impl.DefaultConflictManager$ReplicaSpliterator.tryAdvance(DefaultConflictManager.java:498) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at java.util.Spliterator.forEachRemaining(Spliterator.java:326) [rt.jar:1.8.0_275]
> at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) [rt.jar:1.8.0_275]
> at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) [rt.jar:1.8.0_275]
> at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) [rt.jar:1.8.0_275]
> at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) [rt.jar:1.8.0_275]
> at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) [rt.jar:1.8.0_275]
> at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:485) [rt.jar:1.8.0_275]
> at org.infinispan.conflict.impl.DefaultConflictManager.doResolveConflicts(DefaultConflictManager.java:282) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at org.infinispan.conflict.impl.DefaultConflictManager.lambda$resolveConflicts$1(DefaultConflictManager.java:249) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> {noformat}
--
This message was sent by Atlassian Jira
(v8.13.1#813001)
3 years, 10 months
[Red Hat JIRA] (ISPN-12725) Conflict resolution fails in transactional cache with auto-commit disabled
by Dan Berindei (Jira)
[ https://issues.redhat.com/browse/ISPN-12725?page=com.atlassian.jira.plugi... ]
Dan Berindei updated ISPN-12725:
--------------------------------
Git Pull Request: https://github.com/infinispan/infinispan/pull/9051, https://github.com/infinispan/infinispan/pull/9052 (was: https://github.com/infinispan/infinispan/pull/9051)
> Conflict resolution fails in transactional cache with auto-commit disabled
> --------------------------------------------------------------------------
>
> Key: ISPN-12725
> URL: https://issues.redhat.com/browse/ISPN-12725
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> Affects Versions: 11.0.9.Final, 12.0.0.Final
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Priority: Major
> Fix For: 12.1.0.Final, 11.0.10.Final
>
>
> Conflict resolution is not wrapping cache write operations in explicit transactions. If the cache has auto-commit disabled, conflict resolution fails with this exception:
> {noformat}
> 13:11:27,307+0100 DEBUG [org.infinispan.CLUSTER] (non-blocking-thread--p2-t1) ISPN000524: Conflict resolution failed for cache C with topology CacheTopology{id=50, phase=CONFLICT_RESOLUTION, rebalanceId=15, currentCH=DefaultConsistentHash{ns=256, owners = (3)[D-32271: 128+128, C-48322: 64+64, A-7433: 64+64]}, pendingCH=null, unionCH=null, actualMembers=[D-32271, C-48322, A-7433], persistentUUIDs=[00355068-c9b0-465f-9be8-3bb214f7af74, 8a353c3d-8d9f-41b4-a3ae-81cb15336e0a, 07936251-a5c8-480b-ad24-fa6b804c60c5]}: java.lang.IllegalArgumentException: Cannot create a transactional context without a valid Transaction instance.
> at org.infinispan.context.impl.TransactionalInvocationContextFactory.createInvocationContext(TransactionalInvocationContextFactory.java:63) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at org.infinispan.cache.impl.InvocationHelper.createInvocationContextWithImplicitTransaction(InvocationHelper.java:174) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at org.infinispan.cache.impl.InvocationHelper.lambda$new$0(InvocationHelper.java:47) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at org.infinispan.cache.impl.DecoratedCache.writeContext(DecoratedCache.java:740) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at org.infinispan.cache.impl.InvocationHelper.invokeAsync(InvocationHelper.java:129) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at org.infinispan.cache.impl.CacheImpl.putAsync(CacheImpl.java:1398) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at org.infinispan.cache.impl.DecoratedCache.putAsync(DecoratedCache.java:683) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at org.infinispan.cache.impl.AbstractDelegatingAdvancedCache.putAsync(AbstractDelegatingAdvancedCache.java:338) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at org.infinispan.cache.impl.EncoderCache.putAsync(EncoderCache.java:456) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at org.infinispan.conflict.impl.DefaultConflictManager.lambda$doResolveConflicts$7(DefaultConflictManager.java:324) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) [rt.jar:1.8.0_275]
> at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) [rt.jar:1.8.0_275]
> at org.infinispan.conflict.impl.DefaultConflictManager$ReplicaSpliterator.tryAdvance(DefaultConflictManager.java:498) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at java.util.Spliterator.forEachRemaining(Spliterator.java:326) [rt.jar:1.8.0_275]
> at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) [rt.jar:1.8.0_275]
> at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) [rt.jar:1.8.0_275]
> at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) [rt.jar:1.8.0_275]
> at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) [rt.jar:1.8.0_275]
> at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) [rt.jar:1.8.0_275]
> at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:485) [rt.jar:1.8.0_275]
> at org.infinispan.conflict.impl.DefaultConflictManager.doResolveConflicts(DefaultConflictManager.java:282) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at org.infinispan.conflict.impl.DefaultConflictManager.lambda$resolveConflicts$1(DefaultConflictManager.java:249) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> {noformat}
--
This message was sent by Atlassian Jira
(v8.13.1#813001)
3 years, 10 months
[Red Hat JIRA] (ISPN-12725) Conflict resolution fails in transactional cache with auto-commit disabled
by Dan Berindei (Jira)
[ https://issues.redhat.com/browse/ISPN-12725?page=com.atlassian.jira.plugi... ]
Dan Berindei updated ISPN-12725:
--------------------------------
Git Pull Request: https://github.com/infinispan/infinispan/pull/9051
Status: Pull Request Sent (was: Open)
> Conflict resolution fails in transactional cache with auto-commit disabled
> --------------------------------------------------------------------------
>
> Key: ISPN-12725
> URL: https://issues.redhat.com/browse/ISPN-12725
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> Affects Versions: 11.0.9.Final, 12.0.0.Final
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Priority: Major
> Fix For: 12.1.0.Final, 11.0.10.Final
>
>
> Conflict resolution is not wrapping cache write operations in explicit transactions. If the cache has auto-commit disabled, conflict resolution fails with this exception:
> {noformat}
> 13:11:27,307+0100 DEBUG [org.infinispan.CLUSTER] (non-blocking-thread--p2-t1) ISPN000524: Conflict resolution failed for cache C with topology CacheTopology{id=50, phase=CONFLICT_RESOLUTION, rebalanceId=15, currentCH=DefaultConsistentHash{ns=256, owners = (3)[D-32271: 128+128, C-48322: 64+64, A-7433: 64+64]}, pendingCH=null, unionCH=null, actualMembers=[D-32271, C-48322, A-7433], persistentUUIDs=[00355068-c9b0-465f-9be8-3bb214f7af74, 8a353c3d-8d9f-41b4-a3ae-81cb15336e0a, 07936251-a5c8-480b-ad24-fa6b804c60c5]}: java.lang.IllegalArgumentException: Cannot create a transactional context without a valid Transaction instance.
> at org.infinispan.context.impl.TransactionalInvocationContextFactory.createInvocationContext(TransactionalInvocationContextFactory.java:63) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at org.infinispan.cache.impl.InvocationHelper.createInvocationContextWithImplicitTransaction(InvocationHelper.java:174) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at org.infinispan.cache.impl.InvocationHelper.lambda$new$0(InvocationHelper.java:47) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at org.infinispan.cache.impl.DecoratedCache.writeContext(DecoratedCache.java:740) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at org.infinispan.cache.impl.InvocationHelper.invokeAsync(InvocationHelper.java:129) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at org.infinispan.cache.impl.CacheImpl.putAsync(CacheImpl.java:1398) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at org.infinispan.cache.impl.DecoratedCache.putAsync(DecoratedCache.java:683) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at org.infinispan.cache.impl.AbstractDelegatingAdvancedCache.putAsync(AbstractDelegatingAdvancedCache.java:338) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at org.infinispan.cache.impl.EncoderCache.putAsync(EncoderCache.java:456) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at org.infinispan.conflict.impl.DefaultConflictManager.lambda$doResolveConflicts$7(DefaultConflictManager.java:324) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) [rt.jar:1.8.0_275]
> at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) [rt.jar:1.8.0_275]
> at org.infinispan.conflict.impl.DefaultConflictManager$ReplicaSpliterator.tryAdvance(DefaultConflictManager.java:498) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at java.util.Spliterator.forEachRemaining(Spliterator.java:326) [rt.jar:1.8.0_275]
> at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) [rt.jar:1.8.0_275]
> at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) [rt.jar:1.8.0_275]
> at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) [rt.jar:1.8.0_275]
> at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) [rt.jar:1.8.0_275]
> at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) [rt.jar:1.8.0_275]
> at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:485) [rt.jar:1.8.0_275]
> at org.infinispan.conflict.impl.DefaultConflictManager.doResolveConflicts(DefaultConflictManager.java:282) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> at org.infinispan.conflict.impl.DefaultConflictManager.lambda$resolveConflicts$1(DefaultConflictManager.java:249) [infinispan-core-11.0.9.Final-redhat-00001.jar:11.0.9.Final-redhat-00001]
> {noformat}
--
This message was sent by Atlassian Jira
(v8.13.1#813001)
3 years, 10 months
[Red Hat JIRA] (ISPN-12726) Server should support a truststore for client cert validation
by Tristan Tarrant (Jira)
Tristan Tarrant created ISPN-12726:
--------------------------------------
Summary: Server should support a truststore for client cert validation
Key: ISPN-12726
URL: https://issues.redhat.com/browse/ISPN-12726
Project: Infinispan
Issue Type: Enhancement
Components: Security, Server
Affects Versions: 12.0.0.Final
Reporter: Tristan Tarrant
Assignee: Tristan Tarrant
Fix For: 12.1.0.Final
While it is possible to authenticate clients using a certificate, this requires a trust store realm which means adding all possible client certificates to the trust store. Simple validation (not authentication) of certificates based on their trust chain is currently not supported.
We should enhance the SSL server identity to support a truststore without requiring a trust realm.
{code:xml}
<security-realm name="default">
<server-identities>
<ssl>
<keystore path="server.pfx" keystore-password="secret" alias="server"/>
<truststore path="ca.pfx" password="secret"/>
</ssl>
</server-identities>
</security-realm>
{code}
If a truststore is present, client cert will be required on incoming connections.
--
This message was sent by Atlassian Jira
(v8.13.1#813001)
3 years, 10 months