moovida / beegis

Automatically exported from code.google.com/p/beegis
0 stars 0 forks source link

erro when gps is reconnected #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Sometimes, when the GPS is reconnected after it lost connection an error 
occour. However the gps works.
The error is:

org.hibernate.PropertyValueException: not-null property references a null or 
transient value: 
eu.hydrologis.jgrass.beegisutils.database.annotatedclasses.GpsLogTable.utcTime

    at org.hibernate.engine.Nullability.checkNullability(Nullability.java:95)

    at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:313)

    at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:204)

    at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:130)

    at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:210)

    at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:56)

    at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:195)

    at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:50)

    at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:93)

    at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:563)

    at org.hibernate.impl.SessionImpl.save(SessionImpl.java:551)

    at org.hibernate.impl.SessionImpl.save(SessionImpl.java:547)

    at eu.hydrologis.jgrass.gpsnmea.db.DatabaseManager.insertGpsPoint(DatabaseManager.java:72)

    at eu.hydrologis.jgrass.gpsnmea.gps.NmeaGpsImpl.getCurrentGpsPoint(NmeaGpsImpl.java:235)

    at eu.hydrologis.jgrass.gpsnmea.gps.NmeaGpsImpl.run(NmeaGpsImpl.java:340)

    at java.lang.Thread.run(Unknown Source)

Original issue reported on code.google.com by mesca...@gmail.com on 2 Jul 2010 at 10:09

GoogleCodeExporter commented 9 years ago
Fixed on trunk, to be verified.

Original comment by andrea.a...@gmail.com on 27 Oct 2010 at 11:43