infinispan 相关问题

Infinispan是用于Java和其他JVM语言的ASL2许可数据网格平台,提供分布式内存缓存以及集群工具包。

如何使用 Detyped Java API 以编程方式在 WildFly/JBoss 中添加缓存

有很多示例可以说明如何使用本机管理 API https://docs.jboss.org/author/display/AS71/Management%20API%20reference.html 及其 Java 以编程方式添加数据源

回答 1 投票 0

如何修复 Wildfly 中的“15 秒后无法获取锁定”错误

我有一个 Web 应用程序 ,但也部署到 Wildfly 的独立实例以进行本地开发工作。有时我们对后端的调用可能会停滞......

回答 3 投票 0

Infinispan + Hibernate L2 Cache + JGroups 导致 ReadWriteKeyCommand 错误

我有一个利用以下堆栈的独立应用程序: 休眠 5.6 无限期 13.0.15 JGroups 4.2.22 我正在使用 Infinispan 作为 Hibernate 的二级缓存——我注意到……

回答 0 投票 0

WFLYCTL0362:资源“/subsystem=infinispan/cache-container=web/replicated-cache=sso”所需的功能不可用

我将 wildFly22 与 Java11 结合使用,并尝试配置 Infinispan 缓存。 可分发的 web.xml 我在 Java11 中使用 wildFly22 并尝试配置 Infinispan 缓存。 distributable-web.xml <distributable-web xmlns="urn:jboss:distributable-web:2.0"> <infinispan-session-management cache-container="web" cache="corpapp-session-cache-web" granularity="SESSION"> <primary-owner-affinity/> </infinispan-session-management> </distributable-web> standalone-ha.xml <cache-container name="web" default-cache="dist" marshaller="PROTOSTREAM" modules="org.wildfly.clustering.web.infinispan"> <!--<transport lock-timeout="60000"/> --> <replicated-cache name="sso"> <locking isolation="REPEATABLE_READ"/> <transaction mode="BATCH"/> <expiration interval="0"/> </replicated-cache> <replicated-cache name="routing"> <expiration interval="0"/> </replicated-cache> <distributed-cache name="dist"> <locking isolation="REPEATABLE_READ"/> <transaction mode="BATCH"/> <expiration interval="0"/> <file-store/> </distributed-cache> <distributed-cache name="corpapp-session-cache-web"> <file-store path="corpapp-cache" passivation="false" purge="false" shared="false"/> </distributed-cache> </cache-container> 错误 13:32:45,362 ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0362: Capabilities required by resource '/subsystem=infinispan/cache-container=web/replicated-cache=sso' are not available: org.wildfly.clustering.infinispan.transport.channel.web; Possible registration points for this capability: /subsystem=infinispan/cache-container=*/transport=jgroups 13:32:45,366 ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0362: Capabilities required by resource '/subsystem=infinispan/cache-container=web/replicated-cache=routing' are not available: org.wildfly.clustering.infinispan.transport.channel.web; Possible registration points for this capability: /subsystem=infinispan/cache-container=*/transport=jgroups 13:32:45,368 ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0362: Capabilities required by resource '/subsystem=infinispan/cache-container=web/distributed-cache=dist' are not available: org.wildfly.clustering.infinispan.transport.channel.web; Possible registration points for this capability: /subsystem=infinispan/cache-container=*/transport=jgroups 13:32:45,370 ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0362: Capabilities required by resource '/subsystem=infinispan/cache-container=web/distributed-cache=corpapp-session-cache-web' are not available: org.wildfly.clustering.infinispan.transport.channel.web; Possible registration points for this capability: /subsystem=infinispan/cache-container=*/transport=jgroups 13:32:45,378 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.

回答 0 投票 0

Infinispan 无法将缓存写入文件 - MarshallableUserObject - NotSerializableException

我将 wildFly22 与 Java11 结合使用,并尝试配置 Infinispan 缓存。 独立-ha.xml 我在 Java11 中使用 wildFly22 并尝试配置 Infinispan 缓存。 standalone-ha.xml <cache-container name="web" default-cache="passivation" marshaller="PROTOSTREAM" modules="org.wildfly.clustering.web.infinispan"> <local-cache name="corpapp-session-cache-web"> <file-store path="corpapp-cache" passivation="false" purge="false" shared="false"/> </local-cache> <local-cache name="passivation"> <expiration interval="0"/> <file-store passivation="true" purge="false"/> </local-cache> <local-cache name="sso"> <expiration interval="0"/> </local-cache> </cache-container> 例如如果我将编组器设置为: marshaller="PROTOSTREAM" 它得到这个: WARN [org.infinispan.PERSISTENCE] (default task-2) ISPN000559: Cannot marshall 'class org.infinispan.marshall.protostream.impl.MarshallableUserObject': java.io.NotSerializableException: java.lang.Object at [email protected]//org.jboss.marshalling.river.RiverMarshaller.writeKnownObject(RiverMarshaller.java:990 例如如果我将编组器设置为: marshaller="JBOSS" 它得到这个: ERROR [io.undertow.request] (default task-1) UT005023: Exception handling request to /corporateInterface/login.do: org.infinispan.persistence.spi.PersistenceException: org.infinispan.commons.marshall.MarshallingException: org.wildfly.clustering.web.infinispan.session.SessionAccessMetaDataKey

回答 0 投票 0

如何在WildFly中查看Infinispan统计数据?

我在 standalone.xml 中为我的缓存容器启用了统计信息,如下所示: 我在standalone.xml中为我的缓存容器启用了统计信息,如下所示: <cache-container name="..." marshaller="JBOSS" modules="org.infinispan.hibernate-cache" statistics-enabled="true"> <local-cache name="entity"> <heap-memory size="100"/> <expiration max-idle="300000" lifespan="300000"/> </local-cache> <local-cache name="local-query"> <heap-memory size="10000"/> <expiration max-idle="100000"/> </local-cache> <local-cache name="timestamps"> <expiration interval="0"/> </local-cache> </cache-container> 我可以去哪里查看统计数据?我正在使用 WildFly 26.

回答 0 投票 0

EncodingException:Infinispan 的 Keycloak

我在 EKS 集群上配置了 Infinispan 集群版本 14.0 和 Keycloak 版本 21.0.2-debian-11-r0。 当我启动 Keycloak 时,我看到以下错误: org.infinispan.commons.dataconversion.

回答 0 投票 0

Infinispan 集群在网络问题后无法恢复并重新加入集群

我正在使用 jgroups-4.0.12.Final.jar 和 infinispan-core-9.3.0。 并面临网络故障后集群视图无法恢复的问题。 群集 A 具有单个节点。 集群 B - 3 个节点 不……

回答 1 投票 0

infinispan 失效缓存和 MarshallingException:ISPN000615

