Hello Ioannis,

I believe this can be fixed by changing the HazelcastBundleListener to
be a SynchronousBundleListener (I believe the error occurred because I
accessed Hazelcast in my Activator.start()). Also I see the
BundleEvent.STOPPING will remove the classloader. Will the bundle
listener receive the STOPPING event before or after the Activator.stop
is called (I would like to be able to execute a hazelcast action in
Activator.stop)?

If I run shutdown on karaf, it would be nice if it was possible to be
able to execute a hazelcast command before cellar shuts down the
hazelcast instance. When I try to do this now, it appears the cellar
hazelcast bundle beats me to it (I get a hazelcast instance stopped
error). Would you have any suggestion here?

thanks in advance,
Gareth

On Wed, Sep 14, 2011 at 11:16 PM, Gareth Collins
<[email protected]> wrote:
> Hello Ioannis,
>
> I tried my example again. I am still having a problem with the trunk
> cellar version (which should include the fix for 842). I am not sure
> the fix is completely there. The exception is different now (see
> below).
>
> thanks,
> Gareth
>
> java.lang.ClassNotFoundException: com.mytestcompany.PredTester
>        at 
> org.apache.karaf.cellar.core.utils.CombinedClassLoader.findClass(CombinedClassLoader.java:62)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>        at java.lang.Class.forName0(Native Method)
>        at java.lang.Class.forName(Class.java:247)
>        at 
> com.hazelcast.nio.AbstractSerializer.classForName(AbstractSerializer.java:72)
>        at 
> com.hazelcast.nio.AbstractSerializer.classForName(AbstractSerializer.java:57)
>        at 
> com.hazelcast.nio.Serializer$DataSerializer.classForName(Serializer.java:83)
>        at com.hazelcast.nio.Serializer$DataSerializer.read(Serializer.java:93)
>        at com.hazelcast.nio.Serializer$DataSerializer.read(Serializer.java:69)
>        at 
> com.hazelcast.nio.AbstractSerializer.toObject(AbstractSerializer.java:105)
>        at 
> com.hazelcast.nio.AbstractSerializer.toObject(AbstractSerializer.java:135)
>        at com.hazelcast.nio.Serializer.readObject(Serializer.java:62)
>        at com.hazelcast.impl.ThreadContext.toObject(ThreadContext.java:113)
>        at com.hazelcast.nio.IOUtil.toObject(IOUtil.java:149)
>        at com.hazelcast.impl.Record.getValue(Record.java:143)
>        at 
> com.hazelcast.query.Predicates$GetExpressionImpl.doGetValue(Predicates.java:842)
>        at 
> com.hazelcast.query.Predicates$GetExpressionImpl.getValue(Predicates.java:836)
>        at 
> com.hazelcast.query.Predicates$EqualPredicate.apply(Predicates.java:450)
>        at com.hazelcast.query.PredicateBuilder.apply(PredicateBuilder.java:32)
>        at 
> com.hazelcast.impl.ConcurrentMapManager$QueryOperationHandler.createResultPairs(ConcurrentMapManager.java:2658)
>        at 
> com.hazelcast.impl.ConcurrentMapManager$QueryOperationHandler$QueryTask.run(ConcurrentMapManager.java:2627)
>        at 
> com.hazelcast.impl.executor.ParallelExecutorService$ParallelExecutorImpl$ExecutionSegment.run(ParallelExecutorService.java:179)
>        at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>        at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>        at java.lang.Thread.run(Thread.java:680)
>
> On Wed, Sep 7, 2011 at 6:13 PM, iocanel [via Karaf]
> <[email protected]> wrote:
>> The branch 2.2.x is now back to stable.
>>
>> On Wed, Sep 7, 2011 at 10:28 AM, Ioannis Canellos <[hidden email]> wrote:
>>>
>>> You will need to wait a bit before you try 842. The branch needs some more
>>> fixes.
>>>
>>>>
>>>> --
>>>> Ioannis Canellos
>>>>  http://iocanel.blogspot.com
>>>> Apache Karaf Committer & PMC
>>>> Apache ServiceMix  Committer
>>>> Apache Gora Committer
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Ioannis Canellos
>>>  http://iocanel.blogspot.com
>>> Apache Karaf Committer & PMC
>>> Apache ServiceMix  Committer
>>> Apache Gora Committer
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>> --
>> Ioannis Canellos
>>  http://iocanel.blogspot.com
>> Apache Karaf Committer & PMC
>> Apache ServiceMix  Committer
>> Apache Gora Committer
>>
>>
>>
>>
>>
>> Ioannis Canellos http://iocanel.blogspot.com
>>
>> ________________________________
>> If you reply to this email, your message will be added to the discussion
>> below:
>> http://karaf.922171.n3.nabble.com/Adding-Additional-Cellar-Map-Configuration-tp3305655p3318095.html
>> To unsubscribe from Adding Additional Cellar Map Configuration?, click here.
>


--
View this message in context: 
http://karaf.922171.n3.nabble.com/Adding-Additional-Cellar-Map-Configuration-tp3305655p3337894.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to