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 "Florian Rapp (JIRA)" <ji...@apache.org> on 2014/03/03 10:11:21 UTC

[jira] [Created] (DERBY-6492) ASSERT FAILED: LanguageConnectionContext is null

Florian Rapp created DERBY-6492:
-----------------------------------

             Summary: ASSERT FAILED: LanguageConnectionContext is null
                 Key: DERBY-6492
                 URL: https://issues.apache.org/jira/browse/DERBY-6492
             Project: Derby
          Issue Type: Bug
          Components: JDBC
    Affects Versions: 10.10.1.1
            Reporter: Florian Rapp


The LanguageConnectionContext is sometimes null when the system is under heavy load. This seems to be a problem of multithreaded access.

Our production test got NPE and ArrayIndexOutOfBounds exceptions, we then enabled more logging. We suspect the problem is BaseActivation.initFromContext. The context seems to not be properly initialized, probably due to multithreaded access. The NPE we got could stem from "context.getContextManager()". 

An exception ('ASSERT FAILED lcc is null in activation type class org.apache.derby.exe.aca90748aax0144x7731x56b2x0000131d61d046') occurred in Derby and will be wrapped:
org.apache.derby.shared.common.sanity.AssertFailure: ASSERT FAILED lcc is null in activation type class org.apache.derby.exe.aca90748aax0144x7731x56b2x0000131d61d046
	at org.apache.derby.shared.common.sanity.SanityManager.THROWASSERT(SanityManager.java:162)
	at org.apache.derby.shared.common.sanity.SanityManager.THROWASSERT(SanityManager.java:147)
	at org.apache.derby.impl.sql.execute.BaseActivation.initFromContext(BaseActivation.java:236)
	at org.apache.derby.impl.services.reflect.LoadedGeneratedClass.newInstance(LoadedGeneratedClass.java:69)
	at org.apache.derby.impl.sql.GenericActivationHolder.<init>(GenericActivationHolder.java:129)
	at org.apache.derby.impl.sql.GenericPreparedStatement.getActivation(GenericPreparedStatement.java:270)
	at org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(EmbedPreparedStatement.java:140)
	at org.apache.derby.impl.jdbc.EmbedPreparedStatement20.<init>(EmbedPreparedStatement20.java:83)
	at org.apache.derby.impl.jdbc.EmbedPreparedStatement30.<init>(EmbedPreparedStatement30.java:63)
	at org.apache.derby.impl.jdbc.EmbedPreparedStatement40.<init>(EmbedPreparedStatement40.java:40)
	at org.apache.derby.jdbc.Driver40.newEmbedPreparedStatement(Driver40.java:102)
	at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(EmbedConnection.java:1725)
	at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(EmbedConnection.java:1553)



--
This message was sent by Atlassian JIRA
(v6.2#6252)