java.lang.ClassCastException: java.lang.Long cannot be cast to java.math.BigDecimal

hsqldb | ludovic-i | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    java.lang.ClassCastException: with count(*) and union

    hsqldb | 2 years ago | ludovic-i
    java.lang.ClassCastException: java.lang.Long cannot be cast to java.math.BigDecimal

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.Long cannot be cast to java.math.BigDecimal

      at org.hsqldb.rowio.RowOutputBase.writeData()
    2. HSQLDB
      RowOutputBinary.writeData
      1. org.hsqldb.rowio.RowOutputBase.writeData(RowOutputBase.java:232)
      2. org.hsqldb.rowio.RowOutputBinary.writeData(RowOutputBinary.java:1)
      3. org.hsqldb.rowio.RowOutputBase.writeData(RowOutputBase.java:187)
      4. org.hsqldb.rowio.RowOutputBinary.writeData(RowOutputBinary.java:1)
      4 frames
    3. HyperSQL Database
      ServerConnection.run
      1. org.hsqldb.navigator.RowSetNavigatorData.write(RowSetNavigatorData.java:317)
      2. org.hsqldb.result.Result.write(Result.java:1269)
      3. org.hsqldb.server.ServerConnection.receiveResult(ServerConnection.java:402)
      4. org.hsqldb.server.ServerConnection.run(ServerConnection.java:1533)
      4 frames
    4. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame