ConstraintViolationException: could not insert in ZCM loader-messages log

  • 7002383
  • 15-Jan-2009
  • 27-Apr-2012

Environment

Novell ZENworks 10 Configuration Management with Support Pack 1 - 10.1
Novell ZENworks 10 Configuration Management with Support Pack 1 - 10.1 Imaging
Novell ZENworks 10 Configuration Management with Support Pack 1 - 10.1 Bundles

Situation

ERROR:

DEBUG] [1/12/09 8:12:20 AM] [] [Loader.MessageProcessorModule] [com.novell.zenworks.datamodel.exceptions.InternalDataModelException: org.hibernate.exception.ConstraintViolationException: could not insert: [[com.novell.zenworks.datamodel.objects.messaging.Message]]

Resolution

This is fixed in version 10.1.3 - see KB 7002526 "ZENworks 10 Configuration Management 10.1.3" which can be found at https://www.novell.com/support

Additional Information

This error will only be found if the admin is looking through the loader-messages.log

DEBUG] [1/12/09 8:12:20 AM] [] [Loader.MessageProcessorModule] [com.novell.zenworks.datamodel.exceptions.InternalDataModelException: org.hibernate.exception.ConstraintViolationException: could not insert: [[com.novell.zenworks.datamodel.objects.messaging.Message]]
    at com.novell.zenworks.datamodel.database.AbstractDatabaseTypeHelper.newStandardDataModelException(AbstractDatabaseTypeHelper.java:436)
    at com.novell.zenworks.datamodel.database.sqlanywhere.SQLAnywhereHelper.newStandardDataModelException(SQLAnywhereHelper.java:277)
    at com.novell.zenworks.datamodel.database.AbstractDatabaseTypeHelper.throwStandardDataModelException(AbstractDatabaseTypeHelper.java:421)
    at com.novell.zenworks.datamodel.session.hibernate.AbstractHibernateSessionImpl.handleException(AbstractHibernateSessionImpl.java:175)
    at com.novell.zenworks.datamodel.services.messaging.MessagingImpl.logMessages(MessagingImpl.java:150)
    at com.novell.zenworks.datamodel.services.messaging.MessagingImpl.logMessage(MessagingImpl.java:78)
    at com.novell.zenworks.loader.modules.messageprocessor.DBOperations.saveMessage(DBOperations.java:68)
    at com.novell.zenworks.loader.modules.messageprocessor.MessageFilterProcessor.saveMessages(MessageFilterProcessor.java:576)
    at com.novell.zenworks.loader.modules.messageprocessor.MessageFilterProcessor.saveMessages(MessageFilterProcessor.java:561)
    at com.novell.zenworks.loader.modules.messageprocessor.MessageFilterProcessor.run(MessageFilterProcessor.java:242)
    at java.lang.Thread.run(Thread.java:595)

Feedback service temporarily unavailable. For content questions or problems, please contact Support.