Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: [Mondrian] UnexpectedRollbackException when Runtime exception isthrown

  1. #1
    Scarlet Red Guest

    Default [Mondrian] UnexpectedRollbackException when Runtime exception isthrown

    Hi all,
    I'm having a hard time debugging this exception, so I hope someone here can
    help . I have a controller that calls into a service. The service attempts
    to read some files from disk inside a try-catch. If I set the permissions on
    those files to be chmod a-rwx (so that it can't access the files), then a
    runtime exception is thrown with a message like "FileNotFoundException --
    permission denied", which is caught correctly. But after this, an
    "UnexpectedRollbackException" is thrown in the calling controller, even
    though no database interaction is involved in this entire process. If I set
    transactional=false in the controller, then the unexpected rollback
    exception goes away. But I would rather not do this and would like to
    understand why the exception is happening. Any ideas? Here is the actual
    error message:

    exception caught: java.lang.RuntimeException: java.io.FileNotFoundException:
    /path/to/file.extension (Permission denied)

    [...other logs from the service...]

    "org.springframework.transaction.UnexpectedRollbackException: Transaction
    rolled back because it has been marked as rollback-only"
    at ....
    at ....
    etc.


    Any help would be appreciated, thanks!

    -Sid

    _______________________________________________
    Mondrian mailing list
    Mondrian (AT) pentaho (DOT) org
    http://lists.pentaho.org/mailman/listinfo/mondrian

  2. #2
    Luc Boudreau Guest

    Default Re: [Mondrian] UnexpectedRollbackException when Runtime exceptionis thrown

    This is the Mondrian mailing list. You might want to send this to the Spring
    mailing list instead.

    Good luck!

    Luc


    On Mon, Jul 18, 2011 at 2:37 PM, Scarlet Red <scarletred10 (AT) gmail (DOT) com> wrote:

    > Hi all,
    > I'm having a hard time debugging this exception, so I hope someone here can
    > help . I have a controller that calls into a service. The service attempts
    > to read some files from disk inside a try-catch. If I set the permissions on
    > those files to be chmod a-rwx (so that it can't access the files), then a
    > runtime exception is thrown with a message like "FileNotFoundException --
    > permission denied", which is caught correctly. But after this, an
    > "UnexpectedRollbackException" is thrown in the calling controller, even
    > though no database interaction is involved in this entire process. If I set
    > transactional=false in the controller, then the unexpected rollback
    > exception goes away. But I would rather not do this and would like to
    > understand why the exception is happening. Any ideas? Here is the actual
    > error message:
    >
    > exception caught: java.lang.RuntimeException:
    > java.io.FileNotFoundException: /path/to/file.extension (Permission denied)
    >
    > [...other logs from the service...]
    >
    > "org.springframework.transaction.UnexpectedRollbackException: Transaction
    > rolled back because it has been marked as rollback-only"
    > at ....
    > at ....
    > etc.
    >
    >
    > Any help would be appreciated, thanks!
    >
    > -Sid
    > _______________________________________________
    > Mondrian mailing list
    > Mondrian (AT) pentaho (DOT) org
    > http://lists.pentaho.org/mailman/listinfo/mondrian
    >
    >


    _______________________________________________
    Mondrian mailing list
    Mondrian (AT) pentaho (DOT) org
    http://lists.pentaho.org/mailman/listinfo/mondrian

  3. #3
    Scarlet Red Guest

    Default Re: [Mondrian] UnexpectedRollbackException when Runtime exceptionis thrown

    Whoooppppss sorry about that! And thanks )


    On Mon, Jul 18, 2011 at 11:39 AM, Luc Boudreau <lucboudreau (AT) gmail (DOT) com>wrote:

    > This is the Mondrian mailing list. You might want to send this to the
    > Spring mailing list instead.
    >
    > Good luck!
    >
    > Luc
    >
    >
    > On Mon, Jul 18, 2011 at 2:37 PM, Scarlet Red <scarletred10 (AT) gmail (DOT) com>wrote:
    >
    >> Hi all,
    >> I'm having a hard time debugging this exception, so I hope someone here
    >> can help . I have a controller that calls into a service. The service
    >> attempts to read some files from disk inside a try-catch. If I set the
    >> permissions on those files to be chmod a-rwx (so that it can't access the
    >> files), then a runtime exception is thrown with a message like
    >> "FileNotFoundException -- permission denied", which is caught correctly. But
    >> after this, an "UnexpectedRollbackException" is thrown in the calling
    >> controller, even though no database interaction is involved in this entire
    >> process. If I set transactional=false in the controller, then the unexpected
    >> rollback exception goes away. But I would rather not do this and would like
    >> to understand why the exception is happening. Any ideas? Here is the actual
    >> error message:
    >>
    >> exception caught: java.lang.RuntimeException:
    >> java.io.FileNotFoundException: /path/to/file.extension (Permission denied)
    >>
    >> [...other logs from the service...]
    >>
    >> "org.springframework.transaction.UnexpectedRollbackException: Transaction
    >> rolled back because it has been marked as rollback-only"
    >> at ....
    >> at ....
    >> etc.
    >>
    >>
    >> Any help would be appreciated, thanks!
    >>
    >> -Sid
    >> _______________________________________________
    >> Mondrian mailing list
    >> Mondrian (AT) pentaho (DOT) org
    >> http://lists.pentaho.org/mailman/listinfo/mondrian
    >>
    >>

    >
    > _______________________________________________
    > Mondrian mailing list
    > Mondrian (AT) pentaho (DOT) org
    > http://lists.pentaho.org/mailman/listinfo/mondrian
    >
    >


    _______________________________________________
    Mondrian mailing list
    Mondrian (AT) pentaho (DOT) org
    http://lists.pentaho.org/mailman/listinfo/mondrian

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.