Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: org.pih.warehouse.core.Person #58

Closed
jmiranda opened this issue Apr 14, 2015 · 0 comments
Assignees
Milestone

Comments

@jmiranda
Copy link
Member

This issue started occurring on several of the shipment features, including

  • Add a new container to a shipment
  • Add a new container to an unsaved container
  • Receive shipment
2015-04-09 14:16:54,529 [ajp-bio-8009-exec-16] INFO  shipping.CreateShipmentWorkflowController  - Save container [_eventId_addBoxToContainer:Add a box to this pallet, height:5, weight:10, recipient.value:3, recipient:[id:, value:3, name:Justin Miranda], width:8, name:SMTP Server, recipient.name:Justin Miranda, length:3, containerTypeToAddId:2, recipient.id:, weightUnits:lbs, volumeUnits:ft, execution:[e1s4, e1s4], action:createShipment, controller:createShipmentWorkflow]
2015-04-09 14:16:54,544 [ajp-bio-8009-exec-16] INFO  shipping.CreateShipmentWorkflowController  - Container recipient null null
2015-04-09 14:16:54,545 [ajp-bio-8009-exec-16] INFO  shipping.CreateShipmentWorkflowController  - # containers: 1
2015-04-09 14:16:54,553 [ajp-bio-8009-exec-16] ERROR builder.ClosureInvokingAction  - Exception occured invoking flow action: object references an unsaved transient instance - save the transient instance before flushing: org.pih.warehouse.core.Person; nested exception is org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: org.pih.warehouse.core.Person
org.springframework.dao.InvalidDataAccessApiUsageException: object references an unsaved transient instance - save the transient instance before flushing: org.pih.warehouse.core.Person; nested exception is org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: org.pih.warehouse.core.Person
    at org.pih.warehouse.shipping.ShipmentService$$EnhancerByCGLIB$$4d3d0eb3.saveContainer(<generated>)
    at org.pih.warehouse.shipping.ShipmentService$saveContainer.call(Unknown Source)
    at org.pih.warehouse.shipping.CreateShipmentWorkflowController$_closure2_closure14_closure69.doCall(CreateShipmentWorkflowController.groovy:631)
    at grails.plugin.springcache.web.GrailsFragmentCachingFilter.doFilter(GrailsFragmentCachingFilter.groovy:66)
    at net.sf.ehcache.constructs.web.filter.Filter.doFilter(Filter.java:86)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: org.pih.warehouse.core.Person
    ... 8 more
@jmiranda jmiranda self-assigned this May 19, 2015
@jmiranda jmiranda added this to the 0.7.0 milestone May 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant