[appengine-java] Re: Local server works, Appspot fails with java.lang.StackOverflowError when Spring AOP is enabled

2009-11-23 Thread laphroaig15
Was there any progress on this bug?

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=.




[appengine-java] Re: Local server works, Appspot fails with java.lang.StackOverflowError when Spring AOP is enabled

2009-11-23 Thread laphroaig15
I'm also experiencing Gabriel's topmost stacktrace while attempting to
POC Drools.  Like Kris, I cannot see far enough into the stacktrace to
determine what drools API call is triggering the behavior.  My app is
heroict...@appspot.com.

On Nov 4, 3:43 am, Kris  wrote:
> Hi Toby,
>
> I've just realised that I probably over-wrote the app with a new
> version yesterday.  Did you get what you need? (If not, I can easily
> re-deploy and resend the ID.)
>
> Cheers,
> Kris
>
> On Oct 19, 8:30 pm, Toby Reyelts  wrote:
>
> > Kris,
>
> > Can you send us your app id (privately if you wish) ?
>
> > On Mon, Oct 19, 2009 at 3:57 PM, Kris  wrote:
>
> > > I'm also getting this StackOverflowError, but the app engine log view
> > > is truncated, so I can't see the initial cause.  Is there any way to
> > > see the whole log message, so I can try to help track it down/produce
> > > a test case?
>
> > > Cheers,
> > > Kris
>
> > > On Oct 7, 4:36 pm, Toby Reyelts  wrote:
> > > > Unfortunately this is an issue that will be very difficult for us to
> > > solve
> > > > unless you can provide us with a simple reproducing app that we can use
> > > to
> > > > debug. If the issue is important to you, that is the most important 
> > > > thing
> > > > you can do to help us.On Wed, Oct 7, 2009 at 6:57 AM, Dave Cheong <
> > > d...@davecheong.com> wrote:
>
> > > > > Hi there,
>
> > > > > I'm having the same problem and was wondering if you or anyone else
> > > > > out there have found a solution.
> > > > > I'm currently using GAE/J 1.2.5 and Spring 2.5.
>
> > > > > Like the previous author, everything works locally but I get a
> > > > > StackOverflowError on Appspot. However, if I comment out ...
>
> > > > > 
>
> > > > > ... things work on Appspot.
>
> > > > > Any help provided is much appreciated.
>
> > > > > thanks,
> > > > > dave
>
> > > > > On Aug 26, 3:38 pm, Gabriel Moreira  wrote:
> > > > > > My app is using Spring 3.0.
>
> > > > > > If i disable Spring AOP, my app runs fine both on local and appspot.
>
> > > > > > But when i enable Spring AOP (tested with advice or aspects), in
> > > local
> > > > > > runtime everything is fine and works, but in appspot im getting this
> > > > > > error:
>
> > > > > > java.lang.StackOverflowError
> > > > > >         at java.lang.String.endsWith(Unknown Source)
> > > > > >         at sun.security.provider.PolicyFile.canonPath(Unknown 
> > > > > > Source)
> > > > > >         at java.io.FilePermission$1.run(Unknown Source)
> > > > > >         at java.io.FilePermission$1.run(Unknown Source)
> > > > > >         at java.security.AccessController.doPrivileged(Native 
> > > > > > Method)
> > > > > >         at java.io.FilePermission.init(Unknown Source)
> > > > > >         at java.io.FilePermission.(Unknown Source)
> > > > > >         at
> > > > > sun.net.www.protocol.file.FileURLConnection.getPermission(Unknown
> > > > > > Source)
> > > > > >         at sun.misc.URLClassPath.check(Unknown Source)
> > > > > >         at sun.misc.URLClassPath$FileLoader.getResource(Unknown
> > > Source)
> > > > > >         at sun.misc.URLClassPath$FileLoader.findResource(Unknown
> > > Source)
> > > > > >         at sun.misc.URLClassPath.findResource(Unknown Source)
> > > > > >         at java.net.URLClassLoader$2.run(Unknown Source)
> > > > > >         at java.security.AccessController.doPrivileged(Native 
> > > > > > Method)
> > > > > >         at java.net.URLClassLoader.findResource(Unknown Source)
> > > > > >         at
> > > > > com.google.apphosting.runtime.security.UserClassLoader.findResource
> > > > > > (UserClassLoader.java:631)
> > > > > >         at java.lang.ClassLoader.getResource(Unknown Source)
> > > > > >         at
> > > com.google.apphosting.runtime.security.UserClassLoader$4.run
> > > > > > (UserClassLoader.java:665)
> > > > > >         at
> > > com.google.apphosting.runtime.security.UserClassLoader$4.run
> > > > > > (UserClassLoader.java:659)
> > > > > >         at java.security.AccessController.doPrivileged(Native 
> > > > > > Method)
> > > > > >         at
> > > > > com.google.apphosting.runtime.security.UserClassLoader.findResource
> > > > > > (UserClassLoader.java:659)
> > > > > >         at java.lang.ClassLoader.getResource(Unknown Source)
> > > > > >         at
> > > com.google.apphosting.runtime.security.UserClassLoader$4.run
> > > > > > (UserClassLoader.java:665)
> > > > > >         at
> > > com.google.apphosting.runtime.security.UserClassLoader$4.run
> > > > > > (UserClassLoader.java:659)
> > > > > >         at java.security.AccessController.doPrivileged(Native 
> > > > > > Method)
> > > > > >         at
> > > > > com.google.apphosting.runtime.security.UserClassLoader.findResource
> > > > > > (UserClassLoader.java:659)
> > > > > >         at java.lang.ClassLoader.getResource(Unknown Source)
> > > > > >         at
> > > com.google.apphosting.runtime.security.UserClassLoader$4.run
> > > > > > (UserClassLoader.java:665)
> > > > > >         at
> > > com.google.apphosting.runtime.security.UserClassLoa

