Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-4812

Hibernate fails with StringIndexOutOfBounds on a query

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • TBD
    • EAP_EWP 5.1.0
    • None
    • None
    • Hide

      just write an update query, with a loop to generate tons of OR clauses (could be whatever actually)

      Show
      just write an update query, with a loop to generate tons of OR clauses (could be whatever actually)
    • Workaround Exists
    • Hide

      workaround consists in splitting the query.

      Show
      workaround consists in splitting the query.

      when executing very big hibernate query I do get the attached java exception.

      From the debugger I can see that the length of the query string is 89897 but hibernate somehow fails when parsing and tries to do a charAt(118231) which is definitely not in the string.

      Query is like
      update versioned xxx yyy set yyy.deleted = true
      where ( ZZZZ )
      or (KKKK )
      .... + 900 other OR clauses

            shaozliu Strong Liu(刘少壮) (Inactive)
            apatrici Anthony Patricio
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: