Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Genesys Backend Genesys Backend
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 27
    • Issues 27
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Genesys PGRGenesys PGR
  • Genesys BackendGenesys Backend
  • Issues
  • #47
Closed
Open
Issue created 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
Time tracking