Uploaded image for project: 'Fuse Tooling'
  1. Fuse Tooling
  2. FUSETOOLS-2827

NPE in KarafBundleMBeanPublishBehaviour.java:188 if a bundle is in "failure" state

    XMLWordPrintable

    Details

    • Steps to Reproduce:
      • publish a project with an empty manifest.mf to Jboss Fuse Karaf
      • try to deploy another one from add/remove artifacts

      Description

      in case a bundle is in "Failure" state, the bundle name migth be null

      !ENTRY org.fusesource.ide.server.karaf.core 4 4 2018-02-19 14:23:06.364
      !MESSAGE 
      !STACK 0
      java.lang.NullPointerException
      	at org.fusesource.ide.server.karaf.core.publish.jmx.KarafBundleMBeanPublishBehaviour.getBundleSymbolicName(KarafBundleMBeanPublishBehaviour.java:188)
      	at org.fusesource.ide.server.karaf.core.publish.jmx.KarafBundleMBeanPublishBehaviour.getBundleId(KarafBundleMBeanPublishBehaviour.java:69)
      	at org.fusesource.ide.server.karaf.core.publish.jmx.KarafBundleMBeanPublishBehaviour.getBundleId(KarafBundleMBeanPublishBehaviour.java:52)
      	at org.fusesource.ide.server.karaf.core.publish.jmx.KarafJMXPublisher.publish(KarafJMXPublisher.java:121)
      	at org.fusesource.ide.server.karaf.core.server.subsystems.Karaf2xPublishController.transferBuiltModule(Karaf2xPublishController.java:206)
      	at org.fusesource.ide.server.karaf.core.server.subsystems.Karaf2xPublishController.handleZippedPublish(Karaf2xPublishController.java:147)
      	at org.fusesource.ide.server.karaf.core.server.subsystems.Karaf2xPublishController.publishModule(Karaf2xPublishController.java:131)
      	at org.jboss.ide.eclipse.as.wtp.core.server.behavior.ControllableServerBehavior.publishModule(ControllableServerBehavior.java:143)
      	at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:1091)
      	at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:1183)
      	at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:987)
      	at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:774)
      	at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:3182)
      	at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:355)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                aurelien.pupier Aurélien Pupier
                Reporter:
                aurelien.pupier Aurélien Pupier
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: