Tangosol 2.5.1 and WKA

Hi,
Can anyone confirm whether WKA (Well Known Addresses) is supported in v.2.5.1?

Pinakin,
The multicast-less discovery protocol (WKA) was introduce at Coherence 3.0 and is not supported for 2.5.x.
Regards,
Gene

Similar Messages

  • Declaring "tangosol.pof.enabled=" and "tangosol.pof.config=" in xml config

    Dear all,
    Is there a way to declare "tangosol.pof.enabled=true" and "tangosol.pof.config=my-pof-config.xml" in coherence xml config (e.g. tangosol-coherence-override.xml) ratherthan using the "-Dtangosol.pof.config=" and "-Dtangosol.pof.config=".
    We are looking for this because deploying the same config file on both our application servers and our pure coherence nodes is the easiest way we have to be sure that the configurations are in sync.
    We have lost several hours last week figuring that we forgot to declare these "-Dtangosol.pof..xxx" environment variables in our J2EE servers and we would like to prevent this to reoccur.
    Cyrille

    For versions earlier than 3.6, if you don't want to set POF to be the default with the tangosol.pof.enabled switch, you have to add the full serializer definition to your cache config:
    <serializer>
    <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
    <!-- Optionally override the default value ("pof-config.xml", or the setting of -Dtangosol.pof.config) -->
    <init-params>
    <init-param>
    <param-type>String</param-type>
    <param-value>pof-config.xml</param-value>
    </init-param>
    </init-params>
    </serializer>
    From Coherence 3.6, you can add a <serializer/> element to the scheme in
    the cache config file:
    <distributed-scheme>
    <scheme-name>example-distributed</scheme-name>
    <service-name>DistributedCache</service-name>
    <serializer>pof</serializer>
    You can also define the default serialisation method in the cache
    config file:
    <cache-config>
    <defaults>
    <serializer>pof</serializer>
    </defaults>
    Both of these refer to a set of serializers defined in the operational config file that you can override using an
    operational overrides file. E.g.
    <!-- tangosol-coherence-override.xml -->
    <?xml version="1.0" encoding="UTF-8"?>
    <coherence>
    <cluster-config>
    <serializers>
    <serializer id="pof">
    <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
    <init-params>
    <init-param>
    <param-type>String</param-type>
    <param-value>my-pof-config.xml</param-value>
    </init-param>
    </init-params>
    </serializer>
    </serializers>
    </cluster-config>
    </coherence>

  • Coherence and Multicast Issues

    We are using Coherence 3.7.1 as a part of EAR application. These are deployed on WL Servers using multicast. We have observed if multicast is disabled on a node while deployment but enabled later, id does not joins the cluster,  A redeployment is required after multicast is re-enabled.
    Any suggestions on this will be appreciated.
    Though one option option is to run the the multicast-test.cmd utility manually before deployment and view the result, is there a way to automate this process without manual intervention.
    Using Unicast and WKA are not possible
    Looking forward to suggestions.

    Raff. wrote:
    Can you try to run your application linked to the 10.1 LCCS lib on a machine that only has FlashPlayer 10.0 installed ?
    Can an application which is linked to lccs for player 10.1, run on a 10.0 player?
    This sounds like a problem in lccs. Could you check the difference in code in WebcamSubscriber#playStream() between 10.0 and 10.1? (I cannot do this as 10.1 is not open source.) Whatever the problem is, it's initiated from that method.

  • Issue with "unknown user type 6" on Coherence 3.5.2

    Having an issue with a cluster which is running using an internally developed cluster starter tool. This tool, and the associated cluster, all use POF, and upon attempting to connect a non-storing member to the cluster from java, the following exception is raised...
    2011-07-11 15:54:58.338/2.469 Oracle Coherence GE 3.5.2/463p2 <Error> (thread=Cluster, member=n/a): This cluster node is
    configured to use serializer com.tangosol.io.pof.ConfigurablePofContext {location=application-pof-config.xml}, which ap
    pears to be different from the serializer used by Member(Id=1, Timestamp=2011-07-11 15:34:30.779, Address=10.74.82.193:8
    088, MachineId=11188, Location=site:INTRANET.BARCAPINT.COM,machine:ldnpsm020006423,process:80976,member:ldnpsm020006423:
    cacheserver:1).
    java.io.StreamCorruptedException: unknown user type: 6
    at com.tangosol.io.pof.PofBufferReader.readAsObject(PofBufferReader.java:3289)
    at com.tangosol.io.pof.PofBufferReader.readObject(PofBufferReader.java:2600)
    at com.tangosol.io.pof.ConfigurablePofContext.deserialize(ConfigurablePofContext.java:348)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.readObject(Service.CDB:4)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid$ServiceConfigMap.readObject(Grid.CDB
    :1)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid$MemberConfigResponse.read(Grid.CDB:1
    3)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:123)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.ClusterService.onNotify(ClusterServi
    ce.CDB:3)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
    at java.lang.Thread.run(Thread.java:619)
    There is no serialiser configured in the cache config, instead we just set tangosol.pof.enabled=true, and set the pof config file to what is seen above. The thing which is very confusing about this error is that unlike other clients which we connect, and in fact the servers they connect to, this client never attempts to load the cache configuration file. The point at which this should happen, prior to pof loading, shows:
    2011-07-11 15:54:57.260/1.391 Oracle Coherence GE 3.5.2/463p2 <Info> (thread=Main Thread, member=n/a): Loaded cache conf
    iguration from "jar:file:/C:/Program%20Files/Oracle/coherence/3.5.2b463P2/lib/coherence.jar!/reports/report-group.xml"
    I have tried every combination of classpath entries I can think of, and no matter what, it never shows an attempt to load the application-cache-config.xml supplied in the startup. Does anyone have any experience with something like this?

    I guess your non-storing JAVA code does not specify -Dtangosol.pof.enabled=true and the -Dtangosol.pof.config =<POF file location> on joining the cluster. Post the startup java command and the complete logs.
    If application-cache-config is not loaded then coherence-cache-config.xml should be loaded by default and set -Dtangosol.coherence.cacheconfig=<application-cache-config>
    Cheers,
    NJ

  • Can't setup PofAnnotationSerializer in pof-config.xml

    Hi,
    i have class annotated with @Portable and @PortableProperty, and pof-config.xml for setup serializer:
          <user-type>
             <type-id>1001</type-id>
             <class-name>entity.dto.base.EmployeeBaseDTO</class-name>
             <serializer>
                <class-name>com.tangosol.io.pof.PofAnnotationSerializer</class-name>
                    <init-params>
                    <init-param>
                        <param-type>int</param-type>
                        <param-value>1001</param-value>
                     </init-param>
                     <init-param>
                        <param-type>java.lang.Class</param-type>
                        <param-value>entity.dto.base.EmployeeBaseDTO</param-value>
                     </init-param>
                  </init-params>
             </serializer>
          </user-type>
    While starting Coherence 3.7.1 cluster, I get error:
    Unable to instantiate PofSerializer class: com.tangosol.io.pof.PofAnnotationSerializer (Config=...\pof-config.xml, Type-Id=1001,
    Class-Name=entity.dto.base.EmployeeBaseDTO))
    java.lang.InstantiationException: Could not find a constructor for com.tangosol.io.pof.PofAnnotationSerializer(java.lang.Integer, com.tangosol.run.xml.SimpleElement)
    Why second PofAnnotationSerializer contructor parameter is com.tangosol.run.xml.SimpleElement and not java.lang.Class ?
    BTW setup PofAnnotationSerializer programatically works fine:
    SimplePofContext pofCtx = new SimplePofContext();
    int typeId = 1001;
    pofCtx.registerUserType(typeId, EmployeeBaseDTO.class , new PofAnnotationSerializer<EmployeeBaseDTO>(typeId++, EmployeeBaseDTO.class, true));
    Thanks,
    L.V.

    OK, so to enable auto indexing then yes, you need to specify the serializer in the POF configuration, as it says in the documentation 19.3.3 Enabling Automatic Indexing.
    So in your case the configuration should look like this
          <user-type>
             <type-id>1001</type-id>
             <class-name>entity.dto.base.EmployeeBaseDTO</class-name>
             <serializer>
                <class-name>com.tangosol.io.pof.PofAnnotationSerializer</class-name>
                    <init-params>
                    <init-param>
                        <param-type>int</param-type>
                        <param-value>{type-id}</param-value>
                     </init-param>
                     <init-param>
                        <param-type>class</param-type>
                        <param-value>{class}</param-value>
                     </init-param>
                     <init-param>
                        <param-type>boolean</param-type>
                        <param-value>true</param-value>
                     </init-param>
                  </init-params>
             </serializer>
          </user-type>
    You do not replace the param-values that are inside { } or change the param-type values as these are macros that Coherence will automatically replace with the correct values.
    Regarding your error, I'm not sure if that is related to your original question/issue.
    JK

  • Can I create different Coherence nodes in the same cluster with defferent?

    Can I create different Coherence nodes in the same cluster with defferent cache-config.xml file ?
    Can a cache be distributed in these deffirent nodes?

    Yes. You can create different Coherence nodes in the same cluster with defferent cache-config.xml files as long as you use the same tangosol-coherence.xml file and the same tangosol-coherence-override.xml file. But you cannot store the cache data in the different nodes (started with different cache-config file). In other word, a node only create caches in their own's modes which are started with the same cache-config.xml file.
    See the following demo:
    I start a cache server using the cache config file examples-cache-server.xml. Then I start a storage-disabled cache console (cache client) using the cache config file coherence-cache-config.xml. Both of them using the same tangosol-coherence.xml file and the same tangosol-coherence-override.xml file.
    The cache server uses a cache service PartitionedPofCache. But the client side is using the Distributedcache service. The cluster address is same 224.3.5.2.
    The cluster name is also samme. They know each other.
    D:\coherence\lib>D:\examples\java\bin\run-cache-server.cmd
    D:\coherence\lib>D:\examples\java\bin\run-cache-server.cmd
    The system cannot find the file D:\coherence.
    The system cannot find the file C:\Oracle\Middleware\jdk160_11.
    2009-12-22 12:09:31.400/4.987 Oracle Coherence 3.5.2/463 <Info> (thread=main, member=n/a): Loaded operational configurat
    ion from resource "jar:file:/D:/coherence/lib/coherence.jar!/tangosol-coherence.xml"
    2009-12-22 12:09:31.450/5.037 Oracle Coherence 3.5.2/463 <Info> (thread=main, member=n/a): Loaded operational overrides
    from resource "jar:file:/D:/coherence/lib/coherence.jar!/tangosol-coherence-override-dev.xml"
    2009-12-22 12:09:31.470/5.057 Oracle Coherence 3.5.2/463 <D5> (thread=main, member=n/a): Optional configuration override
    "/tangosol-coherence-override.xml" is not specified
    2009-12-22 12:09:31.540/5.127 Oracle Coherence 3.5.2/463 <D5> (thread=main, member=n/a): Optional configuration override
    "/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-12-22 12:09:33.864/7.451 Oracle Coherence GE 3.5.2/463 <Info> (thread=main, member=n/a): Loaded cache configuration
    from "file:/D:/examples/java/resource/config/examples-cache-config.xml"
    2009-12-22 12:09:39.983/13.570 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=n/a): Service Cluster joined t
    he cluster with senior service member n/a
    2009-12-22 12:09:43.187/16.774 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-12-22 12:09:38.06, Address=192.168.8.80:8088, MachineId=24656, Locatio
    n=process:144, Role=CoherenceServer, Edition=Grid Edition, Mode=Development, CpuCount=1, SocketCount=1) UID=0xC0A8085000
    000125B75D888C60501F98
    2009-12-22 12:09:43.508/17.095 Oracle Coherence GE 3.5.2/463 <D5> (thread=Invocation:Management, member=1): Service Mana
    gement joined the cluster with senior service member 1
    2009-12-22 12:09:46.582/20.169 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache:PartitionedPofCache, member=1
    ): Service PartitionedPofCache joined the cluster with senior service member 1
    2009-12-22 12:09:46.672/20.259 Oracle Coherence GE 3.5.2/463 <Info> (thread=DistributedCache:PartitionedPofCache, member
    =1): Loading POF configuration from resource "file:/D:/examples/java/resource/config/examples-pof-config.xml"
    2009-12-22 12:09:46.702/20.289 Oracle Coherence GE 3.5.2/463 <Info> (thread=DistributedCache:PartitionedPofCache, member
    =1): Loading POF configuration from resource "jar:file:/D:/coherence/lib/coherence.jar!/coherence-pof-config.xml"
    2009-12-22 12:09:47.734/21.321 Oracle Coherence GE 3.5.2/463 <Info> (thread=main, member=1): Started DefaultCacheServer.
    SafeCluster: Name=cluster:0xD3FB
    Group{Address=224.3.5.2, Port=35463, TTL=4}
    MasterMemberSet
      ThisMember=Member(Id=1, Timestamp=2009-12-22 12:09:38.06, Address=192.168.8.80:8088, MachineId=24656, Location=process
    :144, Role=CoherenceServer)
      OldestMember=Member(Id=1, Timestamp=2009-12-22 12:09:38.06, Address=192.168.8.80:8088, MachineId=24656, Location=proce
    ss:144, Role=CoherenceServer)
      ActualMemberSet=MemberSet(Size=1, BitSetCount=2
        Member(Id=1, Timestamp=2009-12-22 12:09:38.06, Address=192.168.8.80:8088, MachineId=24656, Location=process:144, Rol
    e=CoherenceServer)
      RecycleMillis=120000
      RecycleSet=MemberSet(Size=0, BitSetCount=0
    Services
      TcpRing{TcpSocketAccepter{State=STATE_OPEN, ServerSocket=192.168.8.80:8088}, Connections=[]}
      ClusterService{Name=Cluster, State=(SERVICE_STARTED, STATE_JOINED), Id=0, Version=3.5, OldestMemberId=1}
      InvocationService{Name=Management, State=(SERVICE_STARTED), Id=1, Version=3.1, OldestMemberId=1}
      DistributedCache{Name=PartitionedPofCache, State=(SERVICE_STARTED), LocalStorage=enabled, PartitionCount=257, BackupCo
    unt=1, AssignedPartitions=257, BackupPartitions=0}
    2009-12-22 12:12:29.737/183.324 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member(Id=2, Timestamp=20
    09-12-22 12:12:29.541, Address=192.168.8.80:8089, MachineId=24656, Location=process:1188, Role=CoherenceConsole) joined
    Cluster with senior member 1
    2009-12-22 12:12:30.498/184.085 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 joined Service M
    anagement with senior member 1
    2009-12-22 12:12:31.860/185.447 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): TcpRing: connecting to me
    mber 2 using TcpSocket{State=STATE_OPEN, Socket=Socket[addr=/192.168.8.80,port=8089,localport=2463]}
    2009-12-22 12:12:51.338/204.925 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 joined Service D
    istributedCache with senior member 2The following command starts a cache client.
    D:\coherence\bin>coherence.cmd
    D:\coherence\bin>coherence.cmd
    ** Starting storage disabled console **
    java version "1.6.0_11"
    Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
    Java HotSpot(TM) Server VM (build 11.0-b16, mixed mode)
    2009-12-22 12:12:21.054/3.425 Oracle Coherence 3.5.2/463 <Info> (thread=main, member=n/a): Loaded operational configurat
    ion from resource "jar:file:/D:/coherence/lib/coherence.jar!/tangosol-coherence.xml"
    2009-12-22 12:12:21.355/3.726 Oracle Coherence 3.5.2/463 <Info> (thread=main, member=n/a): Loaded operational overrides
    from resource "jar:file:/D:/coherence/lib/coherence.jar!/tangosol-coherence-override-dev.xml"
    2009-12-22 12:12:21.365/3.736 Oracle Coherence 3.5.2/463 <D5> (thread=main, member=n/a): Optional configuration override
    "/tangosol-coherence-override.xml" is not specified
    2009-12-22 12:12:21.415/3.786 Oracle Coherence 3.5.2/463 <D5> (thread=main, member=n/a): Optional configuration override
    "/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-12-22 12:12:29.316/11.687 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=n/a): Service Cluster joined t
    he cluster with senior service member n/a
    2009-12-22 12:12:29.356/11.727 Oracle Coherence GE 3.5.2/463 <Info> (thread=Cluster, member=n/a): Failed to satisfy the
    variance: allowed=16, actual=20
    2009-12-22 12:12:29.356/11.727 Oracle Coherence GE 3.5.2/463 <Info> (thread=Cluster, member=n/a): Increasing allowable v
    ariance to 17
    2009-12-22 12:12:29.807/12.178 Oracle Coherence GE 3.5.2/463 <Info> (thread=Cluster, member=n/a): This Member(Id=2, Time
    stamp=2009-12-22 12:12:29.541, Address=192.168.8.80:8089, MachineId=24656, Location=process:1188, Role=CoherenceConsole,
    Edition=Grid Edition, Mode=Development, CpuCount=1, SocketCount=1) joined cluster "cluster:0xD3FB" with senior Member(I
    d=1, Timestamp=2009-12-22 12:09:38.06, Address=192.168.8.80:8088, MachineId=24656, Location=process:144, Role=CoherenceS
    erver, Edition=Grid Edition, Mode=Development, CpuCount=1, SocketCount=1)
    2009-12-22 12:12:29.977/12.348 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=n/a): Member 1 joined Service
    Management with senior member 1
    2009-12-22 12:12:29.977/12.348 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=n/a): Member 1 joined Service
    PartitionedPofCache with senior member 1
    2009-12-22 12:12:30.578/12.949 Oracle Coherence GE 3.5.2/463 <D5> (thread=Invocation:Management, member=2): Service Mana
    gement joined the cluster with senior service member 1
    SafeCluster: Name=cluster:0xD3FB
    Group{Address=224.3.5.2, Port=35463, TTL=4}
    MasterMemberSet
      ThisMember=Member(Id=2, Timestamp=2009-12-22 12:12:29.541, Address=192.168.8.80:8089, MachineId=24656, Location=proces
    s:1188, Role=CoherenceConsole)
      OldestMember=Member(Id=1, Timestamp=2009-12-22 12:09:38.06, Address=192.168.8.80:8088, MachineId=24656, Location=proce
    ss:144, Role=CoherenceServer)
      ActualMemberSet=MemberSet(Size=2, BitSetCount=2
        Member(Id=1, Timestamp=2009-12-22 12:09:38.06, Address=192.168.8.80:8088, MachineId=24656, Location=process:144, Rol
    e=CoherenceServer)
        Member(Id=2, Timestamp=2009-12-22 12:12:29.541, Address=192.168.8.80:8089, MachineId=24656, Location=process:1188, R
    ole=CoherenceConsole)
      RecycleMillis=120000
      RecycleSet=MemberSet(Size=0, BitSetCount=0
    Services
      TcpRing{TcpSocketAccepter{State=STATE_OPEN, ServerSocket=192.168.8.80:8089}, Connections=[]}
      ClusterService{Name=Cluster, State=(SERVICE_STARTED, STATE_JOINED), Id=0, Version=3.5, OldestMemberId=1}
      InvocationService{Name=Management, State=(SERVICE_STARTED), Id=1, Version=3.1, OldestMemberId=1}
    Map (?):
    2009-12-22 12:12:49.505/31.906 Oracle Coherence GE 3.5.2/463 <Info> (thread=main, member=2): Loaded cache configuration
    from "jar:file:/D:/coherence/lib/coherence.jar!/coherence-cache-config.xml"
    2009-12-22 12:12:51.358/33.729 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache, member=2): Service Distribut
    edCache joined the cluster with senior service member 2
    <distributed-scheme>
      <!--
      To use POF serialization for this partitioned service,
      uncomment the following section
      <serializer>
      <class-
      name>com.tangosol.io.pof.ConfigurablePofContext</class-
      name>
      </serializer>
      -->
      <scheme-name>example-distributed</scheme-name>
      <service-name>DistributedCache</service-name>
      <backing-map-scheme>
        <local-scheme>
          <scheme-ref>example-binary-backing-map</scheme-ref>
        </local-scheme>
      </backing-map-scheme>
      <autostart>true</autostart>
    </distributed-scheme>But when I try to store data into cache from the client side, it report error message: it's staorage-disabled. It shows that this cache console cannot store the data in the existing cache server because then using different cache config files.
    Map (ca3): cache ca2
    <distributed-scheme>
      <!--
      To use POF serialization for this partitioned service,
      uncomment the following section
      <serializer>
      <class-
      name>com.tangosol.io.pof.ConfigurablePofContext</class-
      name>
      </serializer>
      -->
      <scheme-name>example-distributed</scheme-name>
      <service-name>DistributedCache</service-name>
      <backing-map-scheme>
        <local-scheme>
          <scheme-ref>example-binary-backing-map</scheme-ref>
        </local-scheme>
      </backing-map-scheme>
      <autostart>true</autostart>
    </distributed-scheme>
    Map (ca2): put 1 one
    2009-12-22 14:00:04.999/6467.370 Oracle Coherence GE 3.5.2/463 <Error> (thread=main, member=2):
    java.lang.RuntimeException: Storage is not configured
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$BinaryMap.onMissing
    Storage(DistributedCache.CDB:9)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$BinaryMap.ensureReq
    uestTarget(DistributedCache.CDB:34)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$BinaryMap.put(Distr
    ibutedCache.CDB:22)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$BinaryMap.put(Distr
    ibutedCache.CDB:1)
            at com.tangosol.util.ConverterCollections$ConverterMap.put(ConverterCollections.java:1541)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$ViewMap.put(Distrib
    utedCache.CDB:1)
            at com.tangosol.coherence.component.util.SafeNamedCache.put(SafeNamedCache.CDB:1)
            at com.tangosol.coherence.component.application.console.Coherence.processCommand(Coherence.CDB:581)
            at com.tangosol.coherence.component.application.console.Coherence.run(Coherence.CDB:39)
            at com.tangosol.coherence.component.application.console.Coherence.main(Coherence.CDB:3)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at com.tangosol.net.CacheFactory.main(CacheFactory.java:1400)

  • Different distributed caches within the cluster

    Hi,
    i've three machines n1 , n2 and n3 respectively that host tangosol. 2 of them act as the primary distributed cache and the third one acts as the secondary cache. i also have weblogic running on n1 and based on some requests pumps data on to the distributed cache on n1 and n2. i've a listener configured on n1 and n2 and on the entry deleted event i would like to populate tangosol distributed service running on n3. all the 3 nodes are within the same cluster.
    i would like to ensure that the data directly coming from weblogic should only be distributed across n1 and n2 and NOT n3. for e.g. i do not start an instance of tangosol on node n3. and an object gets pruned from either n1 or n2. so ideally i should get a storage not configured exception which does not happen.
    The point is the moment is say CacheFactory.getCache("Dist:n3") in the cache listener, tangosol does populate the secondary cache by creating an instance of Dist:n3 on either n1 or n2 depending from where the object has been pruned.
    from my understanding i dont think we can have a config file on n1 and n2 that does not have a scheme for n3. i tried doing that and got an illegalstate exception.
    my next step was to define the Dist:n3 scheme on n1 and n2 with local storage false and have a similar config file on n3 with local-storage for Dist:n3 as true and local storage for the primary cache as false.
    can i configure local-storage specific to a cache rather than to a node.
    i also have an EJB deployed on weblogic that also entertains a getData request. i.e. this ejb will also check the primary cache and the secondary cache for data. i would have the statement
    NamedCahe n3 = CacheFactory.getCache("n3") in the bean as well.

    Hi Jigar,
    i've three machines n1 , n2 and n3 respectively that
    host tangosol. 2 of them act as the primary
    distributed cache and the third one acts as the
    secondary cache.First, I am curious as to the requirements that drive this configuration setup.
    i would like to ensure that the data directly coming
    from weblogic should only be distributed across n1
    and n2 and NOT n3. for e.g. i do not start an
    instance of tangosol on node n3. and an object gets
    pruned from either n1 or n2. so ideally i should get
    a storage not configured exception which does not
    happen.
    The point is the moment is say
    CacheFactory.getCache("Dist:n3") in the cache
    listener, tangosol does populate the secondary cache
    by creating an instance of Dist:n3 on either n1 or n2
    depending from where the object has been pruned.
    from my understanding i dont think we can have a
    config file on n1 and n2 that does not have a scheme
    for n3. i tried doing that and got an illegalstate
    exception.
    my next step was to define the Dist:n3 scheme on n1
    and n2 with local storage false and have a similar
    config file on n3 with local-storage for Dist:n3 as
    true and local storage for the primary cache as
    false.
    can i configure local-storage specific to a cache
    rather than to a node.
    i also have an EJB deployed on weblogic that also
    entertains a getData request. i.e. this ejb will also
    check the primary cache and the secondary cache for
    data. i would have the statement
    NamedCahe n3 = CacheFactory.getCache("n3") in the
    bean as well.In this scenario, I would recommend having the "primary" and "secondary" caches on different cache services (i.e. distributed-scheme/service-name). Then you can configure local storage on a service by service basis (i.e. distributed-scheme/local-storage).
    Later,
    Rob Misek
    Tangosol, Inc.

  • Daylight Savings Changes 2007

    Daylight Savings time will be altered in 2007 as seen in http://geography.about.com/cs/daylightsavings/a/dst.htm
    Is Coherence certified to handle these changes? We have already found issues in the OS and JDK that need to be patched.

    Coherence will correctly handle daylight savings changes once the JDK has been patched.
    Without the JDK patch, only the Coherence logging function will be incorrect, in that the logged messages will reflect the incorrect (unpatched) "timezone".
    Coherence has very careful handling of "wall clock time" functionality to avoid being impacted by network time daemons, system clock irregularities, time zone shifts, etc.
    Peace,
    Cameron Purdy
    Tangosol Coherence: Data Grid and Clustered Cache

  • Querying a  collection object

    I have an objects as follows
    Entity {
    key k;
    Collection<Person> personList;
    Person{
    Address address;
    Address{
    String zipcode;
    I want to get all the Entities coming under "zipcode=123456".
    Please help me how to get it using the query.
    TIA.

    Hi,
    One way might be to write a custom extractor that extends com.tangosol.util.extractor.AbstractExtractor and overrides extractFromEntry() to extract the collection of zip codes from a cached Entity (the value of the passed in Map.Entry). Then you could write a query using that extractor ...
    ValueExtractor extractor = new CustomEntityZipExtractor();
    Filter         filter    = new ContainsFilter(extractor, "123456");
    Set entries = cache.entrySet(filter);Thanks

  • Getting UnsupportedClassVersionError in a jaxws client.

    Hi,
    I am moving a webservice to jaxws, and am encountering the below exception and would be very greateful for any advice.
    I generate sources with apt wsgen ant tasks and a wsimport shell script, and I am quite sure that they are being executed using java 1.5.
    Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
            at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
            at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
            at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
            at com.sun.xml.ws.util.xml.XmlUtil.createDefaultCatalogResolver(XmlUtil.java:206)
            at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:117)
            at com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:50)
            at javax.xml.ws.Service.<init>(Service.java:58)
            at uk.ac.ebi.jdbfetch.ws.wsdbfetch.server.WSDbfetchService.<init>(WSDbfetchService.java:42)
            at uk.ac.ebi.jdbfetch.ws.wsdbfetch.client.WSDbfetchClient.<init>(WSDbfetchClient.java:22)
            at uk.ac.ebi.jdbfetch.ws.wsdbfetch.client.WSDbfetchClient.main(WSDbfetchClient.java:153)The included libraries:
    [activation-1.0.2.jar
    axb-api-2.0EA3.jar
    jaxb-impl-2.0EA3.jar
    jaxp-api-1.4.jar
    jaxp-ri-1.4.jar
    jaxws-api-2.0EA3.jar
    jaxws-rt-2.0EA3.jar
    jsr173-api-1.0.jar
    jsr181-api-1.0.jar
    jsr250-api-1.0.jar
    log4j-1.2.12.jar
    saaj-api-1.3.jar
    saaj-impl-1.3.jar
    stax-1.2.0.jar
    Thanks,
    Mikael

    Hi Kevek,
    I would strongly recommend starting with one of the working .NET examples shipped with Coherence for .NET. I think this will really help illustrate the basic tasks that must be done to get a C# application to interact with a remote Coherence NamedCache. The User Guide also contains step-by-step instructions on building each of the examples (ContactCache.Windows and ContactCache.Web).
    Java serialization is tightly bound to the Java language and cannot be natively understood by a .NET application. This is exactly why we invented POF. It allows user types to be serialized in a language independent format so that C# applications can parse data sent by Java applications, and visa versa. Of course, to serialize and deserialize your user types to and from a POF stream, you need to use the POF APIs. There is no magic way of converting your Externalizable implementations to POF implementations.
    Having said that, if you have implemented ExternalizableLite in your user types, you can use the com.tangosol.io.pof.PofOutputStream and com.tangosol.io.pof.PofInputStream classes to directly adapt your ExternalizableLite implementations to a POF implementation, but with some limitations (no schema evolution and other advanced POF features).
    Regards,
    Jason

  • Concurrent GC Behavior?

    We are testing the use of Coherence in an 8 machine cluster where incoming requests can come to any node and get distributed by the invocable map interface to be updated on any other node in a distributed cache. When I set all 8 nodes to use concurrent GC and parallel collection (-Xmx1024m -Xms1024m -server -XX:+UseParNewGC -XX:+UseConcMarkSweepGC) the nodes have a 50-60% CPU overhead (x 2 cores means that more than 1 core is used by the process at all time!) except for the one node that gets few requests (it has about 30% CPU overhead).
    Now the odd thing is this: I restarted one node using the classic GC behavior (just -Xmx1024m -Xms1024m -server) and... all the other nodes quickly dropped to almost zero CPU overhead, but that one node was at 50% CPU overhead. When I restarted it again with the parallel and concurrent GC settings, the other nodes picked up to 60% overhead (30% for the non-request node) and the restarted node hit 40% overhead. This is with a 32 bit Sun 1.5.0_11 vm on Linux.
    I'm wondering what explains this behavior, how Tangosol responds to parallel and concurrent GC, and if there are guidelines for tuning GC that are particular to Tangosol. Also, this level of overhead does seem high to me, granting that the system hasn't been tuned yet. The servers are processing about 400 updates per second each, so about 3000 updates per second in total. What ballpark of CPU overhead on a modern Linux server would you expect to see?
    Thanks,
    Ron

    I actually had already size limited the cache, with the maximum memory for the front of the distributed cache to 256 mb (i.e., the serialized data should be 1/4 of max heap size), using the simple disk spillover storage. A couple of other observations:
    * when running all nodes with the concurrent collector, the system eventually settles down so that 1 core of 1 node is pegged and all other nodes are basically free. I've included a stack trace below
    * We restarted our cluster yesterday and JMX data on that node shows:
    - the one busy node has burned 19 hours 43 minutes of CPU.
    - The ConcurrentMarkSweep collector has run 0 times using 0 seconds
    - The ParNew collector has run 68000 times using 16 minutes
    - The process heap has grown to 832 million bytes, less than the 1048 million byte maximum allowed, so it clearly isn't running out of memory
    - Cache hits: 44000
    - Cache misses: 36000
    - Cache misses millis: 25
    - Packets sent: 3.7 million
    - PublisherSuccessRate: .9985
    - ReceiverSuccessRate: .9990
    - PacketPublisher Cpu 70126ms (0.1%)
    Sometimes we see big spikes in network activity after a node goes up or down (e.g., we had 4 hours of 20 mb/s) but in this mode we are seeing extremely low network activity (basically no increase over the level we'd see without this process running)
    Here's a sample thread dump on the busy node. Any idea why the CPU is pegged? The call to size() was a debugging call which we're removing to avoid any influence from that. We are seeing that these size calls aren't terminating, which itself is surprising to me.
    Full thread dump Java HotSpot(TM) Server VM (1.5.0_11-b03 mixed mode):
    "Thread-64" prio=1 tid=0x080cd298 nid=0x5703 waiting on condition [0xa5669000..0
    xa566a050]
    at java.lang.Thread.sleep(Native Method)
    at com.quantcast.distiller.PixelLogReaderThread.run(PixelLogReaderThread
    .java:76)
    "Thread-63" prio=1 tid=0x080cb3b8 nid=0x56fa waiting for monitor entry [0xa56ea0
    00..0xa56eafd0]
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.calculateOldestSUID(Service.CDB:6)
    - waiting to lock <0xae065260> (a com.tangosol.util.SparseArray)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.getOldestPendingRequestSUID(Service.CDB:1)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.DistributedCache.createRequestContext(DistributedCache.CDB:6)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.DistributedCache$BinaryMap.invoke(DistributedCache.CDB:8)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.DistributedCache$ViewMap.invoke(DistributedCache.CDB:15)
    at com.tangosol.coherence.component.util.SafeNamedCache.invoke(SafeNamedCache.CDB:1)
    <our code>
    [about 30-40 threads blocked like this]
    "Thread-9" prio=1 tid=0x08a208f0 nid=0x786e waiting for monitor entry [0xa79fc00
    0..0xa79fd0d0]
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.calculateOldestSUID(Service.CDB:6)
    - waiting to lock <0xae065260> (a com.tangosol.util.SparseArray)
    "Thread-8" prio=1 tid=0x085323c0 nid=0x6ecf in Object.wait() [0xa8efe000..0xa8ef
    f050]
    at java.lang.Object.wait(Native Method)
    at java.lang.Object.wait(Object.java:474)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.p
    oll(Service.CDB:31)
    - locked <0xb88e7890> (a com.tangosol.coherence.component.net.message.re
    questMessage.DistributedCacheKeyRequest$Poll)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.p
    oll(Service.CDB:18)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.D
    istributedCache$BinaryMap.invoke(DistributedCache.CDB:35)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.D
    istributedCache$ViewMap.invoke(DistributedCache.CDB:15)
    at com.tangosol.coherence.component.util.SafeNamedCache.invoke(SafeNamed
    Cache.CDB:1)
    <our code>
    (thread 6 looks like thread 8)
    "Thread-5" prio=1 tid=0x08a19488 nid=0x6701 runnable [0xa8196000..0xa8196ed0]
    at java.net.PlainSocketImpl.socketAccept(Native Method)
    at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
    - locked <0xadfbe970> (a java.net.SocksSocketImpl)
    at java.net.ServerSocket.implAccept(ServerSocket.java:450)
    at java.net.ServerSocket.accept(ServerSocket.java:421)
    at com.sun.jmx.remote.socket.SocketConnectionServer.accept(SocketConnect
    ionServer.java:213)
    at com.sun.jmx.remote.generic.SynchroMessageConnectionServerImpl.accept(
    SynchroMessageConnectionServerImpl.java:87)
    at javax.management.remote.generic.GenericConnectorServer$Receiver.run(G
    enericConnectorServer.java:380)
    "Timer-2" daemon prio=1 tid=0x08661ad8 nid=0x6700 in Object.wait() [0xa85ae000..
    0xa85aee50]
    at java.lang.Object.wait(Native Method)
    - waiting on <0xafe77e38> (a java.util.TaskQueue)
    at java.lang.Object.wait(Object.java:474)
    at java.util.TimerThread.mainLoop(Timer.java:483)
    - locked <0xafe77e38> (a java.util.TaskQueue)
    at java.util.TimerThread.run(Timer.java:462)
    "Timer-1" prio=1 tid=0x0865fe98 nid=0x66ff in Object.wait() [0xa87f8000..0xa87f9
    1d0]
    at java.lang.Object.wait(Native Method)
    - waiting on <0xcf2e9560> (a java.util.HashSet)
    at java.lang.Object.wait(Object.java:474)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.DistributedCache$BinaryMap.waitPolls(DistributedCache.CDB:17)
    - locked <0xcf2e9560> (a java.util.HashSet)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.DistributedCache$BinaryMap.sendPartitionedRequest(DistributedCache.CDB:110)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.DistributedCache$BinaryMap.size(DistributedCache.CDB:13)
    at com.tangosol.util.ConverterCollections$ConverterMap.size(ConverterCollections.java:1248)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.DistributedCache$ViewMap.size(DistributedCache.CDB:1)
    at com.tangosol.coherence.component.util.SafeNamedCache.size(SafeNamedCache.CDB:1)
    at com.quantcast.realtime.user.DefaultUserProfileService.logStatistics(DefaultUserProfileService.java:228)
    at com.quantcast.realtime.user.DefaultUserProfileService.setOutFile(DefaultUserProfileService.java:203)
    at com.quantcast.distiller.LogRoller$RollTimerTask.run(LogRoller.java:29
    at java.util.TimerThread.mainLoop(Timer.java:512)
    at java.util.TimerThread.run(Timer.java:462)
    "DistributedCache" daemon prio=1 tid=0xa8f69eb8 nid=0x66fe runnable [0xa8cfa000.
    .0xa8cfb150]
    at com.tangosol.util.SparseArray.iterator(SparseArray.java:589)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.u
    nregisterRequestInfoRange(Service.CDB:12)
    - locked <0xae065260> (a com.tangosol.util.SparseArray)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.DistributedCache.onInvokeRequest(DistributedCache.CDB:21)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.DistributedCache$InvokeRequest.run(DistributedCache.CDB:1)
    at com.tangosol.coherence.component.net.message.requestMessage.DistributedCacheKeyRequest.onReceived(DistributedCacheKeyRequest.CDB:16)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.onMessage(Service.CDB:9)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.onNotify(Service.CDB:123)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.DistributedCache.onNotify(DistributedCache.CDB:3)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:35)
    at java.lang.Thread.run(Thread.java:595)
    "Invocation:Management" daemon prio=1 tid=0xa8b082f8 nid=0x66fd in Object.wait()
    [0xa8d7b000..0xa8d7c0d0]
    at java.lang.Object.wait(Native Method)
    at com.tangosol.coherence.component.util.Daemon.onWait(Daemon.CDB:11)
    - locked <0xadc280c8> (a com.tangosol.coherence.component.util.queue.con
    currentQueue.DualQueue)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.o
    nWait(Service.CDB:2)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:32)
    "Invocation:Management:EventDispatcher" daemon prio=1 tid=0xa8b03f98 nid=0x66fc
    in Object.wait() [0xa8dfc000..0xa8dfd050]
    at java.lang.Object.wait(Native Method)
    at com.tangosol.coherence.component.util.Daemon.onWait(Daemon.CDB:11)
    - locked <0xadf2f640> (a com.tangosol.coherence.component.util.daemon.queueProcessor.Service$EventDispatcher$Queue)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:32)
    at java.lang.Thread.run(Thread.java:595)
    "TcpRingListener" daemon prio=1 tid=0xa8b03890 nid=0x66fb runnable [0xa8e7d000..
    0xa8e7dfd0]
    at java.net.PlainSocketImpl.socketAccept(Native Method)
    at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
    - locked <0xadc2c8c8> (a java.net.SocksSocketImpl)
    at java.net.ServerSocket.implAccept(ServerSocket.java:450)
    at java.net.ServerSocket.accept(ServerSocket.java:421)
    at com.tangosol.coherence.component.net.socket.TcpSocketAccepter.accept(TcpSocketAccepter.CDB:18)
    at com.tangosol.coherence.component.util.daemon.TcpRingListener.acceptConnection(TcpRingListener.CDB:10)
    at com.tangosol.coherence.component.util.daemon.TcpRingListener.onNotify(TcpRingListener.CDB:1)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:35)
    at java.lang.Thread.run(Thread.java:595)
    "Cluster" daemon prio=1 tid=0xa8b024a0 nid=0x66f9 in Object.wait() [0xa8879000..0xa8879ed0]
    at java.lang.Object.wait(Native Method)
    at com.tangosol.coherence.component.util.Daemon.onWait(Daemon.CDB:11)
    - locked <0xadc276f8> (a com.tangosol.coherence.component.util.queue.concurrentQueue.DualQueue)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.onWait(Service.CDB:2)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:32)
    at java.lang.Thread.run(Thread.java:595)
    "PacketSpeaker" daemon prio=1 tid=0xa8b058d0 nid=0x66f8 in Object.wait() [0xa88fa000..0xa88fae50]
    at java.lang.Object.wait(Native Method)
    - waiting on <0xadc39998> (a com.tangosol.coherence.component.net.Cluster$PacketSpeaker$BundlingQueue)
    at com.tangosol.coherence.component.util.queue.ConcurrentQueue.waitForEntry(ConcurrentQueue.CDB:16)
    - locked <0xadc39998> (a com.tangosol.coherence.component.net.Cluster$PacketSpeaker$BundlingQueue)
    at com.tangosol.coherence.component.util.queue.ConcurrentQueue.remove(ConcurrentQueue.CDB:10)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketSpeaker.onNotify(PacketSpeaker.CDB:62)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:35)
    at java.lang.Thread.run(Thread.java:595)
    "PacketPublisher" daemon prio=1 tid=0xa8b052f8 nid=0x66f7 in Object.wait() [0xa897c000..0xa897c1d0]
    at java.lang.Object.wait(Native Method)
    at com.tangosol.coherence.component.util.Daemon.onWait(Daemon.CDB:11)
    - locked <0xadc78e50> (a com.tangosol.coherence.component.net.Cluster$PacketPublisher$InQueue)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketPublisher.onWait(PacketPublisher.CDB:2)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:32)
    at java.lang.Thread.run(Thread.java:595)
    "PacketReceiver" daemon prio=1 tid=0xa8b04d50 nid=0x66f6 in Object.wait() [0xa89fc000..0xa89fd150]
    at java.lang.Object.wait(Native Method)
    at com.tangosol.coherence.component.util.Daemon.onWait(Daemon.CDB:11)
    - locked <0xaded3f10> (a com.tangosol.coherence.component.net.Cluster$PacketReceiver$InQueue)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketReceiver.onWait(PacketReceiver.CDB:2)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:32)
    at java.lang.Thread.run(Thread.java:595)
    "PacketListener1" daemon prio=1 tid=0xa8b04878 nid=0x66f5 runnable [0xa8a7d000..0xa8a7e0d0]
    at java.net.PlainDatagramSocketImpl.receive0(Native Method)
    at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136)
    - locked <0xadeddb48> (a java.net.PlainDatagramSocketImpl)
    at java.net.DatagramSocket.receive(DatagramSocket.java:712)
    - locked <0xae13ef20> (a java.net.DatagramPacket)
    - locked <0xadf01940> (a java.net.DatagramSocket)
    at com.tangosol.coherence.component.net.socket.UdpSocket.receive(UdpSocket.CDB:20)
    at com.tangosol.coherence.component.net.UdpPacket.receive(UdpPacket.CDB:4)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketListener.onNotify(PacketListener.CDB:19)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:35)
    at java.lang.Thread.run(Thread.java:595)
    "PacketListenerN" daemon prio=1 tid=0xa8b043f0 nid=0x66f4 runnable [0xa8afe000..0xa8aff050]
    at java.net.PlainDatagramSocketImpl.receive0(Native Method)
    at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136)
    - locked <0xadeddb88> (a java.net.PlainDatagramSocketImpl)
    at java.net.DatagramSocket.receive(DatagramSocket.java:712)
    - locked <0xae109460> (a java.net.DatagramPacket)
    - locked <0xadf00230> (a java.net.MulticastSocket)
    at com.tangosol.coherence.component.net.socket.UdpSocket.receive(UdpSocket.CDB:20)
    at com.tangosol.coherence.component.net.UdpPacket.receive(UdpPacket.CDB:
    4)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketListener.onNotify(PacketListener.CDB:19)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:35)
    at java.lang.Thread.run(Thread.java:595)
    "Logger@9263394 3.3/387" daemon prio=1 tid=0xa95c0578 nid=0x66f3 in Object.wait() [0xa90a5000..0xa90a5fd0]
    at java.lang.Object.wait(Native Method)
    at com.tangosol.coherence.component.util.Daemon.onWait(Daemon.CDB:11)
    - locked <0xadc59e58> (a com.tangosol.coherence.component.application.console.Coherence$Logger$Queue)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:32)
    at java.lang.Thread.run(Thread.java:595)
    "RMI TCP Accept-0" daemon prio=1 tid=0xa95b71d8 nid=0x66f1 runnable [0xa91a7000..0xa91a7ed0]
    at java.net.PlainSocketImpl.socketAccept(Native Method)
    at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
    - locked <0xadc21fb8> (a java.net.SocksSocketImpl)
    at java.net.ServerSocket.implAccept(ServerSocket.java:450)
    at java.net.ServerSocket.accept(ServerSocket.java:421)
    at sun.rmi.transport.tcp.TCPTransport.run(TCPTransport.java:340)
    at java.lang.Thread.run(Thread.java:595)
    "Timer-0" daemon prio=1 tid=0xa95b5558 nid=0x66f0 in Object.wait() [0xa9228000..0xa9228e50]
    at java.lang.Object.wait(Native Method)
    - waiting on <0xadc23b10> (a java.util.TaskQueue)
    at java.lang.Object.wait(Object.java:474)
    at java.util.TimerThread.mainLoop(Timer.java:483)
    - locked <0xadc23b10> (a java.util.TaskQueue)
    at java.util.TimerThread.run(Timer.java:462)
    "Low Memory Detector" daemon prio=1 tid=0x0813bd50 nid=0x66ef runnable [0x00000000..0x00000000]
    "CompilerThread1" daemon prio=1 tid=0x0813a878 nid=0x66ee waiting on condition [0x00000000..0xaa3b2378]
    "CompilerThread0" daemon prio=1 tid=0x081397c8 nid=0x66ed waiting on condition [0x00000000..0xaa4332f8]
    "AdapterThread" daemon prio=1 tid=0x08138648 nid=0x66ec waiting on condition [0x00000000..0x00000000]
    "Signal Dispatcher" daemon prio=1 tid=0x081376a0 nid=0x66eb waiting on condition [0x00000000..0x00000000]
    "Surrogate Locker Thread (CMS)" daemon prio=1 tid=0x08136910 nid=0x66ea waiting on condition [0x00000000..0xaa5b70fc]
    "Finalizer" daemon prio=1 tid=0x0812c0b8 nid=0x66e9 in Object.wait() [0xaa837000..0xaa837ed0]
    at java.lang.Object.wait(Native Method)
    - waiting on <0xadc23b20> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
    - locked <0xadc23b20> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
    at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
    "Reference Handler" daemon prio=1 tid=0x0812bbb8 nid=0x66e8 in Object.wait() [0x
    aa8b8000..0xaa8b8e50]
    at java.lang.Object.wait(Native Method)
    - waiting on <0xadc23b30> (a java.lang.ref.Reference$Lock)
    at java.lang.Object.wait(Object.java:474)
    at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
    - locked <0xadc23b30> (a java.lang.ref.Reference$Lock)
    "main" prio=1 tid=0x0805db58 nid=0x66e3 waiting on condition [0xfff9d000..0xfff9d3f8]
    at java.lang.Thread.sleep(Native Method)
    <oiur code>
    "VM Thread" prio=1 tid=0x08129698 nid=0x66e7 runnable
    "Gang worker#0 (Parallel GC Threads)" prio=1 tid=0x0806d000 nid=0x66e4 runnable
    "Gang worker#1 (Parallel GC Threads)" prio=1 tid=0x0806dc48 nid=0x66e5 runnable
    "Concurrent Mark-Sweep GC Thread#0" prio=1 tid=0x080b0a68 nid=0x66e6 runnable
    "VM Periodic Task Thread" prio=1 tid=0xa95bafd8 nid=0x66f2 waiting on condition

  • Listening for new cachings getting created?

    I'd like to be able to register my own MBeans on each distributed CacheServer for each cache that lives on that server. Is it possible to register a listener anywhere that gets called when a new cache gets created? Alternatively, is it possible to register a listener that is called after the cache factory has finished starting all the "autostart" caches?
    I'm using version 3.3
    thanks
    sam
    ps - I'm already registering my own custom global mbeans... but they are created before any of the caches get created.

    Sam
    You can specify your custom CacheFactory class in the override file so you can still use DefaultCacheServer
    When I needed to intercept cache creation I extended DefaultConfigurableCacheFactory and overrode this method:
    public NamedCache configureCache(CacheInfo cacheInfo, XmlElement xmlScheme, ClassLoader classLoader)
    Then just call the super class version before or after doing whatever you need to.
    The XML for the override file looks like this
    <coherence>
         <configurable-cache-factory-config>
              <class-name>com.oracle.coherence.common.configuration.AdvancedConfigurableCacheFactory</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>
    </coherence>The above snippet is taken from the Incubator common library. You would replace com.oracle.coherence.common.configuration.AdvancedConfigurableCacheFactory with the name of your class.
    You need to call the override file tangosol-coherence-override.xml and put it on the class path or if you call it anything else then specify the name as a JVM argument with -Dtangosol.coherence.override=<name of your file>
    Jonathan

  • 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")

  • Coherence 1.2.1rc available

    Tangosol Coherence provides replicated and distributed data storage for
              Weblogic clusters, and also supports HTTP session replication in Weblogic 7.
              The 1.2.1 release adds failover/failback to the partitioned distributed
              cache. Download a free evaluation from:
              http://www.tangosol.com/coherence.jsp
              Peace,
              Cameron Purdy
              Tangosol, Inc.
              http://www.tangosol.com/coherence.jsp
              Tangosol Coherence: Clustered Replicated Cache for Weblogic
              

    Warning: I upgraded a couple hours ago here in CA and things aren't exactly happening.
    Maybe it's just my set-up here (OS X 10.4.10) but I'm scrambling to get the phone to work again without a restore to the old iPhone version. (I synced up before the upgrade so have all settings etc except a large number of pix which will be erased with restore).
    What? After upgrading to v1.1.2 (via iTunes) the phone now only allows an "Emergency call" option, as displayed on iPhone's default slide to unlock screen as well as the only functional screen to follow - above the numbers keypad (rotating in other languages as "Appel d'urgence" and "Notruf"). "No service" is also new with the upgrade so any "Emergency call" option is also null and void.
    In other words - back up all photos and movies from the phone as well as sync up with your MAC before upgrading to v1.1.2 and if anyone has any tips on how to restore without losing photos please hit me back.
    Thanks.

  • Design question about Coherence as a event source

    Hi Guys,
    could you please help me with designing the following use case in the CEP way?
    I have a Coherence cluster with several types of objects. Each object has its state. I would like to generate a specific warning event whenever the state of the object in Coherence has not changed in specific amount of time and store it back into Coherence (different named cache).
    Is this something that can be implemented in CEP? How the flow in CEP would look like?
    Kind Regards,
    Martin

    Martin,
    You need to write a class that implements com.tangosol.util.MapListener interface and use that as a <wlevs:cache-listener> to the cache you configure in CEP spring file. The class must also be an event source, which sends insert events for cache update and insert events from Coherence (entryInserted, entryUpdated). These events must be sent to a downstream processor which has a non-event detection query configured. You can find more info for writing such a query at http://download.oracle.com/docs/cd/E14571_01/apirefs.1111/e12048/pattern_recog.htm.
    Hope that helps,
    Manju.

Maybe you are looking for

  • 10.8.x Contact Server Doesn't Push to iOS

    Ever since Push is included on the Mac OS X server, my company has been using it.  We can set it up to push to iOS for Mail and Calendar, but never successfully for Contact.  Strangely enough, Mail, Calendar and Contact all push to the Mac OS without

  • Itunes not instaling and im getting an erro

    i have just try to install itunes but when i try to open it i get a "itunessetup.exe is not a valid win32 application" what should i do?

  • Writing to FI-GL records to Delta Queue using a Function Module

    Has anyone of you tried to write FI-GL transactions to delta queue using BTE by configuring a function module. I am trying to achieve it for a datasource based on a view on FAGLFLEXA table (GL Line Items). For some reason I am not able to see records

  • OO4O OpenDatabase problem

    I use OO4O in ASP to connect to oracle and the code have ASP script error:507 at the OpenDatabase method. Set OraSession = CreateObject("OracleInProcServer.XOraSession") 'Create the OraDatabase Object by opening a connection to Oracle. Set OraDatabas

  • Other In-Ear Head Suggestions for Zen To

    I (almost) have my Zen Touch, and was wondering if anyone had suggestions on a better quality set of earphones?