Oracle Coherence - Access options

Apps can access coherence either using the API or using the Extend clients/REST. Using Extend clients/REST causes lot of overhead as you need to setup proxy servers and this causes overhead. Coherence says that if part of the cluster, then the apps can directly access the cache using API. What does coherence cluster mean and how can apps be part of that cluster ? Does this mean that Coherence has to be installed as part of the Server(weblogic) JVM ?

Hi,
What does coherence cluster mean and how can apps be part of that cluster ? Coherence cluster typically includes both storage-enabled and storage-disabled nodes that are located within the same subnet and can communicate over UDP/TCMP. There are other considerations as well to make your apps(client-nodes) as part of the Coherence cluster or make them C*Extend clients. Check [this |http://ora-soa.blogspot.com/2012/05/coherence-extend-vs-tcmp-member.html] for various design considerations.
Does this mean that Coherence has to be installed as part of the Server(weblogic) JVM ?Yes, you need to provide the coherence.jar and other coherence configuration in the Server classpath.
HTH
Cheers,
_NJ                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Tutorial for Oracle Coherence Release 3.6 does not work

    I am new to Oracle Coherence and just download the newest release 3.6 of coherence together with JDveloper (Studio Edition Version 11.1.1.3.0, Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660) and started to go throught the tutorial step by step. Having completed chapter 1 and 2 and started to work on chapter 3: Accessing the Data Grid from Java and get stuck with the sampleas code related to classes "MyFirstSample" and "MyFirstSampleReader". According to the doc once the cahce-server is running (by running cache-server.cmd in dos) then
    run a) MyFirstSample which will put an "Name" entry to myCache and exit
    b) run MyFirstSampleReader which will retrieve the entry "Name" populated with "MyFirstSample". But i got null value back.
    The following are logs for cache-server (I), MyFirstSample (II) and MyFirstSampleReader (III) respectively:
    (I) cache-server console output:
    C:\Program Files\Java\coherence\bin>cache-server.cmd
    java version "1.6.0_18"
    Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
    Java HotSpot(TM) Server VM (build 16.0-b13, mixed mode)
    2010-12-01 13:49:24.349/0.266 Oracle Coherence 3.6.0.0 <Info> (thread=main, member=n/a): Loaded operational configuration from "jar:file:/C:
    /Program%20Files/Java/coherence/lib/coherence.jar!/tangosol-coherence.xml"
    2010-12-01 13:49:24.364/0.281 Oracle Coherence 3.6.0.0 <Info> (thread=main, member=n/a): Loaded operational overrides from "jar:file:/C:/Pro
    gram%20Files/Java/coherence/lib/coherence.jar!/tangosol-coherence-override-dev.xml"
    2010-12-01 13:49:24.364/0.281 Oracle Coherence 3.6.0.0 <D5> (thread=main, member=n/a): Optional configuration override "/tangosol-coherence-
    override.xml" is not specified
    2010-12-01 13:49:24.364/0.281 Oracle Coherence 3.6.0.0 <D5> (thread=main, member=n/a): Optional configuration override "/custom-mbeans.xml"
    is not specified
    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-12-01 13:49:24.614/0.531 Oracle Coherence GE 3.6.0.0 <Info> (thread=main, member=n/a): Loaded cache configuration from "jar:file:/C:/Pr
    ogram%20Files/Java/coherence/lib/coherence.jar!/coherence-cache-config.xml"
    2010-12-01 13:49:24.974/0.891 Oracle Coherence GE 3.6.0.0 <D4> (thread=main, member=n/a): TCMP bound to /169.59.39.31:8088 using SystemSocke
    tProvider
    2010-12-01 13:49:28.427/4.344 Oracle Coherence GE 3.6.0.0 <Info> (thread=Cluster, member=n/a): Created a new cluster "cluster:0xC4DB" with M
    ember(Id=1, Timestamp=2010-12-01 13:49:24.974, Address=169.59.39.31:8088, MachineId=46367, Location=site:eur.beluni.net,machine:CHMA5042975,
    process:7264, Role=CoherenceServer, Edition=Grid Edition, Mode=Development, CpuCount=2, SocketCount=2) UID=0xA93B271F0000012CA1FAEBEEB51F1F9
    8
    2010-12-01 13:49:28.427/4.344 Oracle Coherence GE 3.6.0.0 <Info> (thread=main, member=n/a): Started cluster Name=cluster:0xC4DB
    Group{Address=224.3.6.0, Port=36000, TTL=4}
    MasterMemberSet
    ThisMember=Member(Id=1, Timestamp=2010-12-01 13:49:24.974, Address=169.59.39.31:8088, MachineId=46367, Location=site:eur.beluni.net,machin
    e:CHMA5042975,process:7264, Role=CoherenceServer)
    OldestMember=Member(Id=1, Timestamp=2010-12-01 13:49:24.974, Address=169.59.39.31:8088, MachineId=46367, Location=site:eur.beluni.net,mach
    ine:CHMA5042975,process:7264, Role=CoherenceServer)
    ActualMemberSet=MemberSet(Size=1, BitSetCount=2
    Member(Id=1, Timestamp=2010-12-01 13:49:24.974, Address=169.59.39.31:8088, MachineId=46367, Location=site:eur.beluni.net,machine:CHMA504
    2975,process:7264, Role=CoherenceServer)
    RecycleMillis=1200000
    RecycleSet=MemberSet(Size=0, BitSetCount=0
    TcpRing{Connections=[]}
    IpMonitor{AddressListSize=0}
    2010-12-01 13:49:28.442/4.359 Oracle Coherence GE 3.6.0.0 <D5> (thread=Invocation:Management, member=1): Service Management joined the clust
    er with senior service member 1
    2010-12-01 13:49:28.630/4.547 Oracle Coherence GE 3.6.0.0 <D5> (thread=DistributedCache, member=1): Service DistributedCache joined the clus
    ter with senior service member 1
    2010-12-01 13:49:28.708/4.625 Oracle Coherence GE 3.6.0.0 <D5> (thread=ReplicatedCache, member=1): Service ReplicatedCache joined the cluste
    r with senior service member 1
    2010-12-01 13:49:28.708/4.625 Oracle Coherence GE 3.6.0.0 <D5> (thread=OptimisticCache, member=1): Service OptimisticCache joined the cluste
    r with senior service member 1
    2010-12-01 13:49:28.724/4.641 Oracle Coherence GE 3.6.0.0 <D5> (thread=Invocation:InvocationService, member=1): Service InvocationService jo
    ined the cluster with senior service member 1
    2010-12-01 13:49:28.724/4.641 Oracle Coherence GE 3.6.0.0 <Info> (thread=main, member=1):
    Services
    ClusterService{Name=Cluster, State=(SERVICE_STARTED, STATE_JOINED), Id=0, Version=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, AssignedPartitio
    ns=257, BackupPartitions=0}
    ReplicatedCache{Name=ReplicatedCache, State=(SERVICE_STARTED), Id=3, Version=3.0, OldestMemberId=1}
    Optimistic{Name=OptimisticCache, State=(SERVICE_STARTED), Id=4, Version=3.0, OldestMemberId=1}
    InvocationService{Name=InvocationService, State=(SERVICE_STARTED), Id=5, Version=3.1, OldestMemberId=1}
    Started DefaultCacheServer...
    (II) MyFirstSample console output:
    "C:\program files\Oracle\Middleware\jdk160_18\bin\javaw.exe" -client -classpath "C:\Data\oracle\CacheApplication\.adf;C:\Data\oracle\CacheApplication\InsertValue\classes;C:\Program Files\Java\coherence\lib\coherence.jar" "-Djavax.net.ssl.trustStore=C:\Program Files\Oracle\Middleware\wlserver_10.3\server\lib\DemoTrust.jks" com.oracle.handson.MyFirstSample
    2010-12-01 14:50:15.533/0.250 Oracle Coherence 3.6.0.0 <Info> (thread=main, member=n/a): Loaded operational configuration from "jar:file:/C:/Program%20Files/Java/coherence/lib/coherence.jar!/tangosol-coherence.xml"
    2010-12-01 14:50:15.533/0.250 Oracle Coherence 3.6.0.0 <Info> (thread=main, member=n/a): Loaded operational overrides from "jar:file:/C:/Program%20Files/Java/coherence/lib/coherence.jar!/tangosol-coherence-override-dev.xml"
    2010-12-01 14:50:15.533/0.250 Oracle Coherence 3.6.0.0 <D5> (thread=main, member=n/a): Optional configuration override "/tangosol-coherence-override.xml" is not specified
    2010-12-01 14:50:15.548/0.265 Oracle Coherence 3.6.0.0 <D5> (thread=main, member=n/a): Optional configuration override "/custom-mbeans.xml" is not specified
    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-12-01 14:50:15.751/0.468 Oracle Coherence GE 3.6.0.0 <Info> (thread=main, member=n/a): Loaded cache configuration from "jar:file:/C:/Program%20Files/Java/coherence/lib/coherence.jar!/coherence-cache-config.xml"
    2010-12-01 14:50:16.126/0.843 Oracle Coherence GE 3.6.0.0 <D4> (thread=main, member=n/a): TCMP bound to /169.59.39.31:8088 using SystemSocketProvider
    2010-12-01 14:50:19.642/4.359 Oracle Coherence GE 3.6.0.0 <Info> (thread=Cluster, member=n/a): Created a new cluster "cluster:0xC4DB" with Member(Id=1, Timestamp=2010-12-01 14:50:16.126, Address=169.59.39.31:8088, MachineId=46367, Location=site:eur.beluni.net,machine:CHMA5042975,process:7976, Role=OracleHandsonMyFirstSample, Edition=Grid Edition, Mode=Development, CpuCount=2, SocketCount=2) UID=0xA93B271F0000012CA232A23EB51F1F98
    2010-12-01 14:50:19.642/4.359 Oracle Coherence GE 3.6.0.0 <Info> (thread=main, member=n/a): Started cluster Name=cluster:0xC4DB
    Group{Address=224.3.6.0, Port=36000, TTL=4}
    MasterMemberSet
    ThisMember=Member(Id=1, Timestamp=2010-12-01 14:50:16.126, Address=169.59.39.31:8088, MachineId=46367, Location=site:eur.beluni.net,machine:CHMA5042975,process:7976, Role=OracleHandsonMyFirstSample)
    OldestMember=Member(Id=1, Timestamp=2010-12-01 14:50:16.126, Address=169.59.39.31:8088, MachineId=46367, Location=site:eur.beluni.net,machine:CHMA5042975,process:7976, Role=OracleHandsonMyFirstSample)
    ActualMemberSet=MemberSet(Size=1, BitSetCount=2
    Member(Id=1, Timestamp=2010-12-01 14:50:16.126, Address=169.59.39.31:8088, MachineId=46367, Location=site:eur.beluni.net,machine:CHMA5042975,process:7976, Role=OracleHandsonMyFirstSample)
    RecycleMillis=1200000
    RecycleSet=MemberSet(Size=0, BitSetCount=0
    TcpRing{Connections=[]}
    IpMonitor{AddressListSize=0}
    2010-12-01 14:50:19.658/4.375 Oracle Coherence GE 3.6.0.0 <D5> (thread=Invocation:Management, member=1): Service Management joined the cluster with senior service member 1
    2010-12-01 14:50:19.845/4.562 Oracle Coherence GE 3.6.0.0 <D5> (thread=DistributedCache, member=1): Service DistributedCache joined the cluster with senior service member 1
    Value in cache is Gene Smith
    2010-12-01 14:50:19.923/4.640 Oracle Coherence GE 3.6.0.0 <D4> (thread=ShutdownHook, member=1): ShutdownHook: stopping cluster node
    2010-12-01 14:50:19.923/4.640 Oracle Coherence GE 3.6.0.0 <D5> (thread=Cluster, member=1): Service Cluster left the cluster
    2010-12-01 14:50:19.923/4.640 Oracle Coherence GE 3.6.0.0 <D5> (thread=DistributedCache, member=1): Service DistributedCache left the cluster
    2010-12-01 14:50:19.923/4.640 Oracle Coherence GE 3.6.0.0 <D5> (thread=Invocation:Management, member=1): Service Management left the cluster
    Process exited with exit code 0.
    (III) MyFirstSampleReader console output:
    "C:\program files\Oracle\Middleware\jdk160_18\bin\javaw.exe" -client -classpath "C:\Data\oracle\CacheApplication\.adf;C:\Data\oracle\CacheApplication\InsertValue\classes;C:\Program Files\Java\coherence\lib\coherence.jar" "-Djavax.net.ssl.trustStore=C:\Program Files\Oracle\Middleware\wlserver_10.3\server\lib\DemoTrust.jks" com.oracle.handson.MyFirstSampleReader
    2010-12-01 13:50:15.176/0.250 Oracle Coherence 3.6.0.0 <Info> (thread=main, member=n/a): Loaded operational configuration from "jar:file:/C:/Program%20Files/Java/coherence/lib/coherence.jar!/tangosol-coherence.xml"
    2010-12-01 13:50:15.176/0.250 Oracle Coherence 3.6.0.0 <Info> (thread=main, member=n/a): Loaded operational overrides from "jar:file:/C:/Program%20Files/Java/coherence/lib/coherence.jar!/tangosol-coherence-override-dev.xml"
    2010-12-01 13:50:15.176/0.250 Oracle Coherence 3.6.0.0 <D5> (thread=main, member=n/a): Optional configuration override "/tangosol-coherence-override.xml" is not specified
    2010-12-01 13:50:15.191/0.265 Oracle Coherence 3.6.0.0 <D5> (thread=main, member=n/a): Optional configuration override "/custom-mbeans.xml" is not specified
    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-12-01 13:50:15.722/0.796 Oracle Coherence GE 3.6.0.0 <D4> (thread=main, member=n/a): TCMP bound to /169.59.39.31:8092 using SystemSocketProvider
    2010-12-01 13:50:19.238/4.312 Oracle Coherence GE 3.6.0.0 <Info> (thread=Cluster, member=n/a): Created a new cluster "cluster:0xC4DB" with Member(Id=1, Timestamp=2010-12-01 13:50:15.738, Address=169.59.39.31:8092, MachineId=46367, Location=site:eur.beluni.net,machine:CHMA5042975,process:7968, Role=OracleHandsonMyFirstSampleReader, Edition=Grid Edition, Mode=Development, CpuCount=2, SocketCount=2) UID=0xA93B271F0000012CA1FBB23AB51F1F9C
    2010-12-01 13:50:19.238/4.312 Oracle Coherence GE 3.6.0.0 <Info> (thread=main, member=n/a): Started cluster Name=cluster:0xC4DB
    Group{Address=224.3.6.0, Port=36000, TTL=4}
    MasterMemberSet
    ThisMember=Member(Id=1, Timestamp=2010-12-01 13:50:15.738, Address=169.59.39.31:8092, MachineId=46367, Location=site:eur.beluni.net,machine:CHMA5042975,process:7968, Role=OracleHandsonMyFirstSampleReader)
    OldestMember=Member(Id=1, Timestamp=2010-12-01 13:50:15.738, Address=169.59.39.31:8092, MachineId=46367, Location=site:eur.beluni.net,machine:CHMA5042975,process:7968, Role=OracleHandsonMyFirstSampleReader)
    ActualMemberSet=MemberSet(Size=1, BitSetCount=2
    Member(Id=1, Timestamp=2010-12-01 13:50:15.738, Address=169.59.39.31:8092, MachineId=46367, Location=site:eur.beluni.net,machine:CHMA5042975,process:7968, Role=OracleHandsonMyFirstSampleReader)
    RecycleMillis=1200000
    RecycleSet=MemberSet(Size=0, BitSetCount=0
    TcpRing{Connections=[]}
    IpMonitor{AddressListSize=0}
    2010-12-01 13:50:19.254/4.328 Oracle Coherence GE 3.6.0.0 <D5> (thread=Invocation:Management, member=1): Service Management joined the cluster with senior service member 1
    2010-12-01 13:50:19.300/4.374 Oracle Coherence GE 3.6.0.0 <Info> (thread=main, member=1): Loaded cache configuration from "jar:file:/C:/Program%20Files/Java/coherence/lib/coherence.jar!/coherence-cache-config.xml"
    2010-12-01 13:50:19.472/4.546 Oracle Coherence GE 3.6.0.0 <D5> (thread=DistributedCache, member=1): Service DistributedCache joined the cluster with senior service member 1
    Value in cache is null
    Process exited with exit code 0.
    Could someone kindly help? What I have done wrong?

    Sorry for reviving old thread but I've got something similar with Coherence 3.7.
    My OS is Windows 7 with win-firewall disabled.
    Eclipse is 3.6.2 with OEPE downloaded with plugins included.
    h3. Starting cache-server.cmd works ok:
    2011-07-08 10:43:42.049/5.305 Oracle Coherence GE 3.7.0.0 <D5> (thread=Invocation:Management, member=1): Service Management joined the cluster with senior service member 1
    2011-07-08 10:43:42.420/5.676 Oracle Coherence GE 3.7.0.0 <D5> (thread=DistributedCache, member=1): Service DistributedCache joined the cluster with senior service member 1
    2011-07-08 10:43:42.489/5.745 Oracle Coherence GE 3.7.0.0 <D5> (thread=ReplicatedCache, member=1): Service ReplicatedCache joined the cluster with senior service member 1
    2011-07-08 10:43:42.498/5.754 Oracle Coherence GE 3.7.0.0 <D5> (thread=OptimisticCache, member=1): Service OptimisticCache joined the cluster with senior service member 1
    2011-07-08 10:43:42.504/5.760 Oracle Coherence GE 3.7.0.0 <D5> (thread=Invocation:InvocationService, member=1): Service InvocationService joined the cluster with senior service member 1
    2011-07-08 10:43:42.505/5.762 Oracle Coherence GE 3.7.0.0 <Info> (thread=main, member=1):
    Services
    ClusterService{Name=Cluster, State=(SERVICE_STARTED, STATE_JOINED), Id=0, Version=3.7, 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, BackupPartitions=0}
    ReplicatedCache{Name=ReplicatedCache, State=(SERVICE_STARTED), Id=3, Version=3.0, OldestMemberId=1}
    Optimistic{Name=OptimisticCache, State=(SERVICE_STARTED), Id=4, Version=3.0, OldestMemberId=1}
    InvocationService{Name=InvocationService, State=(SERVICE_STARTED), Id=5, Version=3.1, OldestMemberId=1}
    Started DefaultCacheServer...
    h3. multicast-test.cmd -group 224.3.7.0:3155 is ok
    Starting test on ip=/10.17.16.61, group=/224.3.7.0:3155, ttl=4
    Configuring multicast socket...
    Starting listener...
    Fri Jul 08 10:46:15 EEST 2011: Sent packet 1 containing 1468 bytes.
    Fri Jul 08 10:46:15 EEST 2011: Received test packet 1 from self (sent 10ms ago).
    Fri Jul 08 10:46:15 EEST 2011: Received 129 bytes from a Coherence cluster node at 10.17.16.61: ???
    Fri Jul 08 10:46:16 EEST 2011: Received 129 bytes from a Coherence cluster node at 10.17.16.61: ???
    Fri Jul 08 10:46:17 EEST 2011: Sent packet 2 containing 1468 bytes.
    Fri Jul 08 10:46:17 EEST 2011: Received test packet 2 from self (sent 1ms ago).
    Fri Jul 08 10:46:18 EEST 2011: Received 129 bytes from a Coherence cluster node at 10.17.16.61: ???
    h1. Problem 1 - When I start DefaultCacheServer from Eclipse, output is not what I would expect:
    java version "1.6.0_26"
    Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
    Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode)
    2011-07-08 10:42:15.345/0.543 Oracle Coherence 3.7.0.0 <Info> (thread=main, member=n/a): Loaded operational configuration from "jar:file:/D:/Repositories/Bin/coherence-java-3.7.0/coherence/lib/coherence.jar!/tangosol-coherence.xml"
    2011-07-08 10:42:15.387/0.585 Oracle Coherence 3.7.0.0 <Info> (thread=main, member=n/a): Loaded operational overrides from "jar:file:/D:/Repositories/Bin/coherence-java-3.7.0/coherence/lib/coherence.jar!/tangosol-coherence-override-dev.xml"
    2011-07-08 10:42:15.413/0.611 Oracle Coherence 3.7.0.0 <Info> (thread=main, member=n/a): Loaded operational overrides from "file:/D:/Repositories/Workspaces/eclipseDefault/Coherence/build/classes/tangosol-coherence-override.xml"
    2011-07-08 10:42:15.417/0.615 Oracle Coherence 3.7.0.0 <D5> (thread=main, member=n/a): Optional configuration override "/custom-mbeans.xml" is not specified
    Oracle Coherence Version 3.7.0.0 Build 23397
    Grid Edition: Development mode
    Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
    2011-07-08 10:42:15.697/0.895 Oracle Coherence GE 3.7.0.0 <Info> (thread=main, member=n/a): Loaded cache configuration from "file:/D:/Repositories/Workspaces/eclipseDefault/Coherence/build/classes/coherence-cache-config.xml"
    2011-07-08 10:42:15.702/0.900 Oracle Coherence GE 3.7.0.0 <Info> (thread=main, member=n/a):
    Services
    Started DefaultCacheServer...
    h1. Problem 2 - Can't store/read value from cache started by cache-server.cmd
    h2. Storing seems to be ok
    2011-07-08 10:48:11.957/0.416 Oracle Coherence 3.7.0.0 <Info> (thread=main, member=n/a): Loaded operational configuration from "jar:file:/D:/Repositories/Bin/coherence-java-3.7.0/coherence/lib/coherence.jar!/tangosol-coherence.xml"
    2011-07-08 10:48:11.999/0.458 Oracle Coherence 3.7.0.0 <Info> (thread=main, member=n/a): Loaded operational overrides from "jar:file:/D:/Repositories/Bin/coherence-java-3.7.0/coherence/lib/coherence.jar!/tangosol-coherence-override-dev.xml"
    2011-07-08 10:48:12.025/0.484 Oracle Coherence 3.7.0.0 <Info> (thread=main, member=n/a): Loaded operational overrides from "file:/D:/Repositories/Workspaces/eclipseDefault/InsertValue/build/classes/tangosol-coherence-override.xml"
    2011-07-08 10:48:12.029/0.488 Oracle Coherence 3.7.0.0 <D5> (thread=main, member=n/a): Optional configuration override "/custom-mbeans.xml" is not specified
    Oracle Coherence Version 3.7.0.0 Build 23397
    Grid Edition: Development mode
    Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
    2011-07-08 10:48:12.646/1.105 Oracle Coherence GE 3.7.0.0 <D4> (thread=main, member=n/a): TCMP bound to /10.17.16.61:8090 using SystemSocketProvider
    2011-07-08 10:48:13.663/2.122 Oracle Coherence GE 3.7.0.0 <Info> (thread=Cluster, member=n/a): This Member(Id=2, Timestamp=2011-07-08 10:48:13.463, Address=10.17.16.61:8090, MachineId=2877, Location=site:MyLocation,machine:MyPC,process:7536, Role=MyFirstSampleMyFirstSample, Edition=Grid Edition, Mode=Development, CpuCount=4, SocketCount=4) joined cluster "cluster:0x96AB" with senior Member(Id=1, Timestamp=2011-07-08 10:48:09.963, Address=10.17.16.61:8088, MachineId=2877, Location=site:MyLocation,machine:MyPC,process:7896, Role=CoherenceServer, Edition=Grid Edition, Mode=Development, CpuCount=4, SocketCount=4)
    2011-07-08 10:48:13.683/2.142 Oracle Coherence GE 3.7.0.0 <D5> (thread=Cluster, member=n/a): Member 1 joined Service Cluster with senior member 1
    2011-07-08 10:48:13.683/2.142 Oracle Coherence GE 3.7.0.0 <D5> (thread=Cluster, member=n/a): Member 1 joined Service Management with senior member 1
    2011-07-08 10:48:13.683/2.142 Oracle Coherence GE 3.7.0.0 <D5> (thread=Cluster, member=n/a): Member 1 joined Service DistributedCache with senior member 1
    2011-07-08 10:48:13.683/2.142 Oracle Coherence GE 3.7.0.0 <D5> (thread=Cluster, member=n/a): Member 1 joined Service ReplicatedCache with senior member 1
    2011-07-08 10:48:13.683/2.142 Oracle Coherence GE 3.7.0.0 <D5> (thread=Cluster, member=n/a): Member 1 joined Service OptimisticCache with senior member 1
    2011-07-08 10:48:13.683/2.142 Oracle Coherence GE 3.7.0.0 <D5> (thread=Cluster, member=n/a): Member 1 joined Service InvocationService with senior member 1
    2011-07-08 10:48:13.686/2.145 Oracle Coherence GE 3.7.0.0 <Info> (thread=main, member=n/a): Started cluster Name=cluster:0x96AB
    Group{Address=224.3.7.0, Port=3155, TTL=4}
    MasterMemberSet
    ThisMember=Member(Id=2, Timestamp=2011-07-08 10:48:13.463, Address=10.17.16.61:8090, MachineId=2877, Location=site:MyLocation,machine:MyPC,process:7536, Role=MyFirstSampleMyFirstSample)
    OldestMember=Member(Id=1, Timestamp=2011-07-08 10:48:09.963, Address=10.17.16.61:8088, MachineId=2877, Location=site:MyLocation,machine:MyPC,process:7896, Role=CoherenceServer)
    ActualMemberSet=MemberSet(Size=2, BitSetCount=2
    Member(Id=1, Timestamp=2011-07-08 10:48:09.963, Address=10.17.16.61:8088, MachineId=2877, Location=site:MyLocation,machine:MyPC,process:7896, Role=CoherenceServer)
    Member(Id=2, Timestamp=2011-07-08 10:48:13.463, Address=10.17.16.61:8090, MachineId=2877, Location=site:MyLocation,machine:MyPC,process:7536, Role=MyFirstSampleMyFirstSample)
    RecycleMillis=1200000
    RecycleSet=MemberSet(Size=0, BitSetCount=0
    TcpRing{Connections=[1]}
    IpMonitor{AddressListSize=0}
    2011-07-08 10:48:13.724/2.184 Oracle Coherence GE 3.7.0.0 <D5> (thread=Invocation:Management, member=2): Service Management joined the cluster with senior service member 1
    2011-07-08 10:48:13.809/2.268 Oracle Coherence GE 3.7.0.0 <Info> (thread=main, member=2): Loaded cache configuration from "file:/D:/Repositories/Workspaces/eclipseDefault/InsertValue/build/classes/coherence-cache-config.xml"
    Value in cache is Gene Smith
    2011-07-08 10:48:13.855/2.314 Oracle Coherence GE 3.7.0.0 <D4> (thread=ShutdownHook, member=2): ShutdownHook: stopping cluster node
    h2. Reading is not working
    2011-07-08 10:50:25.468/0.543 Oracle Coherence 3.7.0.0 <Info> (thread=main, member=n/a): Loaded operational configuration from "jar:file:/D:/Repositories/Bin/coherence-java-3.7.0/coherence/lib/coherence.jar!/tangosol-coherence.xml"
    2011-07-08 10:50:25.510/0.585 Oracle Coherence 3.7.0.0 <Info> (thread=main, member=n/a): Loaded operational overrides from "jar:file:/D:/Repositories/Bin/coherence-java-3.7.0/coherence/lib/coherence.jar!/tangosol-coherence-override-dev.xml"
    2011-07-08 10:50:25.537/0.612 Oracle Coherence 3.7.0.0 <Info> (thread=main, member=n/a): Loaded operational overrides from "file:/D:/Repositories/Workspaces/eclipseDefault/InsertValue/build/classes/tangosol-coherence-override.xml"
    2011-07-08 10:50:25.541/0.616 Oracle Coherence 3.7.0.0 <D5> (thread=main, member=n/a): Optional configuration override "/custom-mbeans.xml" is not specified
    Oracle Coherence Version 3.7.0.0 Build 23397
    Grid Edition: Development mode
    Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
    2011-07-08 10:50:26.136/1.211 Oracle Coherence GE 3.7.0.0 <D4> (thread=main, member=n/a): TCMP bound to /10.17.16.61:8090 using SystemSocketProvider
    2011-07-08 10:50:26.548/1.623 Oracle Coherence GE 3.7.0.0 <Info> (thread=Cluster, member=n/a): This Member(Id=3, Timestamp=2011-07-08 10:50:26.398, Address=10.17.16.61:8090, MachineId=2877, Location=site:MyLocation,machine:MyPC,process:2376, Role=MyFirstSampleReader, Edition=Grid Edition, Mode=Development, CpuCount=4, SocketCount=4) joined cluster "cluster:0x96AB" with senior Member(Id=1, Timestamp=2011-07-08 10:48:09.963, Address=10.17.16.61:8088, MachineId=2877, Location=site:MyLocation,machine:MyPC,process:7896, Role=CoherenceServer, Edition=Grid Edition, Mode=Development, CpuCount=4, SocketCount=4)
    2011-07-08 10:50:26.563/1.638 Oracle Coherence GE 3.7.0.0 <D5> (thread=Cluster, member=n/a): Member 1 joined Service Cluster with senior member 1
    2011-07-08 10:50:26.563/1.638 Oracle Coherence GE 3.7.0.0 <D5> (thread=Cluster, member=n/a): Member 1 joined Service Management with senior member 1
    2011-07-08 10:50:26.563/1.638 Oracle Coherence GE 3.7.0.0 <D5> (thread=Cluster, member=n/a): Member 1 joined Service DistributedCache with senior member 1
    2011-07-08 10:50:26.563/1.638 Oracle Coherence GE 3.7.0.0 <D5> (thread=Cluster, member=n/a): Member 1 joined Service ReplicatedCache with senior member 1
    2011-07-08 10:50:26.563/1.638 Oracle Coherence GE 3.7.0.0 <D5> (thread=Cluster, member=n/a): Member 1 joined Service OptimisticCache with senior member 1
    2011-07-08 10:50:26.563/1.638 Oracle Coherence GE 3.7.0.0 <D5> (thread=Cluster, member=n/a): Member 1 joined Service InvocationService with senior member 1
    2011-07-08 10:50:26.566/1.641 Oracle Coherence GE 3.7.0.0 <Info> (thread=main, member=n/a): Started cluster Name=cluster:0x96AB
    Group{Address=224.3.7.0, Port=3155, TTL=4}
    MasterMemberSet
    ThisMember=Member(Id=3, Timestamp=2011-07-08 10:50:26.398, Address=10.17.16.61:8090, MachineId=2877, Location=site:MyLocation,machine:MyPC,process:2376, Role=MyFirstSampleReader)
    OldestMember=Member(Id=1, Timestamp=2011-07-08 10:48:09.963, Address=10.17.16.61:8088, MachineId=2877, Location=site:MyLocation,machine:MyPC,process:7896, Role=CoherenceServer)
    ActualMemberSet=MemberSet(Size=2, BitSetCount=2
    Member(Id=1, Timestamp=2011-07-08 10:48:09.963, Address=10.17.16.61:8088, MachineId=2877, Location=site:MyLocation,machine:MyPC,process:7896, Role=CoherenceServer)
    Member(Id=3, Timestamp=2011-07-08 10:50:26.398, Address=10.17.16.61:8090, MachineId=2877, Location=site:MyLocation,machine:MyPC,process:2376, Role=MyFirstSampleReader)
    RecycleMillis=1200000
    RecycleSet=MemberSet(Size=0, BitSetCount=0
    TcpRing{Connections=[1]}
    IpMonitor{AddressListSize=0}
    2011-07-08 10:50:26.616/1.691 Oracle Coherence GE 3.7.0.0 <D5> (thread=Invocation:Management, member=3): Service Management joined the cluster with senior service member 1
    2011-07-08 10:50:26.700/1.775 Oracle Coherence GE 3.7.0.0 <Info> (thread=main, member=3): Loaded cache configuration from "file:/D:/Repositories/Workspaces/eclipseDefault/InsertValue/build/classes/coherence-cache-config.xml"
    Value in cache is null
    2011-07-08 10:50:26.745/1.820 Oracle Coherence GE 3.7.0.0 <D4> (thread=ShutdownHook, member=3): ShutdownHook: stopping cluster node
    h5. Does anyone has any thoughts about what I could have done wrong and are there any ways to get more debug info to investigate this further?

  • Why the Oracle Coherence can not run successsfully?

    Why the Oracle Coherence can not run successsfully?
    When I run the costomized cache-server.cmd file, the following error message shows up:
    C:\coherence\examples\java> *contacts-cache-server.cmd*
    2009-10-22 10:57:10.609/0.563 Oracle Coherence 3.5.2/463 <Info> (thread=main, member=n/a): Loaded operational configur
    ion from resource "jar:file:/C:/coherence/lib/coherence.jar!/tangosol-coherence.xml"
    2009-10-22 10:57:10.624/0.578 Oracle Coherence 3.5.2/463 <Info> (thread=main, member=n/a): Loaded operational override
    from resource "jar:file:/C:/coherence/lib/coherence.jar!/tangosol-coherence-override-dev.xml"
    2009-10-22 10:57:10.624/0.578 Oracle Coherence 3.5.2/463 <D5> (thread=main, member=n/a): Optional configuration overri
    "/tangosol-coherence-override.xml" is not specified
    2009-10-22 10:57:10.624/0.578 Oracle Coherence 3.5.2/463 <D5> (thread=main, member=n/a): Optional configuration overri
    "/custom-mbeans.xml" is not specified
    Oracle Coherence Version 3.5.2/463
    Grid Edition: Development mode
    Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved.
    2009-10-22 10:57:11.062/1.016 Oracle Coherence GE 3.5.2/463 <Info> (thread=main, member=n/a): Loaded cache configurati
    from "file:/C:/home/oracle/coherence/Contacts/contacts-cache-config.xml"
    2009-10-22 10:57:12.078/2.032 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=n/a): Service Cluster joined
    e cluster with senior service member n/a
    2009-10-22 10:57:15.328/5.282 Oracle Coherence GE 3.5.2/463 <Info> (thread=Cluster, member=n/a): Created a new cluster
    cluster:0xD3FB" with Member(Id=1, Timestamp=2009-10-22 10:57:11.734, Address=192.168.16.83:8088, MachineId=30803, Loca
    on=site:metsys.metex.com,machine:NECu10,process:3820, Role=CoherenceServer, Edition=Grid Edition, Mode=Development, Cp
    ount=4, SocketCount=4) UID=0xC0A81053000001247CC05C3678531F98
    2009-10-22 10:57:15.375/5.329 Oracle Coherence GE 3.5.2/463 <D5> (thread=Invocation:Management, member=1): Service Man
    ement joined the cluster with senior service member 1
    2009-10-22 10:57:15.875/5.829 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache:PartitionedPofCache, member=
    : Service PartitionedPofCache joined the cluster with senior service member 1
    2009-10-22 10:57:15.890/5.844 Oracle Coherence GE 3.5.2/463 <Info> (thread=DistributedCache:PartitionedPofCache, membe
    1): Loading POF configuration from resource "file:/C:/home/oracle/coherence/Contacts/classes/contacts-pof-config.xml"
    2009-10-22 10:57:15.906/5.860 Oracle Coherence GE 3.5.2/463 <Error> (thread=DistributedCache:PartitionedPofCache, memb
    =1): Terminating DistributedCache due to unhandled exception: com.tangosol.util.WrapperException
    2009-10-22 10:57:15.906/5.860 Oracle Coherence GE 3.5.2/463 <Error> (thread=DistributedCache:PartitionedPofCache, memb
    =1):
    (Wrapped) (Wrapped: error configuring class "com.tangosol.io.pof.ConfigurablePofContext") (Wrapped: Failed to parse PO
    configuration (Config=contacts-pof-config.xml)) java.io.IOException: Exception occurred during parsing: looking for id
    , found id=3((0,0,65) Character Data Literal {\rtf1\ansi\ansicpg1252\deff0\deflang4105{\fonttbl{\f0\fmodern\fcharset0
    urier;}{\f1\fmodern\fcharset0 Courier-Bold;}{\f2\fswiss\fcharset0 Arial;}}
    {\*\generator Msftedit 5.41.21.2500;}\viewkind4\uc1\pard\f0\fs18 )
            at com.tangosol.coherence.Component._newChild(Component.CDB:47)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.onServiceStarted(
    stributedCache.CDB:99)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onServiceState(Grid.CDB:23)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.setServiceState(Service.CDB:8)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.setServiceState(Grid.CDB:21)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid$NotifyStartup.onReceived(Grid.CDB:
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:9)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:136)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.onNotify(Distribu
    dCache.CDB:3)
            at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
            at java.lang.Thread.run(Unknown Source)
    Caused by: (Wrapped: error configuring class "com.tangosol.io.pof.ConfigurablePofContext") (Wrapped: Failed to parse P
    configuration (Config=contacts-pof-config.xml)) java.io.IOException: Exception occurred during parsing: looking for i
    9, found id=3((0,0,65) Character Data Literal {\rtf1\ansi\ansicpg1252\deff0\deflang4105{\fonttbl{\f0\fmodern\fcharset0
    ourier;}{\f1\fmodern\fcharset0 Courier-Bold;}{\f2\fswiss\fcharset0 Arial;}}
    {\*\generator Msftedit 5.41.21.2500;}\viewkind4\uc1\pard\f0\fs18 )
            at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:49)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.instantiateFromBi
    ryConverter(DistributedCache.CDB:3)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$BackingMapContext
    etClassLoader(DistributedCache.CDB:6)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$BackingMapContext
    nInit(DistributedCache.CDB:2)
            at com.tangosol.coherence.Component._newChild(Component.CDB:41)
            ... 10 more
    Caused by: (Wrapped: Failed to parse POF configuration (Config=contacts-pof-config.xml)) java.io.IOException: Exceptio
    occurred during parsing: looking for id=9, found id=3((0,0,65) Character Data Literal {\rtf1\ansi\ansicpg1252\deff0\de
    ang4105{\fonttbl{\f0\fmodern\fcharset0 Courier;}{\f1\fmodern\fcharset0 Courier-Bold;}{\f2\fswiss\fcharset0 Arial;}}
    {\*\generator Msftedit 5.41.21.2500;}\viewkind4\uc1\pard\f0\fs18 )
            at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
            at com.tangosol.io.pof.ConfigurablePofContext.report(ConfigurablePofContext.java:1311)
            at com.tangosol.io.pof.ConfigurablePofContext.createPofConfig(ConfigurablePofContext.java:812)
            at com.tangosol.io.pof.ConfigurablePofContext.initialize(ConfigurablePofContext.java:762)
            at com.tangosol.io.pof.ConfigurablePofContext.setContextClassLoader(ConfigurablePofContext.java:325)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:45)
            ... 14 more
    Caused by: java.io.IOException: Exception occurred during parsing: looking for id=9, found id=3((0,0,65) Character Dat
    Literal {\rtf1\ansi\ansicpg1252\deff0\deflang4105{\fonttbl{\f0\fmodern\fcharset0 Courier;}{\f1\fmodern\fcharset0 Couri
    -Bold;}{\f2\fswiss\fcharset0 Arial;}}....
    {code}
    The content of the contacts-cache-server.cmd file is shown here under:
    (its location is C:\coherence\examples\java
    {code}@echo off
    setlocal
    if (%COHERENCE_HOME%)==() (
    set COHERENCE_HOME=c:\coherence
    set CONFIG=C:\home\oracle\coherence\Contacts
    set COH_OPTS=%COH_OPTS% -server -cp %COHERENCE_HOME%\lib\coherence.jar;C:\home\oracle\coherence\Contacts\classes
    set COH_OPTS=%COH_OPTS% -Dtangosol.coherence.cacheconfig=%CONFIG%\contacts-cache-config.xml
    java %COH_OPTS% -Xms1g -Xmx1g -Xloggc: com.tangosol.net.DefaultCacheServer %2 %3 %4 %5 %6 %7
    :exit{code}
    The contents of the contacts-cache-config.xml file is shown here under:
    (its location is C:\home\oracle\coherence\Contacts
    {code}<?xml version="1.0"?>
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
      <caching-scheme-mapping>
        <cache-mapping>
            <cache-name>*</cache-name>
            <scheme-name>ExamplesPartitionedPofScheme</scheme-name>
          </cache-mapping>
        </caching-scheme-mapping>
      <caching-schemes>
        <distributed-scheme>
          <scheme-name>ExamplesPartitionedPofScheme</scheme-name>
          <service-name>PartitionedPofCache</service-name>
          <serializer>
            <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
              <init-params>
                <init-param>
                  <param-type>String</param-type>
                  <param-value>contacts-pof-config.xml</param-value>
                </init-param>
              </init-params>
           </serializer>
         <backing-map-scheme>
           <local-scheme>
             <!-- each node will be limited to 250MB -->
                 <high-units>250M</high-units>
                 <unit-calculator>binary</unit-calculator>
              </local-scheme>
           </backing-map-scheme>
           <autostart>true</autostart>
        </distributed-scheme>
      </caching-schemes>
    </cache-config>{code}
    The contents of the contacts-pof-config.xml file is shown here under:
    {code}
    <?xml version="1.0"?>
    <!DOCTYPE pof-config SYSTEM "pof-config.dtd">
    <pof-config>
      <user-type-list>
        <!-- coherence POF user types -->
        <include>coherence-pof-config.xml</include>
        <!-- com.tangosol.examples package -->
        <user-type>
          <type-id>1002</type-id>
          <class-name>com.tangosol.examples.model.Contact</class-name>
        </user-type>
        <user-type>
          <type-id>1003</type-id>
          <class-name>com.tangosol.examples.model.Address</class-name>
        </user-type>
        <user-type>
            <type-id>1004</type-id>
          <class-name>com.tangosol.examples.model.Phone</class-name>
        </user-type>
      </user-type-list>
      <allow-interfaces>true</allow-interfaces>
      <allow-subclasses>true</allow-subclasses>
    </pof-config>  {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    I have saved it as a XML documetent. it this OK?
    What the following error message shows us?
    Caused by: (Wrapped: error configuring class "com.tangosol.io.pof.ConfigurablePofContext") java.lang.UnsupportedClassVer
    sionError: Bad version number in .class file
            at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:49)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.instantiateFromBina
    ryConverter(DistributedCache.CDB:3)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$BackingMapContext.s
    etClassLoader(DistributedCache.CDB:6)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$BackingMapContext.o
    nInit(DistributedCache.CDB:2)
            at com.tangosol.coherence.Component._newChild(Component.CDB:41)
            ... 10 more
    Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClass(Unknown Source)
            at java.security.SecureClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.access$100(Unknown Source)
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Unknown Source)
            at com.tangosol.util.ExternalizableHelper.loadClass(ExternalizableHelper.java:2969)
            at com.tangosol.io.pof.ConfigurablePofContext.loadClass(ConfigurablePofContext.java:1215)
            at com.tangosol.io.pof.ConfigurablePofContext.createPofConfig(ConfigurablePofContext.java:973)
            at com.tangosol.io.pof.ConfigurablePofContext.initialize(ConfigurablePofContext.java:762)
            at com.tangosol.io.pof.ConfigurablePofContext.setContextClassLoader(ConfigurablePofContext.java:325)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:45)
            ... 14 more
    2009-10-22 17:24:14.995/2.922 Oracle Coherence GE 3.5.2/463 <D4> (thread=ShutdownHook, member=2): ShutdownHook: stopping
    cluster nodeEdited by: junez on 22-Oct-2009 14:30

  • How to get Oracle Coherence caching running within CQ5

    I've been trying to get Oracle Coherence running within CQ5 and I'm having problems with the setup.  First, I've been successful in creating an OSGi bundle jar from coherence.jar and it does deploy successfully through the Felix OSGi console.  But when I try to execute code using the Coherence classes, I get RMI marshalling run-time errors.  I've resolved the other run-time errors that have to do with the Import-Package definition in manifest.mf for the bundle.  I believe that the root problem that I'm facing is the deployment of the files tangosol-coherence-override.xml and the additional xml file that it points to.  I don't believe that these two files are being found within CQ5 correctly.  I've tried placing these files in the following locations:
    1.  Within coherence.jar itself (at the root directory)
    2.  In the CQ5 application's install folder
    3.  In the CQ5 application's src/main/resources folder
    Has anyone ever deployed Oracle Coherence in CQ5 or can give me a suggestion on what to try?  I appreciate any help or ideas.
    Thanks!  - Charlie

    There are 3 options which is described below. The steps may slightly vary based on cq & Oracle Coherence version. The details mentioned below are for cq5.4 & Coherence 3.7.1
    Option 1:-  Oracle recommended way
    *     Create a basic Web application directory
    /Sample.jsp
    /WEB-INF/web.xml
    /WEB-INF/classes/tangosol-coherence-override.xml
    /WEB-INF/lib/coherence.jar
    *     jar -cvf hello.war *
    *     Deploy the hello.war file by going to cq servlet engine at http://<host>:<port>/admin
    *     Access your sample with http://<host>:<port>/<contextroot>/Sample.jsp
    Option 2:-  Combination of Option 1 & Option 3
    *      Stop the cq
    *      Place coherence.jar at <CQ_Install_Dir>/crx-quickstart/server/runtime/0/_/WEB-INF/lib/
    *      Place tangosol-coherence-override.xml and all additional xml files at <CQ_Install_Dir>/crx-quickstart/server/runtime/0/_/WEB-INF/classes/
    *      Modify <CQ_Install_Dir>/crx-quickstart/launchpad/sling.properties to add below properties
    sling.bootdelegation.com.tangosol.net.cache=com.tangosol.net.cache
    sling.bootdelegation.com.tangosol.net=com.tangosol.net
    sling.bootdelegation.com.tangosol.util=com.tangosol.util
    *       Start the cq
    *       Verify jsp script etc... by putting into cache.. Same thing like
            <%
                String key = "k2";
                String value = "Hello World from cq!";
    ClassLoader oldLoader = Thread.currentThread().getContextClassLoader();
    ClassLoader newLoader = com.tangosol.net.CacheFactory.class.getClassLoader();
    Thread.currentThread().setContextClassLoader(newLoader);
                CacheFactory.ensureCluster();
                NamedCache cache = CacheFactory.getCache("hello-example");
                cache.put(key, value);
                out.println((String)cache.get(key));
                CacheFactory.shutdown();
    Thread.currentThread().setContextClassLoader(oldLoader);
             %>
    Option 3 :-   The one you are trying by creating an OSGi bundle jar from coherence.jar & prefeerd approach also. I haven't tried this approach but just throughing some thaughts.
    *    From some of oracle seminors I remembered oracle had a plans to have OSGi jar for Coherence. Try to get that instead of building the one ourself.
    *    If it is not available then Looking at your problem as a workaround i can think of is try with putting the XML file in the repository  & load xml in java class something like as
    getClass().getClassLoader().getResourceAsStream("tangosol-coherence-override.xml")

  • Oracle Coherence 3.7.1, It's  always creating a new cluster in linux m/c.

    Hi ,
    I am facing an issue with Oracle Coherence 3.7.1 in linux m/c , where it’s always creating a new cluster, even if I start a new member provided with same cluster name as argument. -Dtangosol.coherence.cluster=name
    It’s not joining the existing cluster , it’s always creating a new cluster with same name in Linux m/c.
    But when I tried the same thing in windows m/c , it working fine , even If I start N number cache server’s it joining the same cluster as one more member.
    Please someone help me, why it’s always creating a new cluster in linux m/c with same name ? why new VM’s are not joining the existing cluster? , Is there anything extra setup I need to do for Linux m/c.
    Thanks in Advance.
    <coherence>
    <cluster-config>
    <member-identity>
    <cluster-name>My_cluster</cluster-name>
    </member-identity>
    </cluster-config>
    <configurable-cache-factory-config>
    <init-params>
    <init-param>
    <param-type>java.lang.String</param-type>
    <param-value system-property="tangosol.coherence.cacheconfig">coherence-cache-config.xml</param-value>
    </init-param>
    </init-params>
    </configurable-cache-factory-config>
    </coherence>
    12-10-01 10:20:06.544/0.420 Oracle Coherence 3.7.1.0 <Info> (thread=main, member=n/a): Loaded operational configuration from "jar:file:/data/Informatica/nas/sdgshared/MyApputils/coherence/lib/coherence.jar!/tangosol-coherence.xml"
    2012-10-01 10:20:06.608/0.484 Oracle Coherence 3.7.1.0 <Info> (thread=main, member=n/a): Loaded operational overrides from "jar:file:/data/Informatica/nas/sdgshared/MyApputils/coherence/lib/coherence.jar!/tangosol-coherence-override-dev.xml"
    2012-10-01 10:20:06.609/0.485 Oracle Coherence 3.7.1.0 <Info> (thread=main, member=n/a): Loaded operational overrides from "jar:file:/data/Informatica/nas/sdgshared/MyApputils/coherence/MyAppCache/lib/MyAppCoherenceCache.jar!/tangosol-coherence-override.xml"
    2012-10-01 10:20:06.613/0.489 Oracle Coherence 3.7.1.0 <D5> (thread=main, member=n/a): Optional configuration override "/custom-mbeans.xml" is not specified
    Oracle Coherence Version 3.7.1.0 Build 27797
    Grid Edition: Development mode
    Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
    2012-10-01 10:20:06.831/0.707 Oracle Coherence GE 3.7.1.0 <Info> (thread=main, member=n/a): Loaded cache configuration from "file:/data/Informatica/nas/sdgshared/MyApputils/coherence/MyAppCache/config/coherence-cache-config.xml"; this document does not refer to any schema definition and has not been validated.
    2012-10-01 10:20:07.328/1.204 Oracle Coherence GE 3.7.1.0 <D4> (thread=main, member=n/a): TCMP bound to /10.176.4.105:8088 using SystemSocketProvider
    2012-10-01 10:20:10.711/4.587 Oracle Coherence GE 3.7.1.0 <Info> (thread=Cluster, member=n/a): Created a new cluster "MyCache_cluster" with Member(Id=1, Timestamp=2012-10-01 10:20:07.397, Address=10.176.4.105:8088, MachineId=44371, Location=site:,machine:ctrel9014-12,process:19922, Role=CoherenceServer, Edition=Grid Edition, Mode=Development, CpuCount=16, SocketCount=4) UID=0x0AB004690000013A1CE9ADE5AD531F98
    2012-10-01 10:20:10.713/4.589 Oracle Coherence GE 3.7.1.0 <Info> (thread=main, member=n/a): Started cluster Name=MyCache_cluster
    Group{Address=224.3.7.0, Port=37000, TTL=4}
    MasterMemberSet(
    ThisMember=Member(Id=1, Timestamp=2012-10-01 10:20:07.397, Address=10.176.4.105:8088, MachineId=44371, Location=site:,machine:ctrel9014-12,process:19922, Role=CoherenceServer)
    OldestMember=Member(Id=1, Timestamp=2012-10-01 10:20:07.397, Address=10.176.4.105:8088, MachineId=44371, Location=site:,machine:ctrel9014-12,process:19922, Role=CoherenceServer)
    ActualMemberSet=MemberSet(Size=1
    Member(Id=1, Timestamp=2012-10-01 10:20:07.397, Address=10.176.4.105:8088, MachineId=44371, Location=site:,machine:ctrel9014-12,process:19922, Role=CoherenceServer)
    MemberId|ServiceVersion|ServiceJoined|MemberState
    1|3.7.1|2012-10-01 10:20:10.711|JOINED
    RecycleMillis=1200000
    RecycleSet=MemberSet(Size=0
    TcpRing{Connections=[]}
    IpMonitor{AddressListSize=0}
    2012-10-01 10:20:10.736/4.612 Oracle Coherence GE 3.7.1.0 <D5> (thread=Invocation:Management, member=1): Service Management joined the cluster with senior service member 1
    2012-10-01 10:20:10.918/4.794 Oracle Coherence GE 3.7.1.0 <D5> (thread=DistributedCache:HBaseMyCache, member=1): Service HBaseMyCache joined the cluster with senior service member 1
    2012-10-01 10:20:10.942/4.818 Oracle Coherence GE 3.7.1.0 <Info> (thread=main, member=1):
    Edited by: user10092089 on Oct 2, 2012 8:35 AM

    Hi,
    For unicast, you need to define the override file as under:
    <?xml version='1.0'?>
    <coherence>
         <cluster-config>
              <member-identity>
                   <cluster-name system-property="tangosol.coherence.cluster">LPACache_cluster</cluster-name>
              </member-identity>
              <unicast-listener>
                  <well-known-addresses>
                   <socket-address id="1">
                       <address system-property="tangosol.coherence.wka1">coherence-node1-ip</address>
                       <port system-property="tangosol.coherence.wka1.port"> coherence-node1-port</port>
                   </socket-address>
                   <socket-address id="2">
                       <address system-property="tangosol.coherence.wka2"> coherence-node2-ip </address>
                       <port system-property="tangosol.coherence.wka2.port"> coherence-node2-port</port>
                   </socket-address>
                  </well-known-addresses>
              <port-auto-adjust system-property="tangosol.coherence.localport.adjust">false</port-auto-adjust>
              </unicast-listener>
         </cluster-config>
         <configurable-cache-factory-config>
               <class-name>com.tangosol.net.DefaultConfigurableCacheFactory</class-name>
               <init-params>
                  <init-param>
                      <param-type>java.lang.String</param-type>
                      <param-value system-property="tangosol.coherence.cacheconfig">coherence-cache-config.xml</param-value>
                  </init-param>
              </init-params>
        </configurable-cache-factory-config>   
        <logging-config>
               <severity-level system-property="tangosol.coherence.log.level">5</severity-level>
               <character-limit system-property="tangosol.coherence.log.limit">0</character-limit>
        </logging-config>
    </coherence>Use the property -Dtangosol.coherence.localhost=coherence-node1-ip and -Dtangosol.coherence.localport=coherence-node1-port for coherence server1 and -Dtangosol.coherence.localhost=coherence-node2-ip and -Dtangosol.coherence.localport=coherence-node2-port for Coherence server 2. Once you start the servers with these changes, you should not see the below message:
    Group{Address=224.3.7.0, Port=37000, TTL=4}
    HTH
    Cheers,
    _NJ                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How can i use oracle coherence with JPA/ejb  in web service?

    Hi
    I want to make web service using JPA which calls oracle XE via oracle coherence? i want to use JAX-ws? i searched and found you can make and deployed it using web logic but is there any other way i can make it and deployed in tomcat. i want to use oracle coherence + Oracle XE + JAX-WS? if it possible how can i other wise what are other ways i can do it?
    please any one does know it reply please it helps me lot to get.
    Thanks in advance,
    Edited by: 913837 on Feb 22, 2012 3:51 PM

    If you want data cached in Coherence to find it's way into an Oracle database for persistence, then look at the "CacheStore" section of the Coherence Developer Guide. This also works the other way round too, in that you can get data read into a Coherence cache via a database read. Again, look in the Coherence Developer Guide.
    If you want you applications "entry point" into a piece of code to be a web-service, then Tomcat+CXF will work just fine. Once you are in the service, just use the Coherence API to put the data in a cache.
    But also look at the HTTP access offered in later versions of Coherence in the form of REST. This may save you the Tomcat+CXF install, depending upon your needs. See the Coherence Client Guide.
    Still, what exactly are you trying to achieve here? It's not clear from your post why a web service using JPA for persistence needs to go via Coherence at all. More info needed.
    Cheers,
    Steve

  • Oracle Coherence Examples with Oracle SOA suite 11.1.1.4.0 and JDeveloper.

    Hi,
    I am new to Oracle Coherence. I was looking for examples implementing Oracle Coherence step by step so as to get a basic understanding using JDeveloper but most of the examples available are using Oracle Service Bus and Eclipse.
    Could anyone please help me in providing link with examples using Oracle Coherence with Oracle SOA suite 11.1.1.4.0 and JDeveloper.
    Thanks for the needful.
    Cheers,
    Varun

    Hi Varun,
    Please find the answers to your questions below:
    1) Could you please let me know how to use this system property -Dtangosol.coherence.override in my application so that I can coordinate between the cluster used by my application and the one started for using Coherence Node.
    You need to specify this property in the Java Options of your server or cache node startup script.
    2) I was trying to understand how to use this tangosol-coherence-override.xml but the document is pretty confusing. I am not able to understand that whether I am suppose to use it at server level or at application level.
    I would suggest extract the coherence.jar and you it would be important for you to have a look at the tangosol-coherence.xml and tangosol-coherence-override.xml. This file is used to override any of the properties specified in tangosol-coherence.xml for your cluster configuration for example, clustername, multicast ip and port or WKA for unicast, logging and so on.
    3) Another point is how to coordinate among tangosol-coherence-override.xml, coherence-cache-config.xml and -Dtangosol.coherence.override system property from my application
    Ideally you should specify in the java options of your application startup but you can also sepcify using System.setProperty("property", "value") in you code for specifying the various properties
    4) How to use the cache updating mechanisms from an application?
    I am not clear what do you mean by cache updating mechanisms? If you mean how you can update the cache from application then you can use simple Put, Entry Processor and so on. Refer NamedCache APIs to start with for operations but there many other ways to update the cache from within application or otherwise
    Hope this helps!
    Cheers,
    NJ

  • Oracle Coherence*Web and BlazeDS: Multiple FlexSessions created for the same HttpSession

    Hi all,
    I have searched this forum and found a lot of good information from Alex Glosband and others about the infamous "Detected duplicate HTTP - based FlexSessions, generally due to the remote host disabling session cookies. Session coolkies must be enable to manage the client connection correctly." message.
    It seems, however, none of the cases are identical to ours. This is ours:
    - Resin 3.1.9
    - Oracle Coherence 3.7.1 with Coherence*Web (session replication)
    With this setup we get the "Detected duplicate HTTP..." message on the first attempt to use BlazeDS and on every subsequent call.  The same client and server code works fine in a local sessions setup.  With Coherence 3.3 (currently our production environment) it seems to occur less frequently, but still as frequent as it is a major issue for us.  It fails even with a single node using in-process distributed caching in our test setup (as well as with multi node out of process caching in our staging environment, for Coherence knowledgeable the resin app server runs with tangosol.coherence.session.localstorage=true in the first case and false in the second).
    Both the listener and message broker are mapped as "Coherence aware" in web.xml[1] so that they should use clustered sessions.
    We have been digging a bit and we found out that if we commented out lines 427 and 434 of flex.messaging.endpoints.BaseHTTPEndpoint from version 4.0.0.14931 it seems to mask the bug.  We added some logging in the setupFlexClient method and it seems that we get more or less a new FlexSession for each and every call - but they have the same cookie and thus underlying HttpSession. I.e. the list returned from flexClient.getFlexSessions() keeps growing. Thus we are not so keen on going to production with that memory leak and the above mentioned ugly hack of commenting out the detection of duplicates.
    We use request scope for the remote object, but could in theory use any scope as we do not really have any state on the object itself, it is all HttpSession state and return values that are key (logon is performed prior to doing the first blaze call, in pure forms and ajax, and it is not a timing issue in that regard we are seeing).
    Hope someone can shed some light on what can be happening. Is there any "reference testing"[2] or something when the FlexSessions are created that makes them being created as new? Where are they created?  We do not know the inner workings of the BlazeDS source, we just watched the call trace of the unwanted invalidation and found that to be line 427 of flex.messaging.endpoints.BaseHTTPEndpoint.
    Can we disable FlexSessions?  Since the flex and plain html parts of the app share the sessions, we always use FlexContext.getHttpRequest().getSession() anyway, never storing any state directly in the FlexSession or on the remote object. Or maybe there is a config option to help us with this detection (or creation) of multiple FlexSessions?
    Cheers and TIA,
    -S-
    [1] - For instance, this i the message broker servlet def:
    <servlet>
    <servlet-name>MessageBrokerServlet</servlet-name>
      <display-name>MessageBrokerServlet</display-name>
    <servlet-class>com.tangosol.coherence.servlet.api22.ServletWrapper</servlet-class>       
    <init-param>
    <param-name>coherence-servlet-class</param-name>
    <param-value>flex.messaging.MessageBrokerServlet</param-value>
    </init-param>       
    <init-param>
    <param-name>services.configuration.file</param-name>
    <param-value>/WEB-INF/flex/services-config.xml</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    [2] - As you undertstand this is speculation based on pure air, but it could be that in Coherence there was a serialization/deserialization happening somehow that would break such a test?

    Just a quick update, it seems things are running in a stable fashion (and without visible memory leaks, just keeping the latest FlexSession) with these changes in BaseHTTPEndpoint:
         * Overrides to guard against duplicate HTTP-based sessions for the same FlexClient which will occur if the remote host has disabled session
         * cookies.
         * @see AbstractEndpoint#setupFlexClient(String)
        @Override
        public FlexClient setupFlexClient(String id) {
            log.debug("setupFlexClient start id " + id);
            FlexClient flexClient = super.setupFlexClient(id);
            // Scan for duplicate HTTP-sessions and if found, invalidate them and throw a MessageException.
            // A request attribute is used to deal with batched AMF messages that arrive in a single request by trigger multiple passes through this
            // method.
            boolean duplicateSessionDetected = (FlexContext.getHttpRequest().getAttribute(REQUEST_ATTR_DUPLICATE_SESSION_FLAG) != null);
            if (!duplicateSessionDetected) {
                List<FlexSession> sessions = flexClient.getFlexSessions();
                log.debug("Client has " + sessions.size() + " sessions.");
                int n = sessions.size();
                if (n > 1) {
                    int count = 0;
                    for (int i = 0; i < n; i++) {
                        if (sessions.get(i) instanceof HttpFlexSession)
                            count++;
                        if (count > 1) {
                            FlexContext.getHttpRequest().setAttribute(REQUEST_ATTR_DUPLICATE_SESSION_FLAG, Boolean.TRUE);
                            duplicateSessionDetected = true;
                            break;
            // If more than one was found, remote host isn't using session cookies. Kill all duplicate sessions and return an error.
            // Simplest to just re-scan the list given that it will be very short, but use an iterator for concurrent modification.
            int i = 0;
            if (duplicateSessionDetected) {
                List<FlexSession> sessions = flexClient.getFlexSessions();
                log.debug("Detected sessions from client: " + sessions);
                for (FlexSession session : sessions) {
                    if (session instanceof HttpFlexSession && i < sessions.size()) {
    //                    log.debug("----> sessionId: " + session.getId());
    //                    Enumeration e1 = session.getAttributeNames();
    //                    while (e1.hasMoreElements()) {
    //                        Object key = e1.nextElement();
    //                        log.debug("--------->" + key + "--------->" + session.getAttribute((String) key));
    //                    session.invalidate();
                        flexClient.sessionDestroyed(session);
                    i++;
                // Return an error to the client.
    //            DuplicateSessionException e = new DuplicateSessionException();
    //            e.setMessage(ERR_MSG_DUPLICATE_SESSIONS_DETECTED);
    //            throw e;
            return flexClient;
    It is not exactly beautiful (to say the least), but if it does the trick I might just be pragmatic enough to go with it... NB: I am of course not proposing this as a patch to this file or anything, it is just an ugly hack for our specific case, but maybe the information can help the BlazeDS team find the root cause making it incompatible with Coherence*Web.
    Will give it a test run on our staging servers.

  • Need Oracle DB access

    I am away from work and need access to a database. I am stuck with a slow connection and cannot download either oracle vm or database software. Is apex.oracle.com an option? I have an export dump file that i want to import first.

    Sathishb_2 wrote:
    I have a windows vista and windows 7 home premium laptops. I could use one of them to download the oracle vm and oracle software.
    My connection speed is 512kbps.I am not sure that the o/s version will do much about the speed of the download. As Ed suggested, use a download manager and it should pause the download and also, may boost up the speed of it too. That said, 512kbs is actually not a great speed and most likely, its going to be shared connection that your ISP may have given to you so if there are more users connected and using the line, your speed would eventually go down for sure and there isn't much that you can do about it.
    Aman....

  • Oracle Coherence implementation for JDBC result set

    Instead of ORM, is Oracle coherence will support for accessing the data using normal JDBC calls?
    If it supports JDBC , what is the CacheStore implemetation for this?
    Can you provide me some example how to cache the JDBC ResultSet values and retrieve back from Cache?

    Hi,
    I think you mix up several concepts.
    user13266701 wrote:
    Instead of ORM, is Oracle coherence will support for accessing the data using normal JDBC calls?At the moment (up to 3.5.x), there is no way to query Coherence via JDBC out-of-the-box. There were a couple of initiatives to provide such features but they were not part of the product, only initiatives in the Incubator, but I believe they have been dropped.
    Upcoming releases may bring replacement, although I don't think it would be outright JDBC compatible, as that would imply converting an object-oriented data to result set so that you can convert it back, so it would in effect waste CPU resources.
    If it supports JDBC , what is the CacheStore implemetation for this?
    CacheStores have nothing to do with how you access the cache itself. Those are internal operations invoked by Coherence itself. Don't look for a relationship between querying the cache and doing anything with the cache store. The only relationship with them is that key-based operations on the cache may lead to operations on the cache store, but whether they do happen or not depends on the cache content, too.
    Can you provide me some example how to cache the JDBC ResultSet values and retrieve back from Cache?If I understand, that is yet a third concept. If you indeed want to cache JDBC ResultSet-s obtained from the database, then I have to disappoint you: it is not directly possible, as the ResultSet object is an abstraction over an open database cursor, and hence it keeps a database resource. Active resources cannot be cached in Coherence. You may acquire a RowSet from the JDBC driver, which would be possible to cache, however it may not be the most efficient thing to do due to possibly not optimal serialization format used by the RowSet to serialize itself.
    So if I did not answer the questions you wanted to ask, would you please explain in more detail what exactly you would like to do?
    Best regards,
    Robert

  • Oracle coherence-Pof(Portable object format)

    HI,
    I am new to oracle coherence.I read that POF is language independent.I am trying to create a portable object in java and access that object in .NET .So i created a portable object by implementing Portable object interface in Java. My Portable object is as follows:
    Pof.java:
    package com;
    import java.io.IOException;
    import java.io.Serializable;
    import javax.persistence.*;
    import oracle.eclipselink.coherence.integrated.config.CoherenceReadWriteCustomizer;
    import org.eclipse.persistence.annotations.Customizer;
    import com.tangosol.io.pof.PofReader;
    import com.tangosol.io.pof.PofWriter;
    import com.tangosol.io.pof.PortableObject;
    * The persistent class for the POF database table.
    @Entity
    @Customizer(CoherenceReadWriteCustomizer.class)
    public class Pof implements Serializable,PortableObject {
         private static final long serialVersionUID = 1L;
         @Id
         private long id;
         private String city;
         private String name;
         @Column(name="\"STATE\"")
         private String state;
         private String street;
         private String zip;
    public Pof() {
    public Pof(long id,String city,String name,String state,String street,String zip)
         this.id=id;
         this.city=city;
         this.name=name;
         this.state=state;
         this.street=street;
         this.zip=zip;
         public long getId() {
              return this.id;
         public void setId(long id) {
              this.id = id;
         public String getCity() {
              return this.city;
         public void setCity(String city) {
              this.city = city;
         public String getName() {
              return this.name;
         public void setName(String name) {
              this.name = name;
         public String getState() {
              return this.state;
         public void setState(String state) {
              this.state = state;
         public String getStreet() {
              return this.street;
         public void setStreet(String street) {
              this.street = street;
         public String getZip() {
              return this.zip;
         public void setZip(String zip) {
              this.zip = zip;
         @Override
         public void readExternal(PofReader arg0) throws IOException
              id=arg0.readLong(0);
              city=arg0.readString(1);
              name=arg0.readString(2);
              state=arg0.readString(3);
              street=arg0.readString(4);
              zip=arg0.readString(5);
         @Override
         public void writeExternal(PofWriter arg0) throws IOException
              arg0.writeLong(0,id);
              arg0.writeString(1,city);
              arg0.writeString(2,name);
              arg0.writeString(3,state);
              arg0.writeString(4,street);
              arg0.writeString(5,zip);
         @Override
         public String toString()
              return "cityname="+city;
    coherence-cache-config.xml
    <?xml version="1.0"?>
    <!--<!DOCTYPE cache-config SYSTEM "cache-config.dtd">-->
    <cache-config>
         <caching-scheme-mapping>
         <cache-mapping>
         <cache-name>Pof</cache-name>
         <scheme-name>disributedschema</scheme-name>
         </cache-mapping>
         </caching-scheme-mapping>
         <caching-schemes>
         <distributed-scheme>
         <scheme-name>disributedschema</scheme-name>
         <service-name>distributedschemaservice</service-name>
         <serializer>
    <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
    <init-params>
    <init-param>
    <param-value system-property="pof.config">file:///C:/Users/Praveen/workspace/newappworkspace/POF/src/pof-config.xml</param-value>
    <param-type>String</param-type>
    </init-param>
    </init-params>
    </serializer>
    <backing-map-scheme>
    <read-write-backing-map-scheme>
    <internal-cache-scheme>
    <local-scheme/>
    </internal-cache-scheme>
    <cachestore-scheme>
    <class-scheme>
    <class-name>oracle.eclipselink.coherence.integrated.EclipseLinkJPACacheStore</class-name>
    <init-params>
    <init-param>
    <param-type>java.lang.String</param-type>
    <param-value>{cache-name}</param-value>
    </init-param>
    <init-param>
    <param-type>java.lang.String</param-type>
    <param-value>POF</param-value>
    </init-param>
    </init-params>
    </class-scheme>
    </cachestore-scheme>
    </read-write-backing-map-scheme>
    </backing-map-scheme>
    <autostart>true</autostart>
         </distributed-scheme>
         </caching-schemes>
    </cache-config>
    pof-config.xml
    <?xml version="1.0"?>
    <!DOCTYPE pof-config SYSTEM "pof-config.dtd">
    <pof-config>
         <user-type-list>
         <!-- include all "standard" Coherence POF user types -->
         <include>coherence-pof-config.xml</include>
         <user-type>
              <type-id>1001</type-id>
              <class-name>com.Pof</class-name>
         </user-type>
         </user-type-list>
         <allow-interfaces>true</allow-interfaces>
    <allow-subclasses>true</allow-subclasses>
    </pof-config>
    Now the data is inserting in to the database and cache.Now how to access this portable object in .NET?
    Any suggestions would be great.
    Regards,
    Praveen

    Hopefully, Coherence Developer's Guide 3.6.1 "Using POF" will help:
    http://download.oracle.com/docs/cd/E15357_01/coh.360/e15723/api_pof.htm#BABEJCFF
    /Mark J
    Oracle Coherence

  • How to put the data into cache and distribute to nodeusing oracle coherence

    Hi Friends,
    i am having some random number data writing into file,from that file i am reading the data and i want to put into cache,how can i put the data into cache and partition this data into different nodes ( machines) to caluculate like S.D,variance..etc..like that.(or how can i implement montecarlo using oracle coherence) if any one know plz suggest me with flow.
    Thank you.
    regards
    chandra

    Hi robert,
    i have some bulk data in some arraylist or object format,i want to put into cache.
    i am not able to put into cache.i am using put method like cache.put(object key ,object value) ,but its not allowing to put into cache.
    can you please help me.i m sending my code.plz go thru and tel me whr i did mistake.
    package lab3;
    import com.tangosol.net.CacheFactory;
    import com.tangosol.net.NamedCache;
    import com.tangosol.net.cache.NearCache;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.PrintWriter;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.Random;
    import java.util.Scanner;
    import javax.naming.Name;
    public class BlockScoleData {
         * @param args
         * s=The spot market price
         * x=the exercise price of the option
         * v=instantaneous standard deviation of s
         * r=risk free instantaneous rate of interest
         * t= time to expiration of the option
         * n – Number of MC simulations.
         private static String outputFile = "D:/cache1/sampledata2.txt";
    private static String inputFile = "D:/cache1/sampledata2.txt";
    NearCache cache;
    List<Credit> creditList = new ArrayList<Credit>();
         public void writeToFile(int noofsamples) {
              Random rnd = new Random();
              PrintWriter writer = null;
              try {
                   writer = new PrintWriter(outputFile);
                   for (int i = 1; i <= noofsamples; i++) {
                        double s = rnd.nextInt(200) * rnd.nextDouble();
                        //double x = rnd.nextInt(250) * rnd.nextDouble();
                        int t = rnd.nextInt(5);
                        double v = rnd.nextDouble() ;
                        double r = rnd.nextDouble() / 10;
                        //int n = rnd.nextInt(90000);
                        writer.println(s + " " + t + " " + v + " "
                                  + r );
              } catch (FileNotFoundException e) {
                   e.printStackTrace();
              } finally {
                   writer.close();
                   writer = null;
    public List<Credit> readFromFile() {
    Scanner scanner = null;
    Credit credit = null;
    // List<Credit> creditList = new ArrayList<Credit>();
    try {
    scanner = new Scanner(new File(inputFile));
    while (scanner.hasNext()) {
    credit = new Credit(scanner.nextDouble(), scanner.nextInt(),
    scanner.nextDouble(), scanner.nextDouble());
    creditList.add(credit);
    System.out.println("read the list from file:"+creditList);
    } catch (FileNotFoundException e) {
    e.printStackTrace();
    } finally {
    scanner.close();
    credit = null;
    scanner = null;
    return creditList;
    // public void putCache(String cachename,List<Credit> list){
    // cache = CacheFactory.getCache ( "VirtualCache");
    // List<Credit> rand = new ArrayList<Credit>();
    public Object put(Object key, Object value){
    cache = (NearCache)CacheFactory.getCache("mycache");
    String cachename = cache.getCacheName();
    List<Credit> cachelist=new ArrayList<Credit>();
    // Object key;
    //cachelist = (List<Credit>)cache.put(creditList,creditList);
    cache.put(creditList,creditList);
    System.out.println("read to the cache list from file:"+cache.get(creditList));
    return cachelist;
         public static void main(String[] args) throws Exception {
         NearCache cache = (NearCache)CacheFactory.getCache("mycache");
              new BlockScoleData().writeToFile(20);
         //new BlockScoleData().putCache("Name",);
              System.out
                        .println("New file \"myfile.csv\" has been created to the current directory");
         CacheFactory.ensureCluster();
         new BlockScoleData().readFromFile();
    System.out.println("data read from file successfully");
         List<Credit> creditList = new ArrayList<Credit>();
    new BlockScoleData().put(creditList,creditList);
         System.out.println("read to the cache list from file:"+cache.get(creditList));
    //cache=CacheFactory.getCache("mycache");
    //mycacheput("Name",new BlockScoleData());
    //     System.out.println("name of cache is :" +mycache.getCacheName());
    //     System.out.println("value in cache is :" +mycache.get("Name"));
    //     System.out.println("cache services are :" +mycache.getCacheService());
    regards
    chandra

  • Coherence Transaction Options

    Hi
    I'm confused about Coherence Transaction Options. ( Coherence 3.7.1 <<Developer’s Guide>> 27 Performing Transactions )
    Option Name-
    ・Explicit locking
    ・Entry Processors
    ・Transaction Framework API
    What the difference between these Options.
    ( Of course, Transaction Framework API has some Limitations.)
    I would appreciate if someone could summarying " Transaction Options"
    ・When to use "Explicit locking" - ConcurrentMap
    ・When to use "Entry Processors "
    ・and When to use "Transaction Framework API".
    Thanks!

    Hi,
    <li>Explicit Locking - this is used to lock a key in a cache. You have to explicitly call the lock and unlock methods yourself in code to manage the locking and unlocking of the key.
    <li>Entry Processors - these are not really about locking - they run a method against one or more entries in a cache and whilst they are running that entry is locked, so you cannot get a situation where two threads on a server node are both trying to update the same key.
    <li>Transaction API - this is a full blown transaction framework that supports the same type of transactions semantics that you get on a database.
    As for when to use the above functionality; well in almost six years of using Coherence I have used them like this...
    <li>Explicit locking - I have very very rarely as a form of concurrency control to stop updates to data. I have used it if i want some sort of cluster wide mutex, that is, I want a piece of code to only run once across the whole cluster.
    <li>Entry Processors - I use these all the time, although the fact they lock is not always my primary concern.
    <li>Transaction API - never used it. The transaction API has not been around long and for me has too many limitations to make it worth using, although it might be fine for other people. Also, I have been using Coherence for a long time and have worked around the fact that it does not do transactions. In fact, the main reason to use Coherence is fast, scalable access to in-memory data so why would you want to throttle your system by wrapping it in the overhead of transactions, if you want transactions, use a DB. If you want a fast scalable system then use Coherence and design your system not to need transactions or too much locking. I work on a very complex Coherence system at the moment and we just accept there are no transactions and design things to work that way as for us, scalability and performance are the important factor.
    JK

  • Customizing Oracle Web Access Client password change

    We need to turn off the built in Password Change feature in the Oracle Web Access Client of Collaboration Suite or, an even better option, redirect it to our custom built change password application. It appears in the client under Preferences in the same pop-up window as General and Time Zone. We've been poking around in the file structure and trying to find what renders this page. Can anyone offer any help?
    Thanks.
    Troy

    Hello,
    You can't do that in WAC but in the Webmail interface > Preferences > Account > Folders you can set this for Oracle Mail.
    Hope it helps.
    Irina

  • Direct Oracle Database Access restriction

    Hello All,
    How do I find out whether direct Oracle database access has been restricted to defined nodes?
    Thank you.

    You can try some of these:
    1. check if any non-SAP ids are created in the database, in oracle for example in dba_users
    2. check if any dummy default ids that come with database are unlocked and being used
    3. if you are setup to use external identification such as ops$sidadm in oracle (in places they are), check who can su or sudo to sidadm
    4. obviously anyone with password for system and sap ids can login using number of tools; you can investigate options to tighten using SQL*Net listener
    Hope this gives some preliminary pointers...

Maybe you are looking for