Hi,
I am using Dozer to map old Domain objects to new Domain Objects. I idea is to slowly phase out the old Domain Objects.
I am using dozer-5.3.1.jar dist. The setup and the mapping files and the class mappings look in order.
I get this exception when i run the sample program
<code>
Exception in
thread "main" org.dozer.MappingException: java.net.ConnectException: Connection refused: connect
at org.dozer.util.MappingUtils.throwMappingException(MappingUtils.java:88)
at org.dozer.loader.xml.MappingFileReader.read(MappingFileReader.java:65)
at org.dozer.loader.CustomMappingsLoader.loadFromFiles(CustomMappingsLoader.java:103)
at org.dozer.loader.CustomMappingsLoader.load(CustomMappingsLoader.java:57)
at org.dozer.DozerBeanMapper.loadCustomMappings(DozerBeanMapper.java:153)
at org.dozer.DozerBeanMapper.getMappingProcessor(DozerBeanMapper.java:136)
at org.dozer.DozerBeanMapper.map(DozerBeanMapper.java:92)
at com.jpmc.poc.service.DomainObjectMapper.main(DomainObjectMapper.java:32)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at org.dozer.loader.xml.MappingFileReader.read(MappingFileReader.java:59)
</code>
Not understanding why it gives me a connection error.
Please help me to understand the issue.
Thanks,
Regards,
Vivek Raju