8 Replies Latest reply: Aug 31, 2010 6:55 PM by Brian Oliver RSS

    BinaryEntryStore issue running 1.2 example active-passive on coherence 3.6

    679352
      Hi,

      I tried running the latest Incubator examples with Coherence 3.6.

      Running coherence-incubator-examples-1.2.0.16988 for active-passive push replication via ANT on Windows XP gave the following error:

      [java] Commenced: putting 10000 entries into cache 'publishing-cache'
      [java] Exception in thread "main" (Wrapped: Failed request execution for DistributedCacheWithPublishingCacheStore service on Member(Id=1, Timestamp=2010-07-26 18:50:20.587, Address=...:8090, MachineId=17028, Location=site:Site1,machine:...,process:3816, Role=CoherenceServer) (Wrapped: Failed to store key="site1Key") This method is not supported with BinaryEntryStore) java.lang.UnsupportedOperationException: This method is not supported with BinaryEntryStore
      ...
      [java] Caused by: java.lang.UnsupportedOperationException: This method is not supported with BinaryEntryStore
      [java] at com.oracle.coherence.common.binaryentrystore.BinaryReadWriteBackingMap$BinaryCacheStoreWrapper.store(BinaryReadWriteBackingMap.java:730)

      The error above is from the publisher.

      Before I take time digging into this, have the examples been verified on 3.6 yet?

      Kind regards,
      phil
        • 1. Re: BinaryEntryStore issue running 1.2 example active-passive on coherence 3.6
          Bob Hanckel
          Hi,

          The code you are working with does not work with 3.6. We are currently working on a
          patch that works with 3.6 and fixes the problem you are seeing.

          Bob
          • 2. Re: BinaryEntryStore issue running 1.2 example active-passive on coherence 3.6
            679352
            Thanks Bob for confirming this and working on an update.

            In the meantime could a note be added to the incubator examples page to warn other users?

            Kind regards,
            phil
            • 3. Re: BinaryEntryStore issue running 1.2 example active-passive on coherence 3.6
              user10956741
              Bob,

              Even I get a similar exception while running the ActiveActivePublisher in the pushreplication.

              Error:
              Exception: This method is not supported with BinaryEntryStore
              [java] at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
              [java] at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.tagException(Grid.CDB:36)
              [java] at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onPutRequest(PartitionedCache.CDB:62)
              [java] at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$PutRequest.run(PartitionedCache.CDB:1)
              [java] at com.tangosol.coherence.component.net.message.requestMessage.DistributedCacheKeyRequest.onReceived(DistributedCacheKeyRequest.CDB:12)
              [java] at com.tangosol.coherence.component.net.message.requestMessage.distributedCacheKeyRequest.ExtendedKeyRequest.onReceived(ExtendedKeyRequest.CDB:4)
              [java] at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:11)
              [java] at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:33)
              [java] at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.CDB:3)
              [java] at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:3)
              [java] at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
              [java] at java.lang.Thread.run(Thread.java:595)
              [java] Caused by: java.lang.UnsupportedOperationException: This method is not supported with BinaryEntryStore
              [java] at com.oracle.coherence.common.binaryentrystore.BinaryReadWriteBackingMap$BinaryCacheStoreWrapper.store(BinaryReadWriteBackingMap.java:730)
              [java] at com.tangosol.net.cache.ReadWriteBackingMap$CacheStoreWrapper.storeInternal(ReadWriteBackingMap.java:4468)
              [java] at com.tangosol.net.cache.ReadWriteBackingMap.putInternal(ReadWriteBackingMap.java:1147)
              [java] at com.tangosol.net.cache.ReadWriteBackingMap.put(ReadWriteBackingMap.java:853)
              [java] at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Storage.put(PartitionedCache.CDB:98)
              [java] at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onPutRequest(PartitionedCache.CDB:33)


              Can you let me know if the patch is available now?
              • 4. Re: BinaryEntryStore issue running 1.2 example active-passive on coherence 3.6
                hyang04
                I got the same BinaryEntryStore error when running the active-passive example with coherence 3.6. So I tried it on 3.5.3, yet it ran into another problem:

                [javac] Compiling 44 source files to /data01/hyang/cohpush/coherence-incubator-examples-1.2.0.16988/build/classes
                [javac] /data01/hyang/cohpush/coherence-incubator-examples-1.2.0.16988/src/com/oracle/coherence/examples/incubator/pushreplicationpattern/web/SiteSessionExpiryFilterFactory.java:3: cannot find symbol
                [javac] symbol : class SessionExpiryFilterFactory
                [javac] location: package com.tangosol.coherence.servlet
                [javac] import com.tangosol.coherence.servlet.SessionExpiryFilterFactory;
                [javac] ^
                [javac] /data01/hyang/cohpush/coherence-incubator-examples-1.2.0.16988/src/com/oracle/coherence/examples/incubator/pushreplicationpattern/web/SiteSessionExpiryFilterFactory.java:15: cannot find symbol
                [javac] symbol: class SessionExpiryFilterFactory
                [javac] public class SiteSessionExpiryFilterFactory implements SessionExpiryFilterFactory
                [javac] ^
                [javac] 2 errors

                It looks like 3.5.3 does not have the SessionExpiryFilterFactory; 3.6 has. Which coherence version is push 1.2 based on?
                • 5. Re: BinaryEntryStore issue running 1.2 example active-passive on coherence 3.6
                  Brian Oliver
                  At the moment the Push Replication Pattern only works on Coherence 3.5.3. We're in the process of testing Coherence 3.6 support at the moment. We're hoping to release this in the coming week or so, assuming everything goes well.

                  Sorry for the inconvenience.

                  -- Brian

                  ----------------------------------------------------------
                  
