felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carsten Ziegeler <cziege...@apache.org>
Subject Re: How to handle "java.lang.IllegalStateException: The EventAdmin is stopped" during shutdown
Date Mon, 14 Feb 2011 14:21:04 GMT
Hi,

I just fixed another shutdown problem in the event admin, so maybe you
want to try latest version from svn trunk

Regards
Carsten

Am 17.01.11 17:35, schrieb Alexander Broekhuis:
> Hi Carsten,
> 
> Will do, I also tested with older versions, and 1.0.0 works ok. So I
> will use that version for now.
> 
> 
> On 17 January 2011 17:02, Carsten Ziegeler <cziegeler@apache.org> wrote:
>> Hi Alex,
>>
>> ok, can you please file a bug and attach the source for your code so we
>> can easily reproduce the problem?
>>
>> Thanks
>> Carsten
>>
>> Am 17.01.11 11:02, schrieb Alexander Broekhuis:
>>> Hi,
>>>
>>> Is there any update for this problem? I changed my code to use a
>>> service tracker, and the same happens. So it doesn't seem to be
>>> related to the use of the Dependence Manager.
>>>
>>> On 12 January 2011 07:16, Alexander Broekhuis <a.broekhuis@gmail.com> wrote:
>>>> Hi Pierre,
>>>>
>>>> The DM version I use is 2.0.1, and not trunk. So don't think it can be
>>>> the compat bundle..
>>>>
>>>> But thanks for looking into it!
>>>>
>>>> On 12 January 2011 00:47, Pierre De Rop <pierre.derop@gmail.com> wrote:
>>>>> Hi Alexander;
>>>>>
>>>>> Are you using the dependencymanager from the trunk ?
>>>>> If so, then I assume that you are also using the dependencymanager
>>>>> compatibility bundle, because I see that you are using the old
>>>>> "org.apache.felix.dependencymanager" package ?
>>>>>
>>>>> In this case, you might have found a bug from the DM compatibility bundle.
>>>>> Please open a jira issue for DM, and attach to it your sample code, I
will
>>>>> then investigate.
>>>>> (I think that your Sender.stop method is not properly invoked by the
DM
>>>>> compat bundle).
>>>>>
>>>>> Thanks;
>>>>> /pierre
>>>>>
>>>>>
>>>>> On Tue, Jan 11, 2011 at 2:42 PM, Alexander Broekhuis
>>>>> <a.broekhuis@gmail.com>wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I created a small example with 2 bundles.
>>>>>>
>>>>>> When stopping execution using ctrl-c the interrupted exception is
>>>>>> thrown. Somehow the stacktrace isn't show now, but only the warning
is
>>>>>> given,
>>>>>> and the shutdown stops. Trying to list bundles results in
>>>>>> IllegalStateException. The only way to stop it is by killing the
>>>>>> process.
>>>>>>
>>>>>> The code is a simple sender and receiver. The Dependency manager
is
>>>>>> used to get a reference to the EventAdmin.
>>>>>>
>>>>>>
>>>>>> On 7 January 2011 12:47, Carsten Ziegeler <cziegeler@apache.org>
wrote:
>>>>>>> Alexander Broekhuis  wrote
>>>>>>>>>
>>>>>>>>> From the stacktrace below I have the feeling that the
AbcGenerator is
>>>>>>>>> using the EventAdmin although the service is already
down. How do you
>>>>>>>>> handle the unregister event of the event admin service?
>>>>>>>>
>>>>>>>> The EventAdmin is tracked using the DependencyManager. If
the service
>>>>>>>> is actually down, I would expect a NPE at the point where
I use the
>>>>>>>> EventAdmin, not an exception from within the EventAdmin.
Or is this a
>>>>>>>> wrong assumption?
>>>>>>>>
>>>>>>> I don't know the DependencyManager :) But maybe you can show
the code,
>>>>>>> you use?
>>>>>>>
>>>>>>> Regards
>>>>>>> Carsten
>>>>>>> --
>>>>>>> Carsten Ziegeler
>>>>>>> cziegeler@apache.org
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>>>>>>> For additional commands, e-mail: users-help@felix.apache.org
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Met vriendelijke groet,
>>>>>>
>>>>>> Alexander Broekhuis
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>>>>>> For additional commands, e-mail: users-help@felix.apache.org
>>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Met vriendelijke groet,
>>>>
>>>> Alexander Broekhuis
>>>>
>>>
>>>
>>>
>>
>>
>> --
>> Carsten Ziegeler
>> cziegeler@apache.org
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>>
> 
> 
> 


-- 
Carsten Ziegeler
cziegeler@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Mime
View raw message