camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Exception running from camel-archtype-java -v2.7.2
Date Thu, 30 Jun 2011 15:33:12 GMT
Hi

Ah you are on windows and your maven repository is in a directory that
has a space.
This has been fixed in the next Camel 2.8.0 release.

You would have to move your maven repo to a directory without a space.

On Thu, Jun 30, 2011 at 4:45 PM, gtfisher <grant@tarrant-fisher.co.uk> wrote:
> The full stack trace is include below:
> *************************************
> Error occurred while running main from: org.apache.camel.spring.Main
> java.lang.reflect.InvocationTargetException
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:415)
>        at java.lang.Thread.run(Thread.java:619)
> Caused by: org.apache.camel.RuntimeCamelException:
> org.apache.camel.TypeConverterLoaderException: Failed to load type
> converters because of: Cannot find package names to be used for classpath
> scanning for annotated type converters.
>        at
> org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1139)
>        at
> org.apache.camel.impl.DefaultCamelContext.getTypeConverter(DefaultCamelContext.java:986)
>        at
> org.apache.camel.impl.DefaultCamelContext.getTypeConverterRegistry(DefaultCamelContext.java:1001)
>        at
> org.apache.camel.impl.DefaultCamelContext.forceLazyInitialization(DefaultCamelContext.java:1940)
>        at
> org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1423)
>        at
> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1336)
>        at
> org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:164)
>        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:1314)
>        at
> org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:203)
>        at
> org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:101)
>        at
> org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:238)
>        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
> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
>        at
> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
>        at
> org.apache.camel.spring.Main.createDefaultApplicationContext(Main.java:185)
>        at org.apache.camel.spring.Main.doStart(Main.java:139)
>        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.MainSupport.run(MainSupport.java:136)
>        at org.apache.camel.impl.MainSupport.run(MainSupport.java:322)
>        at org.apache.camel.spring.Main.main(Main.java:72)
>        ... 6 more
> Caused by: org.apache.camel.TypeConverterLoaderException: Failed to load
> type converters because of: Cannot find package names to be used for
> classpath scanning for annotated type converters.
>        at
> org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(AnnotationTypeConverterLoader.java:74)
>        at
> org.apache.camel.impl.converter.BaseTypeConverterRegistry.loadTypeConverters(BaseTypeConverterRegistry.java:395)
>        at
> org.apache.camel.impl.converter.DefaultTypeConverter.doStart(DefaultTypeConverter.java:41)
>        at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:67)
>        at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:54)
>        at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
>        at
> org.apache.camel.impl.DefaultCamelContext.startServices(DefaultCamelContext.java:1613)
>        at
> org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:899)
>        at
> org.apache.camel.impl.DefaultCamelContext.getTypeConverter(DefaultCamelContext.java:984)
>        ... 30 more
> Caused by: java.net.URISyntaxException: Illegal character in opaque part at
> index 22: jar:file:/D:/Documents and
> Settings/GDUK/.m2/repository/org/apache/camel/camel-core/2.7.1/camel-core-2.7.1.jar!/META-INF/services/org/apache/camel/TypeConverter
>        at java.net.URI$Parser.fail(URI.java:2809)
>        at java.net.URI$Parser.checkChars(URI.java:2982)
>        at java.net.URI$Parser.parse(URI.java:3019)
>        at java.net.URI.<init>(URI.java:578)
>        at java.net.URL.toURI(URL.java:918)
>        at
> org.apache.camel.impl.converter.AnnotationTypeConverterLoader.findPackages(AnnotationTypeConverterLoader.java:118)
>        at
> org.apache.camel.impl.converter.AnnotationTypeConverterLoader.findPackageNames(AnnotationTypeConverterLoader.java:108)
>        at
> org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(AnnotationTypeConverterLoader.java:69)
>        ... 38 more
> *************************************
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Exception-running-from-camel-archtype-java-v2-7-2-tp4534850p4539079.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message