Brian Oliver | Architect | Oracle Coherence 

                  • 6. Re: BinaryEntryStore issue running 1.2 example active-passive on coherence 3.6
                    hyang04
                    Even with 3.5.3 I have the above error compiling. It looks like SessionExpiryFilterFactory is added in 3.6. Maybe the push replication example only works on a internal release in between 3.5.3 and 3.6?
                    • 7. Re: BinaryEntryStore issue running 1.2 example active-passive on coherence 3.6
                      hyang04
                      I removed the offending package, and it seems that the examples are working on 3.5.3 now:

                      ant -Dfile=resource/pushreplicationpattern/activepassive/listener.properties run
                      Buildfile: build.xml

                      run:
                      [echo] Executing com.oracle.coherence.examples.incubator.pushreplicationpattern.activepassive.ActivePassiveListener
                      [echo] JVM args: -Dtangosol.coherence.log=/data01/hyang/cohpush/coherence-incubator-examples-1.2.0.16988/log/listener-9102.log -Dtangosol.coherence.cacheconfig=listener-cache-config.xml -Dtangosol.coherence.clusterport=9102 -Dtangosol.coherence.distributed.localstorage=false -Dtangosol.coherence.site=Site2
                      [echo] Redirecting Coherence logging to /data01/hyang/cohpush/coherence-incubator-examples-1.2.0.16988/log/listener-9102.log

                      [java] Using the Incubator Extensible Environment for Coherence Cache Configuration
                      [java] Copyright (c) 2010, Oracle Corporation. All Rights Reserved.

                      [java] Object sequence number 1 received from site [site1]
                      [java] Object sequence number 100 received from site [site1]
                      [java] Object sequence number 200 received from site [site1]
                      ...
                      [java] Object sequence number 9900 received from site [site1]
                      [java] Object sequence number 10000 received from site [site1]
                      [java] Done receiving from site [site1]
                      [java] success.

                      BUILD SUCCESSFUL
                      Total time: 2 minutes 52 seconds
                      • 8. Re: BinaryEntryStore issue running 1.2 example active-passive on coherence 3.6
                        Brian Oliver
                        We released an update to the Incubator today that resolves a number of issues discovered over the last few weeks.

                        As part of the update the Incubator now supports Coherence 3.6.

                        Regards

                        -- Brian

                        -----
                        Brian Oliver | Architect | Oracle Coherence 
Oracle Fusion Middleware Product Management