-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Hibernate exception
PostPosted: Wed May 19, 2004 10:58 am 
Beginner
Beginner

Joined: Tue Apr 06, 2004 6:13 pm
Posts: 39
Location: Pune, Maharashtra, INDIA
Any clues what causes this exception?
It occurs at on start.

What cud "net.sf.hibernate.MappingException: duplicate import: Transmission" (at the very bottom) mean ?

Quote:
com.equifax.persistence.PersistenceSession - Could not initialize Hibernate session factory.
net.sf.hibernate.MappingException: Error reading resource: equicom/offline/transmission/Transmission.hbm.xml
at net.sf.hibernate.cfg.Configuration.addClass(Configuration.java:336)
at com.equifax.persistence.PersistenceSession.init(PersistenceSession.java:201)
at com.equifax.persistence.PersistenceSession.<clinit>(PersistenceSession.java:52)
at equicom.offline.transmission.Host.findALL(Host.java:162)
at equicom.offline.transmission.HostTest.testHost(HostTest.java:51)
at java.lang.reflect.Method.invoke(Native Method)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:392)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:276)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:167)
Caused by:
net.sf.hibernate.MappingException: duplicate import: Transmission
at net.sf.hibernate.cfg.Mappings.addImport(Mappings.java:85)
at net.sf.hibernate.cfg.Binder.bindClass(Binder.java:126)
at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:221)
at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1229)
at net.sf.hibernate.cfg.Configuration.add(Configuration.java:249)
at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:285)
at net.sf.hibernate.cfg.Configuration.addClass(Configuration.java:333)
... 16 more

_________________
thks
G1


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 19, 2004 11:06 am 
Senior
Senior

Joined: Fri Nov 21, 2003 5:55 am
Posts: 155
Show your java code and check if your mapping file is on the good directory when you add it to the Configuration.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.