Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3405732
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T05:32:29+00:00 2026-05-18T05:32:29+00:00

I have received an exception from a live deployment of a web application (JBoss,

  • 0

I have received an exception from a live deployment of a web application (JBoss, Turbine, Hibernate). I can not reproduce the exception, therefore I can not fix the bug.
Here is the exception that I get:

org.hibernate.exception.DataException: could not update: [com.myproject.project.mypackage.objects.MyObject#1190]
        at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:77)
        at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
        at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2425)
        at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2307)
        at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2607)
        at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:92)
        at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:250)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:234)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:142)
        at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
        at org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:41)
        at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:969)
        at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1114)
        at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)

The interesting thing is that I get this could not update error when the following hql is executed:

select sum(entity.totalPrice) from Entity entity where entity.parent.id = :parentId and deleted is null

Several entities belong to one parent.
This hql is a part of a bigger update process. I need the sum of totalPrices to update with it another entity. Is it possible that the could not update refers to the update process?
I do not think this is the case since the error occurs before the update is executed. More exactly, the exception occurs when the list() method is called on the Query object which holds the hql.

I have tried to reproduce the exception with totalPrice of the entities set to null, but that does not give any exception. If I have a lot of entities attached to the same parent and the sum of their totalPrice exceeds the limit I get a could not insert exception.
I can not figure out what is the problem.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T05:32:30+00:00Added an answer on May 18, 2026 at 5:32 am

    I think first attribute name supposed to be entity.parent_id and entity.deleted instead of simply deleted.
    final query supposed to be something like…

    select sum(entity.totalPrice) from Entity entity where entity.parent_id = :parentId and entity.deleted is null
    

    make sure that parent_id attribute name is correct.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our C# application calls MinidumpWriteDump upon an unhandled exception. I have received some crash
I have received an assembly from a third party. I need to add it
We have received some JavaScript from an agency that looks wrong, but works. For
I have a label that gets updated with values calculated from information received by
Let me describe my question - I have a Java application - Hibernate as
I have an asp.net / C# web application running in a Windows environment. The
I have received some code from another team and started to simple improvement and
On several occasions I have received the following error from a .Net (C#, 4.0)
I have this JSon string received from an AJAX call: {status:OK,addresses:[0,1,2,3,4,5]} To convert it
I have a TcpClient application that send a message from client to the server.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.