You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by asookazian2 <as...@gmail.com> on 2014/12/03 22:22:41 UTC

Unable to uninstall multiple bundles

4 bundles suddenly and simultaneously go into "installed" state after karaf
restart (previously were "active").  I can't uninstall the bundles (bundle
is invalid is the error at cmd line).  karaf 3.0.2.  one of them is simply a
datasource.xml in deploy dir.

i had to delete from karaf/data/cache dir to get rid of them.

wtf????



--
View this message in context: http://karaf.922171.n3.nabble.com/Unable-to-uninstall-multiple-bundles-tp4036928.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Unable to uninstall multiple bundles

Posted by asookazian2 <as...@gmail.com>.
how and why does the cache get corrupted?

we are under the impression that we need to halt/start karaf after doing our
feature installs in order to avoid any corruption issues but not sure if
this is really required or not.



--
View this message in context: http://karaf.922171.n3.nabble.com/Unable-to-uninstall-multiple-bundles-tp4036928p4036934.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Unable to uninstall multiple bundles

Posted by asookazian2 <as...@gmail.com>.
I don't have the log available that would pertain to this problem.

I did try to "bundle:stop" and "bundle:start" and both of those failed (I
think with invalid bundle error).

from etc/config.properties:

#
# Framework selection properties
#
karaf.framework=felix


jbonofre wrote
> What's in the log (when the bundles went in installed state) ?
> Did you try to start by hand ?
> 
> I bet that you use the Felix framework (default one in Karaf): it's 
> probably the bug on the framework when the cache is corrupted.
> 
> Are you able to reproduce the scenario ?
> 
> Regards
> JB
> 
> On 12/03/2014 10:22 PM, asookazian2 wrote:
>> 4 bundles suddenly and simultaneously go into "installed" state after
>> karaf
>> restart (previously were "active").  I can't uninstall the bundles
>> (bundle
>> is invalid is the error at cmd line).  karaf 3.0.2.  one of them is
>> simply a
>> datasource.xml in deploy dir.
>>
>> i had to delete from karaf/data/cache dir to get rid of them.
>>
>> wtf????
>>
>>
>>
>> --
>> View this message in context:
>> http://karaf.922171.n3.nabble.com/Unable-to-uninstall-multiple-bundles-tp4036928.html
>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>
> 
> -- 
> Jean-Baptiste Onofré

> jbonofre@

> http://blog.nanthrax.net
> Talend - http://www.talend.com





--
View this message in context: http://karaf.922171.n3.nabble.com/Unable-to-uninstall-multiple-bundles-tp4036928p4036933.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Unable to uninstall multiple bundles

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
What's in the log (when the bundles went in installed state) ?
Did you try to start by hand ?

I bet that you use the Felix framework (default one in Karaf): it's 
probably the bug on the framework when the cache is corrupted.

Are you able to reproduce the scenario ?

Regards
JB

On 12/03/2014 10:22 PM, asookazian2 wrote:
> 4 bundles suddenly and simultaneously go into "installed" state after karaf
> restart (previously were "active").  I can't uninstall the bundles (bundle
> is invalid is the error at cmd line).  karaf 3.0.2.  one of them is simply a
> datasource.xml in deploy dir.
>
> i had to delete from karaf/data/cache dir to get rid of them.
>
> wtf????
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Unable-to-uninstall-multiple-bundles-tp4036928.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Unable to uninstall multiple bundles

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
I guess that you cannot share the bundles/code with me ?

It looks like the activator doesn't cleanly release some resources 
during the stop() callback.

Regards
JB

On 12/04/2014 12:07 AM, asookazian2 wrote:
> also i don't understand why those specific 4 (last installed) bundles have
> presumably become corrupted.
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Unable-to-uninstall-multiple-bundles-tp4036928p4036943.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Unable to uninstall multiple bundles

Posted by asookazian2 <as...@gmail.com>.
also i don't understand why those specific 4 (last installed) bundles have
presumably become corrupted.



--
View this message in context: http://karaf.922171.n3.nabble.com/Unable-to-uninstall-multiple-bundles-tp4036928p4036943.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Unable to uninstall multiple bundles

Posted by asookazian2 <as...@gmail.com>.
I don't see any errors in the log after restarting...



--
View this message in context: http://karaf.922171.n3.nabble.com/Unable-to-uninstall-multiple-bundles-tp4036928p4036942.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Unable to uninstall multiple bundles

Posted by asookazian2 <as...@gmail.com>.
reproduced exact same 4 bundles are in installed state after restart and
error states "Bundle x is invalid" when I try to stop the bundle.  This
occurred after I killed the JVM as the "halt" cmd in karaf was hanging.

stack trace before JVM stopped:

20141203 14:49:35.376 [ERROR] Thread-116 | : |
org.activiti.engine.impl.jobexecutor.AcquireJobsRunnable | exception during
job acquisition: Could not open JDBC Connection for transaction; nested
exception is java.lang.IllegalStateException: Invalid BundleContext.
org.springframework.transaction.CannotCreateTransactionException: Could not
open JDBC Connection for transaction; nested exception is
java.lang.IllegalStateException: Invalid BundleContext.
	at
org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:240)[284:workflow-ws-server:1.0.0.SNAPSHOT]
	at
org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:371)[284:workflow-ws-server:1.0.0.SNAPSHOT]
	at
org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:127)[284:workflow-ws-server:1.0.0.SNAPSHOT]
	at
org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:40)[284:workflow-ws-server:1.0.0.SNAPSHOT]
	at
org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)[284:workflow-ws-server:1.0.0.SNAPSHOT]
	at
org.activiti.engine.impl.jobexecutor.AcquireJobsRunnable.run(AcquireJobsRunnable.java:57)[284:workflow-ws-server:1.0.0.SNAPSHOT]
	at java.lang.Thread.run(Thread.java:745)[:1.7.0_71]
Caused by: java.lang.IllegalStateException: Invalid BundleContext.
	at
org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:514)[org.apache.felix.framework-4.2.1.jar:]
	at
org.apache.felix.framework.BundleContextImpl.getServiceReferences(BundleContextImpl.java:425)[org.apache.felix.framework-4.2.1.jar:]
	at
org.apache.aries.jndi.services.ServiceHelper.findService(ServiceHelper.java:375)[98:org.apache.aries.jndi.url:1.0.0]
	at
org.apache.aries.jndi.services.ServiceHelper.access$500(ServiceHelper.java:66)[98:org.apache.aries.jndi.url:1.0.0]
	at
org.apache.aries.jndi.services.ServiceHelper$JNDIServiceDamper.call(ServiceHelper.java:180)[98:org.apache.aries.jndi.url:1.0.0]
	at Proxy386d92f9_189d_4945_b1ed_57c9fecb6138.getConnection(Unknown
Source)[:]
	at
org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:202)[284:workflow-ws-server:1.0.0.SNAPSHOT]
	... 6 more



jbonofre wrote
> No it's not. Without details about your bundles, what they do and how they
> work, it's not easy.
> 
> We have a bunch of users on Karaf and that use the features without
> problem. So I suspect something related to your distribution or
> application.
> 
> Regards
> JB
> 
> 
> Sent from my Samsung Galaxy smartphone.
> 
> 
> -------- Original message --------
> From: asookazian2 &lt;

> asookazian@

> &gt; 
> Date:03/12/2014  22:41  (GMT+01:00) 
> To: 

> user@.apache

>  
> Cc:  
> Subject: Re: Unable to uninstall multiple bundles 
> 
> how and why does the cache get corrupted?
> 
> we are under the impression that we need to halt/start karaf after doing
> our
> feature installs in order to avoid any corruption issues but not sure if
> this is really required or not.
> 
> 
> 
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Unable-to-uninstall-multiple-bundles-tp4036928p4036934.html
> Sent from the Karaf - User mailing list archive at Nabble.com.





--
View this message in context: http://karaf.922171.n3.nabble.com/Unable-to-uninstall-multiple-bundles-tp4036928p4036941.html
Sent from the Karaf - User mailing list archive at Nabble.com.