Aries
  1. Aries
  2. ARIES-954

org.osgi.service.blueprint.container.ComponentDefinitionException: java.lang.NullPointerException - need better error message

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: blueprint-core-1.0.1
    • Fix Version/s: None
    • Component/s: Blueprint
    • Labels:
      None
    • Environment:

      Description

      Trying to deploy my bundle, I get this exception :

      2012-11-01 14:42:14,477 | ERROR | rint Extender: 2 | BlueprintContainerImpl           | container.BlueprintContainerImpl  375 | 7 - org.apache.aries.blueprint.core - 1.0.1 | Unable to start blueprint container for bundle org.soluvas.security
      org.osgi.service.blueprint.container.ComponentDefinitionException: java.lang.NullPointerException
              at org.apache.aries.blueprint.container.ServiceRecipe.createService(ServiceRecipe.java:295)[7:org.apache.aries.blueprint.core:1.0.1]
              at org.apache.aries.blueprint.container.ServiceRecipe.internalGetService(ServiceRecipe.java:247)[7:org.apache.aries.blueprint.core:1.0.1]
              at org.apache.aries.blueprint.container.ServiceRecipe.internalGetService(ServiceRecipe.java:234)[7:org.apache.aries.blueprint.core:1.0.1]
              at org.apache.aries.blueprint.container.ServiceRecipe.getClasses(ServiceRecipe.java:367)[7:org.apache.aries.blueprint.core:1.0.1]
              at org.apache.aries.blueprint.container.ServiceRecipe.register(ServiceRecipe.java:185)[7:org.apache.aries.blueprint.core:1.0.1]
              at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerServices(BlueprintContainerImpl.java:668)[7:org.apache.aries.blueprint.core:1.0.1]
              at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:352)[7:org.apache.aries.blueprint.core:1.0.1]
              at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:252)[7:org.apache.aries.blueprint.core:1.0.1]
              at org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48)[7:org.apache.aries.blueprint.core:1.0.1]
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_07]
              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.7.0_07]
              at java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.7.0_07]
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)[:1.7.0_07]
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)[:1.7.0_07]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)[:1.7.0_07]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[:1.7.0_07]
              at java.lang.Thread.run(Thread.java:722)[:1.7.0_07]
      Caused by: java.lang.NullPointerException
              at org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:888)[7:org.apache.aries.blueprint.core:1.0.1]
              at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:820)[7:org.apache.aries.blueprint.core:1.0.1]
              at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:787)[7:org.apache.aries.blueprint.core:1.0.1]
              at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)[7:org.apache.aries.blueprint.core:1.0.1]
              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.7.0_07]
              at java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.7.0_07]
              at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)[7:org.apache.aries.blueprint.core:1.0.1]
              at org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:62)[7:org.apache.aries.blueprint.core:1.0.1]
              at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:106)[7:org.apache.aries.blueprint.core:1.0.1]
              at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:280)[7:org.apache.aries.blueprint.core:1.0.1]
              at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:806)[7:org.apache.aries.blueprint.core:1.0.1]
              at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:787)[7:org.apache.aries.blueprint.core:1.0.1]
              at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:106)[7:org.apache.aries.blueprint.core:1.0.1]
              at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:268)[7:org.apache.aries.blueprint.core:1.0.1]
              at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:806)[7:org.apache.aries.blueprint.core:1.0.1]
              at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:787)[7:org.apache.aries.blueprint.core:1.0.1]
              at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)[7:org.apache.aries.blueprint.core:1.0.1]
              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.7.0_07]
              at java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.7.0_07]
              at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)[7:org.apache.aries.blueprint.core:1.0.1]
              at org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:62)[7:org.apache.aries.blueprint.core:1.0.1]
              at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:106)[7:org.apache.aries.blueprint.core:1.0.1]
              at org.apache.aries.blueprint.container.ServiceRecipe.createService(ServiceRecipe.java:280)[7:org.apache.aries.blueprint.core:1.0.1]
              ... 16 more
      

      The Blueprint XML:

      <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
          xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
          xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0
              http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0 http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0
              http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.1.0 http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.1.0
              http://karaf.apache.org/xmlns/shell/v1.1.0 http://karaf.apache.org/xmlns/shell/v1.1.0">
      
      	<reference id="svcLookup" interface="org.soluvas.multitenant.ServiceLookup"/>
      
      	<command-bundle xmlns="http://karaf.apache.org/xmlns/shell/v1.1.0">
      		<command name="sec/rolels">
      			<action class="org.soluvas.security.shell.SecRoleLsCommand">
      				<argument ref="svcLookup" />
      			</action>
      		</command>
      		<command name="sec/actionls">
      			<action class="org.soluvas.security.shell.SecActionLsCommand">
      				<argument ref="svcLookup" />
      			</action>
      		</command>
      		<command name="sec/domainls">
      			<action class="org.soluvas.security.shell.SecDomainLsCommand">
      				<argument ref="svcLookup" />
      			</action>
      		</command>
      		<command name="sec/permls">
      			<action class="org.soluvas.security.shell.SecPermLsCommand">
      				<argument ref="svcLookup" />
      			</action>
      		</command>
      	</command-bundle>
      	
      	<bean class="org.soluvas.commons.EmfUnloader" destroy-method="destroy">
      		<argument value="org.soluvas.security.SecurityPackage" />
      	</bean>
      
      	<bean id="defaultSecurityCatalogSupplier" class="org.soluvas.commons.XmiObjectLoader">
      		<argument type="java.lang.Class" value="org.soluvas.security.SecurityPackage" />
      		<argument value="org.soluvas.security.SecurityPackage" />
      		<argument value="default.SecurityCatalog.xmi" />
      	</bean>
      	<service ref="defaultSecurityCatalogSupplier" auto-export="interfaces">
      		<service-properties>
      			<entry key="clientId" value="berbatik" />
      			<entry key="tenantId" value="berbatik" />
      			<entry key="tenantEnv" value="dev" />
      			<entry key="suppliedClass" value="org.soluvas.security.SecurityCatalog" />
      			<entry key="layer" value="module" />
      		</service-properties>
      	</service>
      	
      	<bean id="securityPackage" class="org.soluvas.security.impl.SecurityPackageImpl" factory-method="init" />
      	<bean id="aggregatingSecurityCatalogSupplier" class="org.soluvas.commons.AggregatingSupplier">
      		<argument>
      			<bean class="org.soluvas.security.impl.SecurityFactoryImpl" />
      		</argument>
      		<argument>
      			<bean factory-ref="securityPackage" factory-method="getSecurityCatalog" />
      		</argument>
      		<argument>
      			<list>
      <!-- 				<ref component-id="defaultSecurityCatalogSupplier"/> -->
      <!-- 				<ref component-id="bippoSecurityCatalogSupplier"/> -->
      			</list>
      		</argument>
      	</bean>
      	<service ref="aggregatingSecurityCatalogSupplier" auto-export="interfaces">
      		<service-properties>
      			<entry key="clientId" value="berbatik" />
      			<entry key="tenantId" value="berbatik" />
      			<entry key="tenantEnv" value="dev" />
      			<entry key="suppliedClass" value="org.soluvas.security.SecurityCatalog" />
      			<entry key="layer" value="application" />
      		</service-properties>
      	</service>
      	
      	<bean id="securityCatalogSupplierTracker" class="org.soluvas.security.SecurityCatalogSupplierTracker">
      		<argument ref="blueprintBundleContext" />
      		<argument ref="aggregatingSecurityCatalogSupplier" />
      	</bean>
      	<bean class="org.osgi.util.tracker.ServiceTracker" init-method="open" destroy-method="close">
      		<argument ref="blueprintBundleContext" />
      		<argument>
      			<bean class="org.osgi.framework.FrameworkUtil" factory-method="createFilter">
      				<argument value="(&amp;(objectClass=com.google.common.base.Supplier)(suppliedClass=org.soluvas.security.SecurityCatalog)(tenantId=berbatik)(tenantEnv=dev)(layer=module))" />
      			</bean>
      		</argument>
      		<argument ref="securityCatalogSupplierTracker" />
      	</bean>
      
      </blueprint>
      

      I suspect something's amiss in my class, however the exceptiong given by Blueprint should be more helpful.

        Issue Links

          Activity

          Hide
          Hendy Irawan added a comment -

          The strangest thing is, this error happens after a `stop` and `start`, but not on a `refresh` :

          karaf@root> refresh 2816
          karaf@root> ********************************************************************
          *** WARNING: Wicket is running in DEVELOPMENT mode.              ***
          ***                               ^^^^^^^^^^^                    ***
          *** Do NOT deploy to your live server(s) without changing this.  ***
          *** See Application#getConfigurationType() for more information. ***
          ********************************************************************
          
          karaf@root> list -s | grep org.soluvas.security
          [2816] [Active     ] [Created     ] [       ] [   80] org.soluvas.security (1.1.0.SNAPSHOT)
          

          Using stop+start:

          karaf@root> stop 2816
          karaf@root> start 2816
          karaf@root> list -s | grep org.soluvas.security
          [2816] [Active     ] [Failure     ] [       ] [   80] org.soluvas.security (1.1.0.SNAPSHOT)
          
          Show
          Hendy Irawan added a comment - The strangest thing is, this error happens after a `stop` and `start`, but not on a `refresh` : karaf@root> refresh 2816 karaf@root> ******************************************************************** *** WARNING: Wicket is running in DEVELOPMENT mode. *** *** ^^^^^^^^^^^ *** *** Do NOT deploy to your live server(s) without changing this . *** *** See Application#getConfigurationType() for more information. *** ******************************************************************** karaf@root> list -s | grep org.soluvas.security [2816] [Active ] [Created ] [ ] [ 80] org.soluvas.security (1.1.0.SNAPSHOT) Using stop+start: karaf@root> stop 2816 karaf@root> start 2816 karaf@root> list -s | grep org.soluvas.security [2816] [Active ] [Failure ] [ ] [ 80] org.soluvas.security (1.1.0.SNAPSHOT)
          Show
          Hendy Irawan added a comment - Use case is here: https://github.com/soluvas/soluvas-framework/tree/ARIES-954/security
          Hide
          Hendy Irawan added a comment - - edited

          Another exception:

          {
            "level" : "ERROR",
            "message" : {
              "messagePattern" : "Unable to start blueprint container for bundle id.co.bippo.common"
            },
            "logger" : "org.apache.aries.blueprint.container.BlueprintContainerImpl",
            "throwable" : {
              "cause" : {
                "name" : "java.lang.NullPointerException",
                "omittedElements" : 0
              },
              "message" : "java.lang.NullPointerException",
              "name" : "org.osgi.service.blueprint.container.ComponentDefinitionException",
              "omittedElements" : 0,
              "stackTrace" : [ {
                "className" : "org.apache.aries.blueprint.container.ReferenceRecipe",
                "exact" : false,
                "fileName" : "ReferenceRecipe.java",
                "lineNumber" : 116,
                "methodName" : "internalCreate"
              }, {
                "className" : "org.apache.aries.blueprint.di.AbstractRecipe$1",
                "exact" : false,
                "fileName" : "AbstractRecipe.java",
                "lineNumber" : 79,
                "methodName" : "call"
              }, {
                "className" : "java.util.concurrent.FutureTask$Sync",
                "exact" : false,
                "fileName" : "FutureTask.java",
                "lineNumber" : 334,
                "methodName" : "innerRun"
              }, {
                "className" : "java.util.concurrent.FutureTask",
                "exact" : false,
                "fileName" : "FutureTask.java",
                "lineNumber" : 166,
                "methodName" : "run"
              }, {
                "className" : "org.apache.aries.blueprint.di.AbstractRecipe",
                "exact" : false,
                "fileName" : "AbstractRecipe.java",
                "lineNumber" : 88,
                "methodName" : "create"
              }, {
                "className" : "org.apache.aries.blueprint.container.BeanRecipe",
                "exact" : false,
                "fileName" : "BeanRecipe.java",
                "lineNumber" : 933,
                "methodName" : "setProperty"
              }, {
                "className" : "org.apache.aries.blueprint.container.BeanRecipe",
                "exact" : false,
                "fileName" : "BeanRecipe.java",
                "lineNumber" : 907,
                "methodName" : "setProperties"
              }, {
                "className" : "org.apache.aries.blueprint.container.BeanRecipe",
                "exact" : false,
                "fileName" : "BeanRecipe.java",
                "lineNumber" : 888,
                "methodName" : "setProperties"
              }, {
                "className" : "org.apache.aries.blueprint.container.BeanRecipe",
                "exact" : false,
                "fileName" : "BeanRecipe.java",
                "lineNumber" : 820,
                "methodName" : "internalCreate2"
              }, {
                "className" : "org.apache.aries.blueprint.container.BeanRecipe",
                "exact" : false,
                "fileName" : "BeanRecipe.java",
                "lineNumber" : 787,
                "methodName" : "internalCreate"
              }, {
                "className" : "org.apache.aries.blueprint.di.AbstractRecipe$1",
                "exact" : false,
                "fileName" : "AbstractRecipe.java",
                "lineNumber" : 79,
                "methodName" : "call"
              }, {
                "className" : "java.util.concurrent.FutureTask$Sync",
                "exact" : false,
                "fileName" : "FutureTask.java",
                "lineNumber" : 334,
                "methodName" : "innerRun"
              }, {
                "className" : "java.util.concurrent.FutureTask",
                "exact" : false,
                "fileName" : "FutureTask.java",
                "lineNumber" : 166,
                "methodName" : "run"
              }, {
                "className" : "org.apache.aries.blueprint.di.AbstractRecipe",
                "exact" : false,
                "fileName" : "AbstractRecipe.java",
                "lineNumber" : 88,
                "methodName" : "create"
              }, {
                "className" : "org.apache.aries.blueprint.container.BlueprintRepository",
                "exact" : false,
                "fileName" : "BlueprintRepository.java",
                "lineNumber" : 247,
                "methodName" : "createInstances"
              }, {
                "className" : "org.apache.aries.blueprint.container.BlueprintRepository",
                "exact" : false,
                "fileName" : "BlueprintRepository.java",
                "lineNumber" : 230,
                "methodName" : "createInstance"
              }, {
                "className" : "org.apache.aries.blueprint.container.BlueprintRepository",
                "exact" : false,
                "fileName" : "BlueprintRepository.java",
                "lineNumber" : 155,
                "methodName" : "create"
              }, {
                "className" : "org.apache.aries.blueprint.container.BlueprintContainerImpl",
                "exact" : false,
                "fileName" : "BlueprintContainerImpl.java",
                "lineNumber" : 534,
                "methodName" : "processProcessors"
              }, {
                "className" : "org.apache.aries.blueprint.container.BlueprintContainerImpl",
                "exact" : false,
                "fileName" : "BlueprintContainerImpl.java",
                "lineNumber" : 367,
                "methodName" : "doRun"
              }, {
                "className" : "org.apache.aries.blueprint.container.BlueprintContainerImpl",
                "exact" : false,
                "fileName" : "BlueprintContainerImpl.java",
                "lineNumber" : 272,
                "methodName" : "run"
              }, {
                "className" : "org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable",
                "exact" : false,
                "fileName" : "DiscardableRunnable.java",
                "lineNumber" : 48,
                "methodName" : "run"
              }, {
                "className" : "java.util.concurrent.Executors$RunnableAdapter",
                "exact" : false,
                "fileName" : "Executors.java",
                "lineNumber" : 471,
                "methodName" : "call"
              }, {
                "className" : "java.util.concurrent.FutureTask$Sync",
                "exact" : false,
                "fileName" : "FutureTask.java",
                "lineNumber" : 334,
                "methodName" : "innerRun"
              }, {
                "className" : "java.util.concurrent.FutureTask",
                "exact" : false,
                "fileName" : "FutureTask.java",
                "lineNumber" : 166,
                "methodName" : "run"
              }, {
                "className" : "java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask",
                "exact" : false,
                "fileName" : "ScheduledThreadPoolExecutor.java",
                "lineNumber" : 178,
                "methodName" : "access$201"
              }, {
                "className" : "java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask",
                "exact" : false,
                "fileName" : "ScheduledThreadPoolExecutor.java",
                "lineNumber" : 292,
                "methodName" : "run"
              }, {
                "className" : "java.util.concurrent.ThreadPoolExecutor",
                "exact" : false,
                "fileName" : "ThreadPoolExecutor.java",
                "lineNumber" : 1110,
                "methodName" : "runWorker"
              }, {
                "className" : "java.util.concurrent.ThreadPoolExecutor$Worker",
                "exact" : false,
                "fileName" : "ThreadPoolExecutor.java",
                "lineNumber" : 603,
                "methodName" : "run"
              }, {
                "className" : "java.lang.Thread",
                "exact" : false,
                "fileName" : "Thread.java",
                "lineNumber" : 722,
                "methodName" : "run"
              } ]
            },
            "callStack" : [ {
              "className" : "org.apache.aries.blueprint.container.BlueprintContainerImpl",
              "exact" : false,
              "fileName" : "BlueprintContainerImpl.java",
              "lineNumber" : 409,
              "methodName" : "doRun"
            } ],
            "mdc" : {
              "bundle.id" : "7",
              "bundle.version" : "1.0.1",
              "application" : "berbatik_dev",
              "bundle.name" : "org.apache.aries.blueprint.core"
            },
            "threadInfo" : {
              "name" : "Blueprint Extender: 1"
            },
            "loggerContext" : {
              "name" : "berbatik_dev"
            },
            "timeStamp" : 1360479796361
          }
          
          Show
          Hendy Irawan added a comment - - edited Another exception: { "level" : "ERROR" , "message" : { "messagePattern" : "Unable to start blueprint container for bundle id.co.bippo.common" }, "logger" : "org.apache.aries.blueprint.container.BlueprintContainerImpl" , "throwable" : { "cause" : { "name" : "java.lang.NullPointerException" , "omittedElements" : 0 }, "message" : "java.lang.NullPointerException" , "name" : "org.osgi.service.blueprint.container.ComponentDefinitionException" , "omittedElements" : 0, "stackTrace" : [ { "className" : "org.apache.aries.blueprint.container.ReferenceRecipe" , "exact" : false , "fileName" : "ReferenceRecipe.java" , "lineNumber" : 116, "methodName" : "internalCreate" }, { "className" : "org.apache.aries.blueprint.di.AbstractRecipe$1" , "exact" : false , "fileName" : "AbstractRecipe.java" , "lineNumber" : 79, "methodName" : "call" }, { "className" : "java.util.concurrent.FutureTask$Sync" , "exact" : false , "fileName" : "FutureTask.java" , "lineNumber" : 334, "methodName" : "innerRun" }, { "className" : "java.util.concurrent.FutureTask" , "exact" : false , "fileName" : "FutureTask.java" , "lineNumber" : 166, "methodName" : "run" }, { "className" : "org.apache.aries.blueprint.di.AbstractRecipe" , "exact" : false , "fileName" : "AbstractRecipe.java" , "lineNumber" : 88, "methodName" : "create" }, { "className" : "org.apache.aries.blueprint.container.BeanRecipe" , "exact" : false , "fileName" : "BeanRecipe.java" , "lineNumber" : 933, "methodName" : "setProperty" }, { "className" : "org.apache.aries.blueprint.container.BeanRecipe" , "exact" : false , "fileName" : "BeanRecipe.java" , "lineNumber" : 907, "methodName" : "setProperties" }, { "className" : "org.apache.aries.blueprint.container.BeanRecipe" , "exact" : false , "fileName" : "BeanRecipe.java" , "lineNumber" : 888, "methodName" : "setProperties" }, { "className" : "org.apache.aries.blueprint.container.BeanRecipe" , "exact" : false , "fileName" : "BeanRecipe.java" , "lineNumber" : 820, "methodName" : "internalCreate2" }, { "className" : "org.apache.aries.blueprint.container.BeanRecipe" , "exact" : false , "fileName" : "BeanRecipe.java" , "lineNumber" : 787, "methodName" : "internalCreate" }, { "className" : "org.apache.aries.blueprint.di.AbstractRecipe$1" , "exact" : false , "fileName" : "AbstractRecipe.java" , "lineNumber" : 79, "methodName" : "call" }, { "className" : "java.util.concurrent.FutureTask$Sync" , "exact" : false , "fileName" : "FutureTask.java" , "lineNumber" : 334, "methodName" : "innerRun" }, { "className" : "java.util.concurrent.FutureTask" , "exact" : false , "fileName" : "FutureTask.java" , "lineNumber" : 166, "methodName" : "run" }, { "className" : "org.apache.aries.blueprint.di.AbstractRecipe" , "exact" : false , "fileName" : "AbstractRecipe.java" , "lineNumber" : 88, "methodName" : "create" }, { "className" : "org.apache.aries.blueprint.container.BlueprintRepository" , "exact" : false , "fileName" : "BlueprintRepository.java" , "lineNumber" : 247, "methodName" : "createInstances" }, { "className" : "org.apache.aries.blueprint.container.BlueprintRepository" , "exact" : false , "fileName" : "BlueprintRepository.java" , "lineNumber" : 230, "methodName" : "createInstance" }, { "className" : "org.apache.aries.blueprint.container.BlueprintRepository" , "exact" : false , "fileName" : "BlueprintRepository.java" , "lineNumber" : 155, "methodName" : "create" }, { "className" : "org.apache.aries.blueprint.container.BlueprintContainerImpl" , "exact" : false , "fileName" : "BlueprintContainerImpl.java" , "lineNumber" : 534, "methodName" : "processProcessors" }, { "className" : "org.apache.aries.blueprint.container.BlueprintContainerImpl" , "exact" : false , "fileName" : "BlueprintContainerImpl.java" , "lineNumber" : 367, "methodName" : "doRun" }, { "className" : "org.apache.aries.blueprint.container.BlueprintContainerImpl" , "exact" : false , "fileName" : "BlueprintContainerImpl.java" , "lineNumber" : 272, "methodName" : "run" }, { "className" : "org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable" , "exact" : false , "fileName" : "DiscardableRunnable.java" , "lineNumber" : 48, "methodName" : "run" }, { "className" : "java.util.concurrent.Executors$RunnableAdapter" , "exact" : false , "fileName" : "Executors.java" , "lineNumber" : 471, "methodName" : "call" }, { "className" : "java.util.concurrent.FutureTask$Sync" , "exact" : false , "fileName" : "FutureTask.java" , "lineNumber" : 334, "methodName" : "innerRun" }, { "className" : "java.util.concurrent.FutureTask" , "exact" : false , "fileName" : "FutureTask.java" , "lineNumber" : 166, "methodName" : "run" }, { "className" : "java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask" , "exact" : false , "fileName" : "ScheduledThreadPoolExecutor.java" , "lineNumber" : 178, "methodName" : "access$201" }, { "className" : "java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask" , "exact" : false , "fileName" : "ScheduledThreadPoolExecutor.java" , "lineNumber" : 292, "methodName" : "run" }, { "className" : "java.util.concurrent.ThreadPoolExecutor" , "exact" : false , "fileName" : "ThreadPoolExecutor.java" , "lineNumber" : 1110, "methodName" : "runWorker" }, { "className" : "java.util.concurrent.ThreadPoolExecutor$Worker" , "exact" : false , "fileName" : "ThreadPoolExecutor.java" , "lineNumber" : 603, "methodName" : "run" }, { "className" : "java.lang. Thread " , "exact" : false , "fileName" : " Thread .java" , "lineNumber" : 722, "methodName" : "run" } ] }, "callStack" : [ { "className" : "org.apache.aries.blueprint.container.BlueprintContainerImpl" , "exact" : false , "fileName" : "BlueprintContainerImpl.java" , "lineNumber" : 409, "methodName" : "doRun" } ], "mdc" : { "bundle.id" : "7" , "bundle.version" : "1.0.1" , "application" : "berbatik_dev" , "bundle.name" : "org.apache.aries.blueprint.core" }, "threadInfo" : { "name" : "Blueprint Extender: 1" }, "loggerContext" : { "name" : "berbatik_dev" }, "timeStamp" : 1360479796361 }
          Hide
          Hendy Irawan added a comment -

          Another exception, happened on exploded & symlinked bundle :

          {
            "level" : "ERROR",
            "message" : {
              "messagePattern" : "Unable to start blueprint container for bundle berbatik_dev_commerce_model"
            },
            "logger" : "org.apache.aries.blueprint.container.BlueprintContainerImpl",
            "throwable" : {
              "cause" : {
                "name" : "java.lang.NullPointerException",
                "omittedElements" : 28,
                "stackTrace" : [ {
                  "className" : "org.apache.felix.framework.BundleWiringImpl",
                  "exact" : false,
                  "fileName" : "BundleWiringImpl.java",
                  "lineNumber" : 1472,
                  "methodName" : "findClassOrResourceByDelegation"
                }, {
                  "className" : "org.apache.felix.framework.BundleWiringImpl",
                  "exact" : false,
                  "fileName" : "BundleWiringImpl.java",
                  "lineNumber" : 75,
                  "methodName" : "access$400"
                }, {
                  "className" : "org.apache.felix.framework.BundleWiringImpl$BundleClassLoader",
                  "exact" : false,
                  "fileName" : "BundleWiringImpl.java",
                  "lineNumber" : 1923,
                  "methodName" : "loadClass"
                }, {
                  "className" : "java.lang.ClassLoader",
                  "exact" : false,
                  "fileName" : "ClassLoader.java",
                  "lineNumber" : 410,
                  "methodName" : "loadClass"
                }, {
                  "className" : "java.lang.ClassLoader",
                  "exact" : false,
                  "fileName" : "ClassLoader.java",
                  "lineNumber" : 356,
                  "methodName" : "loadClass"
                }, {
                  "className" : "java.lang.Class",
                  "exact" : false,
                  "lineNumber" : -2,
                  "methodName" : "forName0"
                }, {
                  "className" : "java.lang.Class",
                  "exact" : false,
                  "fileName" : "Class.java",
                  "lineNumber" : 264,
                  "methodName" : "forName"
                }, {
                  "className" : "org.apache.aries.proxy.impl.interfaces.ProxyClassLoader",
                  "exact" : false,
                  "fileName" : "ProxyClassLoader.java",
                  "lineNumber" : 109,
                  "methodName" : "isInvalid"
                }, {
                  "className" : "org.apache.aries.proxy.impl.interfaces.InterfaceProxyGenerator",
                  "exact" : false,
                  "fileName" : "InterfaceProxyGenerator.java",
                  "lineNumber" : 84,
                  "methodName" : "getProxyInstance"
                }, {
                  "className" : "org.apache.aries.proxy.impl.AsmProxyManager",
                  "exact" : false,
                  "fileName" : "AsmProxyManager.java",
                  "lineNumber" : 72,
                  "methodName" : "createNewProxy"
                }, {
                  "className" : "org.apache.aries.proxy.impl.AbstractProxyManager",
                  "exact" : false,
                  "fileName" : "AbstractProxyManager.java",
                  "lineNumber" : 75,
                  "methodName" : "createDelegatingInterceptingProxy"
                }, {
                  "className" : "org.apache.aries.proxy.impl.AbstractProxyManager",
                  "exact" : false,
                  "fileName" : "AbstractProxyManager.java",
                  "lineNumber" : 40,
                  "methodName" : "createDelegatingProxy"
                }, {
                  "className" : "org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe",
                  "exact" : false,
                  "fileName" : "AbstractServiceReferenceRecipe.java",
                  "lineNumber" : 299,
                  "methodName" : "createProxy"
                }, {
                  "className" : "org.apache.aries.blueprint.container.ReferenceRecipe",
                  "exact" : false,
                  "fileName" : "ReferenceRecipe.java",
                  "lineNumber" : 100,
                  "methodName" : "internalCreate"
                } ]
              },
              "message" : "java.lang.NullPointerException",
              "name" : "org.osgi.service.blueprint.container.ComponentDefinitionException",
              "omittedElements" : 0,
              "stackTrace" : [ {
                "className" : "org.apache.aries.blueprint.container.ReferenceRecipe",
                "exact" : false,
                "fileName" : "ReferenceRecipe.java",
                "lineNumber" : 116,
                "methodName" : "internalCreate"
              }, {
                "className" : "org.apache.aries.blueprint.di.AbstractRecipe$1",
                "exact" : false,
                "fileName" : "AbstractRecipe.java",
                "lineNumber" : 79,
                "methodName" : "call"
              }, {
                "className" : "java.util.concurrent.FutureTask$Sync",
                "exact" : false,
                "fileName" : "FutureTask.java",
                "lineNumber" : 334,
                "methodName" : "innerRun"
              }, {
                "className" : "java.util.concurrent.FutureTask",
                "exact" : false,
                "fileName" : "FutureTask.java",
                "lineNumber" : 166,
                "methodName" : "run"
              }, {
                "className" : "org.apache.aries.blueprint.di.AbstractRecipe",
                "exact" : false,
                "fileName" : "AbstractRecipe.java",
                "lineNumber" : 88,
                "methodName" : "create"
              }, {
                "className" : "org.apache.aries.blueprint.container.BeanRecipe",
                "exact" : false,
                "fileName" : "BeanRecipe.java",
                "lineNumber" : 933,
                "methodName" : "setProperty"
              }, {
                "className" : "org.apache.aries.blueprint.container.BeanRecipe",
                "exact" : false,
                "fileName" : "BeanRecipe.java",
                "lineNumber" : 907,
                "methodName" : "setProperties"
              }, {
                "className" : "org.apache.aries.blueprint.container.BeanRecipe",
                "exact" : false,
                "fileName" : "BeanRecipe.java",
                "lineNumber" : 888,
                "methodName" : "setProperties"
              }, {
                "className" : "org.apache.aries.blueprint.container.BeanRecipe",
                "exact" : false,
                "fileName" : "BeanRecipe.java",
                "lineNumber" : 820,
                "methodName" : "internalCreate2"
              }, {
                "className" : "org.apache.aries.blueprint.container.BeanRecipe",
                "exact" : false,
                "fileName" : "BeanRecipe.java",
                "lineNumber" : 787,
                "methodName" : "internalCreate"
              }, {
                "className" : "org.apache.aries.blueprint.di.AbstractRecipe$1",
                "exact" : false,
                "fileName" : "AbstractRecipe.java",
                "lineNumber" : 79,
                "methodName" : "call"
              }, {
                "className" : "java.util.concurrent.FutureTask$Sync",
                "exact" : false,
                "fileName" : "FutureTask.java",
                "lineNumber" : 334,
                "methodName" : "innerRun"
              }, {
                "className" : "java.util.concurrent.FutureTask",
                "exact" : false,
                "fileName" : "FutureTask.java",
                "lineNumber" : 166,
                "methodName" : "run"
              }, {
                "className" : "org.apache.aries.blueprint.di.AbstractRecipe",
                "exact" : false,
                "fileName" : "AbstractRecipe.java",
                "lineNumber" : 88,
                "methodName" : "create"
              }, {
                "className" : "org.apache.aries.blueprint.container.BlueprintRepository",
                "exact" : false,
                "fileName" : "BlueprintRepository.java",
                "lineNumber" : 247,
                "methodName" : "createInstances"
              }, {
                "className" : "org.apache.aries.blueprint.container.BlueprintRepository",
                "exact" : false,
                "fileName" : "BlueprintRepository.java",
                "lineNumber" : 230,
                "methodName" : "createInstance"
              }, {
                "className" : "org.apache.aries.blueprint.container.BlueprintRepository",
                "exact" : false,
                "fileName" : "BlueprintRepository.java",
                "lineNumber" : 155,
                "methodName" : "create"
              }, {
                "className" : "org.apache.aries.blueprint.container.BlueprintContainerImpl",
                "exact" : false,
                "fileName" : "BlueprintContainerImpl.java",
                "lineNumber" : 534,
                "methodName" : "processProcessors"
              }, {
                "className" : "org.apache.aries.blueprint.container.BlueprintContainerImpl",
                "exact" : false,
                "fileName" : "BlueprintContainerImpl.java",
                "lineNumber" : 367,
                "methodName" : "doRun"
              }, {
                "className" : "org.apache.aries.blueprint.container.BlueprintContainerImpl",
                "exact" : false,
                "fileName" : "BlueprintContainerImpl.java",
                "lineNumber" : 272,
                "methodName" : "run"
              }, {
                "className" : "org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable",
                "exact" : false,
                "fileName" : "DiscardableRunnable.java",
                "lineNumber" : 48,
                "methodName" : "run"
              }, {
                "className" : "java.util.concurrent.Executors$RunnableAdapter",
                "exact" : false,
                "fileName" : "Executors.java",
                "lineNumber" : 471,
                "methodName" : "call"
              }, {
                "className" : "java.util.concurrent.FutureTask$Sync",
                "exact" : false,
                "fileName" : "FutureTask.java",
                "lineNumber" : 334,
                "methodName" : "innerRun"
              }, {
                "className" : "java.util.concurrent.FutureTask",
                "exact" : false,
                "fileName" : "FutureTask.java",
                "lineNumber" : 166,
                "methodName" : "run"
              }, {
                "className" : "java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask",
                "exact" : false,
                "fileName" : "ScheduledThreadPoolExecutor.java",
                "lineNumber" : 178,
                "methodName" : "access$201"
              }, {
                "className" : "java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask",
                "exact" : false,
                "fileName" : "ScheduledThreadPoolExecutor.java",
                "lineNumber" : 292,
                "methodName" : "run"
              }, {
                "className" : "java.util.concurrent.ThreadPoolExecutor",
                "exact" : false,
                "fileName" : "ThreadPoolExecutor.java",
                "lineNumber" : 1110,
                "methodName" : "runWorker"
              }, {
                "className" : "java.util.concurrent.ThreadPoolExecutor$Worker",
                "exact" : false,
                "fileName" : "ThreadPoolExecutor.java",
                "lineNumber" : 603,
                "methodName" : "run"
              }, {
                "className" : "java.lang.Thread",
                "exact" : false,
                "fileName" : "Thread.java",
                "lineNumber" : 722,
                "methodName" : "run"
              } ]
            },
            "callStack" : [ {
              "className" : "org.apache.aries.blueprint.container.BlueprintContainerImpl",
              "exact" : false,
              "fileName" : "BlueprintContainerImpl.java",
              "lineNumber" : 409,
              "methodName" : "doRun"
            } ],
            "mdc" : {
              "bundle.id" : "7",
              "bundle.version" : "1.0.1",
              "application" : "berbatik_dev",
              "bundle.name" : "org.apache.aries.blueprint.core"
            },
            "threadInfo" : {
              "name" : "Blueprint Extender: 1"
            },
            "loggerContext" : {
              "name" : "berbatik_dev"
            },
            "timeStamp" : 1360483362713
          }
          
          Show
          Hendy Irawan added a comment - Another exception, happened on exploded & symlinked bundle : { "level" : "ERROR" , "message" : { "messagePattern" : "Unable to start blueprint container for bundle berbatik_dev_commerce_model" }, "logger" : "org.apache.aries.blueprint.container.BlueprintContainerImpl" , "throwable" : { "cause" : { "name" : "java.lang.NullPointerException" , "omittedElements" : 28, "stackTrace" : [ { "className" : "org.apache.felix.framework.BundleWiringImpl" , "exact" : false , "fileName" : "BundleWiringImpl.java" , "lineNumber" : 1472, "methodName" : "findClassOrResourceByDelegation" }, { "className" : "org.apache.felix.framework.BundleWiringImpl" , "exact" : false , "fileName" : "BundleWiringImpl.java" , "lineNumber" : 75, "methodName" : "access$400" }, { "className" : "org.apache.felix.framework.BundleWiringImpl$BundleClassLoader" , "exact" : false , "fileName" : "BundleWiringImpl.java" , "lineNumber" : 1923, "methodName" : "loadClass" }, { "className" : "java.lang. ClassLoader " , "exact" : false , "fileName" : " ClassLoader .java" , "lineNumber" : 410, "methodName" : "loadClass" }, { "className" : "java.lang. ClassLoader " , "exact" : false , "fileName" : " ClassLoader .java" , "lineNumber" : 356, "methodName" : "loadClass" }, { "className" : "java.lang. Class " , "exact" : false , "lineNumber" : -2, "methodName" : "forName0" }, { "className" : "java.lang. Class " , "exact" : false , "fileName" : " Class .java" , "lineNumber" : 264, "methodName" : "forName" }, { "className" : "org.apache.aries.proxy.impl.interfaces.ProxyClassLoader" , "exact" : false , "fileName" : "ProxyClassLoader.java" , "lineNumber" : 109, "methodName" : "isInvalid" }, { "className" : "org.apache.aries.proxy.impl.interfaces.InterfaceProxyGenerator" , "exact" : false , "fileName" : "InterfaceProxyGenerator.java" , "lineNumber" : 84, "methodName" : "getProxyInstance" }, { "className" : "org.apache.aries.proxy.impl.AsmProxyManager" , "exact" : false , "fileName" : "AsmProxyManager.java" , "lineNumber" : 72, "methodName" : "createNewProxy" }, { "className" : "org.apache.aries.proxy.impl.AbstractProxyManager" , "exact" : false , "fileName" : "AbstractProxyManager.java" , "lineNumber" : 75, "methodName" : "createDelegatingInterceptingProxy" }, { "className" : "org.apache.aries.proxy.impl.AbstractProxyManager" , "exact" : false , "fileName" : "AbstractProxyManager.java" , "lineNumber" : 40, "methodName" : "createDelegatingProxy" }, { "className" : "org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe" , "exact" : false , "fileName" : "AbstractServiceReferenceRecipe.java" , "lineNumber" : 299, "methodName" : "createProxy" }, { "className" : "org.apache.aries.blueprint.container.ReferenceRecipe" , "exact" : false , "fileName" : "ReferenceRecipe.java" , "lineNumber" : 100, "methodName" : "internalCreate" } ] }, "message" : "java.lang.NullPointerException" , "name" : "org.osgi.service.blueprint.container.ComponentDefinitionException" , "omittedElements" : 0, "stackTrace" : [ { "className" : "org.apache.aries.blueprint.container.ReferenceRecipe" , "exact" : false , "fileName" : "ReferenceRecipe.java" , "lineNumber" : 116, "methodName" : "internalCreate" }, { "className" : "org.apache.aries.blueprint.di.AbstractRecipe$1" , "exact" : false , "fileName" : "AbstractRecipe.java" , "lineNumber" : 79, "methodName" : "call" }, { "className" : "java.util.concurrent.FutureTask$Sync" , "exact" : false , "fileName" : "FutureTask.java" , "lineNumber" : 334, "methodName" : "innerRun" }, { "className" : "java.util.concurrent.FutureTask" , "exact" : false , "fileName" : "FutureTask.java" , "lineNumber" : 166, "methodName" : "run" }, { "className" : "org.apache.aries.blueprint.di.AbstractRecipe" , "exact" : false , "fileName" : "AbstractRecipe.java" , "lineNumber" : 88, "methodName" : "create" }, { "className" : "org.apache.aries.blueprint.container.BeanRecipe" , "exact" : false , "fileName" : "BeanRecipe.java" , "lineNumber" : 933, "methodName" : "setProperty" }, { "className" : "org.apache.aries.blueprint.container.BeanRecipe" , "exact" : false , "fileName" : "BeanRecipe.java" , "lineNumber" : 907, "methodName" : "setProperties" }, { "className" : "org.apache.aries.blueprint.container.BeanRecipe" , "exact" : false , "fileName" : "BeanRecipe.java" , "lineNumber" : 888, "methodName" : "setProperties" }, { "className" : "org.apache.aries.blueprint.container.BeanRecipe" , "exact" : false , "fileName" : "BeanRecipe.java" , "lineNumber" : 820, "methodName" : "internalCreate2" }, { "className" : "org.apache.aries.blueprint.container.BeanRecipe" , "exact" : false , "fileName" : "BeanRecipe.java" , "lineNumber" : 787, "methodName" : "internalCreate" }, { "className" : "org.apache.aries.blueprint.di.AbstractRecipe$1" , "exact" : false , "fileName" : "AbstractRecipe.java" , "lineNumber" : 79, "methodName" : "call" }, { "className" : "java.util.concurrent.FutureTask$Sync" , "exact" : false , "fileName" : "FutureTask.java" , "lineNumber" : 334, "methodName" : "innerRun" }, { "className" : "java.util.concurrent.FutureTask" , "exact" : false , "fileName" : "FutureTask.java" , "lineNumber" : 166, "methodName" : "run" }, { "className" : "org.apache.aries.blueprint.di.AbstractRecipe" , "exact" : false , "fileName" : "AbstractRecipe.java" , "lineNumber" : 88, "methodName" : "create" }, { "className" : "org.apache.aries.blueprint.container.BlueprintRepository" , "exact" : false , "fileName" : "BlueprintRepository.java" , "lineNumber" : 247, "methodName" : "createInstances" }, { "className" : "org.apache.aries.blueprint.container.BlueprintRepository" , "exact" : false , "fileName" : "BlueprintRepository.java" , "lineNumber" : 230, "methodName" : "createInstance" }, { "className" : "org.apache.aries.blueprint.container.BlueprintRepository" , "exact" : false , "fileName" : "BlueprintRepository.java" , "lineNumber" : 155, "methodName" : "create" }, { "className" : "org.apache.aries.blueprint.container.BlueprintContainerImpl" , "exact" : false , "fileName" : "BlueprintContainerImpl.java" , "lineNumber" : 534, "methodName" : "processProcessors" }, { "className" : "org.apache.aries.blueprint.container.BlueprintContainerImpl" , "exact" : false , "fileName" : "BlueprintContainerImpl.java" , "lineNumber" : 367, "methodName" : "doRun" }, { "className" : "org.apache.aries.blueprint.container.BlueprintContainerImpl" , "exact" : false , "fileName" : "BlueprintContainerImpl.java" , "lineNumber" : 272, "methodName" : "run" }, { "className" : "org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable" , "exact" : false , "fileName" : "DiscardableRunnable.java" , "lineNumber" : 48, "methodName" : "run" }, { "className" : "java.util.concurrent.Executors$RunnableAdapter" , "exact" : false , "fileName" : "Executors.java" , "lineNumber" : 471, "methodName" : "call" }, { "className" : "java.util.concurrent.FutureTask$Sync" , "exact" : false , "fileName" : "FutureTask.java" , "lineNumber" : 334, "methodName" : "innerRun" }, { "className" : "java.util.concurrent.FutureTask" , "exact" : false , "fileName" : "FutureTask.java" , "lineNumber" : 166, "methodName" : "run" }, { "className" : "java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask" , "exact" : false , "fileName" : "ScheduledThreadPoolExecutor.java" , "lineNumber" : 178, "methodName" : "access$201" }, { "className" : "java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask" , "exact" : false , "fileName" : "ScheduledThreadPoolExecutor.java" , "lineNumber" : 292, "methodName" : "run" }, { "className" : "java.util.concurrent.ThreadPoolExecutor" , "exact" : false , "fileName" : "ThreadPoolExecutor.java" , "lineNumber" : 1110, "methodName" : "runWorker" }, { "className" : "java.util.concurrent.ThreadPoolExecutor$Worker" , "exact" : false , "fileName" : "ThreadPoolExecutor.java" , "lineNumber" : 603, "methodName" : "run" }, { "className" : "java.lang. Thread " , "exact" : false , "fileName" : " Thread .java" , "lineNumber" : 722, "methodName" : "run" } ] }, "callStack" : [ { "className" : "org.apache.aries.blueprint.container.BlueprintContainerImpl" , "exact" : false , "fileName" : "BlueprintContainerImpl.java" , "lineNumber" : 409, "methodName" : "doRun" } ], "mdc" : { "bundle.id" : "7" , "bundle.version" : "1.0.1" , "application" : "berbatik_dev" , "bundle.name" : "org.apache.aries.blueprint.core" }, "threadInfo" : { "name" : "Blueprint Extender: 1" }, "loggerContext" : { "name" : "berbatik_dev" }, "timeStamp" : 1360483362713 }
          Hide
          Hendy Irawan added a comment -

          Using org.apache.felix.framework-4.1.0-20130205.222907-15.jar, the bug still exists.

          HOWEVER, restarting the bundle now works to return the bundle Blueprint state from Failure state back to Created state !

          Show
          Hendy Irawan added a comment - Using org.apache.felix.framework-4.1.0-20130205.222907-15.jar, the bug still exists. HOWEVER, restarting the bundle now works to return the bundle Blueprint state from Failure state back to Created state !
          Hide
          Hendy Irawan added a comment - - edited

          Richard Hall's fix (https://issues.apache.org/jira/browse/FELIX-3242?focusedCommentId=13571524&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13571524) definitely helped.

          The #ARIES-954 bug still persists, HOWEVER:

          1. Using felix.framework 4.0.3, the bundle getting this exception will go into Failure state and this is practically irrecoverable, there are two options: A. uninstall then reinstall the bundle; B. restart Karaf

          2. Using org.apache.felix.framework-4.1.0-20130205.222907-15.jar, a simple "restart

          {bundle}

          " is now working to return the bundle back to Active-Created state!

          Progress!

          Show
          Hendy Irawan added a comment - - edited Richard Hall's fix ( https://issues.apache.org/jira/browse/FELIX-3242?focusedCommentId=13571524&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13571524 ) definitely helped. The # ARIES-954 bug still persists, HOWEVER: 1. Using felix.framework 4.0.3, the bundle getting this exception will go into Failure state and this is practically irrecoverable, there are two options: A. uninstall then reinstall the bundle; B. restart Karaf 2. Using org.apache.felix.framework-4.1.0-20130205.222907-15.jar, a simple "restart {bundle} " is now working to return the bundle back to Active-Created state! Progress!
          Hide
          Hendy Irawan added a comment -

          Spoke too soon. Now I'm not sure if felix 4.1.0-20130205.222907-15 made an effect. Error after restart/refresh bundle:

          {
            "level" : "ERROR",
            "message" : {
              "messagePattern" : "Unable to start blueprint container for bundle berbatik_dev_commerce_model"
            },
            "logger" : "org.apache.aries.blueprint.container.BlueprintContainerImpl",
            "throwable" : {
              "cause" : {
                "name" : "java.lang.NullPointerException",
                "omittedElements" : 0
              },
              "message" : "java.lang.NullPointerException",
              "name" : "org.osgi.service.blueprint.container.ComponentDefinitionException",
              "omittedElements" : 0,
              "stackTrace" : [ {
                "className" : "org.apache.aries.blueprint.container.ReferenceRecipe",
                "exact" : false,
                "fileName" : "ReferenceRecipe.java",
                "lineNumber" : 116,
                "methodName" : "internalCreate"
              }, {
                "className" : "org.apache.aries.blueprint.di.AbstractRecipe$1",
                "exact" : false,
                "fileName" : "AbstractRecipe.java",
                "lineNumber" : 79,
                "methodName" : "call"
              }, {
                "className" : "java.util.concurrent.FutureTask$Sync",
                "exact" : false,
                "fileName" : "FutureTask.java",
                "lineNumber" : 334,
                "methodName" : "innerRun"
              }, {
                "className" : "java.util.concurrent.FutureTask",
                "exact" : false,
                "fileName" : "FutureTask.java",
                "lineNumber" : 166,
                "methodName" : "run"
              }, {
                "className" : "org.apache.aries.blueprint.di.AbstractRecipe",
                "exact" : false,
                "fileName" : "AbstractRecipe.java",
                "lineNumber" : 88,
                "methodName" : "create"
              }, {
                "className" : "org.apache.aries.blueprint.container.BeanRecipe",
                "exact" : false,
                "fileName" : "BeanRecipe.java",
                "lineNumber" : 933,
                "methodName" : "setProperty"
              }, {
                "className" : "org.apache.aries.blueprint.container.BeanRecipe",
                "exact" : false,
                "fileName" : "BeanRecipe.java",
                "lineNumber" : 907,
                "methodName" : "setProperties"
              }, {
                "className" : "org.apache.aries.blueprint.container.BeanRecipe",
                "exact" : false,
                "fileName" : "BeanRecipe.java",
                "lineNumber" : 888,
                "methodName" : "setProperties"
              }, {
                "className" : "org.apache.aries.blueprint.container.BeanRecipe",
                "exact" : false,
                "fileName" : "BeanRecipe.java",
                "lineNumber" : 820,
                "methodName" : "internalCreate2"
              }, {
                "className" : "org.apache.aries.blueprint.container.BeanRecipe",
                "exact" : false,
                "fileName" : "BeanRecipe.java",
                "lineNumber" : 787,
                "methodName" : "internalCreate"
              }, {
                "className" : "org.apache.aries.blueprint.di.AbstractRecipe$1",
                "exact" : false,
                "fileName" : "AbstractRecipe.java",
                "lineNumber" : 79,
                "methodName" : "call"
              }, {
                "className" : "java.util.concurrent.FutureTask$Sync",
                "exact" : false,
                "fileName" : "FutureTask.java",
                "lineNumber" : 334,
                "methodName" : "innerRun"
              }, {
                "className" : "java.util.concurrent.FutureTask",
                "exact" : false,
                "fileName" : "FutureTask.java",
                "lineNumber" : 166,
                "methodName" : "run"
              }, {
                "className" : "org.apache.aries.blueprint.di.AbstractRecipe",
                "exact" : false,
                "fileName" : "AbstractRecipe.java",
                "lineNumber" : 88,
                "methodName" : "create"
              }, {
                "className" : "org.apache.aries.blueprint.container.BlueprintRepository",
                "exact" : false,
                "fileName" : "BlueprintRepository.java",
                "lineNumber" : 247,
                "methodName" : "createInstances"
              }, {
                "className" : "org.apache.aries.blueprint.container.BlueprintRepository",
                "exact" : false,
                "fileName" : "BlueprintRepository.java",
                "lineNumber" : 230,
                "methodName" : "createInstance"
              }, {
                "className" : "org.apache.aries.blueprint.container.BlueprintRepository",
                "exact" : false,
                "fileName" : "BlueprintRepository.java",
                "lineNumber" : 155,
                "methodName" : "create"
              }, {
                "className" : "org.apache.aries.blueprint.container.BlueprintContainerImpl",
                "exact" : false,
                "fileName" : "BlueprintContainerImpl.java",
                "lineNumber" : 534,
                "methodName" : "processProcessors"
              }, {
                "className" : "org.apache.aries.blueprint.container.BlueprintContainerImpl",
                "exact" : false,
                "fileName" : "BlueprintContainerImpl.java",
                "lineNumber" : 367,
                "methodName" : "doRun"
              }, {
                "className" : "org.apache.aries.blueprint.container.BlueprintContainerImpl",
                "exact" : false,
                "fileName" : "BlueprintContainerImpl.java",
                "lineNumber" : 272,
                "methodName" : "run"
              }, {
                "className" : "org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable",
                "exact" : false,
                "fileName" : "DiscardableRunnable.java",
                "lineNumber" : 48,
                "methodName" : "run"
              }, {
                "className" : "java.util.concurrent.Executors$RunnableAdapter",
                "exact" : false,
                "fileName" : "Executors.java",
                "lineNumber" : 471,
                "methodName" : "call"
              }, {
                "className" : "java.util.concurrent.FutureTask$Sync",
                "exact" : false,
                "fileName" : "FutureTask.java",
                "lineNumber" : 334,
                "methodName" : "innerRun"
              }, {
                "className" : "java.util.concurrent.FutureTask",
                "exact" : false,
                "fileName" : "FutureTask.java",
                "lineNumber" : 166,
                "methodName" : "run"
              }, {
                "className" : "java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask",
                "exact" : false,
                "fileName" : "ScheduledThreadPoolExecutor.java",
                "lineNumber" : 178,
                "methodName" : "access$201"
              }, {
                "className" : "java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask",
                "exact" : false,
                "fileName" : "ScheduledThreadPoolExecutor.java",
                "lineNumber" : 292,
                "methodName" : "run"
              }, {
                "className" : "java.util.concurrent.ThreadPoolExecutor",
                "exact" : false,
                "fileName" : "ThreadPoolExecutor.java",
                "lineNumber" : 1110,
                "methodName" : "runWorker"
              }, {
                "className" : "java.util.concurrent.ThreadPoolExecutor$Worker",
                "exact" : false,
                "fileName" : "ThreadPoolExecutor.java",
                "lineNumber" : 603,
                "methodName" : "run"
              }, {
                "className" : "java.lang.Thread",
                "exact" : false,
                "fileName" : "Thread.java",
                "lineNumber" : 722,
                "methodName" : "run"
              } ]
            },
            "callStack" : [ {
              "className" : "org.apache.aries.blueprint.container.BlueprintContainerImpl",
              "exact" : false,
              "fileName" : "BlueprintContainerImpl.java",
              "lineNumber" : 409,
              "methodName" : "doRun"
            } ],
            "mdc" : {
              "bundle.id" : "7",
              "bundle.version" : "1.0.1",
              "application" : "berbatik_dev",
              "bundle.name" : "org.apache.aries.blueprint.core"
            },
            "threadInfo" : {
              "name" : "Blueprint Extender: 3"
            },
            "loggerContext" : {
              "name" : "berbatik_dev"
            },
            "timeStamp" : 1360493985973
          }
          
          Show
          Hendy Irawan added a comment - Spoke too soon. Now I'm not sure if felix 4.1.0-20130205.222907-15 made an effect. Error after restart/refresh bundle: { "level" : "ERROR" , "message" : { "messagePattern" : "Unable to start blueprint container for bundle berbatik_dev_commerce_model" }, "logger" : "org.apache.aries.blueprint.container.BlueprintContainerImpl" , "throwable" : { "cause" : { "name" : "java.lang.NullPointerException" , "omittedElements" : 0 }, "message" : "java.lang.NullPointerException" , "name" : "org.osgi.service.blueprint.container.ComponentDefinitionException" , "omittedElements" : 0, "stackTrace" : [ { "className" : "org.apache.aries.blueprint.container.ReferenceRecipe" , "exact" : false , "fileName" : "ReferenceRecipe.java" , "lineNumber" : 116, "methodName" : "internalCreate" }, { "className" : "org.apache.aries.blueprint.di.AbstractRecipe$1" , "exact" : false , "fileName" : "AbstractRecipe.java" , "lineNumber" : 79, "methodName" : "call" }, { "className" : "java.util.concurrent.FutureTask$Sync" , "exact" : false , "fileName" : "FutureTask.java" , "lineNumber" : 334, "methodName" : "innerRun" }, { "className" : "java.util.concurrent.FutureTask" , "exact" : false , "fileName" : "FutureTask.java" , "lineNumber" : 166, "methodName" : "run" }, { "className" : "org.apache.aries.blueprint.di.AbstractRecipe" , "exact" : false , "fileName" : "AbstractRecipe.java" , "lineNumber" : 88, "methodName" : "create" }, { "className" : "org.apache.aries.blueprint.container.BeanRecipe" , "exact" : false , "fileName" : "BeanRecipe.java" , "lineNumber" : 933, "methodName" : "setProperty" }, { "className" : "org.apache.aries.blueprint.container.BeanRecipe" , "exact" : false , "fileName" : "BeanRecipe.java" , "lineNumber" : 907, "methodName" : "setProperties" }, { "className" : "org.apache.aries.blueprint.container.BeanRecipe" , "exact" : false , "fileName" : "BeanRecipe.java" , "lineNumber" : 888, "methodName" : "setProperties" }, { "className" : "org.apache.aries.blueprint.container.BeanRecipe" , "exact" : false , "fileName" : "BeanRecipe.java" , "lineNumber" : 820, "methodName" : "internalCreate2" }, { "className" : "org.apache.aries.blueprint.container.BeanRecipe" , "exact" : false , "fileName" : "BeanRecipe.java" , "lineNumber" : 787, "methodName" : "internalCreate" }, { "className" : "org.apache.aries.blueprint.di.AbstractRecipe$1" , "exact" : false , "fileName" : "AbstractRecipe.java" , "lineNumber" : 79, "methodName" : "call" }, { "className" : "java.util.concurrent.FutureTask$Sync" , "exact" : false , "fileName" : "FutureTask.java" , "lineNumber" : 334, "methodName" : "innerRun" }, { "className" : "java.util.concurrent.FutureTask" , "exact" : false , "fileName" : "FutureTask.java" , "lineNumber" : 166, "methodName" : "run" }, { "className" : "org.apache.aries.blueprint.di.AbstractRecipe" , "exact" : false , "fileName" : "AbstractRecipe.java" , "lineNumber" : 88, "methodName" : "create" }, { "className" : "org.apache.aries.blueprint.container.BlueprintRepository" , "exact" : false , "fileName" : "BlueprintRepository.java" , "lineNumber" : 247, "methodName" : "createInstances" }, { "className" : "org.apache.aries.blueprint.container.BlueprintRepository" , "exact" : false , "fileName" : "BlueprintRepository.java" , "lineNumber" : 230, "methodName" : "createInstance" }, { "className" : "org.apache.aries.blueprint.container.BlueprintRepository" , "exact" : false , "fileName" : "BlueprintRepository.java" , "lineNumber" : 155, "methodName" : "create" }, { "className" : "org.apache.aries.blueprint.container.BlueprintContainerImpl" , "exact" : false , "fileName" : "BlueprintContainerImpl.java" , "lineNumber" : 534, "methodName" : "processProcessors" }, { "className" : "org.apache.aries.blueprint.container.BlueprintContainerImpl" , "exact" : false , "fileName" : "BlueprintContainerImpl.java" , "lineNumber" : 367, "methodName" : "doRun" }, { "className" : "org.apache.aries.blueprint.container.BlueprintContainerImpl" , "exact" : false , "fileName" : "BlueprintContainerImpl.java" , "lineNumber" : 272, "methodName" : "run" }, { "className" : "org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable" , "exact" : false , "fileName" : "DiscardableRunnable.java" , "lineNumber" : 48, "methodName" : "run" }, { "className" : "java.util.concurrent.Executors$RunnableAdapter" , "exact" : false , "fileName" : "Executors.java" , "lineNumber" : 471, "methodName" : "call" }, { "className" : "java.util.concurrent.FutureTask$Sync" , "exact" : false , "fileName" : "FutureTask.java" , "lineNumber" : 334, "methodName" : "innerRun" }, { "className" : "java.util.concurrent.FutureTask" , "exact" : false , "fileName" : "FutureTask.java" , "lineNumber" : 166, "methodName" : "run" }, { "className" : "java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask" , "exact" : false , "fileName" : "ScheduledThreadPoolExecutor.java" , "lineNumber" : 178, "methodName" : "access$201" }, { "className" : "java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask" , "exact" : false , "fileName" : "ScheduledThreadPoolExecutor.java" , "lineNumber" : 292, "methodName" : "run" }, { "className" : "java.util.concurrent.ThreadPoolExecutor" , "exact" : false , "fileName" : "ThreadPoolExecutor.java" , "lineNumber" : 1110, "methodName" : "runWorker" }, { "className" : "java.util.concurrent.ThreadPoolExecutor$Worker" , "exact" : false , "fileName" : "ThreadPoolExecutor.java" , "lineNumber" : 603, "methodName" : "run" }, { "className" : "java.lang. Thread " , "exact" : false , "fileName" : " Thread .java" , "lineNumber" : 722, "methodName" : "run" } ] }, "callStack" : [ { "className" : "org.apache.aries.blueprint.container.BlueprintContainerImpl" , "exact" : false , "fileName" : "BlueprintContainerImpl.java" , "lineNumber" : 409, "methodName" : "doRun" } ], "mdc" : { "bundle.id" : "7" , "bundle.version" : "1.0.1" , "application" : "berbatik_dev" , "bundle.name" : "org.apache.aries.blueprint.core" }, "threadInfo" : { "name" : "Blueprint Extender: 3" }, "loggerContext" : { "name" : "berbatik_dev" }, "timeStamp" : 1360493985973 }

            People

            • Assignee:
              Unassigned
              Reporter:
              Hendy Irawan
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Development