camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Duchatelle (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-7248) Camel - Dozer : NullPointerException when using nested classes
Date Thu, 27 Feb 2014 11:04:20 GMT
Thomas Duchatelle created CAMEL-7248:
----------------------------------------

             Summary: Camel - Dozer : NullPointerException when using nested classes
                 Key: CAMEL-7248
                 URL: https://issues.apache.org/jira/browse/CAMEL-7248
             Project: Camel
          Issue Type: Bug
    Affects Versions: 2.12.3, 2.12.2
            Reporter: Thomas Duchatelle


Hi,

I have an issue (NullPointerException) when using module camel dozer on nested classes. Here
the stacktrace:

{code}
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'dozerConverterLoader' defined in URL [file:.../applicationContext-camel.xml]: Initialization
of bean failed; nested exception is org.apache.camel.spring.GenericBeansException: Error post
processing bean: dozerConverterLoader; nested exception is java.lang.NullPointerException
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:529)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:628)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
        at org.apache.camel.test.spring.CamelSpringTestContextLoader.loadContext(CamelSpringTestContextLoader.java:148)
        at org.apache.camel.test.spring.CamelSpringTestContextLoader.loadContext(CamelSpringTestContextLoader.java:85)
        at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContextInternal(CacheAwareContextLoaderDelegate.java:64)
        at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext(CacheAwareContextLoaderDelegate.java:91)
        ... 31 more
Caused by: org.apache.camel.spring.GenericBeansException: Error post processing bean: dozerConverterLoader;
nested exception is java.lang.NullPointerException
        at org.apache.camel.spring.CamelBeanPostProcessor.postProcessBeforeInitialization(CamelBeanPostProcessor.java:154)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:396)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1505)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
        ... 43 more
Caused by: java.lang.NullPointerException
        at org.dozer.loader.DozerBuilder$MappingBuilder.classA(DozerBuilder.java:135)
        at org.dozer.loader.DozerBuilder$MappingBuilder.classA(DozerBuilder.java:130)
        at org.dozer.loader.xml.XMLParser.parseMapping(XMLParser.java:188)
        at org.dozer.loader.xml.XMLParser.read(XMLParser.java:135)
        at org.dozer.loader.xml.XMLParser.read(XMLParser.java:43)
        at org.dozer.loader.xml.MappingStreamReader.read(MappingStreamReader.java:51)
        at org.dozer.loader.xml.MappingFileReader.read(MappingFileReader.java:58)
        at org.apache.camel.converter.dozer.DozerTypeConverterLoader.loadMappings(DozerTypeConverterLoader.java:267)
        at org.apache.camel.converter.dozer.DozerTypeConverterLoader.init(DozerTypeConverterLoader.java:184)
        at org.apache.camel.converter.dozer.DozerTypeConverterLoader.setCamelContext(DozerTypeConverterLoader.java:310)
        at org.apache.camel.impl.DefaultCamelBeanPostProcessor.postProcessBeforeInitialization(DefaultCamelBeanPostProcessor.java:90)
        at org.apache.camel.spring.CamelBeanPostProcessor.postProcessBeforeInitialization(CamelBeanPostProcessor.java:148)
        ... 46 more
{code}

It's generated classes thus my only solution to avoid this problem  it's to map object manually
:(


Thanks,
Thomas



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message