Bug 145816

Summary: Saving new Address causes stacktrace
Product: [Retired] Red Hat Network Reporter: Mike McCune <mmccune>
Component: RHN/R&DAssignee: Mike McCune <mmccune>
Status: CLOSED NEXTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: medium    
Version: RHN Devel   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-01-25 01:22:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 125080    

Description Mike McCune 2005-01-21 21:25:39 UTC
Only for new addresses.  Works fine for existing ones.

 org.apache.struts.action.RequestProcessor - Unhandled Exception
thrown: class com.redhat.rhn.common.hibernate.HibernateRuntimeException
2005-01-21 16:15:12,112 [TP-Processor7] ERROR
net.sf.hibernate.impl.SessionImpl - Could not synchronize database
state with session
2005-01-21 16:15:12,116 [TP-Processor7] ERROR
com.redhat.rhn.domain.session.WebSessionFactory - HibernateException
trying to commit: com.redhat.rhn.domain.session.WebSessionImpl
net.sf.hibernate.TransientObjectException: object references an
unsaved transient instance - save the transient instance before
flushing: com.redhat.rhn.domain.user.AddressImpl
        at
net.sf.hibernate.impl.SessionImpl.throwTransientObjectException(SessionImpl.java:2788)
        at
net.sf.hibernate.impl.SessionImpl.getEntityIdentifierIfNotUnsaved(SessionImpl.java:2780)
        at
net.sf.hibernate.type.EntityType.getIdentifier(EntityType.java:66)
        at
net.sf.hibernate.type.ManyToOneType.nullSafeSet(ManyToOneType.java:47)
        at
net.sf.hibernate.collection.AbstractCollectionPersister.writeElement(AbstractCollectionPersister.java:386)
        at net.sf.hibernate.collection.Set.writeTo(Set.java:226)
        at
net.sf.hibernate.collection.AbstractCollectionPersister.insertRows(AbstractCollectionPersister.java:609)
        at
net.sf.hibernate.impl.ScheduledCollectionUpdate.execute(ScheduledCollectionUpdate.java:49)
        at
net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2438)
        at
net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2394)
        at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2260)
        at
net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:61)
        at
com.redhat.rhn.common.hibernate.HibernateFactory.commitObject(HibernateFactory.java:281)
        at
com.redhat.rhn.common.hibernate.HibernateFactory.commitObject(HibernateFactory.java:298)
        at
com.redhat.rhn.domain.session.WebSessionFactory.commit(WebSessionFactory.java:81)
        at
com.redhat.rhn.frontend.struts.RhnHelper.commitSession(RhnHelper.java:175)
        at
com.redhat.rhn.frontend.servlets.AuthFilter.doFilter(AuthFilter.java:95)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)