Usage of com.tangosol.util.ServiceListener

Hi All,
I am struggling to figure out how to register a com.tangosol.util.ServiceListener with a service in cache-configuration file?? My intention here is to perform some operation intimidate after the distributed self-service is started.
Any info on this highly appreciated.
Regards,
Avinash

user9170308 wrote:
Hi All,
I am struggling to figure out how to register a com.tangosol.util.ServiceListener with a service in cache-configuration file?? My intention here is to perform some operation intimidate after the distributed self-service is started.
Any info on this highly appreciated.
Regards,
AvinashHi Avinash,
I think you meant immediately... :)
I am not sure if you can register a service listener in the configuration file, as the listener tag on the service registers a map listener.
You can however define a partition-listener, which is invoked with a PARTITION_ASSIGNED when partitions are assigned to the senior node (starting with Coherence 3.6) upon starting up the distributed cache service on a storage-enabled node, and PARTITION_RECEIVE_BEGIN callbacks when non-senior nodes start getting their partitions so it is almost as good.
On a storage-disabled node instantiation of a cache listener could be your clue, although that happens during configuring the service, so the service is not available at that point yet, but having a service listener for a distributed cache service on a node which is storage-disabled for the service is not typical anyway.
You can also look at quorum policies starting with 3.6 which are invoked fairly early, too, but not necessarily on each node.
Best regards,
Robert