在我们的应用程序中,我们将数据缓存在本地 infinispan 缓存中。缓存的数据是从数据库加载的。 现在我们正在使用Wildfly(25.0.1-

回答 0 投票 0

Infinispan 缓存表 - 时间戳列始终为 -1

我正在使用 WildFly25 和 Infinispan。 我配置了以下缓存: 我正在将 WildFly25 与 Infinispan 一起使用。 我配置了以下缓存: <distributed-cache name="corpapp-session-cache-web"> <persistence> <string-keyed-jdbc-store> <data-source jndi-url="java:/jdbc/sessioncache" data-source="SessionCacheDS" dialect="POSTGRES" passivation="false" preload="false" purge="false" shared="true"/> <string-keyed-table drop-on-exit="false" create-on-start="false" prefix="session"> <id-column name="ID" type="VARCHAR(255)"/> <data-column name="DATA" type="BYTEA"/> <timestamp-column name="VERSION" type="BIGINT"/> <segment-column name="S" type="INT"/> </string-keyed-table> </string-keyed-jdbc-store> </persistence> </distributed-cache> </cache-container> 当我启动应用程序时,它成功写入表,但是时间戳列 (VERSION) 中的值始终是 -1. 我希望它是一个时间戳,甚至是一个递增的版本号。 这会导致下次我启动 Wildfly 服务器时,它会尝试再次向列中写入 -1 并出现以下错误: 错误 错误 [org.jboss.as.controller.management-operation](控制器启动线程)WFLYCTL0013:操作(“部署”)失败 - 地址: ([("deployment" => "corporateEAR-3.10.ear")]) - 故障描述: {“WFLYCTL0080:服务失败”=> {“org.wildfly.clustering.infinispan.cache.web.”corporateEAR-3.10.ear.corporateInterface-3.10.war“” =>“org.infinispan.commons.CacheConfigurationException:错误启动组件org.infinispan.persistence.manager.PersistenceManager 原因:org.infinispan.commons.CacheConfigurationException:启动组件时出错 org.infinispan.persistence.manager.PersistenceManager 引起:java.util.concurrent.CompletionException:org.infinispan.persistence.spi.PersistenceException: org.postgresql.util.PSQLException:错误:关系 “session_corporateEAR_3_10_ear_corporateInterface_3_10_war_times” 已经存在 由以下原因引起:org.infinispan.persistence.spi.PersistenceException:org.postgresql.util.PSQLException:错误:关系 “session_corporateEAR_3_10_ear_corporateInterface_3_10_war_times” 已经存在 引起:org.postgresql.util.PSQLException:错误:关系“session_corporateEAR_3_10_ear_corporateInterface_3_10_war_times” 已经存在"}} 问题 如何配置它以正确写入表?所以它不会尝试插入重复项。 更多信息 生成的表有两个索引叫做: session_corporateEAR_3_10_ear_corporateInterface_3_10_war_times session_corporateEAR_3_10_ear_corporateInterface_3_10_war_segment 所以看起来错误是因为它试图在此处插入重复的-1。

回答 0 投票 0

如何循环遍历 InfiniSpan 缓存条目

我正在使用 infinispan 缓存,必须遍历缓存中的所有条目并找出缓存键和值。我发现可以使用以下方法通过 entrySet 完成 缓存.entryS ...

回答 0 投票 0

Infinispan不将缓存实体删除复制到非协调人节点。

环境 Infinispan 9.4.18 嵌入式 3 节点缓存的复制模式 RocksDB 存储(或其他,无所谓) 重现步骤 创建基于 TCP 的集群 创建缓存 添加实体到缓存 检查...。

回答 1 投票 0

Infinispan .NET核心客户端支持

我们的团队想在ASP.NET core DOCKER环境中使用Infinispan客户端。最后的版本似乎是Nuget.org上的8.3.0-Alpha1版本,已经有近2年的历史了。有没有什么 ...

回答 1 投票 0

JBoss EAP 6.4 Infinispan集群缓存网络问题

我们有一个2节点集群的JBoss环境,在生产中运行良好。但间歇性地,我们面临一个问题,即2个缓存停止相互通信(我们没有看到任何与此相关的日志)。

回答 1 投票 0

Infinispan 10.1 - 无法将项目添加到远程缓存的列表对象中。

当尝试新项目到列表对象存储在Cache中的Key没有反映。/ 设置一个集群的缓存管理器ConfigurationBuilder builder = new ConfigurationBuilder();...。

回答 1 投票 0

如何查找cacheManager(org.springframework.cache.CacheManager)中是否存在key。

有没有一种方法可以查看cacheManager(org.springframework.cache.CacheManager)中是否存在一个特定的key,因为我无法找到一种方法来做,因为没有包含Key选项。我将感激...

回答 1 投票 0

AutoProtoSchemaBuilder不生成proto文件。

我正试图实现protostream marshaller,但由于某些原因,我的代码在编译过程中没有生成具体的实现。我将感激任何帮助。DummyInitializer ...

回答 1 投票 0


Infinispan java.lang.SecurityException:ISPN006017:未经授权的“ PUT”操作

我正在尝试使用Hotrod nodeJS客户端在Infinispan缓存中添加一个值。如果服务器是本地安装的,则代码运行良好。但是,当我使用托管在...

回答 1 投票 0

当我从集群中删除成员时,Infinispan 8.0.1崩溃

我正在使用播放框架版本2.3.8和插件(https://github.com/n4cer/playInfinispanCachePlugin)将infinispan(版本8.0.1与jgroups)集成到我的应用中以进行分发缓存。 ...

回答 1 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.