[JBoss JIRA] (ISPN-10936) StaticFileResource does not detect correct media types for files
by Gustavo Fernandes (Jira)
[ https://issues.jboss.org/browse/ISPN-10936?page=com.atlassian.jira.plugin... ]
Gustavo Fernandes updated ISPN-10936:
-------------------------------------
Description: Currently it uses {{java.nio.Files.probeContentType}} which is broken, as it is environment dependent (was: Currently is uses {{java.nio.Files.probeContentType}} which is broken as it is environment dependent)
> StaticFileResource does not detect correct media types for files
> ----------------------------------------------------------------
>
> Key: ISPN-10936
> URL: https://issues.jboss.org/browse/ISPN-10936
> Project: Infinispan
> Issue Type: Bug
> Components: REST
> Affects Versions: 10.0.0.Final
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
> Priority: Major
> Fix For: 10.1.0.Beta1
>
>
> Currently it uses {{java.nio.Files.probeContentType}} which is broken, as it is environment dependent
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 2 months
[JBoss JIRA] (ISPN-10879) PersistenceIT random failures
by Diego Lovison (Jira)
[ https://issues.jboss.org/browse/ISPN-10879?page=com.atlassian.jira.plugin... ]
Diego Lovison updated ISPN-10879:
---------------------------------
Status: Pull Request Sent (was: Coding In Progress)
Git Pull Request: https://github.com/infinispan/infinispan/pull/7580/files
> PersistenceIT random failures
> -----------------------------
>
> Key: ISPN-10879
> URL: https://issues.jboss.org/browse/ISPN-10879
> Project: Infinispan
> Issue Type: Bug
> Reporter: Dan Berindei
> Assignee: Diego Lovison
> Priority: Major
> Labels: testsuite_stability
>
> {noformat}
> java.lang.NoClassDefFoundError: Could not initialize class org.infinispan.server.persistence.PersistenceIT
> {noformat}
> The reason for the error is that {{PersistenceIT}} has a static final field {{InfinispanServerRule SERVERS}}, and the {{InfinispanServerRule}} constructor may throw an exception. The first time the JVM tries to initialize the {{PersistenceIT}} class, the caller gets an {{ExceptionInInitializerError}}, but further attempts get the {{NoClassDefFoundError}} instead. And since this is all inside Surefire/JUnit, the initial {{ExceptionInInitializerError}} is ignored somewhere without being logged.
> To help debugging via logs, the constructor should be trivial, and the {{serverDriver}} should only be initialized in the {{apply()}} method.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 2 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 commented on ISPN-10935:
--------------------------------------------
Thank you [~ryanemerson]
> 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
> Assignee: Ryan Emerson
> 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)
5 years, 2 months
[JBoss JIRA] (ISPN-10879) PersistenceIT random failures
by Diego Lovison (Jira)
[ https://issues.jboss.org/browse/ISPN-10879?page=com.atlassian.jira.plugin... ]
Work on ISPN-10879 started by Diego Lovison.
--------------------------------------------
> PersistenceIT random failures
> -----------------------------
>
> Key: ISPN-10879
> URL: https://issues.jboss.org/browse/ISPN-10879
> Project: Infinispan
> Issue Type: Bug
> Reporter: Dan Berindei
> Assignee: Diego Lovison
> Priority: Major
> Labels: testsuite_stability
>
> {noformat}
> java.lang.NoClassDefFoundError: Could not initialize class org.infinispan.server.persistence.PersistenceIT
> {noformat}
> The reason for the error is that {{PersistenceIT}} has a static final field {{InfinispanServerRule SERVERS}}, and the {{InfinispanServerRule}} constructor may throw an exception. The first time the JVM tries to initialize the {{PersistenceIT}} class, the caller gets an {{ExceptionInInitializerError}}, but further attempts get the {{NoClassDefFoundError}} instead. And since this is all inside Surefire/JUnit, the initial {{ExceptionInInitializerError}} is ignored somewhere without being logged.
> To help debugging via logs, the constructor should be trivial, and the {{serverDriver}} should only be initialized in the {{apply()}} method.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 2 months
[JBoss JIRA] (ISPN-10879) PersistenceIT random failures
by Diego Lovison (Jira)
[ https://issues.jboss.org/browse/ISPN-10879?page=com.atlassian.jira.plugin... ]
Diego Lovison reassigned ISPN-10879:
------------------------------------
Assignee: Diego Lovison
> PersistenceIT random failures
> -----------------------------
>
> Key: ISPN-10879
> URL: https://issues.jboss.org/browse/ISPN-10879
> Project: Infinispan
> Issue Type: Bug
> Reporter: Dan Berindei
> Assignee: Diego Lovison
> Priority: Major
> Labels: testsuite_stability
>
> {noformat}
> java.lang.NoClassDefFoundError: Could not initialize class org.infinispan.server.persistence.PersistenceIT
> {noformat}
> The reason for the error is that {{PersistenceIT}} has a static final field {{InfinispanServerRule SERVERS}}, and the {{InfinispanServerRule}} constructor may throw an exception. The first time the JVM tries to initialize the {{PersistenceIT}} class, the caller gets an {{ExceptionInInitializerError}}, but further attempts get the {{NoClassDefFoundError}} instead. And since this is all inside Surefire/JUnit, the initial {{ExceptionInInitializerError}} is ignored somewhere without being logged.
> To help debugging via logs, the constructor should be trivial, and the {{serverDriver}} should only be initialized in the {{apply()}} method.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 2 months
[JBoss JIRA] (ISPN-10879) PersistenceIT random failures
by Diego Lovison (Jira)
[ https://issues.jboss.org/browse/ISPN-10879?page=com.atlassian.jira.plugin... ]
Diego Lovison updated ISPN-10879:
---------------------------------
Status: Open (was: New)
> PersistenceIT random failures
> -----------------------------
>
> Key: ISPN-10879
> URL: https://issues.jboss.org/browse/ISPN-10879
> Project: Infinispan
> Issue Type: Bug
> Reporter: Dan Berindei
> Assignee: Diego Lovison
> Priority: Major
> Labels: testsuite_stability
>
> {noformat}
> java.lang.NoClassDefFoundError: Could not initialize class org.infinispan.server.persistence.PersistenceIT
> {noformat}
> The reason for the error is that {{PersistenceIT}} has a static final field {{InfinispanServerRule SERVERS}}, and the {{InfinispanServerRule}} constructor may throw an exception. The first time the JVM tries to initialize the {{PersistenceIT}} class, the caller gets an {{ExceptionInInitializerError}}, but further attempts get the {{NoClassDefFoundError}} instead. And since this is all inside Surefire/JUnit, the initial {{ExceptionInInitializerError}} is ignored somewhere without being logged.
> To help debugging via logs, the constructor should be trivial, and the {{serverDriver}} should only be initialized in the {{apply()}} method.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 2 months