|
Hi,
I am trying to use dozer custom mapping in Karaf. I am using: Karaf 2.2.5, spring 3.0.6.RELEASE, spring-dm 1.2.1, dozer 5.3.1. I declare the custom mapping file in spring as following : <bean id="dozerConverterLoader" class="org.apache.camel.converter.dozer.DozerTypeConverterLoader" /> <bean id="mapper" class="org.dozer.DozerBeanMapper" lazy-init="true"> <property name="mappingFiles"> <list> <value>vo_mapping.xml</value> </list> </property> </bean> When I deploy the bundle in karaf it works fine, the problem comes after karaf start up. On first execution I got this error : 2012-06-27 18:19:07,583 | ERROR | 477983&brandId=3 | DefaultErrorHandler | ache.camel.processor.CamelLogger 232 | 140 - org.apache.camel.camel-core - 2.8.2 | Failed delivery for exchangeId: ID-u-server-4-guest-6-54973-1340792281569-4-19. Exhausted after delivery attempt: 1 caught: org.apache.camel.InvalidPayloadException: No body available of type: com.mycompany.MyClass but has value: com.mycompany.MyOtherClass@728fbbb4 of type: com.mycompany.MyOtherClass on: Message: com.mycompany.MyOtherClass@728fbbb4. Caused by: No type converter available to convert from type: com.mycompany.MyOtherClass to the required type: ccom.mycompany.MyClass with value com.mycompany.MyOtherClass@728fbbb4. Exchange[Message: com.mycompany.MyOtherClass@728fbbb4]. Caused by: [org.apache.camel.NoTypeConversionAvailableException - No type converter available to convert from type: com.mycompany.MyOtherClass to the required type: com.mycompany.MyClass with value com.mycompany.MyOtherClass@728fbbb4] org.apache.camel.InvalidPayloadException: No body available of type: com.mycompany.MyClass but has value: com.mycompany.MyOtherClass@728fbbb4 of type:com.mycompany.MyOtherClass on: Message: com.mycompany.MyOtherClass@728fbbb4. Caused by: No type converter available to convert from type: com.mycompany.MyOtherClass to the required type: com.mycompany.MyClass with value com.mycompany.MyOtherClass@728fbbb4. Exchange[Message: com.mycompany.MyOtherClass@728fbbb4]. Caused by: [org.apache.camel.NoTypeConversionAvailableException - No type converter available to convert from type: com.mycompany.MyOtherClass to the required type: com.mycompany.MyClass with value com.mycompany.MyOtherClass@728fbbb4] at org.apache.camel.impl.MessageSupport.getMandatoryBody(MessageSupport.java:102)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.ConvertBodyProcessor.process(ConvertBodyProcessor.java:58)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:50)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:104)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:61)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:104)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:61)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:90)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:104)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:61)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:318)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:209)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:306)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:104)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:61)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:318)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:209)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.spring.spi.TransactionErrorHandler.processByErrorHandler(TransactionErrorHandler.java:206)[142:org.apache.camel.camel-spring:2.8.2] at org.apache.camel.spring.spi.TransactionErrorHandler$1.doInTransactionWithoutResult(TransactionErrorHandler.java:166)[142:org.apache.camel.camel-spring:2.8.2] at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33)[107:org.springframework.transaction:3.0.6.RELEASE] at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)[107:org.springframework.transaction:3.0.6.RELEASE] at org.apache.camel.spring.spi.TransactionErrorHandler.doInTransactionTemplate(TransactionErrorHandler.java:159)[142:org.apache.camel.camel-spring:2.8.2] at org.apache.camel.spring.spi.TransactionErrorHandler.processInTransaction(TransactionErrorHandler.java:120)[142:org.apache.camel.camel-spring:2.8.2] at org.apache.camel.spring.spi.TransactionErrorHandler.process(TransactionErrorHandler.java:94)[142:org.apache.camel.camel-spring:2.8.2] at org.apache.camel.spring.spi.TransactionErrorHandler.process(TransactionErrorHandler.java:103)[142:org.apache.camel.camel-spring:2.8.2] at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:102)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:572)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:505)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:218)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.Splitter.process(Splitter.java:96)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:104)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:61)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:104)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:61)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:90)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:104)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:61)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:318)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:209)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:306)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:104)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:61)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.Pipeline.process(Pipeline.java:116)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.Pipeline.process(Pipeline.java:79)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:104)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:61)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:318)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:209)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.spring.spi.TransactionErrorHandler.processByErrorHandler(TransactionErrorHandler.java:206)[142:org.apache.camel.camel-spring:2.8.2] at org.apache.camel.spring.spi.TransactionErrorHandler$1.doInTransactionWithoutResult(TransactionErrorHandler.java:166)[142:org.apache.camel.camel-spring:2.8.2] at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33)[107:org.springframework.transaction:3.0.6.RELEASE] at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)[107:org.springframework.transaction:3.0.6.RELEASE] at org.apache.camel.spring.spi.TransactionErrorHandler.doInTransactionTemplate(TransactionErrorHandler.java:159)[142:org.apache.camel.camel-spring:2.8.2] at org.apache.camel.spring.spi.TransactionErrorHandler.processInTransaction(TransactionErrorHandler.java:120)[142:org.apache.camel.camel-spring:2.8.2] at org.apache.camel.spring.spi.TransactionErrorHandler.process(TransactionErrorHandler.java:94)[142:org.apache.camel.camel-spring:2.8.2] at org.apache.camel.spring.spi.TransactionErrorHandler.process(TransactionErrorHandler.java:103)[142:org.apache.camel.camel-spring:2.8.2] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:90)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:318)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:209)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:306)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:102)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:104)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:85)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.component.http.CamelServlet.service(CamelServlet.java:90)[144:org.apache.camel.camel-http:2.8.2] at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)[62:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2] at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547)[73:org.eclipse.jetty.servlet:7.5.4.v20111024] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1359)[73:org.eclipse.jetty.servlet:7.5.4.v20111024] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:366)[190:org.springframework.security.web:3.0.4.RELEASE] at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)[190:org.springframework.security.web:3.0.4.RELEASE] at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)[190:org.springframework.security.web:3.0.4.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)[190:org.springframework.security.web:3.0.4.RELEASE] at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)[190:org.springframework.security.web:3.0.4.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)[190:org.springframework.security.web:3.0.4.RELEASE] at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78)[190:org.springframework.security.web:3.0.4.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)[190:org.springframework.security.web:3.0.4.RELEASE] at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)[190:org.springframework.security.web:3.0.4.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)[190:org.springframework.security.web:3.0.4.RELEASE] at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35)[190:org.springframework.security.web:3.0.4.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)[190:org.springframework.security.web:3.0.4.RELEASE] at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:177)[190:org.springframework.security.web:3.0.4.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)[190:org.springframework.security.web:3.0.4.RELEASE] at org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter.doFilter(DefaultLoginPageGeneratingFilter.java:91)[190:org.springframework.security.web:3.0.4.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)[190:org.springframework.security.web:3.0.4.RELEASE] at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)[190:org.springframework.security.web:3.0.4.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)[190:org.springframework.security.web:3.0.4.RELEASE] at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)[190:org.springframework.security.web:3.0.4.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)[190:org.springframework.security.web:3.0.4.RELEASE] at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)[190:org.springframework.security.web:3.0.4.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)[190:org.springframework.security.web:3.0.4.RELEASE] at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:167)[190:org.springframework.security.web:3.0.4.RELEASE] at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)[103:org.springframework.web:3.0.6.RELEASE] at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)[103:org.springframework.web:3.0.6.RELEASE] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1330)[73:org.eclipse.jetty.servlet:7.5.4.v20111024] at org.ops4j.pax.web.service.internal.WelcomeFilesFilter.doFilter(WelcomeFilesFilter.java:169)[81:org.ops4j.pax.web.pax-web-runtime:1.0.8] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1330)[73:org.eclipse.jetty.servlet:7.5.4.v20111024] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:478)[73:org.eclipse.jetty.servlet:7.5.4.v20111024] at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)[82:org.ops4j.pax.web.pax-web-jetty:1.0.8] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)[71:org.eclipse.jetty.server:7.5.4.v20111024] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:483)[72:org.eclipse.jetty.security:7.5.4.v20111024] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)[71:org.eclipse.jetty.server:7.5.4.v20111024] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:941)[71:org.eclipse.jetty.server:7.5.4.v20111024] at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:117)[82:org.ops4j.pax.web.pax-web-jetty:1.0.8] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)[73:org.eclipse.jetty.servlet:7.5.4.v20111024] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)[71:org.eclipse.jetty.server:7.5.4.v20111024] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875)[71:org.eclipse.jetty.server:7.5.4.v20111024] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)[71:org.eclipse.jetty.server:7.5.4.v20111024] at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:72)[82:org.ops4j.pax.web.pax-web-jetty:1.0.8] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)[71:org.eclipse.jetty.server:7.5.4.v20111024] at org.eclipse.jetty.server.Server.handle(Server.java:345)[71:org.eclipse.jetty.server:7.5.4.v20111024] at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)[71:org.eclipse.jetty.server:7.5.4.v20111024] at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:919)[71:org.eclipse.jetty.server:7.5.4.v20111024] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:582)[67:org.eclipse.jetty.http:7.5.4.v20111024] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)[67:org.eclipse.jetty.http:7.5.4.v20111024] at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51)[71:org.eclipse.jetty.server:7.5.4.v20111024] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)[66:org.eclipse.jetty.io:7.5.4.v20111024] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)[66:org.eclipse.jetty.io:7.5.4.v20111024] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)[65:org.eclipse.jetty.util:7.5.4.v20111024] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)[65:org.eclipse.jetty.util:7.5.4.v20111024] at java.lang.Thread.run(Thread.java:679)[:1.6.0_22] Caused by: org.apache.camel.NoTypeConversionAvailableException: No type converter available to convert from type: com.mycompany.MyOtherClass to the required type: com.mycompany.MyClass with value com.mycompany.MyOtherClass@728fbbb4 at org.apache.camel.impl.converter.BaseTypeConverterRegistry.mandatoryConvertTo(BaseTypeConverterRegistry.java:140)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.core.osgi.OsgiTypeConverter.mandatoryConvertTo(OsgiTypeConverter.java:110)[142:org.apache.camel.camel-spring:2.8.2] at org.apache.camel.impl.MessageSupport.getMandatoryBody(MessageSupport.java:100)[140:org.apache.camel.camel-core:2.8.2] ... 140 more Caused by: org.dozer.MappingException: Unable to locate dozer mapping file [vo_mapping.xml] in the classpath! at org.dozer.util.MappingUtils.throwMappingException(MappingUtils.java:93)[156:net.sf.dozer.dozer-osgi:5.3.1] at org.dozer.util.MappingValidator.validateURL(MappingValidator.java:63)[156:net.sf.dozer.dozer-osgi:5.3.1] at org.dozer.loader.CustomMappingsLoader.loadFromFiles(CustomMappingsLoader.java:101)[156:net.sf.dozer.dozer-osgi:5.3.1] at org.dozer.loader.CustomMappingsLoader.load(CustomMappingsLoader.java:56)[156:net.sf.dozer.dozer-osgi:5.3.1] at org.dozer.DozerBeanMapper.loadCustomMappings(DozerBeanMapper.java:210)[156:net.sf.dozer.dozer-osgi:5.3.1] at org.dozer.DozerBeanMapper.getMappingProcessor(DozerBeanMapper.java:185)[156:net.sf.dozer.dozer-osgi:5.3.1] at org.dozer.DozerBeanMapper.map(DozerBeanMapper.java:111)[156:net.sf.dozer.dozer-osgi:5.3.1] at org.apache.camel.converter.dozer.DozerTypeConverter.convertTo(DozerTypeConverter.java:46)[159:org.apache.camel.camel-dozer:2.8.2] at org.apache.camel.converter.dozer.DozerTypeConverter.convertTo(DozerTypeConverter.java:50)[159:org.apache.camel.camel-dozer:2.8.2] at org.apache.camel.impl.converter.BaseTypeConverterRegistry.doConvertTo(BaseTypeConverterRegistry.java:182)[140:org.apache.camel.camel-core:2.8.2] at org.apache.camel.impl.converter.BaseTypeConverterRegistry.mandatoryConvertTo(BaseTypeConverterRegistry.java:138)[140:org.apache.camel.camel-core:2.8.2] ... 142 more It doesn't find the custom mapping file (vo_mapping.xml). I need to manually refresh the bundle, and then the file is loaded normally. I thought of a start-level problem but everything seems fine: spring-osgi-core is at 30, dozer-osgi is at 50, and my bundle is at 80. Would you have any idea that could explain this behavior? Also It seems I can't define a file: path to get the xml file, I got a Null Pointer Exception. But I suppose this is a question for dozer ML. (For example <property name="mappingFiles"> <list> <value>file:home/myHome/apapche-karaf-2.2.5/etc/vo_mapping.xml</value> </list> throws a exception). Thanks, Regards, Gabriel D'Halluin |
| Powered by Nabble | Edit this page |
