在Oracle Weblogic Server 10.3.4上配置Coherence Cache时出错

时间:2012-05-09 11:55:36

标签: caching weblogic portal oracle-coherence

我正在尝试在Oracle WebLogic Server 10.3.4上配置Coherence 3.7,但是当我尝试使用eclipse在服务器上运行应用程序时,出现以下错误。

  

< 9 May,2012 4:28:23 PM IST>任务'14'的ID为'1336561103127'。错误是:'weblogic.application.ModuleException:没有存储的节点存在>服务DistributedSessions'   weblogic.application.ModuleException:服务DistributedSessions不存在启用存储的节点       在weblogic.servlet.internal.WebAppModule.activateContexts(WebAppModule.java:1497)       在weblogic.servlet.internal.WebAppModule.activate(WebAppModule.java:438)       在weblogic.application.internal.flow.ModuleStateDriver $ 2.next(ModuleStateDriver.java:375)       在weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)       在weblogic.application.internal.flow.ModuleStateDriver.activate(ModuleStateDriver.java:95)       截断。查看日志文件以获取完整的堆栈跟踪   引发者:com.tangosol.net.RequestPolicyException:服务DistributedSessions不存在启用存储的节点       at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache $ BinaryMap.o> nMissingStorage(PartitionedCache.CDB:32)       at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache $ BinaryMap.s> endStorageRequest(PartitionedCache.CDB:11)       at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache $ BinaryMap.a> ddIndex(PartitionedCache.CDB:11)       at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache $ ViewMap.add> Index(PartitionedCache.CDB:1)       at com.tangosol.coherence.component.util.SafeNamedCache.addIndex(SafeNamedCache.CDB:1)       截断。请参阅日志文件以获取完整的堆栈跟踪

     

< 9 May,2012 4:28:23 PM IST>   < 9 May,2012 4:28:23 PM IST> application'_auto_generated_ear _'。>   < 9 May,2012 4:28:23 PM IST> nMissingStorage(PartitionedCache.CDB:32)       at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache $ BinaryMap.s> endStorageRequest(PartitionedCache.CDB:11)       at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache $ BinaryMap.a> ddIndex(PartitionedCache.CDB:11)       at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache $ ViewMap.add> Index(PartitionedCache.CDB:1)       at com.tangosol.coherence.component.util.SafeNamedCache.addIndex(SafeNamedCache.CDB:1)       截断。请参阅日志文件以获取完整的堆栈跟踪

     
    

  

我已经检查了缓存启动脚本并在其中启用了local-storage true,但它仍然不起作用。 有人可以请我提供正确的步骤来配置Weblogic Server上的一致性缓存(在Web控制台和应用程序中),或者告诉我可能出现此错误的原因。

3 个答案:

答案 0 :(得分:2)

这可能发生在几种不同的情况下。启用存储的节点未连接到禁用存储的节点(在您的情况下为WebLogic),或者启用了存储的节点未启用SESSION本地存储。确认群集在运行时包含启用存储的节点,并使用以下选项确认缓存服务器已启动:

-Dtangosol.coherence.session.localstorage=true

答案 1 :(得分:0)

您必须在Weblogic Server安装中指定一些JVM参数。转到环境 - >服务器并选择您的服务器。在选项卡配置中,选择启动服务器选项卡,并在以下JVM参数中填充字段Arguments

-Dtangosol.coherence.cacheconfig=session-cache-config.xml -Dtangosol.coherence.distributed.localstorage=true -Dtangosol.coherence.session.localstorage=true 
-Dtangosol.coherence.cluster=CoherenceCluster 
-Dtangosol.coherence.clusteraddress=231.1.3.4 
-Dtangosol.coherence.clusterport=7744

这对我有用,我有完全相同的错误。

答案 2 :(得分:0)

我有这个问题。两个localstorage系统参数都设置为true。问题是我的缓存配置没有加载,因此所请求的缓存服务对于该“服务器”节点来说是未知的。

因此,如果您遇到此问题,请检查您的缓存配置是否正在加载(“从......加载缓存配置”)。