[appengine-java] Re: Local server works, Appspot fails with java.lang.StackOverflowError when Spring AOP is enabled

2009-11-04 Thread Kris

Hi Toby,

I've just realised that I probably over-wrote the app with a new
version yesterday.  Did you get what you need? (If not, I can easily
re-deploy and resend the ID.)

Cheers,
Kris

On Oct 19, 8:30 pm, Toby Reyelts  wrote:
> Kris,
>
> Can you send us your app id (privately if you wish) ?
>
>
>
> On Mon, Oct 19, 2009 at 3:57 PM, Kris  wrote:
>
> > I'm also getting this StackOverflowError, but the app engine log view
> > is truncated, so I can't see the initial cause.  Is there any way to
> > see the whole log message, so I can try to help track it down/produce
> > a test case?
>
> > Cheers,
> > Kris
>
> > On Oct 7, 4:36 pm, Toby Reyelts  wrote:
> > > Unfortunately this is an issue that will be very difficult for us to
> > solve
> > > unless you can provide us with a simple reproducing app that we can use
> > to
> > > debug. If the issue is important to you, that is the most important thing
> > > you can do to help us.On Wed, Oct 7, 2009 at 6:57 AM, Dave Cheong <
> > d...@davecheong.com> wrote:
>
> > > > Hi there,
>
> > > > I'm having the same problem and was wondering if you or anyone else
> > > > out there have found a solution.
> > > > I'm currently using GAE/J 1.2.5 and Spring 2.5.
>
> > > > Like the previous author, everything works locally but I get a
> > > > StackOverflowError on Appspot. However, if I comment out ...
>
> > > > 
>
> > > > ... things work on Appspot.
>
> > > > Any help provided is much appreciated.
>
> > > > thanks,
> > > > dave
>
> > > > On Aug 26, 3:38 pm, Gabriel Moreira  wrote:
> > > > > My app is using Spring 3.0.
>
> > > > > If i disable Spring AOP, my app runs fine both on local and appspot.
>
> > > > > But when i enable Spring AOP (tested with advice or aspects), in
> > local
> > > > > runtime everything is fine and works, but in appspot im getting this
> > > > > error:
>
> > > > > java.lang.StackOverflowError
> > > > > at java.lang.String.endsWith(Unknown Source)
> > > > > at sun.security.provider.PolicyFile.canonPath(Unknown Source)
> > > > > at java.io.FilePermission$1.run(Unknown Source)
> > > > > at java.io.FilePermission$1.run(Unknown Source)
> > > > > at java.security.AccessController.doPrivileged(Native Method)
> > > > > at java.io.FilePermission.init(Unknown Source)
> > > > > at java.io.FilePermission.(Unknown Source)
> > > > > at
> > > > sun.net.www.protocol.file.FileURLConnection.getPermission(Unknown
> > > > > Source)
> > > > > at sun.misc.URLClassPath.check(Unknown Source)
> > > > > at sun.misc.URLClassPath$FileLoader.getResource(Unknown
> > Source)
> > > > > at sun.misc.URLClassPath$FileLoader.findResource(Unknown
> > Source)
> > > > > at sun.misc.URLClassPath.findResource(Unknown Source)
> > > > > at java.net.URLClassLoader$2.run(Unknown Source)
> > > > > at java.security.AccessController.doPrivileged(Native Method)
> > > > > at java.net.URLClassLoader.findResource(Unknown Source)
> > > > > at
> > > > com.google.apphosting.runtime.security.UserClassLoader.findResource
> > > > > (UserClassLoader.java:631)
> > > > > at java.lang.ClassLoader.getResource(Unknown Source)
> > > > > at
> > com.google.apphosting.runtime.security.UserClassLoader$4.run
> > > > > (UserClassLoader.java:665)
> > > > > at
> > com.google.apphosting.runtime.security.UserClassLoader$4.run
> > > > > (UserClassLoader.java:659)
> > > > > at java.security.AccessController.doPrivileged(Native Method)
> > > > > at
> > > > com.google.apphosting.runtime.security.UserClassLoader.findResource
> > > > > (UserClassLoader.java:659)
> > > > > at java.lang.ClassLoader.getResource(Unknown Source)
> > > > > at
> > com.google.apphosting.runtime.security.UserClassLoader$4.run
> > > > > (UserClassLoader.java:665)
> > > > > at
> > com.google.apphosting.runtime.security.UserClassLoader$4.run
> > > > > (UserClassLoader.java:659)
> > > > > at java.security.AccessController.doPrivileged(Native Method)
> > > > > at
> > > > com.google.apphosting.runtime.security.UserClassLoader.findResource
> > > > > (UserClassLoader.java:659)
> > > > > at java.lang.ClassLoader.getResource(Unknown Source)
> > > > > at
> > com.google.apphosting.runtime.security.UserClassLoader$4.run
> > > > > (UserClassLoader.java:665)
> > > > > at
> > com.google.apphosting.runtime.security.UserClassLoader$4.run
> > > > > (UserClassLoader.java:659)
> > > > > at java.security.AccessController.doPrivileged(Native Method)
> > > > > at
> > > > > com.google.apphosting.runtime.security.UserClassLoader.findResour...
>
> > > > > My applicationContext.xml:
>
> > > > > 
> > > > > http://www.springframework.org/schema/beans";
> > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> > > > > xmlns:aop="http://www.springframework.org/schema/aop";
> > > > > xmlns:context="http://www.springframework.org/

[appengine-java] Re: Local server works, Appspot fails with java.lang.StackOverflowError when Spring AOP is enabled

2009-10-19 Thread Toby Reyelts
Kris,

Can you send us your app id (privately if you wish) ?

On Mon, Oct 19, 2009 at 3:57 PM, Kris  wrote:

>
> I'm also getting this StackOverflowError, but the app engine log view
> is truncated, so I can't see the initial cause.  Is there any way to
> see the whole log message, so I can try to help track it down/produce
> a test case?
>
> Cheers,
> Kris
>
> On Oct 7, 4:36 pm, Toby Reyelts  wrote:
> > Unfortunately this is an issue that will be very difficult for us to
> solve
> > unless you can provide us with a simple reproducing app that we can use
> to
> > debug. If the issue is important to you, that is the most important thing
> > you can do to help us.On Wed, Oct 7, 2009 at 6:57 AM, Dave Cheong <
> d...@davecheong.com> wrote:
> >
> > > Hi there,
> >
> > > I'm having the same problem and was wondering if you or anyone else
> > > out there have found a solution.
> > > I'm currently using GAE/J 1.2.5 and Spring 2.5.
> >
> > > Like the previous author, everything works locally but I get a
> > > StackOverflowError on Appspot. However, if I comment out ...
> >
> > > 
> >
> > > ... things work on Appspot.
> >
> > > Any help provided is much appreciated.
> >
> > > thanks,
> > > dave
> >
> > > On Aug 26, 3:38 pm, Gabriel Moreira  wrote:
> > > > My app is using Spring 3.0.
> >
> > > > If i disable Spring AOP, my app runs fine both on local and appspot.
> >
> > > > But when i enable Spring AOP (tested with advice or aspects), in
> local
> > > > runtime everything is fine and works, but in appspot im getting this
> > > > error:
> >
> > > > java.lang.StackOverflowError
> > > > at java.lang.String.endsWith(Unknown Source)
> > > > at sun.security.provider.PolicyFile.canonPath(Unknown Source)
> > > > at java.io.FilePermission$1.run(Unknown Source)
> > > > at java.io.FilePermission$1.run(Unknown Source)
> > > > at java.security.AccessController.doPrivileged(Native Method)
> > > > at java.io.FilePermission.init(Unknown Source)
> > > > at java.io.FilePermission.(Unknown Source)
> > > > at
> > > sun.net.www.protocol.file.FileURLConnection.getPermission(Unknown
> > > > Source)
> > > > at sun.misc.URLClassPath.check(Unknown Source)
> > > > at sun.misc.URLClassPath$FileLoader.getResource(Unknown
> Source)
> > > > at sun.misc.URLClassPath$FileLoader.findResource(Unknown
> Source)
> > > > at sun.misc.URLClassPath.findResource(Unknown Source)
> > > > at java.net.URLClassLoader$2.run(Unknown Source)
> > > > at java.security.AccessController.doPrivileged(Native Method)
> > > > at java.net.URLClassLoader.findResource(Unknown Source)
> > > > at
> > > com.google.apphosting.runtime.security.UserClassLoader.findResource
> > > > (UserClassLoader.java:631)
> > > > at java.lang.ClassLoader.getResource(Unknown Source)
> > > > at
> com.google.apphosting.runtime.security.UserClassLoader$4.run
> > > > (UserClassLoader.java:665)
> > > > at
> com.google.apphosting.runtime.security.UserClassLoader$4.run
> > > > (UserClassLoader.java:659)
> > > > at java.security.AccessController.doPrivileged(Native Method)
> > > > at
> > > com.google.apphosting.runtime.security.UserClassLoader.findResource
> > > > (UserClassLoader.java:659)
> > > > at java.lang.ClassLoader.getResource(Unknown Source)
> > > > at
> com.google.apphosting.runtime.security.UserClassLoader$4.run
> > > > (UserClassLoader.java:665)
> > > > at
> com.google.apphosting.runtime.security.UserClassLoader$4.run
> > > > (UserClassLoader.java:659)
> > > > at java.security.AccessController.doPrivileged(Native Method)
> > > > at
> > > com.google.apphosting.runtime.security.UserClassLoader.findResource
> > > > (UserClassLoader.java:659)
> > > > at java.lang.ClassLoader.getResource(Unknown Source)
> > > > at
> com.google.apphosting.runtime.security.UserClassLoader$4.run
> > > > (UserClassLoader.java:665)
> > > > at
> com.google.apphosting.runtime.security.UserClassLoader$4.run
> > > > (UserClassLoader.java:659)
> > > > at java.security.AccessController.doPrivileged(Native Method)
> > > > at
> > > > com.google.apphosting.runtime.security.UserClassLoader.findResour...
> >
> > > > My applicationContext.xml:
> >
> > > > 
> > > > http://www.springframework.org/schema/beans";
> > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> > > > xmlns:aop="http://www.springframework.org/schema/aop";
> > > > xmlns:context="http://www.springframework.org/schema/context";
> > > > xmlns:tx="http://www.springframework.org/schema/tx";
> > > > xsi:schemaLocation="
> http://www.springframework.org/schema/beans
> >
> > >http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
> > > >http://www.springframework.org/schema/aop
> >
> > >http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
> > > > 