Similar Messages

  • Order cannot be cast to com.tangosol.util.MapEvent

    This code is causing an exception. How should I be writing this filter? I want to listen for events when the status changes for one specific Order object. That Order has an integer key property which is the same integer key value used to store it in the cache. The code causing the exception is:
        public void addStatusChangeListener() {
                Filter f1 = new ValueChangeEventFilter("OrderStatus");
                Filter f2 = new EqualsFilter("Key", this.getKey());
                Filter f3 = new AndFilter(f1,f2);
                Filter statusChangeFilter = new MapEventFilter(MapEventFilter.E_UPDATED, f3);
                System.out.println("ADD STATUS CHANGE LISTENER "+this.symbol+" "+this.getKey());
                this.getCache().addMapListener(this , statusChangeFilter, false);
    2009-09-18 10:52:54.796/238.692 Oracle Coherence GE 3.5/459 <Error> (thread=DistributedCache, member=1):
    Exception occured during filter evaluation: MapEventFilter(mask=UPDATED, filter=
    AndFilter(ValueChangeEventFilter(extractor=.OrderStatus()), EqualsFilter(.Key(), 189000006))); removing the filter...
    2009-09-18 10:52:54.796/238.692 Oracle Coherence GE 3.5/459 <Error> (thread=DistributedCache, member=1):
    java.lang.ClassCastException: oms.Order cannot be cast to com.tangosol.util.MapEvent
            at com.tangosol.util.filter.ValueChangeEventFilter.evaluate(ValueChangeEventFilter.java:69)
            at com.tangosol.util.filter.AllFilter.evaluate(AllFilter.java:56)
            at com.tangosol.util.filter.MapEventFilter.evaluate(MapEventFilter.java:178)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$Storage.prepareDispatch(DistributedCache.CDB:82)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$Storage.postInvoke(DistributedCache.CDB:10)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$Storage.invoke(DistributedCache.CDB:117)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.onInvokeRequest(DistributedCache.CDB:50)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$InvokeRequest.run(DistributedCache.CDB:1)
            at com.tangosol.coherence.component.net.message.requestMessage.DistributedCacheKeyRequest.onReceived(DistributedCacheKeyRequest.CDB:12)
            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(DistributedCache.CDB:3)
            at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:37)
            at java.lang.Thread.run(Thread.java:619)Thanks,
    Andrew

    Ok, but isn't it just something wrong with how I wrote/used that filter?
    -Andrew
    public class Order implements Cloneable, Comparable, java.io.Serializable, MapListener {
        private String symbol = null;
        private OrderStatus orderStatus = OrderStatus.PENDING_NEW;
        private int id = 0; // java int max = 2,147,483,647
        private transient ArrayList<OrderStatusChangeListener> statusChangeListeners = new ArrayList<OrderStatusChangeListener>();
        public static NamedCache getCache() {
            if (cache == null) {
                System.out.println("Order...CacheFactory.getCache(\"orders\")");
                cache = CacheFactory.getCache("orders");
            return cache;
        public void send() {
            getCache().put(this.id, this);
        public static int sendMultiple(Iterable<Order> orders){
            int counter=0;
            HashMap m = new HashMap();
            for (Order o:orders){
                m.put(o.getKey(),o);
                counter++;
            getCache().putAll(m);
            return counter;
        public static class CancelProcessor extends AbstractProcessor {
            public Object process(InvocableMap.Entry entry) {
                Order o = (Order)entry.getValue();
                if (o.cancelCount == 0) {
                    o.cancelCount = 1;
                } else {
                    logger.info("ignoring dup. cancel req on " + o.symbol + " id=" + o.id);
                return o.cancelCount;
        public void cancel() {
            Filter f = new EqualsFilter("getCancelCount", 0);
            UpdaterProcessor up1 = new UpdaterProcessor("setCancelCount", new Integer(1));
            UpdaterProcessor up2 = new UpdaterProcessor("setCancelSubmittedTime", Base.getSafeTimeMillis() );
            CompositeProcessor cp = new CompositeProcessor(new InvocableMap.EntryProcessor[] {up1,up2});
            ConditionalProcessor x = new ConditionalProcessor(f, cp);
            getCache().invoke(key, x);
        private static NumberIncrementor ni1 = new NumberIncrementor("CancelCount", 1, false);
        public static void cancelMultiple(Collection<Integer> orderIds){
            getCache().invokeAll(orderIds, ni1);
        public static void cancelAllByAccount(String account){
            getCache().invokeAll( new EqualsFilter("getAccount", account), ni1);
        public void cancelAllowingMultipleCancelsOfThisOrder() {
            System.out.println("cancelAllowingMultipleCancelsOfThisOrder symbol=" + symbol + " key="+key+ " id=" + this.id);
            getCache().invoke(key, ni1);
            UpdaterProcessor up = new UpdaterProcessor("setCancelSubmittedTime", Base.getSafeTimeMillis() );
            getCache().invoke(key, up);
        public void entryInserted(MapEvent mapEvent) {
        public void entryUpdated(MapEvent mapEvent) {
            Order o = (Order)mapEvent.getNewValue();
            fireStatusChange(o);
        public void entryDeleted(MapEvent mapEvent) {
        public void removeStatusChangeListener(OrderStatusChangeListener listener) {
            synchronized (statusChangeListeners) {
                statusChangeListeners.remove(listener);
                if (statusChangeListeners.size()==0) {
                    this.getCache().removeMapListener(this, statusChangeFilter);
        private transient Filter statusChangeFilter=null;
        public void addStatusChangeListener(OrderStatusChangeListener listener) {
            if (statusChangeFilter==null) {
                Filter f1 = new ValueChangeEventFilter("OrderStatus");
                Filter f2 = new EqualsFilter("Key", this.getKey());
                Filter f3 = new AndFilter(f1,f2);
                statusChangeFilter = new MapEventFilter(MapEventFilter.E_UPDATED, f3);
            System.out.println("ADD STATUS CHANGE LISTENER "+this.symbol+" "+this.getKey());
            synchronized (statusChangeListeners) {
                if (statusChangeListeners.size()==0) {
                    this.getCache().addMapListener(this , statusChangeFilter, false);
                statusChangeListeners.add(listener);
        private void fireStatusChange(Order o ) {
            System.out.println("FIRE STATUS CHANGE: starting...");
            // do not depend on the firing of a status change to mean that the
            // status did certainly change.  Use the firing of status change as a
            // trigger to examine the order's status w/getStatus().
            System.out.println("1");
            synchronized (statusChangeListeners) {
                System.out.println("2");
                List<OrderStatusChangeListener> asdf = new LinkedList<OrderStatusChangeListener>(statusChangeListeners);
                System.out.println("3");
                for (OrderStatusChangeListener x : asdf) {
                    System.out.println("4");
                    try {
                        System.out.println("FIRE STATUS CHANGE: "+x);
                        x.dispatchOrderStatusChange(o);
                    } catch (java.util.ConcurrentModificationException e) {
                        logger.error("** fireStatusChange: ConcurrentModificationException " + e.getMessage());
                        logger.error(e.getStackTrace());
                        e.printStackTrace();
            System.out.println("FIRE STATUS CHANGE: done...");
        public int compareTo(Object o) { //assumes ID allways int.
            return this.key - ((Order)o).key;
        public boolean equals(Object o) {
            return (this.key == ((Order)o).key);
        public void setStatus(OrderStatus orderStatus) {
            this.orderStatus = orderStatus;
        public OrderStatus getStatus() {
            return orderStatus;
        public Integer getKey(){
            return key;
        private Integer key;
        public Order() {
            id = generateId();
            key=new Integer(id);
        public Object clone() {
            try {
                Order order = (Order)super.clone();
                order.setId(order.generateId());
                return order;
            } catch (CloneNotSupportedException e) {
                e.printStackTrace();
            return null;
        public static int generateId() {
            idwLock.lock();
            try {
                if (nextId == flipOverId) {
                    // redo this w/a number incrementor passing in null for the member variable
    //                ValueManipulator vm=null;
    //                NumberIncrementor ni = new NumberIncrementor(vm, 1, false);
                    NamedCache omsCache = CacheFactory.getCache("oms");
                    omsCache.lock("high_order_id");
                    Integer i = (Integer)omsCache.get("high_order_id");
                    if (i==null) i=188; // change to 1 once legacy is gone
                    omsCache.put("high_order_id", ++i);
                    omsCache.unlock("high_order_id");
                    flipOverId = (i+1) * MAX_ORDERS_PER_TRADER_ID;
                    nextId = (MAX_ORDERS_PER_TRADER_ID * i)+1;
                    return nextId;
                } else {
                    return ++nextId;
            } finally {
                idwLock.unlock();
        public boolean isCancelRequestedOrIsCanceled() {
            // change to cancelrequested lock, not ack lock
            if (orderStatus==OrderStatus.CANCELED)
                return true;
            //  ValueExtractor extractor = new ReflectionExtractor("getCancelCount");
            //  int cc = (Integer)cache.invoke( this.ID , extractor );
            Order o = (Order)getCache().get(this.id);
            int cc = o.getCancelCount();
            return cc > 0 || o.orderStatus == OrderStatus.CANCELED;
        public void setId(int Id) {
            this.id = Id;
        public int getId() {
            return id;
    }

  • Com.tangosol.util.AssertionException

    Getting this exception intermittently in my storage nodes (total of 4):
    23:54:16,092 ERROR [Logger@9260286 3.6.0.2] cluster (log:3) - 2012-05-01 23:54:16.087/2394.969 Oracle Coherence GE 3.6.0.2 <Error> (thread=DistributedCache:MessageDistributedCacheService,
                   member=7): Terminating PartitionedCache due to unhandled exception: com.tangosol.util.AssertionException
    23:54:16,126 ERROR [Logger@9260286 3.6.0.2] cluster (log:3) - 2012-05-01 23:54:16.087/2394.969 Oracle Coherence GE 3.6.0.2 <Error> (thread=DistributedCache:MessageDistributedCacheService,
                   member=7):
    com.tangosol.util.AssertionException:
         at com.tangosol.coherence.Component._assertFailed(Component.CDB:12)
         at com.tangosol.coherence.Component._assert(Component.CDB:3)
         at com.tangosol.coherence.component.net.message.requestMessage.DistributedCacheRequest$Poll.onCompletion(DistributedCacheRequest.CDB:15)
         at com.tangosol.coherence.component.net.Poll.close(Poll.CDB:13)
         at com.tangosol.coherence.component.net.Poll.onResponded(Poll.CDB:32)
         at com.tangosol.coherence.component.net.Poll.onResponse(Poll.CDB:3)
         at com.tangosol.coherence.component.net.message.requestMessage.DistributedCacheRequest$Poll.onResponse(DistributedCacheRequest.CDB:16)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:26)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:33)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.CDB:3)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:3)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
         at java.lang.Thread.run(Thread.java:619)
    Version from the the manifest:
    Specification-Version: 3.6.0.2
    Implementation-Build: 18470
    This happens under the following scenario:
    I have 4 other nodes that are concurrently writing to the same cache using individual put() operations, about 200k objects in total
    Anybody have any ideas?
    Thanks

    Hi Carl,
    I guess the issue when the limit is exceeding.
    Probably you can try increasing the packet Size and run the test
    For more info:
    http://wiki.tangosol.com/display/COH33UG/Production+Checklist#ProductionChecklist-LargeClusterConfiguration
    Let me know the results.
    Thanks,
    Ashish

  • Java.io.NotSerializableException: com.tangosol.util.internal.ConcurrentCoun

    Hi,
    I am working on a small prototyep project trying to understand how coherence works.
    I have a object that creates an instance of entry processor and invokes the cache. I get following error. Entry processor is serializable - the app can write an instance of EP into a file.
    Using same setup if I merely call put() it works fine for me.
    Any idea what coherence is doing here ?
    Thanks
    ~s
    ===
    (Wrapped) com.tangosol.util.internal.ConcurrentCounter) java.io.NotSerializableException: com.tangosol.util.internal.ConcurrentCounter
    at java.io.ObjectOutputStream.writeObject0(Unknown Source)
    at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
    at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
    at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
    at java.io.ObjectOutputStream.writeObject0(Unknown Source)
    at java.io.ObjectOutputStream.writeObject(Unknown Source)
    at java.util.Hashtable.writeObject(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
    at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
    at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
    at java.io.ObjectOutputStream.writeObject0(Unknown Source)
    at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
    at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source)
    at com.tangosol.coherence.Component.writeObject(Component.CDB:1)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
    at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
    at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
    at java.io.ObjectOutputStream.writeObject0(Unknown Source)
    at java.io.ObjectOutputStream.writeObject(Unknown Source)
    at java.util.Hashtable.writeObject(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
    at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
    at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
    at java.io.ObjectOutputStream.writeObject0(Unknown Source)
    at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
    at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source)
    at com.tangosol.coherence.Component.writeObject(Component.CDB:1)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
    at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
    at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
    at java.io.ObjectOutputStream.writeObject0(Unknown Source)
    at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
    at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source)
    at com.tangosol.coherence.Component.writeObject(Component.CDB:1)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
    at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
    at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
    at java.io.ObjectOutputStream.writeObject0(Unknown Source)
    at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
    at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source)
    at com.tangosol.coherence.Component.writeObject(Component.CDB:1)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)

    The problem is fixed.
    In my EP, process() was returning "entry" instead of modified object. Comparing my code with some other samples helped me.
    So it is all down to my mistake.
    Thanks
    ~s

  • What is com.tangosol.util.Dequeue used for?

    Can I use a com.tangosol.util.Dequeue to allow one producer to be placing objects in a coherence backed dequeue while other consumers are atomically dequeueing from it?
    Thanks,
    Andrew

    snidely_whiplash wrote:
    Can I use a com.tangosol.util.Dequeue to allow one producer to be placing objects in a coherence backed dequeue while other consumers are atomically dequeueing from it?
    Thanks,
    AndrewHi Andrew,
    that class is not a queue backed by Coherence caches. It is simply a double ended queue similar to java.util.Dequeue introduced in Java 6.
    Best regards,
    Robert

  • Thread STUCK for more than 10minutes at  com.tangosol.util.SegmentedHashMap

    <[STUCK] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' has been busy for "707" seconds working on the request "weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl@11ddce1", which is more than the configured time (StuckThreadMaxTime) of "600" seconds. Stack trace:
    java.lang.Object.wait(Native Method)
    com.tangosol.util.SegmentedHashMap.contendForSegment(SegmentedHashMap.java:1391)
    com.tangosol.util.SegmentedHashMap.lockSegment(SegmentedHashMap.java:1301)
    com.tangosol.util.SegmentedHashMap.lockBucket(SegmentedHashMap.java:1266)
    com.tangosol.util.SegmentedHashMap.invokeOnKey(SegmentedHashMap.java:1058)
    com.tangosol.util.SegmentedConcurrentMap.lock(SegmentedConcurrentMap.java:197)
    com.tangosol.net.cache.CachingMap.get(CachingMap.java:462)

    Hi,
    A 2019 ms delay could be caused by a number of things. It could be network related or more likely as the message says the WebLogic node could have been doing a GC. As your WebLogic node is a Cluster member you need to make sure that its GC is properly tuned to avoid long GC pauses as this can destabelize the whole cluster. I see you are using 3.5.3/465p8 which is an older version of Coherence and lacks the newer node death detection algorithms. I know from the project I work on that also uses 3.5.3/465p8 that long GCs on cluster members can cause other nodes in the cluster to die if you get GC pauses that are too long or too frequent.
    I doubt that this message is related to the stuck thread issue in your original post, though it is hard to tell for certain.
    JK

  • When is prune() called on com.tangosol.util.Cache?

    I'm trying to extend Cache as it very closely fits what I need to do with my application data expiration model. My question is: is prune() called BEFORE the cache fills up (that is, did the call that triggered the prune() succeed)?
    I have to be able to signal to the upper application layers that a prune was forced and some data may no longer be valid. If prune was called AS the cache became full (rather than just after), I can signal the application that data was removed, and there is no threat to the correctness of the app.

    Hi Kris
    A further question along these lines: is prune() the
    mechanism that is called to remove values that have
    timed out, rather than when the Cache is full? No, <tt>prune()</tt> is not what is called for timed out entries. We have a separate method that is called to remove the specific entry that has expired. This is because within the Cache you can set expiry on an entry by entry basis.
    I would also like to do periodic, timeout-based
    expirations from my cache to avoid the full hit of
    letting the cache fill all the way up before removing
    any data.The Cache currently supports timeout-based expirations. You can either have a global cache-entry-timeout set (see constructors) or set it on an entry by entry basis. If an entry has a timeout set on it and it has expired the entry will be removed during the <tt>iterator()</tt> or <tt>toArray()</tt> calls.
    Regards,
    Rob

  • Com.tangosol.io.pof.PortableException from ConfigurableCacheFactory

    Hi, I got this error
    <Error> (thread=TcpAcceptor, member=5): Error decoding message: java.lang.ClassCastException: com.tangosol.io.pof.PortableException
         at com.tangosol.coherence.component.comm.messageFactory.MessagingFactory$ConnectRequest.readExternal(MessagingFactory.CDB:6)
         at com.tangosol.coherence.component.comm.Connection$Codec.decode(Connection.CDB:30)
         at com.tangosol.coherence.component.comm.Connection.decodeMessage(Connection.CDB:60)
         at com.tangosol.coherence.component.comm.ConnectionManager$MessageDispatchTask.run(ConnectionManager.CDB:7)
         at com.tangosol.coherence.component.comm.ConnectionManager$Daemon.onNotify(ConnectionManager.CDB:20)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:35)
         at java.lang.Thread.run(Thread.java:595)
    from this call
    CacheFactory.getConfigurableCacheFactory().ensureService("ExtendTcpInvocationService");
    any idea?

    Hi, I got this error
    <Error> (thread=TcpAcceptor, member=5): Error decoding message: java.lang.ClassCastException: com.tangosol.io.pof.PortableException
         at com.tangosol.coherence.component.comm.messageFactory.MessagingFactory$ConnectRequest.readExternal(MessagingFactory.CDB:6)
         at com.tangosol.coherence.component.comm.Connection$Codec.decode(Connection.CDB:30)
         at com.tangosol.coherence.component.comm.Connection.decodeMessage(Connection.CDB:60)
         at com.tangosol.coherence.component.comm.ConnectionManager$MessageDispatchTask.run(ConnectionManager.CDB:7)
         at com.tangosol.coherence.component.comm.ConnectionManager$Daemon.onNotify(ConnectionManager.CDB:20)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:35)
         at java.lang.Thread.run(Thread.java:595)
    from this call
    CacheFactory.getConfigurableCacheFactory().ensureService("ExtendTcpInvocationService");
    any idea?

  • Java.lang.NoClassDefFoundError: com/sap/util/monitor/jarm/TaskMonitor

    hi all,
    i was trying to build and try a web service in my project.
    but at runtime it keeps throwing the following error(  log trace)
    i am unable to figure out the source of error.
    is it in the jco or anything else
    thanks in advance
    1.5#001143C809E500470000002E00000B8C00040CBB0F05957C#1139897457152#com.sap.engine.services.httpserver##com.sap.engine.services.httpserver#Guest#2####a9a4e0009d2011dacd42001143c809e5#SAPEngine_Application_Thread[impl:3]_16##0#0#Error#1#/System/Server#Plain###User Guest, IP address
    HTTP request processing failed. HTTP error [401] will be returned. The error is [Cannot authenticate the user.No details available].#
    #1.5#001143C809E500530000001F00000B8C00040CBB0FEBCF9E#1139897472233#com.sap.engine.services.ejb#sap.com/xappsospservicebundle~enterpriseapp#com.sap.engine.services.ejb#I020381E1#1839####b13de9b09d2011da944e001143c809e5#SAPEngine_Application_Thread[impl:3]_24##0#0#Error##Java###
    [EXCEPTION]
    #1#com.sap.engine.services.ejb.exceptions.BaseEJBException: Exception in method getRelatedReports.
         at com.sap.xapps.osp.orgmgmt.servicebundle.sbejb.OrgMgmtSBLocalLocalObjectImpl10.getRelatedReports(OrgMgmtSBLocalLocalObjectImpl10.java:121)
         at com.sap.xapps.osp.orgmgmt.servicebundle.facade.OrgMgtFacadeBean.getRelatedReports(OrgMgtFacadeBean.java:425)
         at com.sap.xapps.osp.orgmgmt.servicebundle.facade.OrgMgtFacadeLocalLocalObjectImpl10.getRelatedReports(OrgMgtFacadeLocalLocalObjectImpl10.java:103)
         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:324)
         at com.sap.engine.services.webservices.runtime.EJBImplementationContainer.invokeMethod(EJBImplementationContainer.java:126)
         at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:157)
         at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:79)
         at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:92)
         at SoapServlet.doPost(SoapServlet.java:51)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: java.lang.NoClassDefFoundError: com/sap/util/monitor/jarm/TaskMonitor
         at com.sap.mw.jco.util.Jarm.getRequestMonitor(Jarm.java:57)
         at com.sap.mw.jco.JCO$Repository.getFunctionInterface(JCO.java:19069)
         at com.sap.mw.jco.JCO$BasicRepository.getFunctionTemplate(JCO.java:18151)
         at com.sap.xapps.osp.orgmgmt.servicebundle.common.OrgMgmtSBHelper.createFunction(OrgMgmtSBHelper.java:491)
         at com.sap.xapps.osp.orgmgmt.servicebundle.impl.OrgMgmtBusinessDelegate.getRelatedReports(OrgMgmtBusinessDelegate.java:1273)
         at com.sap.xapps.osp.orgmgmt.servicebundle.sbejb.OrgMgmtSBBean.getRelatedReports(OrgMgmtSBBean.java:170)
         at com.sap.xapps.osp.orgmgmt.servicebundle.sbejb.OrgMgmtSBLocalLocalObjectImpl10.getRelatedReports(OrgMgmtSBLocalLocalObjectImpl10.java:103)
         ... 27 more

    hi,
    thanks for the replies.
    well i guess that(user authentication) is not the problem.
    Coz that happens even before i start the web service.
    i guess the problem is that the appl. is not finding the TaskMonitor class ( see the last 10 lines of the log).
    does anyone have a solution for that.
    thanks

  • Error package com.darwinsys.util does not exist

    Hi,
    i keep getting the following error:
    "error package com.darwinsys.util does not exist"
    its refering to one of the libraries ive placed in my code. Ive downloaded this library but i dont know where to install it.
    Can anyone help?
    its really urgent
    thanx
    cybersurfur

    java -cp .;c:\scientists\darwin.jar
    MyProgramam i supposed to place the above code where i had
    previous put
    import com.darwinsys.util.*;
    No. The command above is how you run your program. I assumed you had already compiled it. To compile it you need the command
    javac -classpath .;c:\javacooksrc2\javacooksrc2.jar MyProgramAll the classpath does is tell the java compiler or the JVM where to find classes that are needed to compile/run your program.

  • Error java.lang.NoClassDefFoundError: com/tangosol/net/CacheFactory

    error java.lang.NoClassDefFoundError: com/tangosol/net/CacheFactory
    could please let me know why i am getting this error. I have coherence.jar and tangosol.jar in classpath.
    Edited by: tally_15 on Jun 23, 2010 6:12 AM

    Hi,
    Is it a new setup? Is CacheFactory the only class you can't access or you can't access any Coherence class?
    Thanks,
    Wei

  • Com.waveset.util.WavesetException: Missing view id; Missing Account ID

    Hi,
    I have some users in IDM provisioned to LDAP.
    I am now trying to find users and delete them thru the end user interface.
    When i enter the ID, and click search, i get this error
    "com.waveset.util.WavesetException: Missing view id.
    Missing Account ID"
    Here is my WF:
    <WFProcess name='Find WF' maxSteps='0'>
         <Activity id='1' name='Start'>
    <Transition to='Accept User ID'/>
    <WorkflowEditor x='43' y='10'/>
    </Activity>
    <Activity id='2' name='Accept User ID'>
    <ManualAction id='0' name='Enter User ID' timeout='60' syncExec='true'>
    <Owner>
    <ref>$(WF_CASE_OWNER)</ref>
    </Owner>
    <FormRef>
    <ObjectRef type='UserForm' id='#ID#CB00E29B1B211E5E:5673384:1141A79B1FE:-7FF3' name='Enter User ID Form'/>
    </FormRef>
    </ManualAction>
    <Transition to='getView'/>
    <WorkflowEditor x='191' y='10'/>
    </Activity>
    <Activity id='3' name='getView'>
    <Action id='0' name='getView' application='com.waveset.session.WorkflowServices'>
    <Argument name='op' value='getView'/>
    <Argument name='id' value='$(accountId)'/>
    <Argument name='type' value='User'/>
    <Argument name='subject' value='configurator'/>
    <Argument name='authorize' value='true'/>
    <Return from='view' to='user'/>
    </Action>
    <Transition to='Delete User'/>
    <WorkflowEditor x='123' y='73'/>
    </Activity>
    <Activity id='4' name='Delete User'>
    <Action id='0' name='Delete' process='TaskDefinition:Delete User'>
    <Argument name='type' value='User'/>
    <Argument name='accountId' value='$(accountId)'/>
    </Action>
    <Transition to='End'/>
    </Activity>
    <Activity id='5' name='End'>
    <WorkflowEditor x='508' y='10'/>
    </Activity>
    Not sure what the mistake it. Can somebody point out pls?
    Thanks,

    cutepaddy
    Thanks for ur reply. However, it was not of much help.
    The problem now is that, i dont get the suspended case workitems error anymore but, the WF is not doing what it's suppoed to do, i.e., delete the users. The dump shows that all activities and actions are being executed correctly, however, the user still is not deleted. Here are my updated forms and WF
    Form 1:
    Configuration id='#ID#CB00E29B1B211E5E:5673384:1141A79B1FE:-7FF3' name='Accept User ID Form' lock='Configurator#1186027075593' creator='Configurator' createDate='1185855280921' lastModifier='Configurator' lastModDate='1186026775578' lastMod='354' wstype='UserForm'>
    <Extension>
    <Form name='Accept User ID Form' baseContext='variables' objectLocationID='objectName=Accept+Store+ID+Form&isBegin=true&objectPath=0&objectType=UserForm'>
    <Display class='EditForm'>
    <Property name='title' value='Find ID Form'/>
    </Display>
    <Field name='view.waveset.accountId'>
    <Display class='Text'>
    <Property name='title' value='Enter User ID'/>
    <Property name='size'>
    <Integer>20</Integer>
    </Property>
    <Property name='maxLength'>
    <Integer>10</Integer>
    </Property>
    </Display>
    <Validation>
    <cond>
    <not>
    <invoke name='testUser' class='com.waveset.ui.FormUtil'>
    <ref>:display.session</ref>
    <ref>view.waveset.accountId</ref>
    </invoke>
    </not>
    <s>Not Exist</s>
    </cond>
    </Validation>
    </Field>
    <Field name=':complete'>
    <Default>
    <s>true</s>
    </Default>
    </Field>
    </Form>
    </Extension>
    <MemberObjectGroups>
    <ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
    </MemberObjectGroups>
    <Properties>
    <Property name='editorOriginalName' value='Accept User ID Form'/>
    </Properties>
    </Configuration>
    Form 2:
    <Configuration id='' name='Search Results Form' lock='Configurator#1186027075593' creator='Configurator' createDate='1185855280921' lastModifier='Configurator' lastModDate='1186026775578' lastMod='354' wstype='UserForm'>
    <Extension>
    <Form name='Seach Results Form' baseContext='variables' noDefaultButtons='true'>
    <Display class='EditForm'/>
    <Field name='MatchTable'>
    <Display class='SimpleTable'>
    <Property name='columns'>
    <List>
    <String>Title</String>
    </List>
    </Property>
    </Display>
    <FieldLoop for='accountId' in='view.waveset.accountId'>
    <Field name='XYZ'>
    <Display class='Checkbox'>
    <Property name='Label' value='$(accountId)'/>
    </Display>
    </Field>
    </FieldLoop>
    <Field name='deleteuserbutton'>
    <Field name=':complete'>
    <Default>
    <s>true</s>
    </Default>
    </Field>
    <Field name=':formButton' button='true'>
    <Display class='Button'>
    <Property name='command' value='Save'/>
    <Property name='value' value='Continue'/>
    <Property name='label' value='Delete'/>
    </Display>
    </Field>
    <Field name='formButton'>
    <Expansion>
    <ref>:formButton</ref>
    </Expansion>
    </Field>
    </Field>
    </Field>
    </Form>
    </Extension>
    <MemberObjectGroups>
    <ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
    </MemberObjectGroups>
    <Properties>
    <Property name='editorOriginalName' value='Accept User ID Form'/>
    </Properties>
    </Configuration>
    WF:
    <TaskDefinition id='#ID#CB00E29B1B211E5E:5673384:1141A79B1FE:-7FDC' name='Find User WF' lock='Configurator#1186881293625' creator='Configurator' createDate='1185857988234' lastModifier='Configurator' lastModDate='1186880993625' lastMod='185' taskType='Workflow' executor='com.waveset.workflow.WorkflowExecutor' suspendable='true' syncControlAllowed='true' execMode='sync' execLimit='0' resultLimit='0' resultOption='delete' visibility='runschedule' progressInterval='0'>
    <Extension>
    <WFProcess name='Find User WF' maxSteps='0'>
    <Activity id='0' name='Start'>
    <Transition to='Accept User ID'/>
    <WorkflowEditor x='99' y='47'/>
    </Activity>
    <Activity id='1' name='Accept User ID'>
    <ManualAction id='0' name='Enter User ID' timeout='60' syncExec='true'>
    <Owner>
    <ref>$(WF_CASE_OWNER)</ref>
    </Owner>
    <FormRef>
    <ObjectRef type='UserForm' id='#ID#CB00E29B1B211E5E:5673384:1141A79B1FE:-7FF3' name='Accept User ID Form'/>
    </FormRef>
    </ManualAction>
    <Transition to='Display Results'/>
    <WorkflowEditor x='183' y='45'/>
    </Activity>
    <Activity id='2' name='Display Results'>
    <ManualAction id='0' name='Results' timeout='60' syncExec='true'>
    <Owner>
    <ref>$(WF_CASE_OWNER)</ref>
    </Owner>
    <FormRef>
    <ObjectRef type='UserForm' id='#ID#CB00E29B1B211E5E:-435E4C45:114554237BF:-7F8B' name='Search Results Form'/>
    </FormRef>
    </ManualAction>
    <Transition to='Delete User'/>
    <WorkflowEditor x='266' y='99'/>
    </Activity>
    <Activity id='3' name='Delete User'>
    <Action id='0' name='Delete' process='TaskDefinition:Delete User'>
    <Argument name='type' value='User'/>
    <Argument name='accountId' value='$(view.waveset.accountId)'/>
    </Action>
    <Action id='1'>
    <expression>
    <block name='dump2'>
    <invoke name='dumpFile'>
    <invoke name='getTask'>
    <ref>WF_CONTEXT</ref>
    </invoke>
    <s>c:\dump.xml</s>
    </invoke>
    </block>
    </expression>
    </Action>
    <Transition to='End'/>
    <WorkflowEditor x='411' y='101'/>
    </Activity>
    <Activity id='4' name='End'>
    <WorkflowEditor x='529' y='121'/>
    </Activity>
    </WFProcess>
    </Extension>
    <MemberObjectGroups>
    <ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
    </MemberObjectGroups>
    <Properties>
    <Property name='editorOriginalName' value='Find User WF'/>
    </Properties>
    </TaskDefinition>
    Thanks in advance for ur help

  • Com.waveset.util.WavesetException: User object null has no cache

    In the anonymous context i receive this error when i try and run the PasswordGenerator.
    com.waveset.provision.PasswordGenerator com.waveset.util.WavesetException: User object null has no cache, it cannot resolve the reference to ObjectGroup object Top.
    It works fine when i run it logged in as an end user or admin. Any ideas

    Yes you are correct i am in as an anonymous user trying to create a forgot password workflow. I was having issues with the password Generator because it required a WSUser object and in other posts it stated you could pass in a null object. However, in the anonymous context you cannot do that so once i discovered the account id in my workflow i had to call getObject for type User with the account id and pass that into the generate password method.
    Then it worked.
    Thanks

  • Com.waveset.util.configurationerror :..

    hi..
    i get an error while instaling the IDM 7.1
    with oracle repo ...
    com.waveset.util.configurationerror :.. network adapter could not establish connection : sql exception
    any suggestions as how to proceed and wats the error??

    Your oracle configuration is incorrect. The service isn't running or you some wrong information specified somewhere.
    See http://forum.java.sun.com/thread.jspa?threadID=512566

  • Com.tangosol.coherence.dsltools.precedence.OPException: Unexpected Identifi

    Exception occured.
    ** 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)
    Coherence Command Line Tool
    jline library cannot be loaded, so you cannot use the arrow keys for line editing and history.
    CohQL> java com.tangosol.net.MulticastTest -group 237.0.0.1:9000
    com.tangosol.coherence.dsltools.precedence.OPException: Unexpected Identifier com in operator position
    CohQL>

    I don't understand what you are trying to do here.
    CohQL> java com.tangosol.net.MulticastTest -group 237.0.0.1:9000
    You appear to be trying to run a java command from the CohQL command line. CohQL is intended for queries against a cluster, and is not a replacement for a general purpose shell like bash. Therefore you get an error. After starting the CohQL command line tool type help to get a list of things you can legally do.
    cheers,
    -David Leibs

Maybe you are looking for