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

        ginix created issue -
        kenaiadmin made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 7789 39393
        Tom Mueller made changes -
        Fix Version/s not determined [ 11149 ]
        Fix Version/s V3 [ 10981 ]
        Mitesh Meswani made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Won't Fix [ 2 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: