This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes Dozer Mapping Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Dozer Mapping Exception" Watch "Dozer Mapping Exception" New topic
Author

Dozer Mapping Exception

S.R.K.Vivek Raju
Ranch Hand

Joined: Sep 23, 2004
Posts: 58
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
 
 
subject: Dozer Mapping Exception
 
Similar Threads
Dozer Mapping exception
Exception running j8583
JNLPException ConnectException
Unable to run Applet from browser.
Integerate JQuery in Struts 2