Coherence Issues (COH-????)
In release notes and sometimes in the forum messages, I see references to Coherence Issues. Example:
WebLogic Portal Integration
Certified the PortalCacheProvider with WebLogic Portal 9.2 and 10.2+ (COH-1523)
Other Enhancements and Fixes:
Improved multiple object handling in the HibernateCacheStore. (COH-2168, COH-1002)
Fixed a serialization-related regression in the ReplicatedCache service causing it to return Binary object. (COH-2133)
Fixed a regression for the key-based map removeMapListener API during redistribution. (COH-2196)
Allowed non-serializable objects to be used in ReplicatedCache service with custom Serializers. (COH-2109)
Is the list of issues (COH-????) available to see or is it internal to Oracle?
Timur
The list of issues (COH-????) is only available internally. The numbers are given out externally so that use them to ask for status and they are also listed in the release notes when they apply to a particular release.
--David
Similar Messages
-
Coherence issues on SOA Cluster
Hi,
Have a 2 Node cluster od soa 11.1.1.5. Have 3 instances of 2 Node cluster running on the same machine. It's basically one for DEV,TST,UAT on the same machine. We have cronjobs that run every night shuts down all the cluster instances and then bring them back up. Recently one of our UAT soa cluster having issues. Both the Nodes come up fine but soa-infra in one node is not getting deployed and is down. I tried to manually start that node but no luck these are the errors I am getting in the Node where soa-infra is down. It's been working fine since recently. Any idea what might be wrong and where to look at. Any help is appreciated.
Inside the console all the servers are up and running but when going to Enterprise Manager it shows soa-infra down and only see one node.
####<Nov 28, 2012 11:10:23 PM CST> <Notice> <Stdout> <soadev01> <WLS_SOA1> <Logger@2067016530 3.6.0.4> <<WLS Kernel>> <1354165823364> <BEA-000000> <bpel.fatal.conection.max.retry is set to 3<Nov 28, 2012 11:10:23 PM CST> <Warning> <Coherence> <BEA-000000> <2012-11-28 23:10:23.360/533.658 Oracle Coherence GE 3.6.0.4 <Warning> (thread=Cluster, member=n/a): This Member(Id=0, Timestamp=2012-11-28 23:09:52.784, Address=9.9.10.95:8083, MachineId=3944, Location=site:xxorg.com,machine:web1,process:19968, Role=WeblogicServer) has been attempting to join the cluster using WKA list [web2.xxorg.com/8.8.18.85:8083, web1.xxorg.com/9.9.10.95:8083] for 30 seconds without success; this could indicate a mis-configured WKA, or it may simply be the result of a busy cluster or active failover.>>
####<Nov 28, 2012 11:10:23 PM CST> <Notice> <Stdout> <soadev01> <WLS_SOA1> <Logger@2067016530 3.6.0.4> <<WLS Kernel>> <1354165823365> <BEA-000000> <<Nov 28, 2012 11:10:23 PM CST> <Warning> <Coherence> <BEA-000000> <2012-11-28 23:10:23.363/533.661 Oracle Coherence GE 3.6.0.4 <Warning> (thread=Cluster, member=n/a): Received a discovery message that indicates the presence of an existing cluster that does not respond to join requests; this is usually caused by a network layer failure:
Message "SeniorMemberHeartbeat"
FromMember=Member(Id=1, Timestamp=2012-11-28 21:28:09.017, Address=8.8.18.85:8083, MachineId=3968, Location=site:xxorg.com,machine:web2,process:3396, Role=WeblogicServer)
FromMessageId=0
Internal=false
MessagePartCount=1
PendingCount=0
MessageType=17
ToPollId=0
Poll=null
Packets
[000]=Broadcast{PacketType=0x0DDF00D2, ToId=0, FromId=1, Direction=Incoming, ReceivedMillis=23:10:23.353, MessageType=17, ServiceId=0, MessagePartCount=1, MessagePartIndex=0, Body=0}
Service=ClusterService{Name=Cluster, State=(SERVICE_STARTED, STATE_ANNOUNCE), Id=0, Version=3.6}
ToMemberSet=null
NotifySent=false
LastRecvTimestamp=none
MemberSet=MemberSet(Size=1, BitSetCount=1, ids=[1])
}>>
<Nov 28, 2012 11:14:53 PM CST> <Error> <Deployer> <BEA-149231> <Unable to set the activation state to true for the application 'soa-infra'.
weblogic.application.ModuleException:
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1510)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
Truncated. see log file for complete stacktrace
Caused By: com.tangosol.net.RequestTimeoutException: Timeout during service start: ServiceInfo(Id=0, Name=Cluster, Type=Cluster
MemberSet=ServiceMemberSet(
OldestMember=n/a
ActualMemberSet=MemberSet(Size=0, BitSetCount=0
MemberId/ServiceVersion/ServiceJoined/MemberState
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onStartupTimeout(Grid.CDB:6)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.start(Service.CDB:28)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.start(Grid.CDB:6)
at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:637)
at com.tangosol.coherence.component.net.Cluster.start(Cluster.CDB:11)
Truncated. see log file for complete stacktrace
<div class="jive-quote"> </div>
.....As we have 2 physical machines and have DEV (2-node soa cluster), TST (2-node soa cluster), UAT (2-node soa cluster) all running on the same machines and comes up and down for daily DB maintenance everynight. As it the UAT environment any help appreciated in pointing to tle location to debug.
Also have Unicast operation, and use Well-Known Addressing (WKA) configured in Console under server(s)->start tab. But looks like something with coherence that's not working for the cluster to come up and failing.
ThanksThis appears related to bug 9874750. Make sure you retrieve the latest copy of the Install/Upgrade guide from support.oracle.com. Under this bug, the guide was updated to remove some preinstallation steps that were causing the installation to fail
Edited by: rwunderl on Aug 23, 2010 6:08 AM -
Oracle SOA Cluster soa-infra failing, startup coherence issues
Hi,
Have a 2 Node cluster od soa 11.1.1.5. Have 3 instances of 2 Node cluster running on the same machine. It's basically one for DEV,*TST*,*UAT* on the same machine. We have cronjobs that run every night shuts down all the cluster instances and then bring them back up. Recently one of our UAT soa cluster having issues. Both the Nodes come up fine but soa-infra in one node is not getting deployed and is down. I tried to manually start that node but no luck these are the errors I am getting in the Node where soa-infra is down. It's been working fine since recently. Any idea what might be wrong and where to look at. Any help is appreciated.
Inside the console all the servers are up and running but when going to Enterprise Manager it shows soa-infra down and only see one node.
####<Nov 28, 2012 11:10:23 PM CST> <Notice> <Stdout> <soadev01> <WLS_SOA1> <Logger@2067016530 3.6.0.4> <<WLS Kernel>> <> <> <1354165823364> <BEA-000000> <bpel.fatal.conection.max.retry is set to 3<Nov 28, 2012 11:10:23 PM CST> <Warning> <Coherence> <BEA-000000> <2012-11-28 23:10:23.360/533.658 Oracle Coherence GE 3.6.0.4 <Warning> (thread=Cluster, member=n/a): This Member(Id=0, Timestamp=2012-11-28 23:09:52.784, Address=9.9.10.95:8083, MachineId=3944, Location=site:xxorg.com,machine:web1,process:19968, Role=WeblogicServer) has been attempting to join the cluster using WKA list [web2.xxorg.com/8.8.18.85:8083, web1.xxorg.com/9.9.10.95:8083] for 30 seconds without success; this could indicate a mis-configured WKA, or it may simply be the result of a busy cluster or active failover.>>
####<Nov 28, 2012 11:10:23 PM CST> <Notice> <Stdout> <soadev01> <WLS_SOA1> <Logger@2067016530 3.6.0.4> <<WLS Kernel>> <> <> <1354165823365> <BEA-000000> <<Nov 28, 2012 11:10:23 PM CST> <Warning> <Coherence> <BEA-000000> <2012-11-28 23:10:23.363/533.661 Oracle Coherence GE 3.6.0.4 <Warning> (thread=Cluster, member=n/a): Received a discovery message that indicates the presence of an existing cluster that does not respond to join requests; this is usually caused by a network layer failure:
Message "SeniorMemberHeartbeat"
FromMember=Member(Id=1, Timestamp=2012-11-28 21:28:09.017, Address=8.8.18.85:8083, MachineId=3968, Location=site:xxorg.com,machine:web2,process:3396, Role=WeblogicServer)
FromMessageId=0
Internal=false
MessagePartCount=1
PendingCount=0
MessageType=17
ToPollId=0
Poll=null
Packets
[000]=Broadcast{PacketType=0x0DDF00D2, ToId=0, FromId=1, Direction=Incoming, ReceivedMillis=23:10:23.353, MessageType=17, ServiceId=0, MessagePartCount=1, MessagePartIndex=0, Body=0}
Service=ClusterService{Name=Cluster, State=(SERVICE_STARTED, STATE_ANNOUNCE), Id=0, Version=3.6}
ToMemberSet=null
NotifySent=false
LastRecvTimestamp=none
MemberSet=MemberSet(Size=1, BitSetCount=1, ids=[1])
}>>
<Nov 28, 2012 11:14:53 PM CST> <Error> <Deployer> <BEA-149231> <Unable to set the activation state to true for the application 'soa-infra'.
weblogic.application.ModuleException:
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1510)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
Truncated. see log file for complete stacktrace
Caused By: com.tangosol.net.RequestTimeoutException: Timeout during service start: ServiceInfo(Id=0, Name=Cluster, Type=Cluster
MemberSet=ServiceMemberSet(
OldestMember=n/a
ActualMemberSet=MemberSet(Size=0, BitSetCount=0
MemberId/ServiceVersion/ServiceJoined/MemberState
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onStartupTimeout(Grid.CDB:6)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.start(Service.CDB:28)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.start(Grid.CDB:6)
at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:637)
at com.tangosol.coherence.component.net.Cluster.start(Cluster.CDB:11)
Truncated. see log file for complete stacktrace
>
<anonymous>] [ecid: 0000JhFIXrrEWN0pnwh8iZ1Gi2DE000009,0] [APP: soa-infra] Cluster communication initialization failed. If you are using multicast, please make sure multicast is enabled on your network and that there is no interference on the address in use. Please see the documentation for more details.[[
com.tangosol.net.RequestTimeoutException: Timeout during service start: ServiceInfo(Id=0, Name=Cluster, Type=Cluster
MemberSet=ServiceMemberSet(
OldestMember=n/a
ActualMemberSet=MemberSet(Size=0, BitSetCount=0
MemberId/ServiceVersion/ServiceJoined/MemberState
<Nov 29, 2012 9:20:13 PM CST> <Error> <Deployer> <BEA-149231> <Unable to set the activation state to true for the application 'soa-infra'.
weblogic.application.ModuleException:
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1510)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
Truncated. see log file for complete stacktrace
Caused By: com.tangosol.net.RequestTimeoutException: Timeout during service start: ServiceInfo(Id=0, Name=Cluster, Type=Cluster
MemberSet=ServiceMemberSet(
OldestMember=n/a
ActualMemberSet=MemberSet(Size=0, BitSetCount=0
MemberId/ServiceVersion/ServiceJoined/MemberState
)As we have 2 physical machines and have DEV (2-node soa cluster), TST (2-node soa cluster), UAT (2-node soa cluster) all running on the same machines and comes up and down for daily DB maintenance everynight. As it the UAT environment any help appreciated in pointing to tle location to debug.
Also have Unicast operation, and use Well-Known Addressing (WKA) configured in Console under server(s)->start tab. But looks like something with coherence that's not working for the cluster to come up and failing. Here are the unicast coherence settings we have for both servers in the console under Start Server tab as per Oracle EDG
WLS_SOA1
-Dtangosol.coherence.wka1=web1.xxorg.com
-Dtangosol.coherence.wka2=web2.xxorg.com
-Dtangosol.coherence.localhost=web1.xxorg.com
-Dtangosol.coherence.localport=8083
-Dtangosol.coherence.wka1.port=8083
-Dtangosol.coherence.wka2.port=8083
WLS_SOA2
-Dtangosol.coherence.wka1=web1.xxorg.com
-Dtangosol.coherence.wka2=web2.xxorg.com
-Dtangosol.coherence.localhost=web2.xxorg.com
-Dtangosol.coherence.localport=8083
-Dtangosol.coherence.wka1.port=8083
-Dtangosol.coherence.wka2.port=8083ThanksHi,
Have a 2 Node cluster od soa 11.1.1.5. Have 3 instances of 2 Node cluster running on the same machine. It's basically one for DEV,*TST*,*UAT* on the same machine. We have cronjobs that run every night shuts down all the cluster instances and then bring them back up. Recently one of our UAT soa cluster having issues. Both the Nodes come up fine but soa-infra in one node is not getting deployed and is down. I tried to manually start that node but no luck these are the errors I am getting in the Node where soa-infra is down. It's been working fine since recently. Any idea what might be wrong and where to look at. Any help is appreciated.
Inside the console all the servers are up and running but when going to Enterprise Manager it shows soa-infra down and only see one node.
####<Nov 28, 2012 11:10:23 PM CST> <Notice> <Stdout> <soadev01> <WLS_SOA1> <Logger@2067016530 3.6.0.4> <<WLS Kernel>> <> <> <1354165823364> <BEA-000000> <bpel.fatal.conection.max.retry is set to 3<Nov 28, 2012 11:10:23 PM CST> <Warning> <Coherence> <BEA-000000> <2012-11-28 23:10:23.360/533.658 Oracle Coherence GE 3.6.0.4 <Warning> (thread=Cluster, member=n/a): This Member(Id=0, Timestamp=2012-11-28 23:09:52.784, Address=9.9.10.95:8083, MachineId=3944, Location=site:xxorg.com,machine:web1,process:19968, Role=WeblogicServer) has been attempting to join the cluster using WKA list [web2.xxorg.com/8.8.18.85:8083, web1.xxorg.com/9.9.10.95:8083] for 30 seconds without success; this could indicate a mis-configured WKA, or it may simply be the result of a busy cluster or active failover.>>
####<Nov 28, 2012 11:10:23 PM CST> <Notice> <Stdout> <soadev01> <WLS_SOA1> <Logger@2067016530 3.6.0.4> <<WLS Kernel>> <> <> <1354165823365> <BEA-000000> <<Nov 28, 2012 11:10:23 PM CST> <Warning> <Coherence> <BEA-000000> <2012-11-28 23:10:23.363/533.661 Oracle Coherence GE 3.6.0.4 <Warning> (thread=Cluster, member=n/a): Received a discovery message that indicates the presence of an existing cluster that does not respond to join requests; this is usually caused by a network layer failure:
Message "SeniorMemberHeartbeat"
FromMember=Member(Id=1, Timestamp=2012-11-28 21:28:09.017, Address=8.8.18.85:8083, MachineId=3968, Location=site:xxorg.com,machine:web2,process:3396, Role=WeblogicServer)
FromMessageId=0
Internal=false
MessagePartCount=1
PendingCount=0
MessageType=17
ToPollId=0
Poll=null
Packets
[000]=Broadcast{PacketType=0x0DDF00D2, ToId=0, FromId=1, Direction=Incoming, ReceivedMillis=23:10:23.353, MessageType=17, ServiceId=0, MessagePartCount=1, MessagePartIndex=0, Body=0}
Service=ClusterService{Name=Cluster, State=(SERVICE_STARTED, STATE_ANNOUNCE), Id=0, Version=3.6}
ToMemberSet=null
NotifySent=false
LastRecvTimestamp=none
MemberSet=MemberSet(Size=1, BitSetCount=1, ids=[1])
}>>
<Nov 28, 2012 11:14:53 PM CST> <Error> <Deployer> <BEA-149231> <Unable to set the activation state to true for the application 'soa-infra'.
weblogic.application.ModuleException:
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1510)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
Truncated. see log file for complete stacktrace
Caused By: com.tangosol.net.RequestTimeoutException: Timeout during service start: ServiceInfo(Id=0, Name=Cluster, Type=Cluster
MemberSet=ServiceMemberSet(
OldestMember=n/a
ActualMemberSet=MemberSet(Size=0, BitSetCount=0
MemberId/ServiceVersion/ServiceJoined/MemberState
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onStartupTimeout(Grid.CDB:6)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.start(Service.CDB:28)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.start(Grid.CDB:6)
at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:637)
at com.tangosol.coherence.component.net.Cluster.start(Cluster.CDB:11)
Truncated. see log file for complete stacktrace
>
<anonymous>] [ecid: 0000JhFIXrrEWN0pnwh8iZ1Gi2DE000009,0] [APP: soa-infra] Cluster communication initialization failed. If you are using multicast, please make sure multicast is enabled on your network and that there is no interference on the address in use. Please see the documentation for more details.[[
com.tangosol.net.RequestTimeoutException: Timeout during service start: ServiceInfo(Id=0, Name=Cluster, Type=Cluster
MemberSet=ServiceMemberSet(
OldestMember=n/a
ActualMemberSet=MemberSet(Size=0, BitSetCount=0
MemberId/ServiceVersion/ServiceJoined/MemberState
<Nov 29, 2012 9:20:13 PM CST> <Error> <Deployer> <BEA-149231> <Unable to set the activation state to true for the application 'soa-infra'.
weblogic.application.ModuleException:
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1510)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
Truncated. see log file for complete stacktrace
Caused By: com.tangosol.net.RequestTimeoutException: Timeout during service start: ServiceInfo(Id=0, Name=Cluster, Type=Cluster
MemberSet=ServiceMemberSet(
OldestMember=n/a
ActualMemberSet=MemberSet(Size=0, BitSetCount=0
MemberId/ServiceVersion/ServiceJoined/MemberState
)As we have 2 physical machines and have DEV (2-node soa cluster), TST (2-node soa cluster), UAT (2-node soa cluster) all running on the same machines and comes up and down for daily DB maintenance everynight. As it the UAT environment any help appreciated in pointing to tle location to debug.
Also have Unicast operation, and use Well-Known Addressing (WKA) configured in Console under server(s)->start tab. But looks like something with coherence that's not working for the cluster to come up and failing. Here are the unicast coherence settings we have for both servers in the console under Start Server tab as per Oracle EDG
WLS_SOA1
-Dtangosol.coherence.wka1=web1.xxorg.com
-Dtangosol.coherence.wka2=web2.xxorg.com
-Dtangosol.coherence.localhost=web1.xxorg.com
-Dtangosol.coherence.localport=8083
-Dtangosol.coherence.wka1.port=8083
-Dtangosol.coherence.wka2.port=8083
WLS_SOA2
-Dtangosol.coherence.wka1=web1.xxorg.com
-Dtangosol.coherence.wka2=web2.xxorg.com
-Dtangosol.coherence.localhost=web2.xxorg.com
-Dtangosol.coherence.localport=8083
-Dtangosol.coherence.wka1.port=8083
-Dtangosol.coherence.wka2.port=8083Thanks -
Coherence Deserialization issue
HI,
I am facing an issue whilst deserializing an attribute form the Coherence session. Please find the stack trace below:
Caused by: java.io.InvalidClassException: weblogic.servlet.internal.session.CoherenceWebSessionData; weblogic.servlet.internal.session.CoherenceWebSessionData; no valid constructor
at java.io.ObjectStreamClass.checkDeserialize(ObjectStreamClass.java:713)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
at java.util.HashMap.readObject(HashMap.java:1220)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1848)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
at com.tangosol.util.ExternalizableHelper.readSerializable(ExternalizableHelper.java:2217)
at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2348)
at com.tangosol.util.ExternalizableHelper.deserializeInternal(ExternalizableHelper.java:2746)
at com.tangosol.util.ExternalizableHelper.fromBinary(ExternalizableHelper.java:262)
... 52 more
Caused by: java.io.InvalidClassException: weblogic.servlet.internal.session.CoherenceWebSessionData; no valid constructor
at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:471)
at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:310)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1114)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
at java.util.HashMap.writeObject(HashMap.java:1188)
at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
at com.tangosol.util.ExternalizableHelper.writeSerializable(ExternalizableHelper.java:2253)
at com.tangosol.util.ExternalizableHelper.writeObjectInternal(ExternalizableHelper.java:2671)
at com.tangosol.util.ExternalizableHelper.serializeInternal(ExternalizableHelper.java:2601)
at com.tangosol.util.ExternalizableHelper.toBinary(ExternalizableHelper.java:211)
at com.tangosol.coherence.servlet.OptimizedHolder.serializeValue(OptimizedHolder.java:216)
at com.tangosol.coherence.servlet.OptimizedHolder.getBinary(OptimizedHolder.java:120)
at com.tangosol.coherence.servlet.OptimizedHolder.prepareWrite(OptimizedHolder.java:247)
at com.tangosol.coherence.servlet.SplittableHolder.prepareWrite(SplittableHolder.java:310)
at com.tangosol.coherence.servlet.AttributeHolder.flush(AttributeHolder.java:242)
at com.tangosol.coherence.servlet.SplittableHolder.flush(SplittableHolder.java:108)
at com.tangosol.coherence.servlet.AbstractHttpSessionModel.flush(AbstractHttpSessionModel.java:1620)
at com.tangosol.coherence.servlet.SplitHttpSessionModel.flush(SplitHttpSessionModel.java:104)
at com.tangosol.coherence.servlet.AbstractHttpSessionCollection.exit(AbstractHttpSessionCollection.java:733)
at com.tangosol.coherence.servlet.AbstractHttpSessionCollection.exit(AbstractHttpSessionCollection.java:696)
at weblogic.servlet.internal.session.CoherenceWebSessionContextImpl.exitSession(CoherenceWebSessionContextImpl.java:498)
at weblogic.servlet.internal.session.CoherenceWebSessionContextImpl.sync(CoherenceWebSessionContextImpl.java:530)
at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.syncSession(ServletRequestImpl.java:2860)
at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.syncSession(ServletRequestImpl.java:2835)
at weblogic.servlet.internal.ServletResponseImpl$1.run(ServletResponseImpl.java:1485)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:1479)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1462)
I have been looking at the code to find the the parent-child class that may be written to the session abd the potential no-args constructor missed out from any non-serializable class, but it all looks well ok so far. I need help to identify whether this could be a tangosol coherence issue, or whether this could be avoided by tweaking some configurations..
Further details on Coherence configurations:
Version: 3.7.1.6
Collection class: com.tangosol.coherence.servlet.SplitHttpSessionCollection
Session-cache-config:
<?xml version="1.0"?>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- -->
<!-- Cache configuration descriptor for Coherence*Web -->
<!-- -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<cache-config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://xmlns.oracle.com/coherence/coherence-cache-config"
xsi:schemaLocation="http://xmlns.oracle.com/coherence/coherence-cache-config coherence-cache-config.xsd">
<caching-scheme-mapping>
<!--
The clustered cache used to store Session management data.
-->
<cache-mapping>
<cache-name>session-management</cache-name>
<scheme-name>replicated</scheme-name>
</cache-mapping>
<!--
The clustered cache used to store ServletContext attributes.
-->
<cache-mapping>
<cache-name>servletcontext-storage</cache-name>
<scheme-name>replicated</scheme-name>
</cache-mapping>
<!--
The clustered cache used to store Session attributes.
-->
<cache-mapping>
<cache-name>session-storage</cache-name>
<scheme-name>session-near</scheme-name>
</cache-mapping>
<!--
The clustered cache used to store the "overflowing" (split-out due to size)
Session attributes. Only used for the "Split" model.
-->
<cache-mapping>
<cache-name>session-overflow</cache-name>
<scheme-name>session-distributed</scheme-name>
</cache-mapping>
<!--
The clustered cache used to store IDs of "recently departed" Sessions.
-->
<cache-mapping>
<cache-name>session-death-certificates</cache-name>
<scheme-name>session-certificate</scheme-name>
</cache-mapping>
<!--
The local cache used to store Sessions that are not yet distributed (if
there is a distribution controller).
-->
<cache-mapping>
<cache-name>local-session-storage</cache-name>
<scheme-name>unlimited-local</scheme-name>
</cache-mapping>
<!--
The local cache used to store Session attributes that are not distributed
(if there is a distribution controller or attributes are allowed to become
local when serialization fails).
-->
<cache-mapping>
<cache-name>local-attribute-storage</cache-name>
<scheme-name>unlimited-local</scheme-name>
</cache-mapping>
</caching-scheme-mapping>
<caching-schemes>
<!--
Replicated caching scheme used by the Session management and ServletContext
attribute caches.
-->
<replicated-scheme>
<scheme-name>replicated</scheme-name>
<service-name>ReplicatedSessionsMisc</service-name>
<request-timeout>30s</request-timeout>
<backing-map-scheme>
<local-scheme>
<scheme-ref>unlimited-local</scheme-ref>
</local-scheme>
</backing-map-scheme>
<autostart>true</autostart>
</replicated-scheme>
<!--
Near caching scheme used by the Session attribute cache. The front cache
uses a Local caching scheme and the back cache uses a Distributed caching
scheme.
-->
<near-scheme>
<scheme-name>session-near</scheme-name>
<front-scheme>
<local-scheme>
<scheme-ref>session-front</scheme-ref>
</local-scheme>
</front-scheme>
<back-scheme>
<distributed-scheme>
<scheme-ref>session-distributed</scheme-ref>
</distributed-scheme>
</back-scheme>
<invalidation-strategy>all</invalidation-strategy>
</near-scheme>
<local-scheme>
<scheme-name>session-front</scheme-name>
<eviction-policy>HYBRID</eviction-policy>
<high-units>200000</high-units>
<low-units>150000</low-units>
</local-scheme>
<distributed-scheme>
<scheme-name>session-distributed</scheme-name>
<scheme-ref>session-base</scheme-ref>
<backing-map-scheme>
<local-scheme>
<scheme-ref>unlimited-local</scheme-ref>
</local-scheme>
<!-- for disk overflow use this backing scheme instead:
<overflow-scheme>
<scheme-ref>session-paging</scheme-ref>
</overflow-scheme>
-->
</backing-map-scheme>
</distributed-scheme>
<!--
Distributed caching scheme used by the "recently departed" Session cache.
-->
<distributed-scheme>
<scheme-name>session-certificate</scheme-name>
<scheme-ref>session-base</scheme-ref>
<backing-map-scheme>
<local-scheme>
<eviction-policy>HYBRID</eviction-policy>
<high-units>4000</high-units>
<low-units>3000</low-units>
<expiry-delay>86400</expiry-delay>
</local-scheme>
</backing-map-scheme>
</distributed-scheme>
<!--
"Base" Distributed caching scheme that defines common configuration.
-->
<distributed-scheme>
<scheme-name>session-base</scheme-name>
<service-name>DistributedSessions</service-name>
<thread-count>0</thread-count>
<lease-granularity>member</lease-granularity>
<local-storage system-property="tangosol.coherence.session.localstorage">true</local-storage>
<partition-count>257</partition-count>
<backup-count>1</backup-count>
<backup-storage>
<type>on-heap</type>
</backup-storage>
<request-timeout>30s</request-timeout>
<backing-map-scheme>
<local-scheme>
<scheme-ref>unlimited-local</scheme-ref>
</local-scheme>
</backing-map-scheme>
<autostart>true</autostart>
</distributed-scheme>
<!--
Disk-based Session attribute overflow caching scheme.
-->
<overflow-scheme>
<scheme-name>session-paging</scheme-name>
<front-scheme>
<local-scheme>
<scheme-ref>session-front</scheme-ref>
</local-scheme>
</front-scheme>
<back-scheme>
<external-scheme>
<bdb-store-manager/>
</external-scheme>
</back-scheme>
</overflow-scheme>
<!--
Local caching scheme definition used by all caches that do not require an
eviction policy.
-->
<local-scheme>
<scheme-name>unlimited-local</scheme-name>
<service-name>LocalSessionCache</service-name>
</local-scheme>
<!--
Clustered invocation service that manages sticky session ownership.
-->
<invocation-scheme>
<service-name>SessionOwnership</service-name>
<request-timeout>30s</request-timeout>
</invocation-scheme>
</caching-schemes>
</cache-config>Hi,
This appears to be a classloader issue. It is doubtful that something in your cache configuration could fix this. If you need further assistance I suggest filing a request with Oracle support.
Hope this helps,
Patrick -
What is the most recent stable release of Oracle Coherence?
What is the most recent stable release(or versions) of Oracle Coherence?
We are using 3.5.1 with Patch1.
You will need to download Patch1 from MetaLink (and hence need an OracleID).
Continuous Queries don't work in 3.5.1 and there are a number of other small bugs.
I understand there are a few problems with Coherence*Web in 3.5.1.p1 (but we aren't using that).
Here's the patch1 list (its 2521 that was an issue for us) :
Issue COH-2569: CacheFactory and CacheFactoryBuilder do not respect CacheFactory.setConfigurableCacheFactory()
Issue COH-2568: CacheFactoryBuilder doesn't check the configurable-cache-factory-config element when the non-default URI is passed to getFactory
Issue COH-2548: ClassNotFoundException can occur if multiple web applications are deployed when using application or EAR scoped cluster nodes
Issue COH-2547: NPE in Daemon.isGuarded()
Issue COH-2543: The optimistic locking mode does not reject updates to sessions that have been concurrently invalidated
Issue COH-2524: Multiple DefaultConfigurableCacheFactory instances fail returning NamedCaches on the same service
Issue COH-2521: CQC does does not propagate asynchronous events
Issue COH-2515: ArrayIndexOutOfBoundsException in SafeSortedMap
Issue COH-2495: Time to expand off-heap partitions when loading the cache is very slow with initial-size=1MB -
Weblogic Admin server restart issue
While restarting Oracle Weblogic Admin server, it is not running after below log.
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
Mar 12, 2015 7:33:07 PM oracle.security.jps.internal.idstore.util.LibOvdUtil pushLdapNamesToLibOvd
INFO: Pushed ldap name and types info to libOvd. Ldaps : DefaultAuthenticator:idstore.ldap.provideridstore.ldap.Hi,
These messages are Info Message Can you please post the complete Error stack for the same
Check the below threads which have similar issue reported
Integrated JDeveloper Weblogic 12C issues
Weblogic server not starting due to OutOfMemory
SOA Suite 12c Integrated Weblogic / Coherence Issue
Unable to run my application
Hope it helps -
Coherence exception - This service timed-out due to unanswered handshake request
Hi,
We are getting weird errors in production with below exception - Oracle Coherence GE 3.5.1/461 <Error> (thread=DistributedCache, member=2): validatePolls: This service timed-out due to unanswered handshake request. Manual intervention is required to stop the members that have not responded to this Poll.
To give little back ground on the issue, we had multicast coherence setup in production with 3 servers are in coherence cluster. We are using JBoss as our application server. Coherence version currently using in production is : 3.7.1.0b27797. Our applications are running in 2 data centers and interestingly this issue is occurring in only one data center. So not sure weather it is coherence issue or environmental issue.
If this issue occurs in one or two servers then they are able to recover after some time. But if is happens on all 3 servers, then all 3 servers are dead and causing production outage.
We have captured the thread dump from production servers when this issue occured and noticed all application threads are hanging at WAITING state with below thread stack trace
"http-0.0.0.0-8080-1200" daemon prio=10 tid=0x00002afffa32f800 nid=0x2d06 in Object.wait() [0x00002b0070702000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:485)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:31)
- locked <0x00000007903388b8> (a com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$UnlockRequest$Poll)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:11)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$BinaryMap.unlock(DistributedCache.CDB:32)
at com.tangosol.util.ConverterCollections$ConverterConcurrentMap.unlock(ConverterCollections.java:2032)
at com.tangosol.util.ConverterCollections$ConverterNamedCache.unlock(ConverterCollections.java:2555)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$ViewMap.unlock(DistributedCache.CDB:1)
P.S : Network team confirmed that multi cast connectivity is working fine and they have not seen any network outages.
Can you please help me understand this weird issue and fix this issue? Any help is highly appreciated.
Thanks,
RameshHi,
We are getting weird errors in production with below exception - Oracle Coherence GE 3.5.1/461 <Error> (thread=DistributedCache, member=2): validatePolls: This service timed-out due to unanswered handshake request. Manual intervention is required to stop the members that have not responded to this Poll.
To give little back ground on the issue, we had multicast coherence setup in production with 3 servers are in coherence cluster. We are using JBoss as our application server. Coherence version currently using in production is : 3.7.1.0b27797. Our applications are running in 2 data centers and interestingly this issue is occurring in only one data center. So not sure weather it is coherence issue or environmental issue.
If this issue occurs in one or two servers then they are able to recover after some time. But if is happens on all 3 servers, then all 3 servers are dead and causing production outage.
We have captured the thread dump from production servers when this issue occured and noticed all application threads are hanging at WAITING state with below thread stack trace
"http-0.0.0.0-8080-1200" daemon prio=10 tid=0x00002afffa32f800 nid=0x2d06 in Object.wait() [0x00002b0070702000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:485)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:31)
- locked <0x00000007903388b8> (a com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$UnlockRequest$Poll)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:11)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$BinaryMap.unlock(DistributedCache.CDB:32)
at com.tangosol.util.ConverterCollections$ConverterConcurrentMap.unlock(ConverterCollections.java:2032)
at com.tangosol.util.ConverterCollections$ConverterNamedCache.unlock(ConverterCollections.java:2555)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$ViewMap.unlock(DistributedCache.CDB:1)
P.S : Network team confirmed that multi cast connectivity is working fine and they have not seen any network outages.
Can you please help me understand this weird issue and fix this issue? Any help is highly appreciated.
Thanks,
Ramesh -
Wrapped: Unable to load class "com.cache.DBCacheStore"
Hi,
I was trying out a sample application for using DBCacheStore and getting the following error...
(Wrapped: Unable to load class "com.cache.DBCacheStore" using sun.misc.Launc
her$AppClassLoader@13f5d07
<class-scheme>
<class-name>com.cache.DBCacheStore</class-name>
</class-scheme>) java.lang.ClassNotFoundException: com.cache.DBCacheStore
I have the CLASSPATH set to the location of DBCacheStore.class file both in cache-server.cmd and in my application startup JVM params. But still i am not able to resolve this issue. However i am still able to hit the database and get the values for the first call and on sub-sequent call, i am able to retrive the value from cache. I also encounter the below error, after i have retrieved the values from cache...
2010-11-10 15:08:31.553/29.671 Oracle Coherence GE 3.6.0.0 <Error> (thread=Distr
ibutedCache, member=1): Terminating PartitionedCache due to unhandled exception:
java.lang.UnsupportedOperationException
2010-11-10 15:08:31.553/29.671 Oracle Coherence GE 3.6.0.0 <Error> (thread=Distr
ibutedCache, member=1):
java.lang.UnsupportedOperationException
at java.util.Collections$UnmodifiableMap.put(Collections.java:1285)
As the exception occurs, the cluster gets restarted and when i re-run the application, it again goes for a DB hit instead of cache hit.
Note : I have the cache-server.cmd running in one the console window.
Following is my cache-config.xml file content...
<?xml version="1.0" encoding="UTF-8" ?>
<cache-config>
<caching-scheme-mapping>
<!--
Caches with names that start with 'Virtual' will be created
as distributed-db-backed.
-->
<cache-mapping>
<cache-name>Virtual*</cache-name>
<scheme-name>distributed-db-backed</scheme-name>
</cache-mapping>
</caching-scheme-mapping>
<caching-schemes>
<!--
DB Backed Distributed caching scheme.
-->
<distributed-scheme>
<scheme-name>distributed-db-backed</scheme-name>
<service-name>DistributedCache</service-name>
<backing-map-scheme>
<read-write-backing-map-scheme>
<internal-cache-scheme>
<class-scheme>
<class-name>
com.tangosol.util.ObservableHashMap
</class-name>
</class-scheme>
</internal-cache-scheme>
<cachestore-scheme>
<class-scheme>
<class-name>
com.cache.DBCacheStore
</class-name>
<init-params>
<init-param>
<param-type>
java.lang.String
</param-type>
<param-value>
EMP_ADDR_VIEW
</param-value>
</init-param>
</init-params>
</class-scheme>
</cachestore-scheme>
<read-only>false</read-only>
<!--
To make this a write-through cache just change the value below to 0 (zero)
-->
<write-delay-seconds>0</write-delay-seconds>
</read-write-backing-map-scheme>
</backing-map-scheme>
<listener />
<autostart>true</autostart>
</distributed-scheme>
</caching-schemes>
</cache-config>
Thanks
Karthik
Edited by: user1073902 on Nov 10, 2010 4:25 AMHello Noah,
I have listed the contents of log file ( for both cache-server.cmd and the client application ).
cache-server.cmd Log File
=========================
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode)
2010-11-11 09:51:49.634/0.236 Oracle Coherence 3.6.0.0 <Info> (thread=main, memb
er=n/a): Loaded operational configuration from "jar:file:/E:/coherence/lib/coher
ence.jar!/tangosol-coherence.xml"
2010-11-11 09:51:49.634/0.236 Oracle Coherence 3.6.0.0 <Info> (thread=main, memb
er=n/a): Loaded operational overrides from "jar:file:/E:/coherence/lib/coherence
.jar!/tangosol-coherence-override-dev.xml"
2010-11-11 09:51:49.634/0.236 Oracle Coherence 3.6.0.0 <D5> (thread=main, member
=n/a): Optional configuration override "/tangosol-coherence-override.xml" is not
specified
2010-11-11 09:51:49.649/0.251 Oracle Coherence 3.6.0.0 <D5> (thread=main, member
=n/a): Optional configuration override "/custom-mbeans.xml" is not specified
2010-11-11 09:51:49.649/0.251 Oracle Coherence 3.6.0.0 <D6> (thread=main, member
=n/a): Loaded edition data from "jar:file:/E:/coherence/lib/coherence.jar!/coher
ence-grid.xml"
Oracle Coherence Version 3.6.0.0 Build 17229
Grid Edition: Development mode
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
2010-11-11 09:51:49.885/0.487 Oracle Coherence GE 3.6.0.0 <Info> (thread=main, m
ember=n/a): Loaded cache configuration from "file:/E:/bea/user_projects/workspac
es/workSpaceStudio/coh/cache-config.xml"
2010-11-11 09:51:50.231/0.833 Oracle Coherence GE 3.6.0.0 <D4> (thread=main, mem
ber=n/a): TCMP bound to /10.144.32.78:8088 using SystemSocketProvider
2010-11-11 09:51:53.786/4.388 Oracle Coherence GE 3.6.0.0 <Info> (thread=Cluster
, member=n/a): Created a new cluster "mycluster" with Member(Id=1, Timestamp=201
0-11-11 09:51:50.231, Address=10.144.32.78:8088, MachineId=47694, Location=site:
XyzT.CORP.Xyz.IN,machine:hdchshocms2026,process:4472, Role=CoherenceServer, Edit
ion=Grid Edition, Mode=Development, CpuCount=2, SocketCount=2) UID=0x0A90204E000
0012C392B0817BA4E1F98
2010-11-11 09:51:53.786/4.388 Oracle Coherence GE 3.6.0.0 <Info> (thread=main, m
ember=n/a): Started cluster Name=mycluster
Group{Address=224.0.0.1, Port=5455, TTL=4}
MasterMemberSet
ThisMember=Member(Id=1, Timestamp=2010-11-11 09:51:50.231, Address=10.144.32.7
8:8088, MachineId=47694, Location=site:XyzT.CORP.Xyz.IN,machine:hdchshocms2026,p
rocess:4472, Role=CoherenceServer)
OldestMember=Member(Id=1, Timestamp=2010-11-11 09:51:50.231, Address=10.144.32
.78:8088, MachineId=47694, Location=site:XyzT.CORP.Xyz.IN,machine:hdchshocms2026
,process:4472, Role=CoherenceServer)
ActualMemberSet=MemberSet(Size=1, BitSetCount=2
Member(Id=1, Timestamp=2010-11-11 09:51:50.231, Address=10.144.32.78:8088, M
achineId=47694, Location=site:XyzT.CORP.Xyz.IN,machine:hdchshocms2026,process:44
72, Role=CoherenceServer)
RecycleMillis=1200000
RecycleSet=MemberSet(Size=0, BitSetCount=0
TcpRing{Connections=[]}
IpMonitor{AddressListSize=0}
2010-11-11 09:51:53.833/4.435 Oracle Coherence GE 3.6.0.0 <D5> (thread=Invocatio
n:Management, member=1): Service Management joined the cluster with senior servi
ce member 1
2010-11-11 09:51:54.085/4.687 Oracle Coherence GE 3.6.0.0 <D5> (thread=Distribut
edCache, member=1): Service DistributedCache joined the cluster with senior serv
ice member 1
2010-11-11 09:51:54.101/4.703 Oracle Coherence GE 3.6.0.0 <D6> (thread=Distribut
edCache, member=1): Service DistributedCache: sending PartitionConfig ConfigSync
to all
2010-11-11 09:51:54.116/4.718 Oracle Coherence GE 3.6.0.0 <Info> (thread=main, m
ember=1):
Services
ClusterService{Name=Cluster, State=(SERVICE_STARTED, STATE_JOINED), Id=0, Vers
ion=3.6, OldestMemberId=1}
InvocationService{Name=Management, State=(SERVICE_STARTED), Id=1, Version=3.1,
OldestMemberId=1}
PartitionedCache{Name=DistributedCache, State=(SERVICE_STARTED), LocalStorage=
enabled, PartitionCount=257, BackupCount=1, AssignedPartitions=257, BackupPartit
ions=0}
Started DefaultCacheServer...
2010-11-11 09:55:41.209/231.811 Oracle Coherence GE 3.6.0.0 <D5> (thread=Cluster
, member=1): Member(Id=2, Timestamp=2010-11-11 09:55:41.216, Address=10.144.32.7
8:8090, MachineId=47694, Location=site:XyzT.CORP.Xyz.IN,machine:hdchshocms2026,p
rocess:5304, Role=XyzCacheDatabaseCache) joined Cluster with senior member 1
2010-11-11 09:55:41.209/231.811 Oracle Coherence GE 3.6.0.0 <D6> (thread=Cluster
, member=1): TcpRing connecting to Member(Id=2, Timestamp=2010-11-11 09:55:41.21
6, Address=10.144.32.78:8090, MachineId=47694, Location=site:XyzT.CORP.Xyz.IN,ma
chine:hdchshocms2026,process:5304, Role=XyzCacheDatabaseCache)
2010-11-11 09:55:41.209/231.811 Oracle Coherence GE 3.6.0.0 <D6> (thread=Cluster
, member=1): TcpRing connected to Member(Id=2, Timestamp=2010-11-11 09:55:41.216
, Address=10.144.32.78:8090, MachineId=47694, Location=site:XyzT.CORP.Xyz.IN,mac
hine:hdchshocms2026,process:5304, Role=XyzCacheDatabaseCache)
2010-11-11 09:55:41.287/231.889 Oracle Coherence GE 3.6.0.0 <D5> (thread=Cluster
, member=1): Member 2 joined Service Management with senior member 1
2010-11-11 09:55:41.553/232.155 Oracle Coherence GE 3.6.0.0 <D5> (thread=Cluster
, member=1): Member 2 joined Service DistributedCache with senior member 1
2010-11-11 09:55:41.553/232.155 Oracle Coherence GE 3.6.0.0 <Error> (thread=Dist
ributedCache, member=1): BackingMapManager com.tangosol.net.DefaultConfigurableC
acheFactory$Manager: failed to instantiate a cache: VirtualCache
2010-11-11 09:55:41.553/232.155 Oracle Coherence GE 3.6.0.0 <Error> (thread=Dist
ributedCache, member=1):
(Wrapped: Unable to load class "com.cache.DBCacheStore" using sun.misc.Launc
her$AppClassLoader@13f5d07
<class-scheme>
<class-name>com.cache.DBCacheStore</class-name>
<init-params>
<init-param>
<param-type>java.lang.String</param-type>
<param-value>EMP_ADDR_VIEW</param-value>
</init-param>
</init-params>
</class-scheme>) java.lang.ClassNotFoundException: com.cache.DBCacheStore
at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2487)
at com.tangosol.net.DefaultConfigurableCacheFactory.instantiateAny(Defau
ltConfigurableCacheFactory.java:3256)
at com.tangosol.net.DefaultConfigurableCacheFactory.instantiateCacheStor
e(DefaultConfigurableCacheFactory.java:3106)
at com.tangosol.net.DefaultConfigurableCacheFactory.instantiateReadWrite
BackingMap(DefaultConfigurableCacheFactory.java:1674)
at com.tangosol.net.DefaultConfigurableCacheFactory.configureBackingMap(
DefaultConfigurableCacheFactory.java:1429)
at com.tangosol.net.DefaultConfigurableCacheFactory$Manager.instantiateB
ackingMap(DefaultConfigurableCacheFactory.java:3904)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.g
rid.partitionedService.PartitionedCache$Storage.instantiateResourceMap(Partition
edCache.CDB:21)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.g
rid.partitionedService.PartitionedCache$Storage.setCacheName(PartitionedCache.CD
B:25)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.g
rid.partitionedService.PartitionedCache$ServiceConfig$ConfigListener.entryInsert
ed(PartitionedCache.CDB:17)
at com.tangosol.util.MapEvent.dispatch(MapEvent.java:266)
at com.tangosol.util.MapEvent.dispatch(MapEvent.java:226)
at com.tangosol.util.MapListenerSupport.fireEvent(MapListenerSupport.jav
a:556)
at com.tangosol.util.ObservableHashMap.dispatchEvent(ObservableHashMap.j
ava:229)
at com.tangosol.util.ObservableHashMap$Entry.onAdd(ObservableHashMap.jav
a:270)
at com.tangosol.util.SafeHashMap.put(SafeHashMap.java:244)
at com.tangosol.coherence.component.util.ServiceConfig$Map.put(ServiceCo
nfig.CDB:43)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.g
rid.partitionedService.PartitionedCache$StorageIdRequest.onReceived(PartitionedC
ache.CDB:45)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid.onMessage(Grid.CDB:11)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid.onNotify(Grid.CDB:33)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.g
rid.PartitionedService.onNotify(PartitionedService.CDB:3)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.g
rid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:3)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: com.cache.DBCacheStore
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at com.tangosol.util.ExternalizableHelper.loadClass(ExternalizableHelper
.java:3011)
at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2421)
... 22 more
2010-11-11 09:55:41.631/232.233 Oracle Coherence GE 3.6.0.0 <D5> (thread=Distrib
utedCache, member=1): 3> Transferring primary PartitionSet{0, 1, 2, 3, 4, 5, 6,
7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67,
68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87,
88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 1
06, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 1
22, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 1
38, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 1
54, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 1
70, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 1
86, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 2
02, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 2
18, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 2
34, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 2
50, 251, 252, 253, 254, 255, 256} to member 2 requesting 128
2010-11-11 09:55:41.741/232.343 Oracle Coherence GE 3.6.0.0 <D4> (thread=Distrib
utedCache, member=1): 1> Transferring 129 out of 129 partitions to a node-safe b
ackup 1 at member 2 (under 129)
2010-11-11 09:55:41.757/232.359 Oracle Coherence GE 3.6.0.0 <D5> (thread=Distrib
utedCache, member=1): Transferring 0KB of backup[1] for PartitionSet{128, 129, 1
30, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 1
46, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 1
62, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 1
78, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 1
94, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 2
10, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 2
26, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 2
42, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256} to mem
ber 2
2010-11-11 09:55:42.070/232.672 Oracle Coherence GE 3.6.0.0 <D5> (thread=Cluster
, member=1): TcpRing disconnected from Member(Id=2, Timestamp=2010-11-11 09:55:4
1.216, Address=10.144.32.78:8090, MachineId=47694, Location=site:XyzT.CORP.Xyz.I
N,machine:hdchshocms2026,process:5304, Role=XyzCacheDatabaseCache) due to a peer
departure; removing the member.
2010-11-11 09:55:42.070/232.672 Oracle Coherence GE 3.6.0.0 <D5> (thread=Cluster
, member=1): Member 2 left service Management with senior member 1
2010-11-11 09:55:42.070/232.672 Oracle Coherence GE 3.6.0.0 <D5> (thread=Cluster
, member=1): Member 2 left service DistributedCache with senior member 1
2010-11-11 09:55:42.070/232.672 Oracle Coherence GE 3.6.0.0 <D5> (thread=Cluster
, member=1): Member(Id=2, Timestamp=2010-11-11 09:55:42.07, Address=10.144.32.78
:8090, MachineId=47694, Location=site:XyzT.CORP.Xyz.IN,machine:hdchshocms2026,pr
ocess:5304, Role=XyzCacheDatabaseCache) left Cluster with senior member 1
2010-11-11 09:55:42.101/232.703 Oracle Coherence GE 3.6.0.0 <Error> (thread=Dist
ributedCache, member=1): Terminating PartitionedCache due to unhandled exception
: java.lang.UnsupportedOperationException
2010-11-11 09:55:42.101/232.703 Oracle Coherence GE 3.6.0.0 <Error> (thread=Dist
ributedCache, member=1):
java.lang.UnsupportedOperationException
at java.util.Collections$UnmodifiableMap.put(Collections.java:1285)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.g
rid.partitionedService.PartitionedCache$Storage.putPrimaryResource(PartitionedCa
che.CDB:44)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.g
rid.partitionedService.PartitionedCache$Storage.moveResourcesToPrimary(Partition
edCache.CDB:50)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.g
rid.partitionedService.PartitionedCache$Storage.movePartition(PartitionedCache.C
DB:9)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.g
rid.partitionedService.PartitionedCache.movePartition(PartitionedCache.CDB:14)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.g
rid.PartitionedService.assignPrimaryPartition(PartitionedService.CDB:38)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.g
rid.PartitionedService.restoreOrphans(PartitionedService.CDB:42)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.g
rid.PartitionedService.onOwnershipRequest(PartitionedService.CDB:13)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.g
rid.PartitionedService$OwnershipRequest.onReceived(PartitionedService.CDB:5)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid.onMessage(Grid.CDB:11)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.G
rid.onNotify(Grid.CDB:33)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.g
rid.PartitionedService.onNotify(PartitionedService.CDB:3)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.g
rid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:3)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
at java.lang.Thread.run(Thread.java:619)
2010-11-11 09:55:42.101/232.703 Oracle Coherence GE 3.6.0.0 <D5> (thread=Distrib
utedCache, member=1): Service DistributedCache left the cluster
2010-11-11 09:55:45.012/235.614 Oracle Coherence GE 3.6.0.0 <Info> (thread=main,
member=1): Restarting Service: DistributedCache
2010-11-11 09:55:45.012/235.614 Oracle Coherence GE 3.6.0.0 <D5> (thread=Distrib
utedCache, member=1): Service DistributedCache joined the cluster with senior se
rvice member 1
2010-11-11 09:55:45.012/235.614 Oracle Coherence GE 3.6.0.0 <D6> (thread=Distrib
utedCache, member=1): Service DistributedCache: sending PartitionConfig ConfigSy
nc to all
Client Application Log
======================
2010-11-11 09:59:07.380/0.251 Oracle Coherence 3.6.0.0 <Info> (thread=main, member=n/a): Loaded operational configuration from "jar:file:/E:/coherence/lib/coherence.jar!/tangosol-coherence.xml"
2010-11-11 09:59:07.380/0.251 Oracle Coherence 3.6.0.0 <Info> (thread=main, member=n/a): Loaded operational overrides from "jar:file:/E:/coherence/lib/coherence.jar!/tangosol-coherence-override-dev.xml"
2010-11-11 09:59:07.380/0.251 Oracle Coherence 3.6.0.0 <D5> (thread=main, member=n/a): Optional configuration override "/tangosol-coherence-override.xml" is not specified
2010-11-11 09:59:07.380/0.251 Oracle Coherence 3.6.0.0 <D5> (thread=main, member=n/a): Optional configuration override "/custom-mbeans.xml" is not specified
2010-11-11 09:59:07.395/0.266 Oracle Coherence 3.6.0.0 <D6> (thread=main, member=n/a): Loaded edition data from "jar:file:/E:/coherence/lib/coherence.jar!/coherence-grid.xml"
Oracle Coherence Version 3.6.0.0 Build 17229
Grid Edition: Development mode
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
2010-11-11 09:59:07.896/0.767 Oracle Coherence GE 3.6.0.0 <D4> (thread=main, member=n/a): TCMP bound to /10.144.32.78:8090 using SystemSocketProvider
2010-11-11 09:59:09.164/2.035 Oracle Coherence GE 3.6.0.0 <Info> (thread=Cluster, member=n/a): This Member(Id=2, Timestamp=2010-11-11 09:59:09.164, Address=10.144.32.78:8090, MachineId=47694, Location=site:XyzT.CORP.Xyz.IN,machine:hdchshocms2026,process:2404, Role=XyzCacheDatabaseCache, Edition=Grid Edition, Mode=Development, CpuCount=2, SocketCount=2) joined cluster "mycluster" with senior Member(Id=1, Timestamp=2010-11-11 09:58:30.832, Address=10.144.32.78:8088, MachineId=47694, Location=site:XyzT.CORP.Xyz.IN,machine:hdchshocms2026,process:4772, Role=CoherenceServer, Edition=Grid Edition, Mode=Development, CpuCount=2, SocketCount=2)
2010-11-11 09:59:09.180/2.051 Oracle Coherence GE 3.6.0.0 <D6> (thread=Cluster, member=n/a): TcpRing connecting to Member(Id=1, Timestamp=2010-11-11 09:58:30.832, Address=10.144.32.78:8088, MachineId=47694, Location=site:XyzT.CORP.Xyz.IN,machine:hdchshocms2026,process:4772, Role=CoherenceServer)
2010-11-11 09:59:09.180/2.051 Oracle Coherence GE 3.6.0.0 <D6> (thread=Cluster, member=n/a): TcpRing connected to Member(Id=1, Timestamp=2010-11-11 09:58:30.832, Address=10.144.32.78:8088, MachineId=47694, Location=site:XyzT.CORP.Xyz.IN,machine:hdchshocms2026,process:4772, Role=CoherenceServer)
2010-11-11 09:59:09.180/2.051 Oracle Coherence GE 3.6.0.0 <D5> (thread=Cluster, member=n/a): Member 1 joined Service Cluster with senior member 1
2010-11-11 09:59:09.180/2.051 Oracle Coherence GE 3.6.0.0 <D5> (thread=Cluster, member=n/a): Member 1 joined Service Management with senior member 1
2010-11-11 09:59:09.180/2.051 Oracle Coherence GE 3.6.0.0 <D5> (thread=Cluster, member=n/a): Member 1 joined Service DistributedCache with senior member 1
2010-11-11 09:59:09.180/2.051 Oracle Coherence GE 3.6.0.0 <Info> (thread=main, member=n/a): Started cluster Name=mycluster
Group{Address=224.0.0.1, Port=5455, TTL=4}
MasterMemberSet
ThisMember=Member(Id=2, Timestamp=2010-11-11 09:59:09.164, Address=10.144.32.78:8090, MachineId=47694, Location=site:XyzT.CORP.Xyz.IN,machine:hdchshocms2026,process:2404, Role=XyzCacheDatabaseCache)
OldestMember=Member(Id=1, Timestamp=2010-11-11 09:58:30.832, Address=10.144.32.78:8088, MachineId=47694, Location=site:XyzT.CORP.Xyz.IN,machine:hdchshocms2026,process:4772, Role=CoherenceServer)
ActualMemberSet=MemberSet(Size=2, BitSetCount=2
Member(Id=1, Timestamp=2010-11-11 09:58:30.832, Address=10.144.32.78:8088, MachineId=47694, Location=site:XyzT.CORP.Xyz.IN,machine:hdchshocms2026,process:4772, Role=CoherenceServer)
Member(Id=2, Timestamp=2010-11-11 09:59:09.164, Address=10.144.32.78:8090, MachineId=47694, Location=site:XyzT.CORP.Xyz.IN,machine:hdchshocms2026,process:2404, Role=XyzCacheDatabaseCache)
RecycleMillis=1200000
RecycleSet=MemberSet(Size=0, BitSetCount=0
TcpRing{Connections=[1]}
IpMonitor{AddressListSize=0}
2010-11-11 09:59:09.227/2.098 Oracle Coherence GE 3.6.0.0 <D5> (thread=Invocation:Management, member=2): Service Management joined the cluster with senior service member 1
2010-11-11 09:59:09.289/2.160 Oracle Coherence GE 3.6.0.0 <Info> (thread=main, member=2): Loaded cache configuration from "file:/E:/bea/user_projects/workspaces/workSpaceStudio/coh/cache-config.xml"
2010-11-11 09:59:09.461/2.332 Oracle Coherence GE 3.6.0.0 <D5> (thread=DistributedCache, member=2): Service DistributedCache joined the cluster with senior service member 1
DB Hit
DBCacheStore(String) called...
2010-11-11 09:59:09.524/2.395 Oracle Coherence GE 3.6.0.0 <D4> (thread=DistributedCache, member=2): Asking member 1 for 128 primary partitions
load() called...
Emp Id:1, Emp Name:Employee, Emp Addr:Address
Cache Hit
Emp Id:1, Emp Name:Employee, Emp Addr:Address
Client Java Program
===================
package com.cache;
import com.tangosol.net.CacheFactory;
import com.tangosol.net.NamedCache;
public class DatabaseCache {
public DatabaseCache() { }
private NamedCache cache;
public void createCache() {
CacheFactory.ensureCluster();
cache = CacheFactory.getCache("VirtualCache");
public void retrieveEntry() {
System.out.println("DB Hit");
System.out.println(cache.get("1"));
System.out.println("Cache Hit");
System.out.println(cache.get("1"));
public static void main(String[] args) {
DatabaseCache databaseCache = new DatabaseCache();
databaseCache.createCache();
databaseCache.retrieveEntry();
DBCacheStore Java Program
=========================
Note : I am querying an ORACLE VIEW
package com.cache;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import com.tangosol.net.cache.CacheStore;
import com.tangosol.util.Base;
public class DBCacheStore extends Base implements CacheStore {
private String tableName = null;
public DBCacheStore() {
System.out.println("DBCacheStore() called...");
public DBCacheStore(String tableName) {
System.out.println("DBCacheStore(String) called...");
this.tableName = tableName;
private Connection getConnection() throws Exception {
Class.forName("oracle.jdbc.driver.OracleDriver");
String url = "jdbc:oracle:thin:@localhost:1521:xe";
Connection connection = DriverManager.getConnection(url,"system","manager");
return connection;
public void erase(Object arg0) {
System.out.println("erase() called...");
public void eraseAll(Collection arg0) {
System.out.println("eraseAll() called...");
public void store(Object key, Object value) {
System.out.println("store() called...");
public void storeAll(Map arg0) {
System.out.println("storeAll() called...");
public Object load(Object obj) {
System.out.println("load() called...");
Employee employee = null;
Connection con = null;
PreparedStatement pStmt = null;
ResultSet rSet = null;
try {
con = getConnection();
pStmt = con.prepareStatement("select emp_id, emp_name, address from " + tableName + " where emp_id = ?");
pStmt.setInt(1, Integer.parseInt((String)obj));
rSet = pStmt.executeQuery();
if(rSet.next()) {
employee = new Employee();
employee.setEmpId(rSet.getInt("emp_id"));
employee.setEmpName(rSet.getString("emp_name"));
employee.setEmpAddr(rSet.getString("address"));
} catch(Exception e) {
e.printStackTrace();
} finally {
try {
if(rSet != null)
rSet.close();
if(pStmt != null)
pStmt.close();
if(con != null)
con.close();
} catch(Exception e) {
e.printStackTrace();
return employee;
public Map loadAll(Collection arg0) {
System.out.println("loadAll() called...");
Connection con = null;
PreparedStatement pStmt = null;
ResultSet rSet = null;
Employee employee = null;
Map empMap = new HashMap();
try {
con = getConnection();
pStmt = con.prepareStatement("select emp_id, emp_name, address from " + tableName);
rSet = pStmt.executeQuery();
while(rSet.next()) {
employee = new Employee();
employee.setEmpId(rSet.getInt("emp_id"));
employee.setEmpName(rSet.getString("emp_name"));
employee.setEmpAddr(rSet.getString("address"));
empMap.put(employee.getEmpId(), employee);
} catch(Exception e) {
e.printStackTrace();
} finally {
try {
if(rSet != null)
rSet.close();
if(pStmt != null)
pStmt.close();
if(con != null)
con.close();
} catch(Exception e) {
e.printStackTrace();
return empMap;
public Iterator keys() {
Connection con = null;
PreparedStatement pStmt = null;
ResultSet rSet = null;
List returnList = null;
try {
con = getConnection();
pStmt = con.prepareStatement("select emp_id from emp_addr_view");
rSet = pStmt.executeQuery();
returnList = new LinkedList();
while(rSet.next()) {
returnList.add(rSet.getString("empId"));
} catch(Exception e) {
e.printStackTrace();
} finally {
try {
if(rSet != null)
rSet.close();
if(pStmt != null)
pStmt.close();
if(con != null)
con.close();
} catch(Exception e) {
e.printStackTrace();
return returnList.iterator();
cache-server.cmd added lines
============================
set CLASSPATH=%CLASSPATH%;E:\bea\user_projects\workspaces\workSpaceStudio\coh\bin;E:\bea\wlserver_10.0\server\lib\ojdbc14.jar;
Note : E:\bea\user_projects\workspaces\workSpaceStudio\coh\bin in the above line contains compiled class files starting from "com" folder.
"%java_exec%" -server -showversion "%java_opts%" -cp E:\bea\user_projects\workspaces\workSpaceStudio\coh\bin -Dtangosol.coherence.log.level=9 -Dtangosol.coherence.cluster=mycluster -Dtangosol.coherence.clusteraddress=224.0.0.1 -Dtangosol.coherence.clusterport=5455 -Dtangosol.coherence.cacheconfig=E:\bea\user_projects\workspaces\workSpaceStudio\coh\cache-config.xml -cp "%coherence_home%\lib\coherence.jar" com.tangosol.net.DefaultCacheServer %1
JVM arguments for running Client Program : DatabaseCache.java
=======================================
-Dtangosol.coherence.cacheconfig=E:\bea\user_projects\workspaces\workSpaceStudio\coh\cache-config.xml
-Dtangosol.coherence.cluster=mycluster
-Dtangosol.coherence.clusteraddress=224.0.0.1
-Dtangosol.coherence.clusterport=5455
==================================================================================================
Please do let me know if you require further information.
Thanks
Karthik -
Hi,
We use TCP Extend* to connect to Coherence clusters (Version 3.4.1). And we came across following error on client side. May someone please throw light on what could be the possible reason(s):
[deadlocked thread] DistributedCacheForFIIndicative-NY:TcpInitiator:TcpReader:
Thread 'DistributedCacheForFIIndicative-NY:TcpInitiator:TcpReader' is waiting to acquire lock 'com.tangosol.util.SparseArray@ae3f05' that is held by thread 'DistributedCacheForFIIndicative-NY:TcpInitiator'
Stack trace:
com.tangosol.coherence.component.net.extend.Channel.unregisterRequest(Channel.CDB:6)
com.tangosol.coherence.component.net.extend.Channel.onRequestCompleted(Channel.CDB:1)
com.tangosol.coherence.component.net.extend.message.Request$Status.cancel(Request.CDB:27)
com.tangosol.coherence.component.net.extend.message.Request$Status.waitForResponse(Request.CDB:47)
com.tangosol.coherence.component.net.extend.Channel.request(Channel.CDB:20)
com.tangosol.coherence.component.net.extend.Channel.request(Channel.CDB:1)
com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.closeConnection(Peer.CDB:16)
com.tangosol.coherence.component.net.extend.Connection.close(Connection.CDB:15)
com.tangosol.coherence.component.util.daemon.queueProcessor.service.peer.initiator.TcpInitiator$TcpConnection$TcpReader.onNotify(TcpInitiator.CDB:46)
com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:37)
java.lang.Thread.run(Thread.java:595)
[deadlocked thread] DistributedCacheForFIIndicative-NY:TcpInitiator:
Thread 'DistributedCacheForFIIndicative-NY:TcpInitiator' is waiting to acquire lock 'com.tangosol.coherence.component.net.extend.message.Request$Status@1ab68ca' that is held by thread 'DistributedCacheForFIIndicative-NY:TcpInitiator:TcpReader'
Stack trace:
com.tangosol.coherence.component.net.extend.message.Request$Status.cancel(Request.CDB:12)
com.tangosol.coherence.component.net.extend.Channel.closeInternal(Channel.CDB:25)
com.tangosol.coherence.component.net.extend.Connection.closeInternal(Connection.CDB:63)
com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.onExit(Peer.CDB:1)
com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:60)
java.lang.Thread.run(Thread.java:595)Hi user10737736,
This looks like a known issue (COH-2188) which has been resolved versions 3.5.1 and higher. There is no fix available for the 3.4 version, so I would recommend upgrading to the latest 3.5 service pack and seeing if the issue is resolved. Note that you would only technically need to upgrade your TCMP nodes as the 3.4 extend clients can connect into the 3.5 proxy.
thanks,
Mark
Oracle Coherence -
Hi Guys,
I've just discovered by trial and error and a bit of head scratching that if using multiple network filters they need to be specified in the opposite order for client and server.
Might be worth adding it to the docs below to save someone else the pain.
http://wiki.tangosol.com/display/COH35UG/initiator-config
Regards, PaulHi Paul,
It looks like in the case of multiple filters applied to the Coherence*Extend messages, we erroneously apply the filters in the same order by both transmitter and receiver. (I would like to mention that the TCMP message filtering is implemented correctly). This is obviously a bug and you just found a workaround for it. I have opened a corresponding issue (COH-2639). Naturally, you would have to un-reverse the sequence when it's fixed.
Thanks,
Gene -
Are put()'s to a replicated cache atomic?
We are using Coherence for a storage application and we're observing what may be a Coherence issue with latency on put()'s to a replicated cache.
We have two software nodes on different servers sharing information in the cache and I need to know if I can count on a put() being atomic with respect to all software and hardware nodes in the grid.
Does anyone know if these operations are guaranteed to be atomic on replicated caches, and that an entry will be visible to ALL nodes when the put() returns?
Thanks,
Stacy MaydewYou could use explicit locking, for example,
if (cache.lock(key, timeout)) {
try {
Object value = cache.get(key);
cache.put(key, value);
} finally {
cache.unlock(key);
} else {
// decide what to do if you cannot obtain a lock
}Note that when using explicit locking, you will require multiple trips to the cache server: to lock the entry,
to retrieve the value, to update it and to unlock it. Which increases the latency.
You can also use an entry processor which carries the information needed for the update.
An entry processor eliminates the need for explicit concurrency control.
An example
public class KlantNaamEntryProcessor extends AbstractProcessor implements Serializable {
public KlantNaamEntryProcessor() {
public Object process(InvocableMap.Entry entry) {
Klant klant = (Klant) entry.getValue();
klant.setNaam(klant.getNaam().toLowerCase());
entry.setValue(klant);
return klant;
and it's usage
cache.invokeAll(filter, new KlantNaamEntryProcessor()).entrySet().iterator();Better examples can be found here: http://wiki.tangosol.com/display/COH33UG/Transactions,+Locks+and+Concurrency -
Local Cache Visibility from the Cluster
Hi, can you give me an explanation for the following Coherence issue, please ?
I found in the documentation that the Coherence local cache is just that: a cache that is local to (completely contained within) a particular cluster node and is accessible from a single JVM.
On te other hand, I also found the following statement:
“ Clustered caches are accessible from multiple JVMs (any cluster node running the same cache service). The cache service provides the capability to access local caches from other cluster nodes.”
My questions are:
If I have local off-heap NIO memory cache or NIO File Manager cache on the one Coherence node, can it be visible from other Coherence nodes as a clustered cache ?
Also, if I have NIO File Manager cache on a shared disk, is it possible to configure all nodes to work with that cache ?
Best Regards,
Tomislav MilinovicTomislav,
I will answer your questions on top of your statements, OK?
"Coherence local cache is just that: a cache that is local to (completely contained within) a particular cluster node and is accessible from a single JVM"
Considering the partitioned (distributed) scheme, Coherence is a truly peer-to-peer technology in which data is spread across a cluster of nodes, the primary data is stored in a local JVM of one node, and its backup is stored in another node, preferably in another site, cluster or rack.
"Clustered caches are accessible from multiple JVMs (any cluster node running the same cache service). The cache service provides the capability to access local caches from other cluster nodes"
Yes, no matter if the data is stored locally in a single node of the cluster, but when you access that data through its key, Coherence automatically finds that data in the cluster and brings to you. Its transparently for the developer the location of data, but one thing is certain: you have a global view of caches, meaning that from every single member, you have access to all data stored. This is one of the magic that the Coherence protocol (called TCMP) does for you.
"If I have local off-heap NIO memory cache or NIO File Manager cache on the one Coherence node, can it be visible from other Coherence nodes as a clustered cache ?"
As I said earlier, yes, you can access all the data stored from any node of the cluster. The way in which each node store its data (called as backing map scheme) can differ. One node can use an elastic data as backing map scheme, and another node can use Off-Heap NIO Memory Manager as backing map. This is just the way about each node store its data. For the architectural point of view, its a nice choice to use the same backing map scheme across multiple nodes, because each backing map scheme can have different behaviors when you read and/or write data. One could be faster and another could be slower.
"Also, if I have NIO File Manager cache on a shared disk, is it possible to configure all nodes to work with that cache ?"
There is no need for that, since data is available to all cluster nodes without any effort. Having said that, this would be a bad strategy choice. Coherence is a shared-nothing technology which uses that model to scale and give you predictable latency. If you start using a shared-disk as storage for data, you will lose the essence of shared-nothing benefits, and create a huge bottleneck in the data mgmt layer, since will occur dispute per I/O in each read/write.
Cheers,
Ricardo Ferreira -
I have looked at the documentation for the KeyAssociatedFilter, KeyAssociator etc but see some limitations with them (or perhaps I have missed something obvious)...
In our case we have some classes were the parent object contain keys to a number of children. Nor the child objects or the child keys are aware of who there parent is (In the database the situation is of course the opposite but in the data model we only need to traverse from parent to child and in order to avoid redundant storage/updates we only want that direction represented).
I belive the association feature would become more useful if it was possible to handle both parent / child & child / parent relations and if the associator had access to both the key and the object when extracting the parent or child keys.
Best Regards
MagnusHi Magnus,
Coincidentally, this was the topic of discussion here yesterday (brought up by the Partition Affinity doc that we just finished); there is a tracking issue (COH-433) on the topic. Unfortunately, at present, the easiest way to get access to parent and child information within a single context is to use an Invocable object (via InvocationService) to directly access the backing map.
The associator pattern unfortunately has to rely only on state in the key (as we don't have an explicit "const" attribute for state held in the value).
Jon Purdy
Tangosol, Inc. -
Hi,
I'm confused about the semantics of KeySet(filter)...
If you read the docs, it says:
public Set KeySet(filter)
Return a set view of the keys contained in this map for entries that satisfy the criteria expressed by the filter.
Unlike the Map.keySet() method, the set returned by this method is not backed by the map, so changes to the set are not reflected in the map, and vice-versa.
[No exceptions thrown in the method signature.]
By reading this, I'm interpreting that:
Since the set is NOT backed up by the map, the results of the set may not be a consistent view of the keyset (some entries may have been modified after iterating through the map)...in other words, the map is not necessarily locked while the traversing is taking place.
Therefore I would expect ConcurrentModificationException not to be thrown.
However, this doesn't seem to be the case...
if I perform a search while modifying the map from another jvm, this is what happens:
-If the map is distributed, it seems to always work. no problem.
-If the map is replicated (same code, just changing the configuration file), it throws a ConcurrentModificationException!
What are the semantics of this operation?
I'm using 3.0.1/317
BTW, while I am at it: how come you cannot add an index to a replicated cache?
Thanks!Thanks Gene,
As I wrote earlier, in case of partitioned cache you never get a CME because the cache service is actually catches it and reverts to a local lock to collect a content snapshot. As a result, the client will never see a CME (with or without an index). Adding indexes just makes query operations much more efficient.Good. Your initial explanation seemed more a hypotetical situation since you used a conditional tense: "If an cache update rate is very high, individual storage-enabled node could impose a local lock for a short period of time necessary to collect a local content snapshot without getting a ConcurrentModificationException." ... so I thought you were only talking about possible things to do, rather than what's currently being done. That's good.
The reason we always attempt to iterate through the cache content using an iterator rather than a snapshot (e.g. toArray()) is that iteration is more efficient (performance-wise and memory-wise) and there is no reason to pay if the cache update rate is relatively low.I believe this is completely legitimate and probably the best option for most cases.
I'm quite surprised that you always see CME with replicated cache. If you use a standard backing map scheme (such as "local-scheme"), the underlying Map implementation is quite stable in regard to iterators and throws CME only if it had to grow (which does not happen often) while iteration is in progress or if the clear() method is called.Well, in my case this happens in stress-testing: I have a client performing searches while another node is inserting 100K objects into the cache. I believe this definitely matches the "map growing" option that you are describing.
However, I agree with you that the replicated cache implementation could be more robust and actually revert to an operation against a cache snapshot in case of frequent cache updates. I have opened an issue COH-384 in that respect.Excellent. Thanks a lot Gene.
Josep M. -
Java.io.StreamCorruptedException: illegal handle value
Hi
I am using Oracle Coherence 3.3 in my application. I my application we are taking the objects from Webservices and storing them in the Cache(Replicated). And then retrieve them from the Cache.
But now on our application Linux server we are getting "java.io.StreamCorruptedException: illegal handle value"
Can anybody tell the reason of this. I am not sure whether it is a Coherence issue.
The log of error which i am getting is this. Please do reply. Its really urgent.
[6/7/08 11:23:36:287 EDT] 00004442 SystemErr R (Wrapped: CacheName=UMAChannelZipCache, Key=44120) java.io.StreamCorruptedException: illegal handle value
at java.io.ObjectInputStream.readHandle(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))
at java.util.HashMap.readObject(HashMap.java(Compiled Code))
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java(Compiled Code))
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))
at java.util.TreeMap.buildFromSorted(TreeMap.java(Compiled Code))
at java.util.TreeMap.buildFromSorted(TreeMap.java(Compiled Code))
at java.util.TreeMap.buildFromSorted(TreeMap.java(Compiled Code))
at java.util.TreeMap.buildFromSorted(TreeMap.java(Compiled Code))
at java.util.TreeMap.buildFromSorted(TreeMap.java(Compiled Code))
at java.util.TreeMap.buildFromSorted(TreeMap.java(Compiled Code))
at java.util.TreeMap.buildFromSorted(TreeMap.java(Compiled Code))
at java.util.TreeMap.buildFromSorted(TreeMap.java(Compiled Code))
at java.util.TreeMap.buildFromSorted(TreeMap.java(Inlined Compiled Code))
at java.util.TreeMap.readTreeSet(TreeMap.java(Inlined Compiled Code))
at java.util.TreeSet.readObject(TreeSet.java(Compiled Code))
at sun.reflect.GeneratedMethodAccessor167.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java(Compiled Code))
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))
at java.util.HashMap.readObject(HashMap.java(Compiled Code))
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java(Compiled Code))
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))
at com.tangosol.util.ExternalizableHelper.readSerializable(ExternalizableHelper.java(Inlined Compiled Code))
at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java(Compiled Code))
at com.tangosol.coherence.component.net.Message.readObject(Message.CDB(Inlined Compiled Code))
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.ReplicatedCache$ConverterFromInternal.convert(ReplicatedCache.CDB(Compiled Code))
at com.tangosol.coherence.component.util.CacheHandler.getCachedResource(CacheHandler.CDB(Compiled Code))
at com.tangosol.coherence.component.util.CacheHandler.get(CacheHandler.CDB(Compiled Code))
at com.tangosol.coherence.component.util.SafeNamedCache.get(SafeNamedCache.CDB(Compiled Code))
at com.att.uma.cache.ChannelCacheManager.checkCacheByZip(ChannelCacheManager.java(Compiled Code))
at com.att.uma.channel.UMAChannelServices.getChannelsByZip(UMAChannelServices.java(Compiled Code))
at com.att.uma.channel.RetrieveChannelLineup.performTask(RetrieveChannelLineup.java(Compiled Code))
at com.att.uma.channel.RetrieveChannelLineup.doPost(RetrieveChannelLineup.java(Compiled Code))
at com.att.uma.channel.RetrieveChannelLineup.doGet(RetrieveChannelLineup.java(Compiled Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java(Compiled Code))
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java(Compiled Code))
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java(Compiled Code))
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java(Compiled Code))
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))Hi user628020,
Since you are using standard Java serialization, the only two reasons I can think of are:
1) a bug in serialization routines for any of the classes your objects use (e.g. TreeMap)
2) concurrent modification of the same object by another thread at the same time
With urgent support questions I would suggest using the Oracle Metalink.
Regards,
Gene
Maybe you are looking for
-
How do i add more memory to my mack book
need help
-
Novice: Can I add vector graphics to a pdf?
Have Acrobat Pro 7 but have been using it only for creating simple pdfs from Office documents. I'm starting my education on other capabilities. Can I add vector graphics (shapes, text) to a pdf or do I need to get the pdf into a tool like AI first? W
-
NullPointerException in ejbActivate
Hello guys, Iam having a session bean which calls entity beans. When I invoke the ejbFindByPrimaryKey method using the primary key value, I get returned an entity instance correctly..(iam checking it in the code)..But when i invoke a business method
-
How to get orange "firefox" button back?
I'm using Firefox 30 (PC) and love the new design, but I miss the orange 'Firefox' button. Is there an add on that will get it back, without replacing the new australis theme? Thanks for your time!
-
SCCM 2012 R2 - fresh install PXE not working
Hi there. Fresh install. Booting from PXE returns an error: Configuration Manager is looking for policy :( Done a lot of googlin so far, nothing helps. SMSPXELOGS: 00:50:56:A8:31:3A, 8D662842-2689-4683-6652-2C8F574F7B8A: No boot action. Rejected. 00: