Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-6247

Avoid verbose stacktrace when stopping camel:run for illegal state during pojosr shutdown

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.10.5, 2.11.0
    • tooling
    • None
    • Unknown

    Description

      We should avoid ugly stacktraces for osgi blueprint shutdown which we dont care about

      [                      Thread-1] CamelBlueprintHelper           WARN  Error during disposing BundleContext. This exception will be ignored.
      org.osgi.framework.BundleException: Error while stopping bundle
      	at de.kalpatec.pojosr.framework.PojoSRBundle.stop(PojoSRBundle.java:176)
      	at org.apache.camel.test.blueprint.CamelBlueprintHelper.disposeBundleContext(CamelBlueprintHelper.java:146)
      	at org.apache.camel.test.blueprint.Main.doStop(Main.java:101)
      	at org.apache.camel.support.ServiceSupport.stop(ServiceSupport.java:91)
      	at org.apache.camel.main.MainSupport$HangupInterceptor.run(MainSupport.java:81)
      Caused by: java.lang.IllegalStateException: Service already unregistered.
      	at de.kalpatec.pojosr.framework.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:118)
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker.close(BundleHookBundleTracker.java:88)
      	at org.apache.aries.util.tracker.RecursiveBundleTracker.close(RecursiveBundleTracker.java:106)
      	at org.apache.aries.blueprint.container.BlueprintExtender.stop(BlueprintExtender.java:166)
      	at de.kalpatec.pojosr.framework.PojoSRBundle.stop(PojoSRBundle.java:171)
      	... 4 more
      

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: