[JBoss JIRA] (ISPN-12288) Upgrade to Hibernate Search 6.0.0.Beta10
by Gustavo Fernandes (Jira)
[ https://issues.redhat.com/browse/ISPN-12288?page=com.atlassian.jira.plugi... ]
Gustavo Fernandes updated ISPN-12288:
-------------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/infinispan/infinispan/pull/8677
> Upgrade to Hibernate Search 6.0.0.Beta10
> ----------------------------------------
>
> Key: ISPN-12288
> URL: https://issues.redhat.com/browse/ISPN-12288
> Project: Infinispan
> Issue Type: Task
> Components: Embedded Querying, Remote Querying
> Affects Versions: 12.0.0.Dev02
> Reporter: Yoann Rodière
> Assignee: Gustavo Fernandes
> Priority: Major
> Fix For: 12.0.0.Dev04
>
> Attachments: javabean-property-access.diff
>
>
> https://in.relation.to/2020/09/07/hibernate-search-6-0-0-Beta10/
> Relevant changes:
> * {{maxDepth}} was renamed to {{includeDepth}}; this may affect the mapping code for Remote Query in particular. PR: https://github.com/hibernate/hibernate-search/pull/2337
> * If Infinispan calls {{SearchResult#totalHitCount()}} anywhere, then it should now call {{total().hitCount()}} instead. {{totalHitCount}} is deprecated.
> * Some SPI interfaces related to the type model have changed and Infinispan implementation may not compile anymore. I recommend changing the Infinispan implementation the same way we changed another mapper bundled with Search (see the attached diff). An added benefit: with these changes, embedded mode will support annotations on both methods and fields (which was supported in 5 but was dropped during the migration to Search 6).
> * {{IndexFieldDescriptor}} now exposes a {{multiValuedInRoot()}} method, which I was told would be very useful to Infinispan, which currently has to go through some hoops to compute that value based on the multi-valued-ness of a field **and its parents**.
> * Timeouts are now forwarded to the entity loader. If Infinispan defines an entity loader when loading hits as entities instead of projections (and it probably should), some changes may be necessary in this area. PR: https://github.com/hibernate/hibernate-search/pull/2333
> Optionally, the new ["total hit count threshold"|https://in.relation.to/2020/09/07/hibernate-search-6-0-0-Beta10/#total-hit-count-threshold] could be used to improve performance in Infinispan, but that should probably be addressed a follow-up ticket.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years
[JBoss JIRA] (ISPN-12296) Potential race condition during wiring of EncoderCache
by Pedro Ruivo (Jira)
Pedro Ruivo created ISPN-12296:
----------------------------------
Summary: Potential race condition during wiring of EncoderCache
Key: ISPN-12296
URL: https://issues.redhat.com/browse/ISPN-12296
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 11.0.3.Final
Reporter: Paul Ferraro
Assignee: Dan Berindei
Fix For: 11.0.4.Final, 12.0.0.Dev04
Since the upgrade to 11.0.x, we have encountered intermittent cache startup failures in WildFly that look to be due to a race condition in the wiring of the EncoderCache. Unfortunately, I have been unable to reproduce the issue locally. Here is a sample stack trace demonstrating the issue taken from the CI:
{noformat}
[31m08:41:33,153 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 18) MSC000001: Failed to start service org.wildfly.clustering.infinispan.cache.web.default-server: org.jboss.msc.service.StartException in service org.wildfly.clustering.infinispan.cache.web.default-server: org.infinispan.commons.CacheConfigurationException: Component org.infinispan.factories.EncoderRegistryFactory is missing a strong reference: waiting to become INSTANTIATED but it has not been instantiated yet
at org.wildfly.clustering.service.FunctionalService.start(FunctionalService.java:66)
at org.wildfly.clustering.service.AsyncServiceConfigurator$AsyncService.lambda$start$0(AsyncServiceConfigurator.java:117)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
at java.lang.Thread.run(Thread.java:748)
at org.jboss.threads.JBossThread.run(JBossThread.java:513)
Caused by: org.infinispan.commons.CacheConfigurationException: Component org.infinispan.factories.EncoderRegistryFactory is missing a strong reference: waiting to become INSTANTIATED but it has not been instantiated yet
at org.infinispan.factories.impl.BasicComponentRegistryImpl.awaitWrapperState(BasicComponentRegistryImpl.java:692)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.getComponent0(BasicComponentRegistryImpl.java:150)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.getComponent(BasicComponentRegistryImpl.java:65)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.findFactory(BasicComponentRegistryImpl.java:257)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.getComponent0(BasicComponentRegistryImpl.java:132)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.getComponent(BasicComponentRegistryImpl.java:65)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.getComponent0(BasicComponentRegistryImpl.java:125)
at org.infinispan.factories.impl.WireContext.get(WireContext.java:20)
at org.infinispan.encoding.impl.CorePackageImpl$1.wire(CorePackageImpl.java:30)
at org.infinispan.encoding.impl.CorePackageImpl$1.wire(CorePackageImpl.java:27)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.invokeInjection(BasicComponentRegistryImpl.java:339)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.doWireWrapper(BasicComponentRegistryImpl.java:236)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.wireWrapper(BasicComponentRegistryImpl.java:217)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.getComponent0(BasicComponentRegistryImpl.java:152)
at org.infinispan.factories.impl.WireContext.get(WireContext.java:20)
at org.infinispan.encoding.CorePackageImpl$1.wire(CorePackageImpl.java:30)
at org.infinispan.encoding.CorePackageImpl$1.wire(CorePackageImpl.java:27)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.invokeInjection(BasicComponentRegistryImpl.java:339)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.wireDependencies(BasicComponentRegistryImpl.java:247)
at org.infinispan.cache.impl.EncoderCache.wireRealCache(EncoderCache.java:120)
at org.infinispan.cache.impl.CorePackageImpl$4.wire(CorePackageImpl.java:92)
at org.infinispan.cache.impl.CorePackageImpl$4.wire(CorePackageImpl.java:88)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.invokeInjection(BasicComponentRegistryImpl.java:339)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.doWireWrapper(BasicComponentRegistryImpl.java:236)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.wireWrapper(BasicComponentRegistryImpl.java:217)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.registerComponent(BasicComponentRegistryImpl.java:376)
at org.infinispan.factories.InternalCacheFactory.bootstrap(InternalCacheFactory.java:170)
at org.infinispan.factories.InternalCacheFactory.createAndWire(InternalCacheFactory.java:116)
at org.infinispan.factories.InternalCacheFactory.createCache(InternalCacheFactory.java:84)
at org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:687)
at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:643)
at org.infinispan.manager.DefaultCacheManager.internalGetCache(DefaultCacheManager.java:532)
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:510)
at org.jboss.as.clustering.infinispan.DefaultCacheContainer.getCache(DefaultCacheContainer.java:92)
at org.wildfly.clustering.infinispan.spi.service.CacheServiceConfigurator.get(CacheServiceConfigurator.java:77)
at org.wildfly.clustering.infinispan.spi.service.CacheServiceConfigurator.get(CacheServiceConfigurator.java:55)
at org.wildfly.clustering.service.FunctionalService.start(FunctionalService.java:63)
... 7 more
{noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years
[JBoss JIRA] (ISPN-12295) Protostream Processor Dependency XML is incorrect
by Pedro Ruivo (Jira)
Pedro Ruivo created ISPN-12295:
----------------------------------
Summary: Protostream Processor Dependency XML is incorrect
Key: ISPN-12295
URL: https://issues.redhat.com/browse/ISPN-12295
Project: Infinispan
Issue Type: Bug
Components: Documentation
Affects Versions: 11.0.0.CR1
Reporter: Ryan Emerson
Assignee: Ryan Emerson
Fix For: 11.0.0.Final
Currently the docs instruct the user to add {{protostream-processor}} to their {{dependenciesManagement}} section as a provided dependency. Instead it should be listed as a normal dependency on the modules required.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years
[JBoss JIRA] (ISPN-12294) Fix marshaller inconsistent configuration
by Pedro Ruivo (Jira)
Pedro Ruivo created ISPN-12294:
----------------------------------
Summary: Fix marshaller inconsistent configuration
Key: ISPN-12294
URL: https://issues.redhat.com/browse/ISPN-12294
Project: Infinispan
Issue Type: Bug
Components: Configuration
Affects Versions: 11.0.1.Final
Reporter: Katia Aresti
Assignee: Katia Aresti
Fix For: 12.0.0.Dev01
When we use the marshaller method
public ConfigurationBuilder marshaller(Class<? extends Marshaller> marshaller)
or
public ConfigurationBuilder marshaller(String marshaller)
if a mashaller was already configured, we can't override the configuration, as it may happen that the marshaller and marshaller class don't match.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years
[JBoss JIRA] (ISPN-12293) Replace Blocking Executor with an EnhancedQueueExecutor
by Pedro Ruivo (Jira)
Pedro Ruivo created ISPN-12293:
----------------------------------
Summary: Replace Blocking Executor with an EnhancedQueueExecutor
Key: ISPN-12293
URL: https://issues.redhat.com/browse/ISPN-12293
Project: Infinispan
Issue Type: Enhancement
Components: Core
Reporter: Will Burns
Assignee: Will Burns
Fix For: 12.0.0.Final, 11.0.4.Final
The blocking executor today uses a simple ThreadPoolExecutor. Unfortunately, this means that we will eventually start all configured threads (since core = max and we require a queue). Setting core size to less than max is not desirable as well as it will enqueue additional tasks rather than spawn a thread.
The EnhancedQueueExecutor does exactly what we want and also has some additional features. We should utilize this which will keep our blocking thread pool size down during times of less activity.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years
[JBoss JIRA] (ISPN-12292) compute(...) is not working without any error message if expiration parameter is used
by Pedro Ruivo (Jira)
Pedro Ruivo created ISPN-12292:
----------------------------------
Summary: compute(...) is not working without any error message if expiration parameter is used
Key: ISPN-12292
URL: https://issues.redhat.com/browse/ISPN-12292
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 10.1.1.Final
Reporter: Wolf-Dieter Fink
Assignee: Will Burns
Fix For: 9.4.20.Final, 11.0.2.Final, 12.0.0.Dev01
If the compute operation is used with expiration parameters the value is not applied without any error message!
compute() without expiration or a put() with expiration will work correctly.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years
[JBoss JIRA] (ISPN-12291) Default hibernate cache configurations use unspecified media type
by Pedro Ruivo (Jira)
Pedro Ruivo created ISPN-12291:
----------------------------------
Summary: Default hibernate cache configurations use unspecified media type
Key: ISPN-12291
URL: https://issues.redhat.com/browse/ISPN-12291
Project: Infinispan
Issue Type: Bug
Components: Hibernate Cache
Affects Versions: 12.0.0.Dev02, 11.0.3.Final
Reporter: Paul Ferraro
Assignee: Paul Ferraro
Fix For: 12.0.0.Dev03, 11.0.4.Final
Because all of the local cache configuration defined within
* hibernate/cache-commons/src/main/resources/org/infinispan/hibernate/cache/commons/builder/infinispan-configs.xml
* hibernate/cache-commons/src/main/resources/org/infinispan/hibernate/cache/commons/builder/infinispan-configs-local.xml
use the default media type (application/unknown), 2LC puts fails at runtime due to attempts to convert values from application/x-java-object to application/unknown via marshalling.
e.g.
{noformat}
[31m16:08:52,658 ERROR [org.jboss.as.ejb3.invocation] (default task-1) WFLYEJB0034: EJB Invocation failed on component StatefulBean for method public abstract void org.jboss.as.test.clustering.cluster.ejb.xpc.bean.Stateful.createEmployee(java.lang.String,java.lang.String,int): javax.ejb.EJBException: org.infinispan.commons.dataconversion.EncodingException: ISPN000934: Errors converting '{ PendingPuts=[R@Session#1776793780], Invalidators=[], LastInvalidationEnd=<none>, Removed=false}' from 'application/x-java-object' to 'application/unknown'
at org.jboss.as.ejb3@21.0.0.Beta1-SNAPSHOT//org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInNoTx(CMTTxInterceptor.java:237)
at org.jboss.as.ejb3@21.0.0.Beta1-SNAPSHOT//org.jboss.as.ejb3.tx.CMTTxInterceptor.notSupported(CMTTxInterceptor.java:371)
at org.jboss.as.ejb3@21.0.0.Beta1-SNAPSHOT//org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:147)
at org.jboss.invocation@1.6.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.invocation@1.6.0.Final//org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)
at org.jboss.weld.core@3.1.5.Final//org.jboss.weld.module.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:72)
at org.jboss.as.weld.common@21.0.0.Beta1-SNAPSHOT//org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:89)
at org.jboss.invocation@1.6.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.as.ejb3@21.0.0.Beta1-SNAPSHOT//org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
at org.jboss.invocation@1.6.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.as.ejb3@21.0.0.Beta1-SNAPSHOT//org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:47)
at org.jboss.invocation@1.6.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.as.ejb3@21.0.0.Beta1-SNAPSHOT//org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)
at org.jboss.invocation@1.6.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.as.ejb3@21.0.0.Beta1-SNAPSHOT//org.jboss.as.ejb3.deployment.processors.StartupAwaitInterceptor.processInvocation(StartupAwaitInterceptor.java:22)
at org.jboss.invocation@1.6.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.as.ejb3@21.0.0.Beta1-SNAPSHOT//org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)
at org.jboss.invocation@1.6.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.as.ejb3@21.0.0.Beta1-SNAPSHOT//org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:67)
at org.jboss.invocation@1.6.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.as.ee@21.0.0.Beta1-SNAPSHOT//org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
at org.jboss.invocation@1.6.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.invocation@1.6.0.Final//org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:60)
at org.jboss.invocation@1.6.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.invocation@1.6.0.Final//org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:438)
at org.wildfly.security.elytron-private@1.13.0.CR4//org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:628)
at org.jboss.invocation@1.6.0.Final//org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:57)
at org.jboss.invocation@1.6.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.invocation@1.6.0.Final//org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53)
at org.jboss.as.ee@21.0.0.Beta1-SNAPSHOT//org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:198)
at org.jboss.as.ee@21.0.0.Beta1-SNAPSHOT//org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:191)
at org.jboss.as.ee@21.0.0.Beta1-SNAPSHOT//org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:81)
at deployment.stateful.war//org.jboss.as.test.clustering.cluster.ejb.xpc.bean.Stateful$$$view4.createEmployee(Unknown Source)
at deployment.stateful.war//org.jboss.as.test.clustering.cluster.ejb.xpc.servlet.StatefulServlet.doGet(StatefulServlet.java:142)
at javax.servlet.api@2.0.0.Final//javax.servlet.http.HttpServlet.service(HttpServlet.java:503)
at javax.servlet.api@2.0.0.Final//javax.servlet.http.HttpServlet.service(HttpServlet.java:590)
at io.undertow.servlet@2.1.3.Final//io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
at io.undertow.servlet@2.1.3.Final//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
at io.opentracing.contrib.opentracing-jaxrs2@0.4.1//io.opentracing.contrib.jaxrs2.server.SpanFinishingFilter.doFilter(SpanFinishingFilter.java:52)
at io.undertow.servlet@2.1.3.Final//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
at io.undertow.servlet@2.1.3.Final//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
at io.undertow.servlet@2.1.3.Final//io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
at io.undertow.servlet@2.1.3.Final//io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
at io.undertow.servlet@2.1.3.Final//io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)
at io.undertow.servlet@2.1.3.Final//io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
at org.wildfly.extension.undertow@21.0.0.Beta1-SNAPSHOT//org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
at io.undertow.core@2.1.3.Final//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.servlet@2.1.3.Final//io.undertow.servlet.handlers.RedirectDirHandler.handleRequest(RedirectDirHandler.java:68)
at io.undertow.servlet@2.1.3.Final//io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:132)
at io.undertow.servlet@2.1.3.Final//io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
at io.undertow.core@2.1.3.Final//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.core@2.1.3.Final//io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
at io.undertow.servlet@2.1.3.Final//io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
at io.undertow.core@2.1.3.Final//io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
at io.undertow.servlet@2.1.3.Final//io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
at io.undertow.core@2.1.3.Final//io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
at io.undertow.core@2.1.3.Final//io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
at io.undertow.core@2.1.3.Final//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at org.wildfly.extension.undertow@21.0.0.Beta1-SNAPSHOT//org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
at io.undertow.core@2.1.3.Final//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at org.wildfly.extension.undertow@21.0.0.Beta1-SNAPSHOT//org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:68)
at io.undertow.core@2.1.3.Final//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.servlet@2.1.3.Final//io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:269)
at io.undertow.servlet@2.1.3.Final//io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:78)
at io.undertow.servlet@2.1.3.Final//io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:133)
at io.undertow.servlet@2.1.3.Final//io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:130)
at io.undertow.servlet@2.1.3.Final//io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
at io.undertow.servlet@2.1.3.Final//io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at org.wildfly.extension.undertow@21.0.0.Beta1-SNAPSHOT//org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
at org.wildfly.extension.undertow@21.0.0.Beta1-SNAPSHOT//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
at org.wildfly.extension.undertow@21.0.0.Beta1-SNAPSHOT//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
at org.wildfly.extension.undertow@21.0.0.Beta1-SNAPSHOT//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
at org.wildfly.extension.undertow@21.0.0.Beta1-SNAPSHOT//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
at org.wildfly.extension.undertow@21.0.0.Beta1-SNAPSHOT//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
at io.undertow.servlet@2.1.3.Final//io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:249)
at io.undertow.servlet@2.1.3.Final//io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:78)
at io.undertow.servlet@2.1.3.Final//io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:99)
at io.undertow.core@2.1.3.Final//io.undertow.server.Connectors.executeRootHandler(Connectors.java:370)
at io.undertow.core@2.1.3.Final//io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830)
at org.jboss.threads@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.infinispan.commons.dataconversion.EncodingException: ISPN000934: Errors converting '{ PendingPuts=[R@Session#1776793780], Invalidators=[], LastInvalidationEnd=<none>, Removed=false}' from 'application/x-java-object' to 'application/unknown'
at org.infinispan.commons@11.0.3.Final//org.infinispan.commons.dataconversion.BinaryTranscoder.transcode(BinaryTranscoder.java:66)
at org.infinispan@11.0.3.Final//org.infinispan.encoding.DataConversion.toStorage(DataConversion.java:223)
at org.infinispan@11.0.3.Final//org.infinispan.cache.impl.EncoderCache.valueToStorage(EncoderCache.java:107)
at org.infinispan@11.0.3.Final//org.infinispan.cache.impl.EncoderCache.putIfAbsent(EncoderCache.java:489)
at org.infinispan@11.0.3.Final//org.infinispan.cache.impl.AbstractDelegatingCache.putIfAbsent(AbstractDelegatingCache.java:349)
at org.infinispan.hibernate-cache@11.0.3.Final//org.infinispan.hibernate.cache.commons.access.PutFromLoadValidator.registerPendingPut(PutFromLoadValidator.java:517)
at org.infinispan.hibernate-cache@11.0.3.Final//org.infinispan.hibernate.cache.commons.access.InvalidationCacheAccessDelegate.get(InvalidationCacheAccessDelegate.java:62)
at org.infinispan.hibernate-cache@11.0.3.Final//org.infinispan.hibernate.cache.v53.impl.ReadOnlyEntityDataAccess.get(ReadOnlyEntityDataAccess.java:20)
at org.hibernate@5.3.18.Final//org.hibernate.engine.internal.CacheHelper.fromSharedCache(CacheHelper.java:32)
at org.hibernate@5.3.18.Final//org.hibernate.persister.entity.AbstractEntityPersister.isTransient(AbstractEntityPersister.java:4746)
at org.hibernate@5.3.18.Final//org.hibernate.engine.internal.ForeignKeys.isTransient(ForeignKeys.java:294)
at org.hibernate@5.3.18.Final//org.hibernate.event.internal.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:513)
at org.hibernate@5.3.18.Final//org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:102)
at org.hibernate@5.3.18.Final//org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:62)
at org.hibernate@5.3.18.Final//org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:804)
at org.hibernate@5.3.18.Final//org.hibernate.internal.SessionImpl.persist(SessionImpl.java:789)
at org.jboss.as.jpa@21.0.0.Beta1-SNAPSHOT//org.jboss.as.jpa.container.AbstractEntityManager.persist(AbstractEntityManager.java:583)
at deployment.stateful.war//org.jboss.as.test.clustering.cluster.ejb.xpc.bean.StatefulBean.createEmployee(StatefulBean.java:72)
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.jboss.as.ee@21.0.0.Beta1-SNAPSHOT//org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
at org.jboss.invocation@1.6.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.invocation@1.6.0.Final//org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)
at org.jboss.as.weld.common@21.0.0.Beta1-SNAPSHOT//org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.delegateInterception(Jsr299BindingsInterceptor.java:79)
at org.jboss.as.weld.common@21.0.0.Beta1-SNAPSHOT//org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:89)
at org.jboss.as.weld.common@21.0.0.Beta1-SNAPSHOT//org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:102)
at org.jboss.as.ee@21.0.0.Beta1-SNAPSHOT//org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
at org.jboss.invocation@1.6.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.as.ejb3@21.0.0.Beta1-SNAPSHOT//org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)
at org.jboss.invocation@1.6.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.as.jpa@21.0.0.Beta1-SNAPSHOT//org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)
at org.jboss.invocation@1.6.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.as.jpa@21.0.0.Beta1-SNAPSHOT//org.jboss.as.jpa.interceptor.SFSBInvocationInterceptor.processInvocation(SFSBInvocationInterceptor.java:57)
at org.jboss.invocation@1.6.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.as.ejb3@21.0.0.Beta1-SNAPSHOT//org.jboss.as.ejb3.component.stateful.StatefulSessionSynchronizationInterceptor.processInvocation(StatefulSessionSynchronizationInterceptor.java:136)
at org.jboss.invocation@1.6.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.as.ee@21.0.0.Beta1-SNAPSHOT//org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)
at org.jboss.invocation@1.6.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.invocation@1.6.0.Final//org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:40)
at org.jboss.invocation@1.6.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.invocation@1.6.0.Final//org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53)
at org.jboss.as.ee@21.0.0.Beta1-SNAPSHOT//org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)
at org.jboss.invocation@1.6.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.as.ejb3@21.0.0.Beta1-SNAPSHOT//org.jboss.as.ejb3.component.stateful.StatefulComponentInstanceInterceptor.processInvocation(StatefulComponentInstanceInterceptor.java:59)
at org.jboss.invocation@1.6.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.as.ejb3@21.0.0.Beta1-SNAPSHOT//org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)
at org.jboss.invocation@1.6.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.as.ejb3@21.0.0.Beta1-SNAPSHOT//org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInNoTx(CMTTxInterceptor.java:230)
... 83 more
Caused by: org.infinispan.commons.dataconversion.EncodingException: ISPN000934: Errors converting '{ PendingPuts=[R@Session#1776793780], Invalidators=[], LastInvalidationEnd=<none>, Removed=false}' from 'application/x-java-object' to 'application/unknown'
at org.infinispan.commons@11.0.3.Final//org.infinispan.commons.dataconversion.BinaryTranscoder.convertToByteArray(BinaryTranscoder.java:83)
at org.infinispan.commons@11.0.3.Final//org.infinispan.commons.dataconversion.BinaryTranscoder.transcode(BinaryTranscoder.java:44)
... 132 more
Caused by: java.io.NotSerializableException: org.infinispan.hibernate.cache.commons.access.PutFromLoadValidator$PendingPutMap
at org.jboss.marshalling.river@2.0.9.Final//org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:272)
at org.jboss.marshalling@2.0.9.Final//org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:58)
at org.jboss.marshalling@2.0.9.Final//org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:111)
at org.wildfly.clustering.marshalling.jboss@21.0.0.Beta1-SNAPSHOT//org.wildfly.clustering.marshalling.jboss.JBossByteBufferMarshaller.writeTo(JBossByteBufferMarshaller.java:92)
at org.wildfly.clustering.infinispan.marshalling@21.0.0.Beta1-SNAPSHOT//org.wildfly.clustering.infinispan.marshalling.jboss.JBossMarshaller.writeObject(JBossMarshaller.java:70)
at org.wildfly.clustering.infinispan.marshalling@21.0.0.Beta1-SNAPSHOT//org.wildfly.clustering.infinispan.marshalling.AbstractMarshaller.objectToBuffer(AbstractMarshaller.java:107)
at org.wildfly.clustering.infinispan.marshalling@21.0.0.Beta1-SNAPSHOT//org.wildfly.clustering.infinispan.marshalling.AbstractMarshaller.objectToByteBuffer(AbstractMarshaller.java:101)
at org.wildfly.clustering.infinispan.marshalling@21.0.0.Beta1-SNAPSHOT//org.wildfly.clustering.infinispan.marshalling.AbstractMarshaller.objectToByteBuffer(AbstractMarshaller.java:76)
at org.infinispan.commons@11.0.3.Final//org.infinispan.commons.dataconversion.StandardConversions.convertJavaToOctetStream(StandardConversions.java:167)
at org.infinispan.commons@11.0.3.Final//org.infinispan.commons.dataconversion.BinaryTranscoder.convertToByteArray(BinaryTranscoder.java:81)
... 133 more
Caused by: an exception which occurred:
in object org.infinispan.hibernate.cache.commons.access.PutFromLoadValidator$PendingPutMap@48d719c8
{noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years
[JBoss JIRA] (ISPN-12290) Anchored keys: cluster listener does not receive removed value
by Dan Berindei (Jira)
Dan Berindei created ISPN-12290:
-----------------------------------
Summary: Anchored keys: cluster listener does not receive removed value
Key: ISPN-12290
URL: https://issues.redhat.com/browse/ISPN-12290
Project: Infinispan
Issue Type: Bug
Affects Versions: 12.0.0.Dev03
Reporter: Dan Berindei
The previous value is usually not available in cluster listeners, only in regular listeners, in the pre=true invocation. The exception in {{CacheEntryRemovedEvent}}, where {{getOldValue()}} returns the removed value.
Because the old value is not available in the invocation context (see ISPN-5665), listeners read the previous value directly from the data container, and this works most of the time (except with stores, during state transfer etc.)
In anchored keys caches, the primary owner reads the previous value from the anchor owner so that we can perform conditional operations, but the listeners cannot see this previous value and instead they see the {{null}} from the data container.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years