[JBoss JIRA] (ISPN-10935) No marshaller registered for Java type java.util.UUID
by Joaquim Mascarenhas (Jira)
[ https://issues.jboss.org/browse/ISPN-10935?page=com.atlassian.jira.plugin... ]
Joaquim Mascarenhas updated ISPN-10935:
---------------------------------------
Attachment: SimpleCacheTest.java
> No marshaller registered for Java type java.util.UUID
> -----------------------------------------------------
>
> Key: ISPN-10935
> URL: https://issues.jboss.org/browse/ISPN-10935
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 10.0.1.Final
> Environment: Java version: openjdk version "13" 2019-09-17
> Infinispan dependencies:
> <dependency>
> <groupId>org.infinispan</groupId>
> <artifactId>infinispan-hibernate-cache-v53</artifactId>
> <version>10.0.1.Final</version>
> </dependency>
> <dependency>
> <groupId>org.infinispan</groupId>
> <artifactId>infinispan-jcache</artifactId>
> <version>10.0.1.Final</version>
> </dependency>
> Reporter: Joaquim Mascarenhas
> Priority: Blocker
> Attachments: SimpleCacheTest.java
>
>
> Project is based on Wicket with hibernate and infinispan. Page render tests are failing after I updated infinispan version to 10.0.1.Final.
> Works if I change version to 9.4.16.Final.
> Accessing cache using javax.cache fails:
> *imports*
> import javax.cache.Cache;
> import javax.cache.CacheManager;
> import javax.cache.Caching;
> import javax.cache.configuration.MutableConfiguration;
> import javax.cache.expiry.Duration;
> import javax.cache.expiry.ModifiedExpiryPolicy;
> import javax.cache.integration.CacheLoader;
> import javax.cache.spi.CachingProvider;
> *Initialize cache*
> final CachingProvider cachingProvider = Caching.getCachingProvider();
> final CacheManager cacheManager = cachingProvider.getCacheManager();
> final MutableConfiguration<UUID,CachedImageInfoList> config = new MutableConfiguration<>();
> config.setTypes( UUID.class, CachedImageInfoList.class );
> config.setStoreByValue( false );
> config.setExpiryPolicyFactory( ModifiedExpiryPolicy.factoryOf( Duration.FIVE_MINUTES ) );
> config.setReadThrough( true );
> config.setCacheLoaderFactory( () -> new CacheLoader<>() { ... }
> cache = cacheManager.createCache( SubdomainHeaderLogoImageTag.class.getName(), config );
> *Fails when trying to retrieve*
> cache.get( subdomainUnid );
> Caused by: javax.cache.CacheException: org.infinispan.persistence.spi.PersistenceException: org.infinispan.commons.marshall.MarshallingException: No marshaller registered for Java type java.util.UUID
> at org.infinispan.jcache.Exceptions.launderException(Exceptions.java:70)
> at org.infinispan.jcache.Exceptions.launderException(Exceptions.java:78)
> at org.infinispan.jcache.embedded.JCache.get(JCache.java:191)
> at com.windcam.web.SubdomainHeaderLogoImageTag.getCachedImageInfo(SubdomainHeaderLogoImageTag.java:113)
> at com.windcam.web.SubdomainHeaderLogoImageTag.<init>(SubdomainHeaderLogoImageTag.java:71)
> at com.windcam.web.SubdomainHeaderLogoImageTag.<init>(SubdomainHeaderLogoImageTag.java:67)
> at com.windcam.web.SubdomainManagementListPage$1.populateItem(SubdomainManagementListPage.java:26)
> at org.apache.wicket.markup.html.list.ListView.onPopulate(ListView.java:523)
> at org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:124)
> at org.apache.wicket.Component.beforeRender(Component.java:939)
> at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1754)
> ... 99 more
> Caused by: org.infinispan.persistence.spi.PersistenceException: org.infinispan.commons.marshall.MarshallingException: No marshaller registered for Java type java.util.UUID
> at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.marshall(MarshallableEntryImpl.java:211)
> at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.<init>(MarshallableEntryImpl.java:36)
> at org.infinispan.marshall.persistence.impl.MarshalledEntryFactoryImpl.create(MarshalledEntryFactoryImpl.java:64)
> at org.infinispan.jcache.embedded.JCacheLoaderAdapter.loadEntry(JCacheLoaderAdapter.java:51)
> at org.infinispan.persistence.manager.PersistenceManagerImpl.loadFromAllStoresSync(PersistenceManagerImpl.java:830)
> at org.infinispan.persistence.manager.PersistenceManagerImpl.lambda$loadFromAllStores$19(PersistenceManagerImpl.java:848)
> at org.infinispan.persistence.manager.PersistenceManagerImpl.lambda$supplyOnPersistenceExAndContinue$9(PersistenceManagerImpl.java:559)
> at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1771)
> at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
> at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
> at java.base/java.lang.Thread.run(Thread.java:830)
> Caused by: org.infinispan.commons.marshall.MarshallingException: No marshaller registered for Java type java.util.UUID
> at org.infinispan.marshall.persistence.impl.PersistenceMarshallerImpl.objectToBuffer(PersistenceMarshallerImpl.java:164)
> at org.infinispan.marshall.persistence.impl.PersistenceMarshallerImpl.objectToBuffer(PersistenceMarshallerImpl.java:132)
> at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.marshall(MarshallableEntryImpl.java:209)
> ... 10 more
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 12 months
[JBoss JIRA] (ISPN-10935) No marshaller registered for Java type java.util.UUID
by Joaquim Mascarenhas (Jira)
[ https://issues.jboss.org/browse/ISPN-10935?page=com.atlassian.jira.plugin... ]
Joaquim Mascarenhas updated ISPN-10935:
---------------------------------------
Description:
Project is based on Wicket with hibernate and infinispan. Page render tests are failing after I updated infinispan version to 10.0.1.Final.
Works if I change version to 9.4.16.Final.
Accessing cache using javax.cache fails:
*imports*
import javax.cache.Cache;
import javax.cache.CacheManager;
import javax.cache.Caching;
import javax.cache.configuration.MutableConfiguration;
import javax.cache.expiry.Duration;
import javax.cache.expiry.ModifiedExpiryPolicy;
import javax.cache.integration.CacheLoader;
import javax.cache.spi.CachingProvider;
*Initialize cache*
final CachingProvider cachingProvider = Caching.getCachingProvider();
final CacheManager cacheManager = cachingProvider.getCacheManager();
final MutableConfiguration<UUID,CachedImageInfoList> config = new MutableConfiguration<>();
config.setTypes( UUID.class, CachedImageInfoList.class );
config.setStoreByValue( false );
config.setExpiryPolicyFactory( ModifiedExpiryPolicy.factoryOf( Duration.FIVE_MINUTES ) );
config.setReadThrough( true );
config.setCacheLoaderFactory( () -> new CacheLoader<>() { ... }
cache = cacheManager.createCache( SubdomainHeaderLogoImageTag.class.getName(), config );
*Fails when trying to retrieve*
cache.get( subdomainUnid );
Caused by: javax.cache.CacheException: org.infinispan.persistence.spi.PersistenceException: org.infinispan.commons.marshall.MarshallingException: No marshaller registered for Java type java.util.UUID
at org.infinispan.jcache.Exceptions.launderException(Exceptions.java:70)
at org.infinispan.jcache.Exceptions.launderException(Exceptions.java:78)
at org.infinispan.jcache.embedded.JCache.get(JCache.java:191)
at com.windcam.web.SubdomainHeaderLogoImageTag.getCachedImageInfo(SubdomainHeaderLogoImageTag.java:113)
at com.windcam.web.SubdomainHeaderLogoImageTag.<init>(SubdomainHeaderLogoImageTag.java:71)
at com.windcam.web.SubdomainHeaderLogoImageTag.<init>(SubdomainHeaderLogoImageTag.java:67)
at com.windcam.web.SubdomainManagementListPage$1.populateItem(SubdomainManagementListPage.java:26)
at org.apache.wicket.markup.html.list.ListView.onPopulate(ListView.java:523)
at org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:124)
at org.apache.wicket.Component.beforeRender(Component.java:939)
at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1754)
... 99 more
Caused by: org.infinispan.persistence.spi.PersistenceException: org.infinispan.commons.marshall.MarshallingException: No marshaller registered for Java type java.util.UUID
at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.marshall(MarshallableEntryImpl.java:211)
at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.<init>(MarshallableEntryImpl.java:36)
at org.infinispan.marshall.persistence.impl.MarshalledEntryFactoryImpl.create(MarshalledEntryFactoryImpl.java:64)
at org.infinispan.jcache.embedded.JCacheLoaderAdapter.loadEntry(JCacheLoaderAdapter.java:51)
at org.infinispan.persistence.manager.PersistenceManagerImpl.loadFromAllStoresSync(PersistenceManagerImpl.java:830)
at org.infinispan.persistence.manager.PersistenceManagerImpl.lambda$loadFromAllStores$19(PersistenceManagerImpl.java:848)
at org.infinispan.persistence.manager.PersistenceManagerImpl.lambda$supplyOnPersistenceExAndContinue$9(PersistenceManagerImpl.java:559)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1771)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:830)
Caused by: org.infinispan.commons.marshall.MarshallingException: No marshaller registered for Java type java.util.UUID
at org.infinispan.marshall.persistence.impl.PersistenceMarshallerImpl.objectToBuffer(PersistenceMarshallerImpl.java:164)
at org.infinispan.marshall.persistence.impl.PersistenceMarshallerImpl.objectToBuffer(PersistenceMarshallerImpl.java:132)
at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.marshall(MarshallableEntryImpl.java:209)
... 10 more
was:
Project is based on Wicket with hibernate and infinispan. Page render tests are failing after I updated infinispan version to 10.0.1.Final.
Works if I change version to 9.4.16.Final.
Accessing cache using javax.cache fails:
*imports*
import javax.cache.Cache;
import javax.cache.CacheManager;
import javax.cache.Caching;
import javax.cache.configuration.MutableConfiguration;
import javax.cache.expiry.Duration;
import javax.cache.expiry.ModifiedExpiryPolicy;
import javax.cache.integration.CacheLoader;
import javax.cache.spi.CachingProvider;
*Initialize cache*
final CachingProvider cachingProvider = Caching.getCachingProvider();
final CacheManager cacheManager = cachingProvider.getCacheManager();
final MutableConfiguration<UUID,CachedImageInfoList> config = new MutableConfiguration<>();
config.setTypes( UUID.class, CachedImageInfoList.class );
config.setStoreByValue( false );
config.setExpiryPolicyFactory( ModifiedExpiryPolicy.factoryOf( Duration.FIVE_MINUTES ) );
config.setReadThrough( true );
config.setCacheLoaderFactory( () -> new CacheLoader<>() { ... }
cache = cacheManager.createCache( SubdomainHeaderLogoImageTag.class.getName(), config );
* Fails when trying to retrieve*
cache.get( subdomainUnid );
Caused by: javax.cache.CacheException: org.infinispan.persistence.spi.PersistenceException: org.infinispan.commons.marshall.MarshallingException: No marshaller registered for Java type java.util.UUID
at org.infinispan.jcache.Exceptions.launderException(Exceptions.java:70)
at org.infinispan.jcache.Exceptions.launderException(Exceptions.java:78)
at org.infinispan.jcache.embedded.JCache.get(JCache.java:191)
at com.windcam.web.SubdomainHeaderLogoImageTag.getCachedImageInfo(SubdomainHeaderLogoImageTag.java:113)
at com.windcam.web.SubdomainHeaderLogoImageTag.<init>(SubdomainHeaderLogoImageTag.java:71)
at com.windcam.web.SubdomainHeaderLogoImageTag.<init>(SubdomainHeaderLogoImageTag.java:67)
at com.windcam.web.SubdomainManagementListPage$1.populateItem(SubdomainManagementListPage.java:26)
at org.apache.wicket.markup.html.list.ListView.onPopulate(ListView.java:523)
at org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:124)
at org.apache.wicket.Component.beforeRender(Component.java:939)
at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1754)
... 99 more
Caused by: org.infinispan.persistence.spi.PersistenceException: org.infinispan.commons.marshall.MarshallingException: No marshaller registered for Java type java.util.UUID
at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.marshall(MarshallableEntryImpl.java:211)
at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.<init>(MarshallableEntryImpl.java:36)
at org.infinispan.marshall.persistence.impl.MarshalledEntryFactoryImpl.create(MarshalledEntryFactoryImpl.java:64)
at org.infinispan.jcache.embedded.JCacheLoaderAdapter.loadEntry(JCacheLoaderAdapter.java:51)
at org.infinispan.persistence.manager.PersistenceManagerImpl.loadFromAllStoresSync(PersistenceManagerImpl.java:830)
at org.infinispan.persistence.manager.PersistenceManagerImpl.lambda$loadFromAllStores$19(PersistenceManagerImpl.java:848)
at org.infinispan.persistence.manager.PersistenceManagerImpl.lambda$supplyOnPersistenceExAndContinue$9(PersistenceManagerImpl.java:559)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1771)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:830)
Caused by: org.infinispan.commons.marshall.MarshallingException: No marshaller registered for Java type java.util.UUID
at org.infinispan.marshall.persistence.impl.PersistenceMarshallerImpl.objectToBuffer(PersistenceMarshallerImpl.java:164)
at org.infinispan.marshall.persistence.impl.PersistenceMarshallerImpl.objectToBuffer(PersistenceMarshallerImpl.java:132)
at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.marshall(MarshallableEntryImpl.java:209)
... 10 more
> No marshaller registered for Java type java.util.UUID
> -----------------------------------------------------
>
> Key: ISPN-10935
> URL: https://issues.jboss.org/browse/ISPN-10935
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 10.0.1.Final
> Environment: Java version: openjdk version "13" 2019-09-17
> Infinispan dependencies:
> <dependency>
> <groupId>org.infinispan</groupId>
> <artifactId>infinispan-hibernate-cache-v53</artifactId>
> <version>10.0.1.Final</version>
> </dependency>
> <dependency>
> <groupId>org.infinispan</groupId>
> <artifactId>infinispan-jcache</artifactId>
> <version>10.0.1.Final</version>
> </dependency>
> Reporter: Joaquim Mascarenhas
> Priority: Blocker
>
> Project is based on Wicket with hibernate and infinispan. Page render tests are failing after I updated infinispan version to 10.0.1.Final.
> Works if I change version to 9.4.16.Final.
> Accessing cache using javax.cache fails:
> *imports*
> import javax.cache.Cache;
> import javax.cache.CacheManager;
> import javax.cache.Caching;
> import javax.cache.configuration.MutableConfiguration;
> import javax.cache.expiry.Duration;
> import javax.cache.expiry.ModifiedExpiryPolicy;
> import javax.cache.integration.CacheLoader;
> import javax.cache.spi.CachingProvider;
> *Initialize cache*
> final CachingProvider cachingProvider = Caching.getCachingProvider();
> final CacheManager cacheManager = cachingProvider.getCacheManager();
> final MutableConfiguration<UUID,CachedImageInfoList> config = new MutableConfiguration<>();
> config.setTypes( UUID.class, CachedImageInfoList.class );
> config.setStoreByValue( false );
> config.setExpiryPolicyFactory( ModifiedExpiryPolicy.factoryOf( Duration.FIVE_MINUTES ) );
> config.setReadThrough( true );
> config.setCacheLoaderFactory( () -> new CacheLoader<>() { ... }
> cache = cacheManager.createCache( SubdomainHeaderLogoImageTag.class.getName(), config );
> *Fails when trying to retrieve*
> cache.get( subdomainUnid );
> Caused by: javax.cache.CacheException: org.infinispan.persistence.spi.PersistenceException: org.infinispan.commons.marshall.MarshallingException: No marshaller registered for Java type java.util.UUID
> at org.infinispan.jcache.Exceptions.launderException(Exceptions.java:70)
> at org.infinispan.jcache.Exceptions.launderException(Exceptions.java:78)
> at org.infinispan.jcache.embedded.JCache.get(JCache.java:191)
> at com.windcam.web.SubdomainHeaderLogoImageTag.getCachedImageInfo(SubdomainHeaderLogoImageTag.java:113)
> at com.windcam.web.SubdomainHeaderLogoImageTag.<init>(SubdomainHeaderLogoImageTag.java:71)
> at com.windcam.web.SubdomainHeaderLogoImageTag.<init>(SubdomainHeaderLogoImageTag.java:67)
> at com.windcam.web.SubdomainManagementListPage$1.populateItem(SubdomainManagementListPage.java:26)
> at org.apache.wicket.markup.html.list.ListView.onPopulate(ListView.java:523)
> at org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:124)
> at org.apache.wicket.Component.beforeRender(Component.java:939)
> at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1754)
> ... 99 more
> Caused by: org.infinispan.persistence.spi.PersistenceException: org.infinispan.commons.marshall.MarshallingException: No marshaller registered for Java type java.util.UUID
> at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.marshall(MarshallableEntryImpl.java:211)
> at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.<init>(MarshallableEntryImpl.java:36)
> at org.infinispan.marshall.persistence.impl.MarshalledEntryFactoryImpl.create(MarshalledEntryFactoryImpl.java:64)
> at org.infinispan.jcache.embedded.JCacheLoaderAdapter.loadEntry(JCacheLoaderAdapter.java:51)
> at org.infinispan.persistence.manager.PersistenceManagerImpl.loadFromAllStoresSync(PersistenceManagerImpl.java:830)
> at org.infinispan.persistence.manager.PersistenceManagerImpl.lambda$loadFromAllStores$19(PersistenceManagerImpl.java:848)
> at org.infinispan.persistence.manager.PersistenceManagerImpl.lambda$supplyOnPersistenceExAndContinue$9(PersistenceManagerImpl.java:559)
> at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1771)
> at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
> at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
> at java.base/java.lang.Thread.run(Thread.java:830)
> Caused by: org.infinispan.commons.marshall.MarshallingException: No marshaller registered for Java type java.util.UUID
> at org.infinispan.marshall.persistence.impl.PersistenceMarshallerImpl.objectToBuffer(PersistenceMarshallerImpl.java:164)
> at org.infinispan.marshall.persistence.impl.PersistenceMarshallerImpl.objectToBuffer(PersistenceMarshallerImpl.java:132)
> at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.marshall(MarshallableEntryImpl.java:209)
> ... 10 more
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 12 months
[JBoss JIRA] (ISPN-10935) No marshaller registered for Java type java.util.UUID
by Joaquim Mascarenhas (Jira)
[ https://issues.jboss.org/browse/ISPN-10935?page=com.atlassian.jira.plugin... ]
Joaquim Mascarenhas updated ISPN-10935:
---------------------------------------
Description:
Project is based on Wicket with hibernate and infinispan. Page render tests are failing after I updated infinispan version to 10.0.1.Final.
Works if I change version to 9.4.16.Final.
Accessing cache using javax.cache fails:
*imports*
import javax.cache.Cache;
import javax.cache.CacheManager;
import javax.cache.Caching;
import javax.cache.configuration.MutableConfiguration;
import javax.cache.expiry.Duration;
import javax.cache.expiry.ModifiedExpiryPolicy;
import javax.cache.integration.CacheLoader;
import javax.cache.spi.CachingProvider;
*Initialize cache*
final CachingProvider cachingProvider = Caching.getCachingProvider();
final CacheManager cacheManager = cachingProvider.getCacheManager();
final MutableConfiguration<UUID,CachedImageInfoList> config = new MutableConfiguration<>();
config.setTypes( UUID.class, CachedImageInfoList.class );
config.setStoreByValue( false );
config.setExpiryPolicyFactory( ModifiedExpiryPolicy.factoryOf( Duration.FIVE_MINUTES ) );
config.setReadThrough( true );
config.setCacheLoaderFactory( () -> new CacheLoader<>() { ... }
cache = cacheManager.createCache( SubdomainHeaderLogoImageTag.class.getName(), config );
* Fails when trying to retrieve*
cache.get( subdomainUnid );
Caused by: javax.cache.CacheException: org.infinispan.persistence.spi.PersistenceException: org.infinispan.commons.marshall.MarshallingException: No marshaller registered for Java type java.util.UUID
at org.infinispan.jcache.Exceptions.launderException(Exceptions.java:70)
at org.infinispan.jcache.Exceptions.launderException(Exceptions.java:78)
at org.infinispan.jcache.embedded.JCache.get(JCache.java:191)
at com.windcam.web.SubdomainHeaderLogoImageTag.getCachedImageInfo(SubdomainHeaderLogoImageTag.java:113)
at com.windcam.web.SubdomainHeaderLogoImageTag.<init>(SubdomainHeaderLogoImageTag.java:71)
at com.windcam.web.SubdomainHeaderLogoImageTag.<init>(SubdomainHeaderLogoImageTag.java:67)
at com.windcam.web.SubdomainManagementListPage$1.populateItem(SubdomainManagementListPage.java:26)
at org.apache.wicket.markup.html.list.ListView.onPopulate(ListView.java:523)
at org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:124)
at org.apache.wicket.Component.beforeRender(Component.java:939)
at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1754)
... 99 more
Caused by: org.infinispan.persistence.spi.PersistenceException: org.infinispan.commons.marshall.MarshallingException: No marshaller registered for Java type java.util.UUID
at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.marshall(MarshallableEntryImpl.java:211)
at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.<init>(MarshallableEntryImpl.java:36)
at org.infinispan.marshall.persistence.impl.MarshalledEntryFactoryImpl.create(MarshalledEntryFactoryImpl.java:64)
at org.infinispan.jcache.embedded.JCacheLoaderAdapter.loadEntry(JCacheLoaderAdapter.java:51)
at org.infinispan.persistence.manager.PersistenceManagerImpl.loadFromAllStoresSync(PersistenceManagerImpl.java:830)
at org.infinispan.persistence.manager.PersistenceManagerImpl.lambda$loadFromAllStores$19(PersistenceManagerImpl.java:848)
at org.infinispan.persistence.manager.PersistenceManagerImpl.lambda$supplyOnPersistenceExAndContinue$9(PersistenceManagerImpl.java:559)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1771)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:830)
Caused by: org.infinispan.commons.marshall.MarshallingException: No marshaller registered for Java type java.util.UUID
at org.infinispan.marshall.persistence.impl.PersistenceMarshallerImpl.objectToBuffer(PersistenceMarshallerImpl.java:164)
at org.infinispan.marshall.persistence.impl.PersistenceMarshallerImpl.objectToBuffer(PersistenceMarshallerImpl.java:132)
at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.marshall(MarshallableEntryImpl.java:209)
... 10 more
was:
Project is based on Wicket with hibernate and infinispan. Page render tests are failing after I updated infinispan version to 10.0.1.Final.
Works if I change version to 9.4.16.Final.
Initializing cache using JCache fails:
final CachingProvider cachingProvider = Caching.getCachingProvider();
final CacheManager cacheManager = cachingProvider.getCacheManager();
final MutableConfiguration<UUID,CachedImageInfoList> config = new MutableConfiguration<>();
config.setTypes( UUID.class, CachedImageInfoList.class );
config.setStoreByValue( false );
config.setExpiryPolicyFactory( ModifiedExpiryPolicy.factoryOf( Duration.FIVE_MINUTES ) );
config.setReadThrough( true );
config.setCacheLoaderFactory( () -> new CacheLoader<>() {
}
Caused by: javax.cache.CacheException: org.infinispan.persistence.spi.PersistenceException: org.infinispan.commons.marshall.MarshallingException: No marshaller registered for Java type java.util.UUID
at org.infinispan.jcache.Exceptions.launderException(Exceptions.java:70)
at org.infinispan.jcache.Exceptions.launderException(Exceptions.java:78)
at org.infinispan.jcache.embedded.JCache.get(JCache.java:191)
at com.windcam.web.SubdomainHeaderLogoImageTag.getCachedImageInfo(SubdomainHeaderLogoImageTag.java:113)
at com.windcam.web.SubdomainHeaderLogoImageTag.<init>(SubdomainHeaderLogoImageTag.java:71)
at com.windcam.web.SubdomainHeaderLogoImageTag.<init>(SubdomainHeaderLogoImageTag.java:67)
at com.windcam.web.SubdomainManagementListPage$1.populateItem(SubdomainManagementListPage.java:26)
at org.apache.wicket.markup.html.list.ListView.onPopulate(ListView.java:523)
at org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:124)
at org.apache.wicket.Component.beforeRender(Component.java:939)
at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1754)
... 99 more
Caused by: org.infinispan.persistence.spi.PersistenceException: org.infinispan.commons.marshall.MarshallingException: No marshaller registered for Java type java.util.UUID
at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.marshall(MarshallableEntryImpl.java:211)
at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.<init>(MarshallableEntryImpl.java:36)
at org.infinispan.marshall.persistence.impl.MarshalledEntryFactoryImpl.create(MarshalledEntryFactoryImpl.java:64)
at org.infinispan.jcache.embedded.JCacheLoaderAdapter.loadEntry(JCacheLoaderAdapter.java:51)
at org.infinispan.persistence.manager.PersistenceManagerImpl.loadFromAllStoresSync(PersistenceManagerImpl.java:830)
at org.infinispan.persistence.manager.PersistenceManagerImpl.lambda$loadFromAllStores$19(PersistenceManagerImpl.java:848)
at org.infinispan.persistence.manager.PersistenceManagerImpl.lambda$supplyOnPersistenceExAndContinue$9(PersistenceManagerImpl.java:559)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1771)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:830)
Caused by: org.infinispan.commons.marshall.MarshallingException: No marshaller registered for Java type java.util.UUID
at org.infinispan.marshall.persistence.impl.PersistenceMarshallerImpl.objectToBuffer(PersistenceMarshallerImpl.java:164)
at org.infinispan.marshall.persistence.impl.PersistenceMarshallerImpl.objectToBuffer(PersistenceMarshallerImpl.java:132)
at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.marshall(MarshallableEntryImpl.java:209)
... 10 more
> No marshaller registered for Java type java.util.UUID
> -----------------------------------------------------
>
> Key: ISPN-10935
> URL: https://issues.jboss.org/browse/ISPN-10935
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 10.0.1.Final
> Environment: Java version: openjdk version "13" 2019-09-17
> Infinispan dependencies:
> <dependency>
> <groupId>org.infinispan</groupId>
> <artifactId>infinispan-hibernate-cache-v53</artifactId>
> <version>10.0.1.Final</version>
> </dependency>
> <dependency>
> <groupId>org.infinispan</groupId>
> <artifactId>infinispan-jcache</artifactId>
> <version>10.0.1.Final</version>
> </dependency>
> Reporter: Joaquim Mascarenhas
> Priority: Blocker
>
> Project is based on Wicket with hibernate and infinispan. Page render tests are failing after I updated infinispan version to 10.0.1.Final.
> Works if I change version to 9.4.16.Final.
> Accessing cache using javax.cache fails:
> *imports*
> import javax.cache.Cache;
> import javax.cache.CacheManager;
> import javax.cache.Caching;
> import javax.cache.configuration.MutableConfiguration;
> import javax.cache.expiry.Duration;
> import javax.cache.expiry.ModifiedExpiryPolicy;
> import javax.cache.integration.CacheLoader;
> import javax.cache.spi.CachingProvider;
> *Initialize cache*
> final CachingProvider cachingProvider = Caching.getCachingProvider();
> final CacheManager cacheManager = cachingProvider.getCacheManager();
> final MutableConfiguration<UUID,CachedImageInfoList> config = new MutableConfiguration<>();
> config.setTypes( UUID.class, CachedImageInfoList.class );
> config.setStoreByValue( false );
> config.setExpiryPolicyFactory( ModifiedExpiryPolicy.factoryOf( Duration.FIVE_MINUTES ) );
> config.setReadThrough( true );
> config.setCacheLoaderFactory( () -> new CacheLoader<>() { ... }
> cache = cacheManager.createCache( SubdomainHeaderLogoImageTag.class.getName(), config );
> * Fails when trying to retrieve*
> cache.get( subdomainUnid );
> Caused by: javax.cache.CacheException: org.infinispan.persistence.spi.PersistenceException: org.infinispan.commons.marshall.MarshallingException: No marshaller registered for Java type java.util.UUID
> at org.infinispan.jcache.Exceptions.launderException(Exceptions.java:70)
> at org.infinispan.jcache.Exceptions.launderException(Exceptions.java:78)
> at org.infinispan.jcache.embedded.JCache.get(JCache.java:191)
> at com.windcam.web.SubdomainHeaderLogoImageTag.getCachedImageInfo(SubdomainHeaderLogoImageTag.java:113)
> at com.windcam.web.SubdomainHeaderLogoImageTag.<init>(SubdomainHeaderLogoImageTag.java:71)
> at com.windcam.web.SubdomainHeaderLogoImageTag.<init>(SubdomainHeaderLogoImageTag.java:67)
> at com.windcam.web.SubdomainManagementListPage$1.populateItem(SubdomainManagementListPage.java:26)
> at org.apache.wicket.markup.html.list.ListView.onPopulate(ListView.java:523)
> at org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:124)
> at org.apache.wicket.Component.beforeRender(Component.java:939)
> at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1754)
> ... 99 more
> Caused by: org.infinispan.persistence.spi.PersistenceException: org.infinispan.commons.marshall.MarshallingException: No marshaller registered for Java type java.util.UUID
> at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.marshall(MarshallableEntryImpl.java:211)
> at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.<init>(MarshallableEntryImpl.java:36)
> at org.infinispan.marshall.persistence.impl.MarshalledEntryFactoryImpl.create(MarshalledEntryFactoryImpl.java:64)
> at org.infinispan.jcache.embedded.JCacheLoaderAdapter.loadEntry(JCacheLoaderAdapter.java:51)
> at org.infinispan.persistence.manager.PersistenceManagerImpl.loadFromAllStoresSync(PersistenceManagerImpl.java:830)
> at org.infinispan.persistence.manager.PersistenceManagerImpl.lambda$loadFromAllStores$19(PersistenceManagerImpl.java:848)
> at org.infinispan.persistence.manager.PersistenceManagerImpl.lambda$supplyOnPersistenceExAndContinue$9(PersistenceManagerImpl.java:559)
> at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1771)
> at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
> at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
> at java.base/java.lang.Thread.run(Thread.java:830)
> Caused by: org.infinispan.commons.marshall.MarshallingException: No marshaller registered for Java type java.util.UUID
> at org.infinispan.marshall.persistence.impl.PersistenceMarshallerImpl.objectToBuffer(PersistenceMarshallerImpl.java:164)
> at org.infinispan.marshall.persistence.impl.PersistenceMarshallerImpl.objectToBuffer(PersistenceMarshallerImpl.java:132)
> at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.marshall(MarshallableEntryImpl.java:209)
> ... 10 more
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 12 months
[JBoss JIRA] (ISPN-10935) No marshaller registered for Java type java.util.UUID
by Joaquim Mascarenhas (Jira)
[ https://issues.jboss.org/browse/ISPN-10935?page=com.atlassian.jira.plugin... ]
Joaquim Mascarenhas updated ISPN-10935:
---------------------------------------
Description:
Project is based on Wicket with hibernate and infinispan. Page render tests are failing after I updated infinispan version to 10.0.1.Final.
Works if I change version to 9.4.16.Final.
Initializing cache using JCache fails:
final CachingProvider cachingProvider = Caching.getCachingProvider();
final CacheManager cacheManager = cachingProvider.getCacheManager();
final MutableConfiguration<UUID,CachedImageInfoList> config = new MutableConfiguration<>();
config.setTypes( UUID.class, CachedImageInfoList.class );
config.setStoreByValue( false );
config.setExpiryPolicyFactory( ModifiedExpiryPolicy.factoryOf( Duration.FIVE_MINUTES ) );
config.setReadThrough( true );
config.setCacheLoaderFactory( () -> new CacheLoader<>() {
}
Caused by: javax.cache.CacheException: org.infinispan.persistence.spi.PersistenceException: org.infinispan.commons.marshall.MarshallingException: No marshaller registered for Java type java.util.UUID
at org.infinispan.jcache.Exceptions.launderException(Exceptions.java:70)
at org.infinispan.jcache.Exceptions.launderException(Exceptions.java:78)
at org.infinispan.jcache.embedded.JCache.get(JCache.java:191)
at com.windcam.web.SubdomainHeaderLogoImageTag.getCachedImageInfo(SubdomainHeaderLogoImageTag.java:113)
at com.windcam.web.SubdomainHeaderLogoImageTag.<init>(SubdomainHeaderLogoImageTag.java:71)
at com.windcam.web.SubdomainHeaderLogoImageTag.<init>(SubdomainHeaderLogoImageTag.java:67)
at com.windcam.web.SubdomainManagementListPage$1.populateItem(SubdomainManagementListPage.java:26)
at org.apache.wicket.markup.html.list.ListView.onPopulate(ListView.java:523)
at org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:124)
at org.apache.wicket.Component.beforeRender(Component.java:939)
at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1754)
... 99 more
Caused by: org.infinispan.persistence.spi.PersistenceException: org.infinispan.commons.marshall.MarshallingException: No marshaller registered for Java type java.util.UUID
at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.marshall(MarshallableEntryImpl.java:211)
at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.<init>(MarshallableEntryImpl.java:36)
at org.infinispan.marshall.persistence.impl.MarshalledEntryFactoryImpl.create(MarshalledEntryFactoryImpl.java:64)
at org.infinispan.jcache.embedded.JCacheLoaderAdapter.loadEntry(JCacheLoaderAdapter.java:51)
at org.infinispan.persistence.manager.PersistenceManagerImpl.loadFromAllStoresSync(PersistenceManagerImpl.java:830)
at org.infinispan.persistence.manager.PersistenceManagerImpl.lambda$loadFromAllStores$19(PersistenceManagerImpl.java:848)
at org.infinispan.persistence.manager.PersistenceManagerImpl.lambda$supplyOnPersistenceExAndContinue$9(PersistenceManagerImpl.java:559)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1771)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:830)
Caused by: org.infinispan.commons.marshall.MarshallingException: No marshaller registered for Java type java.util.UUID
at org.infinispan.marshall.persistence.impl.PersistenceMarshallerImpl.objectToBuffer(PersistenceMarshallerImpl.java:164)
at org.infinispan.marshall.persistence.impl.PersistenceMarshallerImpl.objectToBuffer(PersistenceMarshallerImpl.java:132)
at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.marshall(MarshallableEntryImpl.java:209)
... 10 more
was:
Project is based on Wicket with hibernate and infinispan. Page render tests are failing after I updated infinispan version to 10.0.1.Final.
Works if I change version to 9.4.16.Final.
Caused by: javax.cache.CacheException: org.infinispan.persistence.spi.PersistenceException: org.infinispan.commons.marshall.MarshallingException: No marshaller registered for Java type java.util.UUID
at org.infinispan.jcache.Exceptions.launderException(Exceptions.java:70)
at org.infinispan.jcache.Exceptions.launderException(Exceptions.java:78)
at org.infinispan.jcache.embedded.JCache.get(JCache.java:191)
at com.windcam.web.SubdomainHeaderLogoImageTag.getCachedImageInfo(SubdomainHeaderLogoImageTag.java:113)
at com.windcam.web.SubdomainHeaderLogoImageTag.<init>(SubdomainHeaderLogoImageTag.java:71)
at com.windcam.web.SubdomainHeaderLogoImageTag.<init>(SubdomainHeaderLogoImageTag.java:67)
at com.windcam.web.SubdomainManagementListPage$1.populateItem(SubdomainManagementListPage.java:26)
at org.apache.wicket.markup.html.list.ListView.onPopulate(ListView.java:523)
at org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:124)
at org.apache.wicket.Component.beforeRender(Component.java:939)
at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1754)
... 99 more
Caused by: org.infinispan.persistence.spi.PersistenceException: org.infinispan.commons.marshall.MarshallingException: No marshaller registered for Java type java.util.UUID
at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.marshall(MarshallableEntryImpl.java:211)
at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.<init>(MarshallableEntryImpl.java:36)
at org.infinispan.marshall.persistence.impl.MarshalledEntryFactoryImpl.create(MarshalledEntryFactoryImpl.java:64)
at org.infinispan.jcache.embedded.JCacheLoaderAdapter.loadEntry(JCacheLoaderAdapter.java:51)
at org.infinispan.persistence.manager.PersistenceManagerImpl.loadFromAllStoresSync(PersistenceManagerImpl.java:830)
at org.infinispan.persistence.manager.PersistenceManagerImpl.lambda$loadFromAllStores$19(PersistenceManagerImpl.java:848)
at org.infinispan.persistence.manager.PersistenceManagerImpl.lambda$supplyOnPersistenceExAndContinue$9(PersistenceManagerImpl.java:559)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1771)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:830)
Caused by: org.infinispan.commons.marshall.MarshallingException: No marshaller registered for Java type java.util.UUID
at org.infinispan.marshall.persistence.impl.PersistenceMarshallerImpl.objectToBuffer(PersistenceMarshallerImpl.java:164)
at org.infinispan.marshall.persistence.impl.PersistenceMarshallerImpl.objectToBuffer(PersistenceMarshallerImpl.java:132)
at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.marshall(MarshallableEntryImpl.java:209)
... 10 more
> No marshaller registered for Java type java.util.UUID
> -----------------------------------------------------
>
> Key: ISPN-10935
> URL: https://issues.jboss.org/browse/ISPN-10935
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 10.0.1.Final
> Environment: Java version: openjdk version "13" 2019-09-17
> Infinispan dependencies:
> <dependency>
> <groupId>org.infinispan</groupId>
> <artifactId>infinispan-hibernate-cache-v53</artifactId>
> <version>10.0.1.Final</version>
> </dependency>
> <dependency>
> <groupId>org.infinispan</groupId>
> <artifactId>infinispan-jcache</artifactId>
> <version>10.0.1.Final</version>
> </dependency>
> Reporter: Joaquim Mascarenhas
> Priority: Blocker
>
> Project is based on Wicket with hibernate and infinispan. Page render tests are failing after I updated infinispan version to 10.0.1.Final.
> Works if I change version to 9.4.16.Final.
> Initializing cache using JCache fails:
> final CachingProvider cachingProvider = Caching.getCachingProvider();
> final CacheManager cacheManager = cachingProvider.getCacheManager();
> final MutableConfiguration<UUID,CachedImageInfoList> config = new MutableConfiguration<>();
> config.setTypes( UUID.class, CachedImageInfoList.class );
> config.setStoreByValue( false );
> config.setExpiryPolicyFactory( ModifiedExpiryPolicy.factoryOf( Duration.FIVE_MINUTES ) );
> config.setReadThrough( true );
> config.setCacheLoaderFactory( () -> new CacheLoader<>() {
> }
> Caused by: javax.cache.CacheException: org.infinispan.persistence.spi.PersistenceException: org.infinispan.commons.marshall.MarshallingException: No marshaller registered for Java type java.util.UUID
> at org.infinispan.jcache.Exceptions.launderException(Exceptions.java:70)
> at org.infinispan.jcache.Exceptions.launderException(Exceptions.java:78)
> at org.infinispan.jcache.embedded.JCache.get(JCache.java:191)
> at com.windcam.web.SubdomainHeaderLogoImageTag.getCachedImageInfo(SubdomainHeaderLogoImageTag.java:113)
> at com.windcam.web.SubdomainHeaderLogoImageTag.<init>(SubdomainHeaderLogoImageTag.java:71)
> at com.windcam.web.SubdomainHeaderLogoImageTag.<init>(SubdomainHeaderLogoImageTag.java:67)
> at com.windcam.web.SubdomainManagementListPage$1.populateItem(SubdomainManagementListPage.java:26)
> at org.apache.wicket.markup.html.list.ListView.onPopulate(ListView.java:523)
> at org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:124)
> at org.apache.wicket.Component.beforeRender(Component.java:939)
> at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1754)
> ... 99 more
> Caused by: org.infinispan.persistence.spi.PersistenceException: org.infinispan.commons.marshall.MarshallingException: No marshaller registered for Java type java.util.UUID
> at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.marshall(MarshallableEntryImpl.java:211)
> at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.<init>(MarshallableEntryImpl.java:36)
> at org.infinispan.marshall.persistence.impl.MarshalledEntryFactoryImpl.create(MarshalledEntryFactoryImpl.java:64)
> at org.infinispan.jcache.embedded.JCacheLoaderAdapter.loadEntry(JCacheLoaderAdapter.java:51)
> at org.infinispan.persistence.manager.PersistenceManagerImpl.loadFromAllStoresSync(PersistenceManagerImpl.java:830)
> at org.infinispan.persistence.manager.PersistenceManagerImpl.lambda$loadFromAllStores$19(PersistenceManagerImpl.java:848)
> at org.infinispan.persistence.manager.PersistenceManagerImpl.lambda$supplyOnPersistenceExAndContinue$9(PersistenceManagerImpl.java:559)
> at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1771)
> at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
> at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
> at java.base/java.lang.Thread.run(Thread.java:830)
> Caused by: org.infinispan.commons.marshall.MarshallingException: No marshaller registered for Java type java.util.UUID
> at org.infinispan.marshall.persistence.impl.PersistenceMarshallerImpl.objectToBuffer(PersistenceMarshallerImpl.java:164)
> at org.infinispan.marshall.persistence.impl.PersistenceMarshallerImpl.objectToBuffer(PersistenceMarshallerImpl.java:132)
> at org.infinispan.marshall.persistence.impl.MarshallableEntryImpl.marshall(MarshallableEntryImpl.java:209)
> ... 10 more
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 12 months
[JBoss JIRA] (ISPN-10941) memcached endpoint is not being able to reconnect to the server
by Gustavo Lira e Silva (Jira)
Gustavo Lira e Silva created ISPN-10941:
-------------------------------------------
Summary: memcached endpoint is not being able to reconnect to the server
Key: ISPN-10941
URL: https://issues.jboss.org/browse/ISPN-10941
Project: Infinispan
Issue Type: Bug
Components: Memcached
Affects Versions: 10.0.1.Final
Reporter: Gustavo Lira e Silva
The following scenario is not working:
* Start the server
* Connect to memcached
* Store some entries
* Stop the server
* Start the server again
* Reconnect to memcached
The following exception is being thrown:
{noformat}
2019-11-11 16:53:43.360 INFO net.spy.memcached.MemcachedConnection: Setting retryQueueSize to -1
2019-11-11 16:53:43.361 INFO net.spy.memcached.MemcachedConnection: Added {QA sa=localhost/127.0.0.1:11221, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to connect queue
2019-11-11 16:53:43.363 WARN net.spy.memcached.MemcachedConnection: Could not redistribute to another node, retrying primary node for k1.
2019-11-11 16:53:43.363 INFO net.spy.memcached.MemcachedConnection: Reconnecting due to failure to connect to {QA sa=localhost/127.0.0.1:11221, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}
java.net.ConnectException: Connection refused
at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:779)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:691)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:450)
at net.spy.memcached.MemcachedConnection.run(MemcachedConnection.java:1457)
2019-11-11 16:53:43.366 WARN net.spy.memcached.MemcachedConnection: Closing, and reopening {QA sa=localhost/127.0.0.1:11221, #Rops=0, #Wops=0, #iq=1, topRop=null, topWop=null, toWrite=0, interested=0}, attempt 1.
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 12.554 sec <<< FAILURE!
testStartStop(com.example.MemcachedTest) Time elapsed: 12.472 sec <<< ERROR!
net.spy.memcached.OperationTimeoutException: Timeout waiting for value: waited 2,500 ms. Node status: Connection Status { localhost/127.0.0.1:11221 active: false, authed: true, last read: 2,508 ms ago }
at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:1240)
at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:1256)
at com.example.MemcachedTest.testStartStop(MemcachedTest.java:37)
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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Caused by: net.spy.memcached.internal.CheckedOperationTimeoutException: Timed out waiting for operation - failing node: localhost/127.0.0.1:11221
at net.spy.memcached.internal.OperationFuture.get(OperationFuture.java:167)
at net.spy.memcached.internal.GetFuture.get(GetFuture.java:69)
at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:1229)
... 31 more
{noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 12 months
[JBoss JIRA] (ISPN-10940) JPA deleteBatch should not pass empty collection to CriteriaDelete
by Ryan Emerson (Jira)
Ryan Emerson created ISPN-10940:
-----------------------------------
Summary: JPA deleteBatch should not pass empty collection to CriteriaDelete
Key: ISPN-10940
URL: https://issues.jboss.org/browse/ISPN-10940
Project: Infinispan
Issue Type: Bug
Components: Loaders and Stores
Affects Versions: 10.0.1.Final, 9.4.16.Final, 10.1.0.Beta1
Reporter: Ryan Emerson
Assignee: Ryan Emerson
Passing an empty collection to CriteriaDelete is only supported by some DB implementations, therefore {{JpaStore::deleteBatch}} should return before a {{CriteriaDelete}} instance is created when an empty iterable has been supplied.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 12 months
[JBoss JIRA] (ISPN-10939) PessimisticTxPartitionAndMergeDuringRollbackTest random failures
by Dan Berindei (Jira)
[ https://issues.jboss.org/browse/ISPN-10939?page=com.atlassian.jira.plugin... ]
Dan Berindei updated ISPN-10939:
--------------------------------
Status: Open (was: New)
> PessimisticTxPartitionAndMergeDuringRollbackTest random failures
> ----------------------------------------------------------------
>
> Key: ISPN-10939
> URL: https://issues.jboss.org/browse/ISPN-10939
> Project: Infinispan
> Issue Type: Bug
> Components: Test Suite - Core
> Affects Versions: 10.0.1.Final
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Priority: Major
> Labels: testsuite_stability
> Fix For: 10.1.0.Beta1
>
> Attachments: test.log.gz
>
>
> {{PessimisticTxPartitionAndMergeDuringRollbackTest.testPrimaryOwnerIsolatedPartitionWithDiscard[DIST_SYNC, DENY_READ_WRITES]}} sometimes fails because {{NodeC}} never rolls back {{NodeA}}'s transaction. It's normal to not roll back the transaction on {{NodeC}} while it's in {{DEGRADED_MODE}}, but it should roll back the transaction after the merge.
> {noformat}
> 16:31:28,895 TRACE (ForkThread-1,PessimisticTxPartitionAndMergeDuringRollbackTest:[]) [TransactionCoordinator] rollback transaction GlobalTx:Test-NodeA-24422:22
> 16:31:28,897 DEBUG (jgroups-7,Test-NodeC-35037:[]) [BaseTxPartitionAndMergeTest] Ignoring command RollbackCommand {gtx=GlobalTx:Test-NodeA-24422:22, cacheName='pes-cache', topologyId=13}
> 16:31:28,898 DEBUG (testng-Test:[]) [GMS] Test-NodeC-35037: installing view [Test-NodeC-35037|31] (1) [Test-NodeC-35037]
> 16:31:28,904 DEBUG (testng-Test:[]) [GMS] Test-NodeA-24422: installing view [Test-NodeA-24422|32] (3) [Test-NodeA-24422, Test-NodeB-15428, Test-NodeD-40706]
> 16:31:28,968 TRACE (transport-thread-Test-NodeC-p181-t1:[Topology-pes-cache]) [TransactionTable] Checking for transactions originated on leavers. Current cache members are [Test-NodeC-35037], remote transactions: 1
> 16:31:28,971 TRACE (transport-thread-Test-NodeC-p181-t1:[Topology-pes-cache]) [TransactionTable] Checking transaction GlobalTx:Test-NodeA-24422:22
> 16:31:28,971 TRACE (transport-thread-Test-NodeC-p181-t1:[Topology-pes-cache]) [PartitionHandlingManagerImpl] Can rollback transaction? false
> 16:31:29,113 DEBUG (testng-Test:[]) [GMS] Test-NodeC-35037: installing view MergeView::[Test-NodeC-35037|35] (4) [Test-NodeC-35037, Test-NodeA-24422, Test-NodeB-15428, Test-NodeD-40706], 2 subgroups: [Test-NodeC-35037|33] (1) [Test-NodeC-35037], [Test-NodeA-24422|34] (3) [Test-NodeA-24422, Test-NodeB-15428, Test-NodeD-40706]
> 16:31:29,291 TRACE (transport-thread-Test-NodeC-p181-t4:[Topology-pes-cache]) [TransactionTable] Checking transaction GlobalTx:Test-NodeA-24422:22
> 16:31:29,291 TRACE (transport-thread-Test-NodeC-p181-t4:[Topology-pes-cache]) [TransactionTable] No remote transactions pertain to originator(s) who have left the cluster.
> 16:31:29,435 DEBUG (testng-Test:[]) [PessimisticTxPartitionAndMergeDuringRollbackTest] Cluster merged
> 16:31:29,436 TRACE (testng-Test:[]) [PessimisticTxPartitionAndMergeDuringRollbackTest] Local tx=[], remote tx=[GlobalTx:Test-NodeA-24422:22], for cache Test-NodeC-35037
> ...
> 16:31:39,446 TRACE (testng-Test:[]) [PessimisticTxPartitionAndMergeDuringRollbackTest] Local tx=[], remote tx=[GlobalTx:Test-NodeA-24422:22], for cache Test-NodeC-35037
> 16:31:39,446 ERROR (testng-Test:[]) [TestSuiteProgress] Test failed: org.infinispan.partitionhandling.PessimisticTxPartitionAndMergeDuringRollbackTest.testPrimaryOwnerIsolatedPartitionWithDiscard[DIST_SYNC, DENY_READ_WRITES]
> java.lang.AssertionError: There are pending transactions!
> at org.testng.AssertJUnit.fail(AssertJUnit.java:59) ~[testng-6.14.3.jar:?]
> at org.testng.AssertJUnit.assertTrue(AssertJUnit.java:24) ~[testng-6.14.3.jar:?]
> at org.infinispan.test.AbstractInfinispanTest.eventually(AbstractInfinispanTest.java:250) ~[test-classes/:?]
> at org.infinispan.test.AbstractInfinispanTest.eventually(AbstractInfinispanTest.java:390) ~[test-classes/:?]
> at org.infinispan.test.MultipleCacheManagersTest.assertNoTransactions(MultipleCacheManagersTest.java:947) ~[test-classes/:?]
> at org.infinispan.partitionhandling.BaseTxPartitionAndMergeTest.finalAsserts(BaseTxPartitionAndMergeTest.java:101) ~[test-classes/:?]
> at org.infinispan.partitionhandling.BasePessimisticTxPartitionAndMergeTest.doTest(BasePessimisticTxPartitionAndMergeTest.java:83) ~[test-classes/:?]
> at org.infinispan.partitionhandling.PessimisticTxPartitionAndMergeDuringRollbackTest.testPrimaryOwnerIsolatedPartitionWithDiscard(PessimisticTxPartitionAndMergeDuringRollbackTest.java:43) ~[test-classes/:?]
> {noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 12 months
[JBoss JIRA] (ISPN-10939) PessimisticTxPartitionAndMergeDuringRollbackTest random failures
by Dan Berindei (Jira)
[ https://issues.jboss.org/browse/ISPN-10939?page=com.atlassian.jira.plugin... ]
Dan Berindei updated ISPN-10939:
--------------------------------
Attachment: test.log.gz
> PessimisticTxPartitionAndMergeDuringRollbackTest random failures
> ----------------------------------------------------------------
>
> Key: ISPN-10939
> URL: https://issues.jboss.org/browse/ISPN-10939
> Project: Infinispan
> Issue Type: Bug
> Components: Test Suite - Core
> Affects Versions: 10.0.1.Final
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Priority: Major
> Labels: testsuite_stability
> Fix For: 10.1.0.Beta1
>
> Attachments: test.log.gz
>
>
> {{PessimisticTxPartitionAndMergeDuringRollbackTest.testPrimaryOwnerIsolatedPartitionWithDiscard[DIST_SYNC, DENY_READ_WRITES]}} sometimes fails because {{NodeC}} never rolls back {{NodeA}}'s transaction. It's normal to not roll back the transaction on {{NodeC}} while it's in {{DEGRADED_MODE}}, but it should roll back the transaction after the merge.
> {noformat}
> 16:31:28,895 TRACE (ForkThread-1,PessimisticTxPartitionAndMergeDuringRollbackTest:[]) [TransactionCoordinator] rollback transaction GlobalTx:Test-NodeA-24422:22
> 16:31:28,897 DEBUG (jgroups-7,Test-NodeC-35037:[]) [BaseTxPartitionAndMergeTest] Ignoring command RollbackCommand {gtx=GlobalTx:Test-NodeA-24422:22, cacheName='pes-cache', topologyId=13}
> 16:31:28,898 DEBUG (testng-Test:[]) [GMS] Test-NodeC-35037: installing view [Test-NodeC-35037|31] (1) [Test-NodeC-35037]
> 16:31:28,904 DEBUG (testng-Test:[]) [GMS] Test-NodeA-24422: installing view [Test-NodeA-24422|32] (3) [Test-NodeA-24422, Test-NodeB-15428, Test-NodeD-40706]
> 16:31:28,968 TRACE (transport-thread-Test-NodeC-p181-t1:[Topology-pes-cache]) [TransactionTable] Checking for transactions originated on leavers. Current cache members are [Test-NodeC-35037], remote transactions: 1
> 16:31:28,971 TRACE (transport-thread-Test-NodeC-p181-t1:[Topology-pes-cache]) [TransactionTable] Checking transaction GlobalTx:Test-NodeA-24422:22
> 16:31:28,971 TRACE (transport-thread-Test-NodeC-p181-t1:[Topology-pes-cache]) [PartitionHandlingManagerImpl] Can rollback transaction? false
> 16:31:29,113 DEBUG (testng-Test:[]) [GMS] Test-NodeC-35037: installing view MergeView::[Test-NodeC-35037|35] (4) [Test-NodeC-35037, Test-NodeA-24422, Test-NodeB-15428, Test-NodeD-40706], 2 subgroups: [Test-NodeC-35037|33] (1) [Test-NodeC-35037], [Test-NodeA-24422|34] (3) [Test-NodeA-24422, Test-NodeB-15428, Test-NodeD-40706]
> 16:31:29,291 TRACE (transport-thread-Test-NodeC-p181-t4:[Topology-pes-cache]) [TransactionTable] Checking transaction GlobalTx:Test-NodeA-24422:22
> 16:31:29,291 TRACE (transport-thread-Test-NodeC-p181-t4:[Topology-pes-cache]) [TransactionTable] No remote transactions pertain to originator(s) who have left the cluster.
> 16:31:29,435 DEBUG (testng-Test:[]) [PessimisticTxPartitionAndMergeDuringRollbackTest] Cluster merged
> 16:31:29,436 TRACE (testng-Test:[]) [PessimisticTxPartitionAndMergeDuringRollbackTest] Local tx=[], remote tx=[GlobalTx:Test-NodeA-24422:22], for cache Test-NodeC-35037
> ...
> 16:31:39,446 TRACE (testng-Test:[]) [PessimisticTxPartitionAndMergeDuringRollbackTest] Local tx=[], remote tx=[GlobalTx:Test-NodeA-24422:22], for cache Test-NodeC-35037
> 16:31:39,446 ERROR (testng-Test:[]) [TestSuiteProgress] Test failed: org.infinispan.partitionhandling.PessimisticTxPartitionAndMergeDuringRollbackTest.testPrimaryOwnerIsolatedPartitionWithDiscard[DIST_SYNC, DENY_READ_WRITES]
> java.lang.AssertionError: There are pending transactions!
> at org.testng.AssertJUnit.fail(AssertJUnit.java:59) ~[testng-6.14.3.jar:?]
> at org.testng.AssertJUnit.assertTrue(AssertJUnit.java:24) ~[testng-6.14.3.jar:?]
> at org.infinispan.test.AbstractInfinispanTest.eventually(AbstractInfinispanTest.java:250) ~[test-classes/:?]
> at org.infinispan.test.AbstractInfinispanTest.eventually(AbstractInfinispanTest.java:390) ~[test-classes/:?]
> at org.infinispan.test.MultipleCacheManagersTest.assertNoTransactions(MultipleCacheManagersTest.java:947) ~[test-classes/:?]
> at org.infinispan.partitionhandling.BaseTxPartitionAndMergeTest.finalAsserts(BaseTxPartitionAndMergeTest.java:101) ~[test-classes/:?]
> at org.infinispan.partitionhandling.BasePessimisticTxPartitionAndMergeTest.doTest(BasePessimisticTxPartitionAndMergeTest.java:83) ~[test-classes/:?]
> at org.infinispan.partitionhandling.PessimisticTxPartitionAndMergeDuringRollbackTest.testPrimaryOwnerIsolatedPartitionWithDiscard(PessimisticTxPartitionAndMergeDuringRollbackTest.java:43) ~[test-classes/:?]
> {noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 12 months