Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-5245

[GSS](8.3.x) ClassCastException with Oracle string-keyed-jdbc-store

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • RHDG 8.3.1 GA
    • RHDG 8.3 GA
    • Persistence
    • None

    Description

      A string-keyed-jdbc-store persisting to an Oracle database does not marshall the entry's value before storing, so it gets a ClassCastException when reading the data back in and trying to unmarshall it.

      java.lang.ClassCastException: org.infinispan.query.remote.impl.indexing.ProtobufValueWrapper cannot be cast to org.infinispan.persistence.spi.MarshalledValue
              at org.infinispan.persistence.jdbc.impl.table.AbstractTableManager.entryFromResultSet(AbstractTableManager.java:618)
      

      Root cause is that org.infinispan.persistence.jdbc.impl.table.OracleTableManager overrides prepareValueStatement and does NOT marshall the data before putting it into the DB like the overriden AbstractTableManager's impl does.

      org.infinispan.persistence.jdbc.impl.table.DB2TableManager also has the same bug.

      Attachments

        Issue Links

          Activity

            People

              wburns@redhat.com Will Burns
              rhn-support-dereed Dennis Reed
              Gustavo Lira Silva Gustavo Lira Silva
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: