This is the Mondrian mailing list. You might want to send this to the Spring mailing list instead. :)<br><br>Good luck!<br><br>Luc<br><br><br><div class="gmail_quote">On Mon, Jul 18, 2011 at 2:37 PM, Scarlet Red <span dir="ltr">&lt;<a href="mailto:scarletred10@gmail.com">scarletred10@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><span style="border-collapse:collapse;font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13px">Hi all, <br>


I&#39;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&#39;t access the files), then a runtime exception is thrown with a message like &quot;FileNotFoundException -- permission denied&quot;, which is caught correctly. But after this, an &quot;UnexpectedRollbackException&quot; 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: <br>


<br>exception caught: java.lang.RuntimeException: java.io.FileNotFoundException: /path/to/file.extension (Permission denied) <br><br>[...other logs from the service...] <br><br>&quot;org.springframework.transaction.UnexpectedRollbackException: Transaction rolled back because it has been marked as rollback-only&quot; <br>


    at .... <br>    at .... <br>etc. <br><br><br>Any help would be appreciated, thanks! <br><br>-Sid</span>
<br>_______________________________________________<br>
Mondrian mailing list<br>
<a href="mailto:Mondrian@pentaho.org">Mondrian@pentaho.org</a><br>
<a href="http://lists.pentaho.org/mailman/listinfo/mondrian" target="_blank">http://lists.pentaho.org/mailman/listinfo/mondrian</a><br>
<br></blockquote></div><br>