Claus Ibsen created CAMEL-9923:
----------------------------------

             Summary: camel-blueprint - Should not use online xsd for parsing
                 Key: CAMEL-9923
                 URL: https://issues.apache.org/jira/browse/CAMEL-9923
             Project: Camel
          Issue Type: Improvement
          Components: camel-blueprint
    Affects Versions: 2.18.0
            Reporter: Claus Ibsen
            Assignee: Grzegorz Grzybek
             Fix For: Future


The parser should resolve the xsd from the camel-blueprint JAR bundle instead 
of online access.

You can see WARNs like these on Camel 2.17.0 installation on karaf 4.0.4
{code}
2016-04-28 11:38:40,935 | ERROR | FelixStartLevel  | BlueprintContainerImpl     
      | 13 - org.apache.aries.blueprint.core - 1.5.0 | Unable to start 
blueprint container for bundle mycamel.xml/0.0.0
org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to 
validate xml
        at 
org.apache.aries.blueprint.parser.Parser.validate(Parser.java:349)[13:org.apache.aries.blueprint.core:1.5.0]
        at 
org.apache.aries.blueprint.parser.Parser.validate(Parser.java:336)[13:org.apache.aries.blueprint.core:1.5.0]
        at 
org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:336)[13:org.apache.aries.blueprint.core:1.5.0]
        at 
org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:273)[13:org.apache.aries.blueprint.core:1.5.0]
        at 
org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:294)[13:org.apache.aries.blueprint.core:1.5.0]
        at 
org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:263)[13:org.apache.aries.blueprint.core:1.5.0]
        at 
org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:253)[13:org.apache.aries.blueprint.core:1.5.0]
        at 
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)[22:org.apache.aries.util:1.1.1]
        at 
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)[22:org.apache.aries.util:1.1.1]
        at 
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)[22:org.apache.aries.util:1.1.1]
        at 
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)[22:org.apache.aries.util:1.1.1]
        at 
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)[22:org.apache.aries.util:1.1.1]
        at 
org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1179)[org.apache.felix.framework-5.4.0.jar:]
        at 
org.apache.felix.framework.util.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:731)[org.apache.felix.framework-5.4.0.jar:]
        at 
org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:486)[org.apache.felix.framework-5.4.0.jar:]
        at 
org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4541)[org.apache.felix.framework-5.4.0.jar:]
        at 
org.apache.felix.framework.Felix.startBundle(Felix.java:2172)[org.apache.felix.framework-5.4.0.jar:]
        at 
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371)[org.apache.felix.framework-5.4.0.jar:]
        at 
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)[org.apache.felix.framework-5.4.0.jar:]
        at java.lang.Thread.run(Thread.java:745)[:1.8.0_31]
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid 
content was found starting with element 'hystrix'. One of 
'{"http://camel.apache.org/schema/blueprint":from, 
"http://camel.apache.org/schema/blueprint":onException, 
"http://camel.apache.org/schema/blueprint":when, 
"http://camel.apache.org/schema/blueprint":onCompletion, 
"http://camel.apache.org/schema/blueprint":intercept, 
"http://camel.apache.org/schema/blueprint":interceptFrom, 
"http://camel.apache.org/schema/blueprint":interceptSendToEndpoint, 
"http://camel.apache.org/schema/blueprint":to, 
"http://camel.apache.org/schema/blueprint":toD, 
"http://camel.apache.org/schema/blueprint":route, 
"http://camel.apache.org/schema/blueprint":aop, 
"http://camel.apache.org/schema/blueprint":aggregate, 
"http://camel.apache.org/schema/blueprint":bean, 
"http://camel.apache.org/schema/blueprint":doCatch, 
"http://camel.apache.org/schema/blueprint":choice, 
"http://camel.apache.org/schema/blueprint":otherwise, 
"http://camel.apache.org/schema/blueprint":convertBodyTo, 
"http://camel.apache.org/schema/blueprint":delay, 
"http://camel.apache.org/schema/blueprint":dynamicRouter, 
"http://camel.apache.org/schema/blueprint":enrich, 
"http://camel.apache.org/schema/blueprint":filter, 
"http://camel.apache.org/schema/blueprint":doFinally, 
"http://camel.apache.org/schema/blueprint":idempotentConsumer, 
"http://camel.apache.org/schema/blueprint":inOnly, 
"http://camel.apache.org/schema/blueprint":inOut, 
"http://camel.apache.org/schema/blueprint":loadBalance, 
"http://camel.apache.org/schema/blueprint":log, 
"http://camel.apache.org/schema/blueprint":loop, 
"http://camel.apache.org/schema/blueprint":marshal, 
"http://camel.apache.org/schema/blueprint":multicast, 
"http://camel.apache.org/schema/blueprint":pipeline, 
"http://camel.apache.org/schema/blueprint":policy, 
"http://camel.apache.org/schema/blueprint":pollEnrich, 
"http://camel.apache.org/schema/blueprint":process, 
"http://camel.apache.org/schema/blueprint":recipientList, 
"http://camel.apache.org/schema/blueprint":removeHeader, 
"http://camel.apache.org/schema/blueprint":removeHeaders, 
"http://camel.apache.org/schema/blueprint":removeProperties, 
"http://camel.apache.org/schema/blueprint":removeProperty, 
"http://camel.apache.org/schema/blueprint":resequence, 
"http://camel.apache.org/schema/blueprint":rollback, 
"http://camel.apache.org/schema/blueprint":routingSlip, 
"http://camel.apache.org/schema/blueprint":sample, 
"http://camel.apache.org/schema/blueprint":script, 
"http://camel.apache.org/schema/blueprint":setBody, 
"http://camel.apache.org/schema/blueprint":setExchangePattern, 
"http://camel.apache.org/schema/blueprint":setFaultBody, 
"http://camel.apache.org/schema/blueprint":setHeader, 
"http://camel.apache.org/schema/blueprint":setOutHeader, 
"http://camel.apache.org/schema/blueprint":setProperty, 
"http://camel.apache.org/schema/blueprint":sort, 
"http://camel.apache.org/schema/blueprint":split, 
"http://camel.apache.org/schema/blueprint":stop, 
"http://camel.apache.org/schema/blueprint":threads, 
"http://camel.apache.org/schema/blueprint":throttle, 
"http://camel.apache.org/schema/blueprint":throwException, 
"http://camel.apache.org/schema/blueprint":transacted, 
"http://camel.apache.org/schema/blueprint":transform, 
"http://camel.apache.org/schema/blueprint":doTry, 
"http://camel.apache.org/schema/blueprint":unmarshal, 
"http://camel.apache.org/schema/blueprint":validate, 
"http://camel.apache.org/schema/blueprint":whenSkipSendToEndpoint, 
"http://camel.apache.org/schema/blueprint":wireTap, 
"http://camel.apache.org/schema/blueprint":restBinding}' is expected.
        at 
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown 
Source)[:]
        at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)[:]
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
Source)[:]
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
Source)[:]
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
Source)[:]
        at 
org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown
 Source)[:]
        at 
org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown 
Source)[:]
        at 
org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown 
Source)[:]
        at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown 
Source)[:]
        at 
org.apache.xerces.jaxp.validation.DOMValidatorHelper.beginNode(Unknown 
Source)[:]
        at 
org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown Source)[:]
        at 
org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown Source)[:]
        at org.apache.xerces.jaxp.validation.ValidatorImpl.validate(Unknown 
Source)[:]
        at javax.xml.validation.Validator.validate(Unknown Source)[:2.5.0]
        at 
org.apache.aries.blueprint.parser.Parser.validate(Parser.java:346)[13:org.apache.aries.blueprint.core:1.5.0]
        ... 19 more
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to