Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-2345

Can't start second instance of Karaf 2.3.1 with Cellar 2.3.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • cellar-2.3.0
    • cellar-3.0.0, cellar-2.3.1
    • None
    • None

    Description

      I downloaded released Karaf 2.3.1 run it and install Cellar 2.3.0 using

      features:addurl mvn:org.apache.karaf.cellar/apache-karaf-cellar/2.3.0/xml/features
      features:install cellar

      It works with one instance but if I start the second instance of Karaf I receive an exception:

      2013-05-29 15:11:01,710 | INFO  | rint Extender: 3 | HazelcastGroupManager            | .hazelcast.HazelcastGroupManager  342 | 57 - org.apache.karaf.cellar.hazelcast - 2.3.0 | CELLAR HAZELCAST: registering cluster group default
      2013-05-29 15:11:01,720 | ERROR | .cached.thread-5 | ListenerManager                  | dardLoggerFactory$StandardLogger   50 | 54 - com.hazelcast - 2.5.0 | [10.20.30.100]:5702 [cellar] Caught error while calling event listener; cause: Problem when serializing type 1
      com.hazelcast.nio.HazelcastSerializationException: Problem when serializing type 1
      	at com.hazelcast.nio.AbstractSerializer.toObject(AbstractSerializer.java:128)[54:com.hazelcast:2.5.0]
      	at com.hazelcast.nio.AbstractSerializer.toObject(AbstractSerializer.java:156)[54:com.hazelcast:2.5.0]
      	at com.hazelcast.nio.Serializer.readObject(Serializer.java:71)[54:com.hazelcast:2.5.0]
      	at com.hazelcast.impl.ThreadContext.toObject(ThreadContext.java:135)[54:com.hazelcast:2.5.0]
      	at com.hazelcast.nio.IOUtil.toObject(IOUtil.java:163)[54:com.hazelcast:2.5.0]
      	at com.hazelcast.impl.DataMessage.getMessageObject(DataMessage.java:35)[54:com.hazelcast:2.5.0]
      	at org.apache.karaf.cellar.hazelcast.TopicConsumer.onMessage(TopicConsumer.java:107)[57:org.apache.karaf.cellar.hazelcast:2.3.0]
      	at com.hazelcast.impl.ListenerManager.callListener(ListenerManager.java:419)[54:com.hazelcast:2.5.0]
      	at com.hazelcast.impl.ListenerManager.callListeners(ListenerManager.java:334)[54:com.hazelcast:2.5.0]
      	at com.hazelcast.impl.BaseManager$2.run(BaseManager.java:1391)[54:com.hazelcast:2.5.0]
      	at com.hazelcast.impl.executor.ParallelExecutorService$ParallelExecutorImpl$ExecutionSegment.run(ParallelExecutorService.java:212)[54:com.hazelcast:2.5.0]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_26]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_26]
      	at java.lang.Thread.run(Thread.java:662)[:1.6.0_26]
      	at com.hazelcast.impl.ExecutorThreadFactory$1.run(ExecutorThreadFactory.java:38)[54:com.hazelcast:2.5.0]
      Caused by: java.lang.ClassNotFoundException: org.apache.karaf.cellar.bundle.ClusterBundleEvent
      	at org.apache.karaf.cellar.core.utils.CombinedClassLoader.findClass(CombinedClassLoader.java:60)[55:org.apache.karaf.cellar.core:2.3.0]
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)[:1.6.0_26]
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)[:1.6.0_26]
      	at com.hazelcast.nio.AbstractSerializer.loadClass(AbstractSerializer.java:81)[54:com.hazelcast:2.5.0]
      	at com.hazelcast.nio.AbstractSerializer.loadClass(AbstractSerializer.java:56)[54:com.hazelcast:2.5.0]
      	at com.hazelcast.nio.AbstractSerializer$1.resolveClass(AbstractSerializer.java:91)[54:com.hazelcast:2.5.0]
      	at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574)[:1.6.0_26]
      	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)[:1.6.0_26]
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)[:1.6.0_26]
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)[:1.6.0_26]
      	at java.io.ObjectInputStream.readUnshared(ObjectInputStream.java:440)[:1.6.0_26]
      	at com.hazelcast.nio.DefaultSerializer$ObjectSerializer.readNormal(DefaultSerializer.java:410)[54:com.hazelcast:2.5.0]
      	at com.hazelcast.nio.DefaultSerializer$ObjectSerializer.read(DefaultSerializer.java:380)[54:com.hazelcast:2.5.0]
      	at com.hazelcast.nio.DefaultSerializer.read(DefaultSerializer.java:138)[54:com.hazelcast:2.5.0]
      	at com.hazelcast.nio.CustomSerializerAdapter.read(CustomSerializerAdapter.java:32)[54:com.hazelcast:2.5.0]
      	at com.hazelcast.nio.AbstractSerializer.toObject(AbstractSerializer.java:121)[54:com.hazelcast:2.5.0]
      	... 14 more
      

      And then

      2013-05-29 16:21:33,807 | WARN  | l-10-thread-1980 | ThreadContext                    | dardLoggerFactory$StandardLogger   46 | 54 - com.hazelcast - 2.5.0 | 1652 Thr
      eadContext is created!! You might have too many threads. Is that normal?
      

      It is reproduced for Windows and Unix distributive of Karaf.

      Attachments

        1. etc_karaf_first.zip
          24 kB
          Dmitriy
        2. etc_karaf_second.zip
          24 kB
          Dmitriy

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            sdim Dmitriy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: