Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-7090

Timeout.dumpLock(): ClassCastException: java.lang.Integer cannot be cast to java.lang.Long

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 10.14.2.0
    • None
    • Store
    • None
    • Crash

    Description

      I don't have the logs leading to this error, but clearly the database was in a bad state and was trying to dump some lock information. It seems there might be a bug in how this is handled?

      Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
              at org.apache.derby.impl.services.locks.Timeout.dumpLock(Timeout.java:295)
              at org.apache.derby.impl.services.locks.Timeout.buildLockTableString(Timeout.java:216)
              at org.apache.derby.impl.services.locks.Timeout.buildString(Timeout.java:256)
              at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.debugGenerateInfo(DataDictionaryImpl.java:9600)
              at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getDescriptorViaIndexMinion(DataDictionaryImpl.java:9514)
              at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getDescriptorViaIndex(DataDictionaryImpl.java:9320)
              at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getColumnDescriptorsScan(DataDictionaryImpl.java:2865)
              at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getColumnDescriptorsScan(DataDictionaryImpl.java:2829)
              at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.finishTableDescriptor(DataDictionaryImpl.java:2391)
              at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getTableDescriptorIndex1Scan(DataDictionaryImpl.java:2260)
              at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getUncachedTableDescriptor(DataDictionaryImpl.java:2276)
              at org.apache.derby.impl.sql.catalog.NameTDCacheable.setIdentity(NameTDCacheable.java:110)
              at org.apache.derby.impl.services.cache.ConcurrentCache.find(ConcurrentCache.java:318)
              at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getTableDescriptor(DataDictionaryImpl.java:2207)
              at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.faultInTabInfo(DataDictionaryImpl.java:9925)
              at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getNonCoreTI(DataDictionaryImpl.java:9727)
              at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getAliasDescriptor(DataDictionaryImpl.java:7693)
              at org.apache.derby.impl.sql.compile.QueryTreeNode.resolveTableToSynonym(QueryTreeNode.java:1180)
              at org.apache.derby.impl.sql.compile.UpdateNode.bindStatement(UpdateNode.java:187)
              at org.apache.derby.impl.sql.GenericStatement.prepMinion(GenericStatement.java:401)
              at org.apache.derby.impl.sql.GenericStatement.prepare(GenericStatement.java:99)
              at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(GenericLanguageConnectionContext.java:1114)
              at org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(EmbedPreparedStatement.java:134)
              ... 14 common frames omitted
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            sits David Sitsky
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: