camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Baptista <Daniel.Bapti...@performgroup.com>
Subject RE: Unmarshalling gzipped file
Date Thu, 15 Dec 2011 13:51:06 GMT
Actually this is the full trace. 

Thanks, Dan. 

Exception in thread "main" org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException:
Failed to create route route3 at: >>> SetHeader[subdirectory, js{new URI(request.headers.get('CamelFileRelativePath')).getPath().split('/')[segments.length-1];}]
<<< in route: Route[[From[file://c:/temp/logs_akamai/uncompressed?recursiv... because
of No language could be found for: js
	at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1145)
	at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:108)
	at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:240)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
	at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
	at com.ptv.tools.standalone.ApplicationContextFactory.initApplicationContext(ApplicationContextFactory.java:87)
	at com.ptv.tools.standalone.ApplicationContextFactory.getApplicationContext(ApplicationContextFactory.java:109)
	at com.ptv.tools.standalone.camel.Level3LogDownloader.run(Level3LogDownloader.java:43)
	at com.ptv.tools.standalone.camel.Level3LogDownloader.main(Level3LogDownloader.java:28)
Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create route route3 at:
>>> SetHeader[subdirectory, js{new URI(request.headers.get('CamelFileRelativePath')).getPath().split('/')[segments.length-1];}]
<<< in route: Route[[From[file://c:/temp/logs_akamai/uncompressed?recursiv... because
of No language could be found for: js
	at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:794)
	at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:165)
	at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:697)
	at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1651)
	at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1440)
	at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1338)
	at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:167)
	at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:67)
	at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:54)
	at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1316)
	at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:211)
	at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:106)
	... 9 more
Caused by: org.apache.camel.NoSuchLanguageException: No language could be found for: js
	at org.apache.camel.impl.DefaultLanguageResolver.noSpecificLanguageFound(DefaultLanguageResolver.java:103)
	at org.apache.camel.impl.DefaultLanguageResolver.resolveLanguage(DefaultLanguageResolver.java:81)
	at org.apache.camel.impl.DefaultCamelContext.resolveLanguage(DefaultCamelContext.java:941)
	at org.apache.camel.model.language.ExpressionDefinition.createExpression(ExpressionDefinition.java:170)
	at org.apache.camel.model.language.ExpressionDefinition.createExpression(ExpressionDefinition.java:161)
	at org.apache.camel.model.SetHeaderDefinition.createProcessor(SetHeaderDefinition.java:78)
	at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:437)
	at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:183)
	at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:791)

-----Original Message-----
From: Daniel Baptista 
Sent: 15 December 2011 13:50
To: 'users@camel.apache.org'
Subject: RE: Unmarshalling gzipped file

Hi All, 

I am using Camel 2.8.1 and I am trying to use javascript in my camel context however I getting
the following Exception.

Exception in thread "main" org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException:
Failed to create route route3 at: >>> SetHeader[subdirectory, js{new URI(request.headers.get('CamelFileRelativePath')).getPath().split('/')[segments.length-1];}]
<<< in route: Route[[From[file://c:/temp/logs_akamai/uncompressed?recursiv... because
of No language could be found for: js
	at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1145)
	at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:108)
	at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:240)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
	at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
	at com.ptv.tools.standalone.ApplicationContextFactory.initApplicationContext(ApplicationContextFactory.java:87)
	at com.ptv.tools.standalone.ApplicationContextFactory.getApplicationContext(ApplicationContextFactory.java:109)
	at com.ptv.tools.standalone.camel.Level3LogDownloader.run(Level3LogDownloader.java:43)
	at com.ptv.tools.standalone.camel.Level3LogDownloader.main(Level3LogDownloader.java:28)

I already have the camel-script on my classpath. Any other ideas?

Thanks in advance, Dan.

Mime
View raw message