-->
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.  [ 4 posts ] 
Author Message
 Post subject: org.hibernate.DuplicateMappingException:
PostPosted: Tue Jun 20, 2006 11:02 am 
Newbie

Joined: Sat Jun 17, 2006 8:52 am
Posts: 5
Hi,

i get this strange exception:

%%%% Error Creating SessionFactory %%%%
org.hibernate.MappingException: Could not read mappings from resource: app/model/Benutzer.hbm.xml
at org.hibernate.cfg.Configuration.addResource(Configuration.java:485)
at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1465)
at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1433)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1414)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1405)
at app.model.HibernateSessionFactory.currentSession(HibernateSessionFactory.java:62)
at app.bl.DBManager.getUserByLoginname(DBManager.java:413)
at de.marathonnet.server.LoginServiceImpl.checkAccount(LoginServiceImpl.java:42)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:299)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:186)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at com.google.gwt.dev.shell.GWTShellServlet.service(GWTShellServlet.java:113)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Unknown Source)
Caused by: org.hibernate.DuplicateMappingException: Duplicate collection role mapping app.model.Benutzer.gruppen at org.hibernate.cfg.Mappings.addCollection(Mappings.java:124)
at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2030)
at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2005)
at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:368)
at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:282)
at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:153)
at org.hibernate.cfg.Configuration.add(Configuration.java:386)
at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:427)
at org.hibernate.cfg.Configuration.addResource(Configuration.java:482)
... 41 more
com.google.gwt.user.client.rpc.InvocationException: The call failed on the server; see server log for details
at de.marathonnet.client.LoginService_Proxy$1.onCompletionImpl(transient source for de.marathonnet.client.LoginService_Proxy:66)
at de.marathonnet.client.LoginService_Proxy$1.onCompletionAndCatch(transient source for de.marathonnet.client.LoginService_Proxy:46)
at de.marathonnet.client.LoginService_Proxy$1.onCompletion(transient source for de.marathonnet.client.LoginService_Proxy:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.InstanceJavaDispatch.callMethod(InstanceJavaDispatch.java:40)
at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java:127)
at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:199)
at com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:108)
at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1656)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2711)
at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:491)
at com.google.gwt.dev.GWTShell.run(GWTShell.java:459)
at com.google.gwt.dev.GWTShell.main(GWTShell.java:208)
%%%% Error Creating SessionFactory %%%%
java.lang.NullPointerException
at org.hibernate.persister.collection.AbstractCollectionPersister.<init>(AbstractCollectionPersister.java:216)
at org.hibernate.persister.collection.BasicCollectionPersister.<init>(BasicCollectionPersister.java:50)
at org.hibernate.persister.PersisterFactory.createCollectionPersister(PersisterFactory.java:72)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:235)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1176)
at app.model.HibernateSessionFactory.currentSession(HibernateSessionFactory.java:63)
at app.bl.DBManager.getUserByLoginname(DBManager.java:413)
at de.marathonnet.server.LoginServiceImpl.checkAccount(LoginServiceImpl.java:42)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:299)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:186)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at com.google.gwt.dev.shell.GWTShellServlet.service(GWTShellServlet.java:113)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Unknown Source)
com.google.gwt.user.client.rpc.InvocationException: The call failed on the server; see server log for details
at de.marathonnet.client.LoginService_Proxy$1.onCompletionImpl(transient source for de.marathonnet.client.LoginService_Proxy:66)
at de.marathonnet.client.LoginService_Proxy$1.onCompletionAndCatch(transient source for de.marathonnet.client.LoginService_Proxy:46)
at de.marathonnet.client.LoginService_Proxy$1.onCompletion(transient source for de.marathonnet.client.LoginService_Proxy:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.InstanceJavaDispatch.callMethod(InstanceJavaDispatch.java:40)
at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java:127)
at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:199)
at com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:108)
at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1656)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2711)
at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:491)
at com.google.gwt.dev.GWTShell.run(GWTShell.java:459)
at com.google.gwt.dev.GWTShell.main(GWTShell.java:208)


My Benutzer.hbm.xml looks like this:



<?xml version="1.0" encoding='UTF-8'?>

<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >


<hibernate-mapping package="app.model">

<class name="Benutzer" table="benutzer">

<id name="benutzer_id" column="benutzer_id" type="java.lang.Integer">
<!-- postgresql generator -->
<generator class="sequence">
<param name="sequence">benutzer_id_seq</param>
</generator>
</id>


<property name="loginname" column="loginname" type="java.lang.String" not-null="true" />


<property name="password" column="password" type="java.lang.String" />
<property name="name" column="name" type="java.lang.String" not-null="true" />
<property name="vorname" column="vorname" type="java.lang.String" not-null="true" />
<property name="jahrgang" column="jahrgang" type="java.lang.Integer" not-null="true" />
<property name="geschlecht" column="geschlecht" type="java.lang.String" not-null="true" />
<property name="nation" column="nation" type="java.lang.String" not-null="true" />
<property name="strasse" column="strasse" type="java.lang.String" not-null="true" />
<property name="hausnr" column="hausnr" type="java.lang.String" not-null="true" />
<property name="plz" column="plz" type="java.lang.Integer" not-null="true" />
<property name="ort" column="ort" type="java.lang.String" not-null="true" />
<property name="telefon" column="telefon" type="java.lang.String" not-null="false" />
<property name="email" column="email" type="java.lang.String" not-null="false" />

<property name="kommentar" column="kommentar" type="java.lang.String" />
<property name="bild" column="bild" type="java.lang.Integer" />

<set name="gruppen" table="UserInGroup" lazy="true" cascade="all" >
<key column="benutzer_id"/>
<many-to-many class="Gruppe" column="gruppe_id"/>
</set>


</class>

</hibernate-mapping>



And my Benutzer.java is:

package app.model;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;


public class Benutzer

