3 Replies Latest reply: May 25, 2012 4:54 AM by Thomas Diesler RSS

Error undeploy OSGI bundle: NullPointerException

Sam Z Newbie

I'm new to JBoss OSGI. I tried with Hello World example on JBoss AS 7.1.1 and got NullPointerException when undeploy the bundle. Did I miss something?

 

[helloworld-osgi]$ mvn package jboss-as:deploy

...

14:10:22,846 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-2) Install bundle: jboss-as-helloworld-osgi:7.1.1.SNAPSHOT

14:10:22,862 INFO  [stdout] (MSC service thread 1-2) Hello AS7 World!!

14:10:22,865 INFO  [org.jboss.osgi.framework.internal.HostBundleState] (MSC service thread 1-2) Bundle started: jboss-as-helloworld-osgi:7.1.1.SNAPSHOT

14:10:22,902 INFO  [org.jboss.as.server] (management-handler-thread - 2) JBAS018559: Deployed "jboss-as-helloworld-osgi-7.1.1-SNAPSHOT.jar"

 

[helloworld-osgi]$ mvn jboss-as:undeploy

...

14:10:40,751 INFO  [stdout] (MSC service thread 1-3) Bye AS7 World!!

14:10:40,751 INFO  [org.jboss.osgi.framework.internal.HostBundleState] (MSC service thread 1-3) Bundle stopped: jboss-as-helloworld-osgi:7.1.1.SNAPSHOT

14:10:40,756 ERROR [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015892: Deployment unit processor org.jboss.as.jpa.processor.PersistenceProviderProcessor@b91881 unexpectedly threw an exception during undeploy phase INSTALL of deployment "jboss-as-helloworld-osgi-7.1.1-SNAPSHOT.jar": java.lang.NullPointerException

        at org.jboss.as.jpa.processor.PersistenceProviderProcessor.allDeploymentModuleClassLoaders(PersistenceProviderProcessor.java:138)

        at org.jboss.as.jpa.processor.PersistenceProviderProcessor.undeploy(PersistenceProviderProcessor.java:122)

        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.safeUndeploy(DeploymentUnitPhaseService.java:167) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.stop(DeploymentUnitPhaseService.java:161) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

        at org.jboss.msc.service.ServiceControllerImpl$StopTask.stopService(ServiceControllerImpl.java:1911) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

        at org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:1874) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_16]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_16]

        at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_16]

 

14:10:40,765 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment jboss-as-helloworld-osgi-7.1.1-SNAPSHOT.jar in 16ms

14:10:40,781 INFO  [org.jboss.as.repository] (management-handler-thread - 3) JBAS014901: Content removed from location /home/sshi/tools/jboss/jboss-as-7.1.1.Final/standalone/data/content/f5/86202516b776c63a55c4302dfd9183d35e5018/content

14:10:40,782 INFO  [org.jboss.as.server] (management-handler-thread - 3) JBAS018558: Undeployed "jboss-as-helloworld-osgi-7.1.1-SNAPSHOT.jar"