You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "David Sitsky (Jira)" <ji...@apache.org> on 2020/11/11 03:19:00 UTC

[jira] [Created] (DERBY-7090) Timeout.dumpLock(): ClassCastException: java.lang.Integer cannot be cast to java.lang.Long

David Sitsky created DERBY-7090:
-----------------------------------

             Summary: Timeout.dumpLock(): ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
                 Key: DERBY-7090
                 URL: https://issues.apache.org/jira/browse/DERBY-7090
             Project: Derby
          Issue Type: Bug
          Components: Store
    Affects Versions: 10.14.2.0
            Reporter: David Sitsky


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?
{noformat}
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
{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)