implements Serializable
{
/** The cached hash code value for this instance. Settting to 0 triggers re-calculation. */
private int hashValue = 0;

/** The composite primary key value. */
private java.lang.Integer benutzer_id;//id;

/** The value of the simple loginname property. */
private java.lang.String loginname;

/** The value of the simple passwort property. */
private java.lang.String password;

/** The value of the simple name property. */
private java.lang.String name;

/** The value of the simple vorname property. */
private java.lang.String vorname;

/** The value of the simple jahrgang property. */
private java.lang.Integer jahrgang;

/** The value of the simple geschlecht property. */
private java.lang.String geschlecht;

/** The value of the simple nation property. */
private java.lang.String nation;

/** The value of the simple strasse property. */
private java.lang.String strasse;

/** The value of the simple hausnr property. */
private java.lang.String hausnr;

/** The value of the simple plz property. */
private java.lang.Integer plz;

/** The value of the simple ort property. */
private java.lang.String ort;

/** The value of the simple telefon property. */
private java.lang.String telefon;

private String email;

/** The value of the simple kommentar property. */
private java.lang.String kommentar;

/** The value of the simple bild property. */
private java.lang.Integer bild;

/** Gruppen in denen der Benutzer eingetragen ist*/
private Set<Gruppe> gruppen;

/**
* Simple constructor of Benutzer instances.
*/
public Benutzer()
{
gruppen=new HashSet<Gruppe>();
}

/**
* Constructor of Benutzer instances given a simple primary key.
* @param id
*/
public Benutzer(java.lang.Integer id)
{
//super(id);
this.benutzer_id = id;
// gruppen=new HashSet<Gruppe>();
}

public java.lang.Integer getBenutzer_id() {
return benutzer_id;
}

public void setBenutzer_id(java.lang.Integer benutzer_id) {
this.benutzer_id = benutzer_id;
}

/**
* Return the value of the loginname column.
* @return java.lang.String
*/
public java.lang.String getLoginname()
{
return this.loginname;
}

/**
* Set the value of the loginname column.
* @param loginname
*/
public void setLoginname(java.lang.String loginname)
{
this.loginname = loginname;
}

/**
* Return the value of the passwort column.
* @return java.lang.String
*/
public java.lang.String getPassword()
{
return this.password;
}

/**
* Set the value of the passwort column.
* @param passwort
*/
public void setPassword(java.lang.String password)
{
this.password = password;
}

/**
* Return the value of the name column.
* @return java.lang.String
*/
public java.lang.String getName()
{
return this.name;
}

/**
* Set the value of the name column.
* @param name
*/
public void setName(java.lang.String name)
{
this.name = name;
}

/**
* Return the value of the vorname column.
* @return java.lang.String
*/
public java.lang.String getVorname()
{
return this.vorname;
}

/**
* Set the value of the vorname column.
* @param vorname
*/
public void setVorname(java.lang.String vorname)
{
this.vorname = vorname;
}

/**
* Return the value of the jahrgang column.
* @return java.lang.Integer
*/
public java.lang.Integer getJahrgang()
{
return this.jahrgang;
}

/**
* Set the value of the jahrgang column.
* @param jahrgang
*/
public void setJahrgang(java.lang.Integer jahrgang)
{
this.jahrgang = jahrgang;
}

/**
* Return the value of the geschlecht column.
* @return java.lang.String
*/
public java.lang.String getGeschlecht()
{
return this.geschlecht;
}

/**
* Set the value of the geschlecht column.
* @param geschlecht
*/
public void setGeschlecht(java.lang.String geschlecht)
{
this.geschlecht = geschlecht;
}

/**
* Return the value of the nation column.
* @return java.lang.String
*/
public java.lang.String getNation()
{
return this.nation;
}

/**
* Set the value of the nation column.
* @param nation
*/
public void setNation(java.lang.String nation)
{
this.nation = nation;
}

/**
* Return the value of the strasse column.
* @return java.lang.String
*/
public java.lang.String getStrasse()
{
return this.strasse;
}

/**
* Set the value of the strasse column.
* @param strasse
*/
public void setStrasse(java.lang.String strasse)
{
this.strasse = strasse;
}

/**
* Return the value of the hausnr column.
* @return java.lang.String
*/
public java.lang.String getHausnr()
{
return this.hausnr;
}

/**
* Set the value of the hausnr column.
* @param hausnr
*/
public void setHausnr(java.lang.String hausnr)
{
this.hausnr = hausnr;
}

/**
* Return the value of the plz column.
* @return java.lang.Integer
*/
public java.lang.Integer getPlz()
{
return this.plz;
}

/**
* Set the value of the plz column.
* @param plz
*/
public void setPlz(java.lang.Integer plz)
{
this.plz = plz;
}

/**
* Return the value of the ort column.
* @return java.lang.String
*/
public java.lang.String getOrt()
{
return this.ort;
}

/**
* Set the value of the ort column.
* @param ort
*/
public void setOrt(java.lang.String ort)
{
this.ort = ort;
}

/**
* Return the value of the telefon column.
* @return java.lang.String
*/
public java.lang.String getTelefon()
{
return this.telefon;
}

/**
* Set the value of the telefon column.
* @param telefon
*/
public void setTelefon(java.lang.String telefon)
{
this.telefon = telefon;
}

public String getEmail() {
return email;
}

public void setEmail(String email) {
this.email = email;
}

/**
* Return the value of the kommentar column.
* @return java.lang.String
*/
public java.lang.String getKommentar()
{
return this.kommentar;
}

/**
* Set the value of the kommentar column.
* @param kommentar
*/
public void setKommentar(java.lang.String kommentar)
{
this.kommentar = kommentar;
}

/**
* Return the value of the bild column.
* @return java.lang.Integer
*/
public java.lang.Integer getBild()
{
return this.bild;
}

/**
* Set the value of the bild column.
* @param bild
*/
public void setBild(java.lang.Integer bild)
{
this.bild = bild;
}


public Set<Gruppe> getGruppen() {
return gruppen;
}

public void setGruppen(Set<Gruppe> gruppen) {
this.gruppen = gruppen;
}

public String toString(){
return("Loginname: "+this.getLoginname()
+" Passwort: "+this.getPassword()
+" Name: "+this.getName()
+" Vorname: "+this.getVorname()
+" Strasse: "+this.getStrasse()
+" PLZ: "+this.getPlz()
+" Ort: "+this.getOrt()
+" Land: "+this.getNation()
+" Tel.: "+this.getTelefon()
+" Email: "+this.getEmail()
+" Jahrgang: "+this.getJahrgang()
);
}
/**
* Implementation of the equals comparison on the basis of equality of the primary key values.
* @param rhs
* @return boolean
*/
public boolean equals(Object rhs)
{
if (rhs == null)
return false;
if (! (rhs instanceof Benutzer))
return false;
Benutzer that = (Benutzer) rhs;
if (this.getBenutzer_id() == null || that.getBenutzer_id() == null)
return false;
return (this.getBenutzer_id().equals(that.getBenutzer_id()));
}

/**
* Implementation of the hashCode method conforming to the Bloch pattern with
* the exception of array properties (these are very unlikely primary key types).
* @return int
*/
public int hashCode()
{
if (this.hashValue == 0)
{
int result = 17;
int idValue = this.getBenutzer_id() == null ? 0 : this.getBenutzer_id().hashCode();

result = result * 37 + idValue;
this.hashValue = result;
}
return this.hashValue;
}

}

Thanks for any help!

Kolja


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 21, 2006 1:34 am 
Expert
Expert

Joined: Thu Dec 23, 2004 9:08 pm
Posts: 2008
Any chance that your hibernate.cfg.xml includes two <mapping resource="app.model.Benutzer.hbm.xml"/> lines?

_________________
Code tags are your friend. Know them and use them.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 21, 2006 7:21 am 
Newbie

Joined: Sat Jun 17, 2006 8:52 am
Posts: 5
No, my configuration file is:

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<hibernate-configuration>

<session-factory>
<property name="myeclipse.connection.profile">MNtest</property>
<property name="connection.url">jdbc:postgresql://localhost:5432/MNtest</property>
<property name="connection.username">postgres</property>
<property name="connection.password">REMOVED</property>
<property name="connection.driver_class">org.postgresql.Driver</property>
<property name="dialect">org.hibernate.dialect.PostgreSQLDialect</property>
<property name="show_sql">false</property>

<!-- Drop and re-create the database schema on startup

<property name="hbm2ddl.auto">create-drop</property>
-->
<!-- Property [hibernate.cglib.use_reflection_optimizer] has been renamed to [hibernate.bytecode.use_reflection_optimizer]
<property name="hibernate.bytecode.use_reflection_optimizer">false</property>
-->
<!-- Disable the second-level cache -->
<property name="hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</property>

<!-- mapping files -->
<mapping resource="app/model/Benutzer.hbm.xml" />
<mapping resource="app/model/Athlet.hbm.xml" />
<mapping resource="app/model/Gruppe.hbm.xml" />
<mapping resource="app/model/Strecke.hbm.xml" />
<mapping resource="app/model/Verein.hbm.xml" />
<mapping resource="app/model/Event.hbm.xml" />
<mapping resource="app/model/Trainingsdaten.hbm.xml" />
<mapping resource="app/model/Trainingseinheit.hbm.xml" />
<mapping resource="app/model/Dyntrainingseinheitsdaten.hbm.xml" />

</session-factory>

</hibernate-configuration>



I can't see the problem with my mapping(s). Is it maybe a hibernate bug or is it me?

Regards,

Kolja


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 21, 2006 6:04 pm 
Expert
Expert

Joined: Thu Dec 23, 2004 9:08 pm
Posts: 2008
I've never heard of it happening to anyone else, so it's not likely to be a bug in the standard distribution. It looks like you'll have to start removing bits of your configuration and mapping files, line by line, until you find the specific line causing the problem. It might be something strange like a weird unprintable character confusing the XML parser, or something banal like you accidentally saved the mapping for Benutzer into one of the other .hbm.xml files.

_________________
Code tags are your friend. Know them and use them.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.