[appengine-java] Re: Local server works, Appspot fails with java.lang.StackOverflowError when Spring AOP is enabled

2009-10-19 Thread Kris

I'm also getting this StackOverflowError, but the app engine log view
is truncated, so I can't see the initial cause.  Is there any way to
see the whole log message, so I can try to help track it down/produce
a test case?

Cheers,
Kris

On Oct 7, 4:36 pm, Toby Reyelts  wrote:
> Unfortunately this is an issue that will be very difficult for us to solve
> unless you can provide us with a simple reproducing app that we can use to
> debug. If the issue is important to you, that is the most important thing
> you can do to help us.On Wed, Oct 7, 2009 at 6:57 AM, Dave Cheong 
>  wrote:
>
> > Hi there,
>
> > I'm having the same problem and was wondering if you or anyone else
> > out there have found a solution.
> > I'm currently using GAE/J 1.2.5 and Spring 2.5.
>
> > Like the previous author, everything works locally but I get a
> > StackOverflowError on Appspot. However, if I comment out ...
>
> > 
>
> > ... things work on Appspot.
>
> > Any help provided is much appreciated.
>
> > thanks,
> > dave
>
> > On Aug 26, 3:38 pm, Gabriel Moreira  wrote:
> > > My app is using Spring 3.0.
>
> > > If i disable Spring AOP, my app runs fine both on local and appspot.
>
> > > But when i enable Spring AOP (tested with advice or aspects), in local
> > > runtime everything is fine and works, but in appspot im getting this
> > > error:
>
> > > java.lang.StackOverflowError
> > >         at java.lang.String.endsWith(Unknown Source)
> > >         at sun.security.provider.PolicyFile.canonPath(Unknown Source)
> > >         at java.io.FilePermission$1.run(Unknown Source)
> > >         at java.io.FilePermission$1.run(Unknown Source)
> > >         at java.security.AccessController.doPrivileged(Native Method)
> > >         at java.io.FilePermission.init(Unknown Source)
> > >         at java.io.FilePermission.(Unknown Source)
> > >         at
> > sun.net.www.protocol.file.FileURLConnection.getPermission(Unknown
> > > Source)
> > >         at sun.misc.URLClassPath.check(Unknown Source)
> > >         at sun.misc.URLClassPath$FileLoader.getResource(Unknown Source)
> > >         at sun.misc.URLClassPath$FileLoader.findResource(Unknown Source)
> > >         at sun.misc.URLClassPath.findResource(Unknown Source)
> > >         at java.net.URLClassLoader$2.run(Unknown Source)
> > >         at java.security.AccessController.doPrivileged(Native Method)
> > >         at java.net.URLClassLoader.findResource(Unknown Source)
> > >         at
> > com.google.apphosting.runtime.security.UserClassLoader.findResource
> > > (UserClassLoader.java:631)
> > >         at java.lang.ClassLoader.getResource(Unknown Source)
> > >         at com.google.apphosting.runtime.security.UserClassLoader$4.run
> > > (UserClassLoader.java:665)
> > >         at com.google.apphosting.runtime.security.UserClassLoader$4.run
> > > (UserClassLoader.java:659)
> > >         at java.security.AccessController.doPrivileged(Native Method)
> > >         at
> > com.google.apphosting.runtime.security.UserClassLoader.findResource
> > > (UserClassLoader.java:659)
> > >         at java.lang.ClassLoader.getResource(Unknown Source)
> > >         at com.google.apphosting.runtime.security.UserClassLoader$4.run
> > > (UserClassLoader.java:665)
> > >         at com.google.apphosting.runtime.security.UserClassLoader$4.run
> > > (UserClassLoader.java:659)
> > >         at java.security.AccessController.doPrivileged(Native Method)
> > >         at
> > com.google.apphosting.runtime.security.UserClassLoader.findResource
> > > (UserClassLoader.java:659)
> > >         at java.lang.ClassLoader.getResource(Unknown Source)
> > >         at com.google.apphosting.runtime.security.UserClassLoader$4.run
> > > (UserClassLoader.java:665)
> > >         at com.google.apphosting.runtime.security.UserClassLoader$4.run
> > > (UserClassLoader.java:659)
> > >         at java.security.AccessController.doPrivileged(Native Method)
> > >         at
> > > com.google.apphosting.runtime.security.UserClassLoader.findResour...
>
> > > My applicationContext.xml:
>
> > > 
> > > http://www.springframework.org/schema/beans";
> > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> > >         xmlns:aop="http://www.springframework.org/schema/aop";
> > > xmlns:context="http://www.springframework.org/schema/context";
> > >         xmlns:tx="http://www.springframework.org/schema/tx";
> > >         xsi:schemaLocation="http://www.springframework.org/schema/beans
>
> >http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
> > >                        http://www.springframework.org/schema/aop
>
> >http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
> > >                        http://www.springframework.org/schema/tx
>
> >http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
> > >                        http://www.springframework.org/schema/context
>
> >http://www.springframework.org/schema/context/spring-context-2.5.xsd";>
> > >         
> > >         
>
> > >         
> > class="org.springframework.dao.annotati

[appengine-java] Re: Local server works, Appspot fails with java.lang.StackOverflowError when Spring AOP is enabled

2009-08-27 Thread Toby Reyelts
Do you have a simple sample app that you can reproduce this with?

On Wed, Aug 26, 2009 at 12:38 AM, Gabriel Moreira
wrote:

>
> My app is using Spring 3.0.
>
> If i disable Spring AOP, my app runs fine both on local and appspot.
>
> But when i enable Spring AOP (tested with advice or aspects), in local
> runtime everything is fine and works, but in appspot im getting this
> error:
>
> java.lang.StackOverflowError
>at java.lang.String.endsWith(Unknown Source)
>at sun.security.provider.PolicyFile.canonPath(Unknown Source)
>at java.io.FilePermission$1.run(Unknown Source)
>at java.io.FilePermission$1.run(Unknown Source)
>at java.security.AccessController.doPrivileged(Native Method)
>at java.io.FilePermission.init(Unknown Source)
>at java.io.FilePermission.(Unknown Source)
>at sun.net.www.protocol.file.FileURLConnection.getPermission(Unknown
> Source)
>at sun.misc.URLClassPath.check(Unknown Source)
>at sun.misc.URLClassPath$FileLoader.getResource(Unknown Source)
>at sun.misc.URLClassPath$FileLoader.findResource(Unknown Source)
>at sun.misc.URLClassPath.findResource(Unknown Source)
>at java.net.URLClassLoader$2.run(Unknown Source)
>at java.security.AccessController.doPrivileged(Native Method)
>at java.net.URLClassLoader.findResource(Unknown Source)
>at
> com.google.apphosting.runtime.security.UserClassLoader.findResource
> (UserClassLoader.java:631)
>at java.lang.ClassLoader.getResource(Unknown Source)
>at com.google.apphosting.runtime.security.UserClassLoader$4.run
> (UserClassLoader.java:665)
>at com.google.apphosting.runtime.security.UserClassLoader$4.run
> (UserClassLoader.java:659)
>at java.security.AccessController.doPrivileged(Native Method)
>at
> com.google.apphosting.runtime.security.UserClassLoader.findResource
> (UserClassLoader.java:659)
>at java.lang.ClassLoader.getResource(Unknown Source)
>at com.google.apphosting.runtime.security.UserClassLoader$4.run
> (UserClassLoader.java:665)
>at com.google.apphosting.runtime.security.UserClassLoader$4.run
> (UserClassLoader.java:659)
>at java.security.AccessController.doPrivileged(Native Method)
>at
> com.google.apphosting.runtime.security.UserClassLoader.findResource
> (UserClassLoader.java:659)
>at java.lang.ClassLoader.getResource(Unknown Source)
>at com.google.apphosting.runtime.security.UserClassLoader$4.run
> (UserClassLoader.java:665)
>at com.google.apphosting.runtime.security.UserClassLoader$4.run
> (UserClassLoader.java:659)
>at java.security.AccessController.doPrivileged(Native Method)
>at
> com.google.apphosting.runtime.security.UserClassLoader.findResour...
>
>
>
>
> My applicationContext.xml:
>
> 
> http://www.springframework.org/schema/beans";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>xmlns:aop="http://www.springframework.org/schema/aop";
> xmlns:context="http://www.springframework.org/schema/context";
>xmlns:tx="http://www.springframework.org/schema/tx";
>xsi:schemaLocation="http://www.springframework.org/schema/beans
>
> http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
>http://www.springframework.org/schema/aop
>
> http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
>http://www.springframework.org/schema/tx
>
> http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
>http://www.springframework.org/schema/context
>
> http://www.springframework.org/schema/context/spring-context-2.5.xsd";>
>
>
>
> class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor"
> /
> >
>
> location="classpath:application.properties" />
>
>
> class="org.springframework.orm.jpa.LocalEntityManagerFactoryBean">
> value="transactions-optional" /
> >
>
>
>
> class="org.springframework.orm.jpa.JpaTransactionManager">
> ref="entityManagerFactory" />
>
>
>
> class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
>
>classpath:ehcache.xml
>
>
>
>
>
>
>
>
>
>
>
>
> <--
>
> -->
>
>
>
> advice-ref="ajaxErrorHandlerInteceptor"/>
>
>
>
>
>
> 
>
>
> My class AjaxErrorHandlerInteceptor :
>
>
> package br.com.myapplication.infrastructure.web;
>
> import org.aopalliance.intercept.MethodInterceptor;
> import org.aopalliance.intercept.MethodInvocation;
> import org.apache.log4j.Logger;
> import org.springframework.stereotype.Component;
>
> @Component
> public class AjaxErrorHandlerInteceptor implements MethodInterceptor {
>
>@Override
>public Object invoke(MethodInvoca