Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9167

NPE in dozer entity resolver

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Implemented
    • Affects Version/s: 2.16.0, 2.15.4
    • Fix Version/s: 2.16.0, 2.15.4
    • Component/s: camel-dozer
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      12:22:01,305 INFO  [org.dozer.DozerBeanMapper] (pool-3-thread-3) Using the following xml files to load custom mappings for the bean mapper instance: [dozer-mappings.xml]
      12:22:01,306 INFO  [org.dozer.DozerBeanMapper] (pool-3-thread-3) Trying to find xml mapping file: dozer-mappings.xml
      12:22:01,307 INFO  [org.dozer.DozerBeanMapper] (pool-3-thread-3) Using URL [vfs:/content/csv-dataformat-tests/dozer-mappings.xml] to load custom xml mappings
      12:22:01,308 ERROR [org.dozer.loader.xml.DozerResolver] (pool-3-thread-3) Could not resolve beanmapping XML Schema [http://dozer.sourceforge.net/schema/beanmapping.xsd]: not found in classpath: java.lang.NullPointerException
      	at org.dozer.loader.xml.DozerResolver.resolveEntity(DozerResolver.java:50)
      	at org.apache.xerces.util.EntityResolverWrapper.resolveEntity(EntityResolverWrapper.java:107)
      	at org.apache.xerces.impl.XMLEntityManager.resolveEntity(XMLEntityManager.java:695)
      	at org.apache.xerces.impl.xs.XMLSchemaLoader.resolveDocument(XMLSchemaLoader.java:624)
      	at org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:2699)
      	at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:2079)
      	at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:788)
      	at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:283)
      	at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentScannerImpl.java:733)
      	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1754)
      	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:324)
      	at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:875)
      	at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:798)
      	at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:108)
      	at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:230)
      	at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:298)
      	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121)
      	at org.dozer.loader.xml.MappingStreamReader.read(MappingStreamReader.java:50)
      	at org.dozer.loader.xml.MappingFileReader.read(MappingFileReader.java:58)
      	at org.dozer.DozerBeanMapper.loadFromFiles(DozerBeanMapper.java:227)
      	at org.dozer.DozerBeanMapper.loadCustomMappings(DozerBeanMapper.java:209)
      	at org.dozer.DozerBeanMapper.initMappings(DozerBeanMapper.java:315)
      	at org.dozer.DozerBeanMapper.getMappingProcessor(DozerBeanMapper.java:192)
      	at org.dozer.DozerBeanMapper.map(DozerBeanMapper.java:120)
      	at org.apache.camel.converter.dozer.DozerTypeConverter.convertTo(DozerTypeConverter.java:69)
      

      CrossRef: https://github.com/wildfly-extras/wildfly-camel/issues/844

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              tdiesler Thomas Diesler
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: