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

ASSERT FAILED: LanguageConnectionContext is null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 10.10.1.1
    • None
    • Services
    • None
    • Normal

    Description

      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)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              frapp Florian Rapp
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: