From: Jason M. <jas...@bt...> - 2005-01-13 12:06:12
|
Hi, I have been trying to get the three properties files - hibernate_util.properties. coefficient.properties and project.properties to load Open Dgroup specific variables. I am still having no success in getting them to work. Dylan has suggested that I check that I load them into the correct path in the coefficient-ejb archive (running on JBoss). I have been loading them back into the root of the archive. Is this the correct place? If any changes at all are made from the default then an exception is triggered as follows when opening Coefficient for the first time on an empty database: ERROR [za.org.coefficient.util.ejb.DataLoaderUtil] at: DataLoaderUtil.java:267 | object id: 8 | operation: persistence exception on update | exception type: net.sf.hibernate.PropertyValueException | exception message: not-null property references a null or transient value: za.org.coefficient.authentication.CoefficientUser.email net.sf.hibernate.PropertyValueException: not-null property references a null or transient value: za.org.coefficient.authentication.CoefficientUser.email at net.sf.hibernate.impl.SessionImpl.checkNullability(SessionImpl.java:1286) at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:937) at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:866) at net.sf.hibernate.impl.SessionImpl.saveWithGeneratedIdentifier(SessionImpl.ja va:788) at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:747) at net.sf.hibernate.util.HibernateUtil.save(HibernateUtil.java:567) at za.org.coefficient.util.ejb.DataLoaderUtil.createDefaultUsersIfNeeded(DataLo aderUtil.java:267) at za.org.coefficient.util.ejb.DataLoaderUtil.initializeDataIfNeeded(DataLoader Util.java:141) ..............(I can send the full server.log if anyone wants it.) The exception shows that it is coming from the DatLoaderUtil. This happens regardless of whether the DgroupsDataLoaderUtil is set in hibernate_util.properties or not. Any suggestions please? Jason Meyler metaLAB Ltd |