Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Genesys Backend
Genesys Backend
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 15
    • Issues 15
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • Genesys PGR
  • Genesys BackendGenesys Backend
  • Issues
  • #47

Closed
Open
Opened Jun 12, 2017 by Matija Obreza@mobrezaOwner

API push

Max reports he cannot push data to the Sandbox with the error reported:

Could not upsert accession data. org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: org.genesys2.server.model.genesys.AccessionId; nested exception is java.lang.IllegalStateException: org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: org.genesys2.server.model.genesys.AccessionId:

2017-06-09 17:21:13 INFO  - Pushing data for instCode=BEL084 size=50
2017-06-09 17:21:15 ERROR - PUT HTTPS://sandbox.genesys-pgr.org/api/v0/acn/BEL084/upsert?access_token=xxxx
2017-06-09 17:21:15 ERROR - [B@73a840d8
2017-06-09 17:21:15 ERROR - HTTP response code: 400
2017-06-09 17:21:15 ERROR - Response: {"error":"Could not upsert accession data. org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: org.genesys2.server.model.genesys.AccessionId; nested exception is java.lang.IllegalStateException: org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: org.genesys2.server.model.genesys.AccessionId"}

Test that updating and adding new records using Genesys Anno Uploader still works.

Edited Jun 28, 2017 by Matija Obreza
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: genesys-pgr/genesys-server#47