Details

    • Type: Task Task
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Won't Fix
    • Affects Version/s: v2.1.1
    • Fix Version/s: not determined
    • Component/s: cmp
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: All

    • Issuezilla Id:
      7,789

      Description

      Here is my code .

      if (!(e instanceof EJBException))

      { return null; }

      EJBException ejbException = (EJBException) e;
      Exception causedByException = ejbException.getCausedByException();

      if (null == causedByException) { return null; }

      if (!(causedByException instanceof JDODataStoreException))

      { return null; }

      JDODataStoreException jdoDataStoreException = (JDODataStoreException)
      causedByException;
      Throwable throwable = jdoDataStoreException.getNestedException();

      if (null == throwable) { return null; }

      if (!(throwable instanceof SQLException))

      { return null; }

      SQLException sqlException = (SQLException) throwable;

      When JDOexception happens I pass the exception through this method. The code
      executes till "instanceof SQLException" but when i try to typecast the throwable
      to SQLException it throws error in run time. The "throwable" and SQLException
      are both of type java.sql.SQLException when i check through debugger. Please
      suggest.

        Activity

        Hide
        marina vatkina added a comment -

        It's cmp code, but AFAIK it works correctly

        Show
        marina vatkina added a comment - It's cmp code, but AFAIK it works correctly
        Hide
        Tom Mueller added a comment -

        Bulk update to change fix version to "not determined" for all issues still open but with a fix version for a released version.

        Show
        Tom Mueller added a comment - Bulk update to change fix version to "not determined" for all issues still open but with a fix version for a released version.
        Hide
        Mitesh Meswani added a comment -

        CMP code is not actively being worked on. Closing the P4 as "won't Fix"

        Show
        Mitesh Meswani added a comment - CMP code is not actively being worked on. Closing the P4 as "won't Fix"

          People

          • Assignee:
            Mitesh Meswani
            Reporter:
            ginix
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: