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/07/03 20:34:32 UTC

Destroying BlueprintContainer for bundle datasource.xml

I used the bundle.jar created in the data/cache/xxx dir which happens after
you drop a datasource.xml file into the deploy dir in a running Karaf 3.0.1
instance (cluster).

Then I install to both node in cluster via replication as follows:

install file:/path/to/file/datasource.xml
start xxx

The bundle remains in active state in both nodes.

Then the karaf.log is polluted with the following message repeatedly. 
Please advise how to resolve thx.

20140703 11:30:32.732 [INFO ] pool-13-thread-50 |
19:org.apache.aries.blueprint.core |
org.apache.aries.blueprint.container.BlueprintExtender | Destroying
BlueprintContainer for bundle datasource-person-ws.xml
20140703 11:30:32.795 [INFO ] pool-13-thread-75 |
19:org.apache.aries.blueprint.core |
org.apache.aries.blueprint.container.BlueprintExtender | Destroying
BlueprintContainer for bundle datasource-person-ws.xml
20140703 11:30:32.826 [INFO ] pool-13-thread-77 |
19:org.apache.aries.blueprint.core |
org.apache.aries.blueprint.container.BlueprintExtender | Destroying
BlueprintContainer for bundle datasource-person-ws.xml


20140703 11:30:35.946 [ERROR] pool-13-thread-47 |
140:org.springframework.osgi.extender |
org.springframework.osgi.extender.internal.activator.ContextLoaderListener |
Cannot create application context for bundle [null
(datasource-person-ws.xml)]
java.lang.NullPointerException
        at
org.springframework.osgi.extender.support.DefaultOsgiApplicationContextCreator.createApplicationContext(DefaultOsgiApplicationContextCreator.java:56)[140:org.springframework.osgi.extender:1.2.1]
        at
org.springframework.osgi.extender.internal.activator.ContextLoaderListener.maybeCreateApplicationContextFor(ContextLoaderListener.java:688)[140:org.springframework.osgi.extender:1.2.1]
        at
org.springframework.osgi.extender.internal.activator.ContextLoaderListener$ContextBundleListener.handleEvent(ContextLoaderListener.java:229)[140:org.springframework.osgi.extender:1.2.1]
        at
org.springframework.osgi.extender.internal.activator.ContextLoaderListener$BaseListener.bundleChanged(ContextLoaderListener.java:172)[140:org.springframework.osgi.extender:1.2.1]
        at
org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:868)[org.apache.felix.framework-4.2.1.jar:]
        at
org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:789)[org.apache.felix.framework-4.2.1.jar:]
        at
org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:514)[org.apache.felix.framework-4.2.1.jar:]
        at
org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4403)[org.apache.felix.framework-4.2.1.jar:]
        at
org.apache.felix.framework.Felix.startBundle(Felix.java:2092)[org.apache.felix.framework-4.2.1.jar:]
        at
org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)[org.apache.felix.framework-4.2.1.jar:]
        at
org.apache.felix.framework.BundleImpl.start(BundleImpl.java:942)[org.apache.felix.framework-4.2.1.jar:]
        at
org.apache.karaf.cellar.bundle.BundleSupport.startBundle(BundleSupport.java:75)[111:org.apache.karaf.cellar.bundle:3.0.0]
        at
org.apache.karaf.cellar.bundle.BundleEventHandler.handle(BundleEventHandler.java:86)[111:org.apache.karaf.cellar.bundle:3.0.0]
        at
org.apache.karaf.cellar.bundle.BundleEventHandler.handle(BundleEventHandler.java:34)[111:org.apache.karaf.cellar.bundle:3.0.0]
        at Proxycc70c24c_ddf4_42a9_ad67_2183ebdb6503.handle(Unknown
Source)[:]
        at Proxyeca36dab_8f46_497b_aec3_eb7c5aea9005.handle(Unknown
Source)[:]
        at
org.apache.karaf.cellar.core.event.EventDispatchTask.run(EventDispatchTask.java:57)[106:org.apache.karaf.cellar.core:3.0.0]
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_60]
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_60]
        at java.lang.Thread.run(Thread.java:745)[:1.7.0_60]




--
View this message in context: http://karaf.922171.n3.nabble.com/Destroying-BlueprintContainer-for-bundle-datasource-xml-tp4033985.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Destroying BlueprintContainer for bundle datasource.xml

Posted by asookazian2 <as...@gmail.com>.
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
    
    <bean id="personDataSource"
class="com.mysql.jdbc.jdbc2.optional.MysqlDataSource">
        <property name="url" value="jdbc:mysql://[ip_address]:3306/test"/>
        <property name="user" value="test"/>
        <property name="password" value="test"/>
    </bean>
        
    <service interface="javax.sql.DataSource" ref="personDataSource">
        <service-properties>
            <entry key="osgi.jndi.service.name"
value="jdbc/PersonDataSource"/>
        </service-properties>
    </service>
</blueprint>

where [ip_address] = a.b.c.d



--
View this message in context: http://karaf.922171.n3.nabble.com/Destroying-BlueprintContainer-for-bundle-datasource-xml-tp4033985p4033993.html
Sent from the Karaf - User mailing list archive at Nabble.com.