[ 
https://issues.apache.org/jira/browse/CAMEL-6247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-6247.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.10.5
    
> Avoid verbose stacktrace when stopping camel:run for illegal state during 
> pojosr shutdown
> -----------------------------------------------------------------------------------------
>
>                 Key: CAMEL-6247
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6247
>             Project: Camel
>          Issue Type: Improvement
>          Components: tooling
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.10.5, 2.11.0
>
>
> We should avoid ugly stacktraces for osgi blueprint shutdown which we dont 
> care about
> {code}
> [                      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
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to