EDI Exception

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

EDI Exception

Ted Lum
I have a custom reader, derived from the EDIParser and implements
SmooksXMLReader. However, when it reads the configuration in the camel
route it can't parse the configuration because it can't find the
definition. Tis is really just a copy of the smooks EDIParser, yet that
works without issue. THis seems to eb a classpath issue, but I have yet
to track it down. Any help would be appreciated.


Exception in thread "SpringOsgiExtenderThread-34"
org.apache.camel.RuntimeCamelException:
org.apache.camel.FailedToCreateRouteException: Failed to create route
route17 at: >>> To[smooks:///META-INF/smooks/smooks-config.xml] <<< in
route: Route(route17)[[From[wmq:queue:CBP.ABI.IN]] -> [To[smooks://...
because of Failed to resolve endpoint:
smooks:///META-INF/smooks/smooks-config.xml due to: Failed to locate XSD
resource '/META-INF/schema/cbpedi-message-mapping-1.0.xsd' on classpath.
Namespace: 'http://www.mydomain.com/schema/cbpedi-message-mapping-1.0.xsd'.
         at
org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1363)
         at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:120)
         at
org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:303)
         at
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:96)
         at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:334)
         at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:948)
         at
org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)
         at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)
         at
org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
         at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
         at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)
         at java.lang.Thread.run(Thread.java:744)
Caused by: org.apache.camel.FailedToCreateRouteException: Failed to
create route route17 at: >>>
To[smooks:///META-INF/smooks/smooks-config.xml] <<< in route:
Route(route17)[[From[wmq:queue:CBP.ABI.IN]] -> [To[smooks://... because
of Failed to resolve endpoint:
smooks:///META-INF/smooks/smooks-config.xml due to: Failed to locate XSD
resource '/META-INF/schema/cbpedi-message-mapping-1.0.xsd' on classpath.
Namespace: 'http://www.mydomain.com/schema/cbpedi-message-mapping-1.0.xsd'.
         at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:912)
         at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:177)
         at
org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:778)
         at
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1955)
         at
org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1705)
         at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1579)
         at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
         at
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1547)
         at
org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:221)
         at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:118)
         ... 10 more
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to
resolve endpoint: smooks:///META-INF/smooks/smooks-config.xml due to:
Failed to locate XSD resource
'/META-INF/schema/cbpedi-message-mapping-1.0.xsd' on classpath.
Namespace: 'http://www.mydomain.com/schema/cbpedi-message-mapping-1.0.xsd'.
         at
org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:531)
         at
org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:71)
         at
org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:192)
         at
org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:106)
         at
org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:112)
         at
org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:61)
         at
org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:55)
         at
org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:500)
         at
org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:213)
         at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:909)
         ... 19 more
Caused by: org.xml.sax.SAXException: Failed to locate XSD resource
'/META-INF/schema/cbpedi-message-mapping-1.0.xsd' on classpath.
Namespace: 'http://www.mydomain.com/schema/cbpedi-message-mapping-1.0.xsd'.
         at
org.milyn.xml.XsdDOMValidator.getNamespaceSource(XsdDOMValidator.java:155)
         at org.milyn.xml.XsdDOMValidator.<init>(XsdDOMValidator.java:79)
         at
org.milyn.cdr.XMLConfigDigester.digestConfigRecursively(XMLConfigDigester.java:214)
         at
org.milyn.cdr.XMLConfigDigester.digestConfig(XMLConfigDigester.java:184)
         at
org.milyn.cdr.SmooksResourceConfigurationStore.registerResources(SmooksResourceConfigurationStore.java:229)
         at org.milyn.Smooks.addConfigurations(Smooks.java:340)
         at org.milyn.Smooks.addConfigurations(Smooks.java:312)
         at
org.milyn.smooks.camel.processor.SmooksProcessor.start(SmooksProcessor.java:226)
         at
org.milyn.smooks.camel.component.SmooksEndpoint.start(SmooksEndpoint.java:43)
         at
org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:1929)
         at
org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:987)
         at
org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:948)
         at
org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:527)
         ... 28 more


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email