Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-6729

Blueprint Container Not Reporting Deployment Errors After Rollup Applied

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jboss-fuse-6.2.1, jboss-fuse-6.3
    • None
    • None
    • % %
    • Hide

      Blueprint attached. Start up Fuse container and drop blueprint into deploy directory. Before the rollup, an exception is observed. After the rollup, the bundle quietly fails.

      Show
      Blueprint attached. Start up Fuse container and drop blueprint into deploy directory. Before the rollup, an exception is observed. After the rollup, the bundle quietly fails.

      Previous to the referenced rollup, Fuse would report blueprint deployment issues like unresolved endpoint parameters and throw an exception on deployment:

      2017-04-08 18:26:37,204 | ERROR | edhat-084/deploy | BlueprintCamelContext            | 204 - org.apache.camel.camel-blueprint - 2.15.1.redhat-621084 | Error occurred during starting Camel: CamelContext(wsrr.context) due Failed to create route timer: Route(timer)[[From[timer:wsrr?period=5000&delay=0&repeatCoun... because of Failed to resolve endpoint: timer://wsrr?abc=true&delay=0&period=5000&repeatCount=5 due to: Failed to resolve endpoint: timer://wsrr?abc=true&delay=0&period=5000&repeatCount=5 due to: There are 1 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[{abc=true}]
      org.apache.camel.FailedToCreateRouteException: Failed to create route timer: Route(timer)[[From[timer:wsrr?period=5000&delay=0&repeatCoun... because of Failed to resolve endpoint: timer://wsrr?abc=true&delay=0&period=5000&repeatCount=5 due to: Failed to resolve endpoint: timer://wsrr?abc=true&delay=0&period=5000&repeatCount=5 due to: There are 1 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[{abc=true}]
      	at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:190)
      	at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:841)[198:org.apache.camel.camel-core:2.15.1.redhat-621084]
      	at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:2895)[198:org.apache.camel.camel-core:2.15.1.redhat-621084]
      	at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:2618)[198:org.apache.camel.camel-core:2.15.1.redhat-621084]
      	at org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:167)[198:org.apache.camel.camel-core:2.15.1.redhat-621084]
      	at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2467)
      	at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2463)
      	at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:2486)[198:org.apache.camel.camel-core:2.15.1.redhat-621084]
      	at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:2463)[198:org.apache.camel.camel-core:2.15.1.redhat-621084]
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      	at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:2432)[198:org.apache.camel.camel-core:2.15.1.redhat-621084]
      	at org.apache.camel.blueprint.BlueprintCamelContext.start(BlueprintCamelContext.java:180)
      	at org.apache.camel.blueprint.BlueprintCamelContext.maybeStart(BlueprintCamelContext.java:212)
      	at org.apache.camel.blueprint.BlueprintCamelContext.serviceChanged(BlueprintCamelContext.java:150)
      	at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:943)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:794)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:544)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4445)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.Felix.registerService(Felix.java:3431)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
      	at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:353)
      	at org.apache.camel.blueprint.BlueprintCamelContext.init(BlueprintCamelContext.java:100)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_121]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_121]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_121]
      	at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_121]
      	at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:299)[23:org.apache.aries.blueprint.core:1.4.4]
      	at org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:956)[23:org.apache.aries.blueprint.core:1.4.4]
      	at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:712)[23:org.apache.aries.blueprint.core:1.4.4]
      	at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:824)[23:org.apache.aries.blueprint.core:1.4.4]
      	at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:787)[23:org.apache.aries.blueprint.core:1.4.4]
      	at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)[23:org.apache.aries.blueprint.core:1.4.4]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_121]
      	at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)[23:org.apache.aries.blueprint.core:1.4.4]
      	at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:247)[23:org.apache.aries.blueprint.core:1.4.4]
      	at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:183)[23:org.apache.aries.blueprint.core:1.4.4]
      	at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:682)[23:org.apache.aries.blueprint.core:1.4.4]
      	at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:377)[23:org.apache.aries.blueprint.core:1.4.4]
      	at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:269)[23:org.apache.aries.blueprint.core:1.4.4]
      	at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:294)[23:org.apache.aries.blueprint.core:1.4.4]
      	at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:263)[23:org.apache.aries.blueprint.core:1.4.4]
      	at org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:253)[23:org.apache.aries.blueprint.core:1.4.4]
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)[17:org.apache.aries.util:1.1.0]
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)[17:org.apache.aries.util:1.1.0]
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)[17:org.apache.aries.util:1.1.0]
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)[17:org.apache.aries.util:1.1.0]
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)[17:org.apache.aries.util:1.1.0]
      	at org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1127)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.util.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:696)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:484)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4429)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.Felix.startBundle(Felix.java:2100)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:976)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1245)[9:org.apache.felix.fileinstall:3.5.0]
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1217)[9:org.apache.felix.fileinstall:3.5.0]
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:509)[9:org.apache.felix.fileinstall:3.5.0]
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:358)[9:org.apache.felix.fileinstall:3.5.0]
      	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:310)[9:org.apache.felix.fileinstall:3.5.0]
      Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: timer://wsrr?abc=true&delay=0&period=5000&repeatCount=5 due to: Failed to resolve endpoint: timer://wsrr?abc=true&delay=0&period=5000&repeatCount=5 due to: There are 1 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[{abc=true}]
      	at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:578)[198:org.apache.camel.camel-core:2.15.1.redhat-621084]
      	at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:79)
      	at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:200)
      	at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:107)
      	at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:113)
      	at org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:70)
      	at org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:89)
      	at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1008)
      	at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:185)
      	... 57 more
      Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: timer://wsrr?abc=true&delay=0&period=5000&repeatCount=5 due to: There are 1 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[{abc=true}]
      	at org.apache.camel.impl.DefaultComponent.validateParameters(DefaultComponent.java:183)
      	at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:128)
      	at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:558)[198:org.apache.camel.camel-core:2.15.1.redhat-621084]
      	... 65 more
      

      After applying Rollup 6 on Fuse 6.2.1 or Rollup 2 on Fuse 6.3, errors are not reported, but the blueprint bundle goes into a created, rather than active state.

            pantinor@redhat.com Paolo Antinori
            rhn-support-dhawkins Duane Hawkins
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: