[ http://jira.codehaus.org/browse/AW-164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

admin@example... deleted AW-164:
---------------------------------


> issue when exception throwned from mixin
> ----------------------------------------
>
>                 Key: AW-164
>                 URL: http://jira.codehaus.org/browse/AW-164
>             Project: AspectWerkz
>          Issue Type: Bug
>            Reporter: Alexandre Vasseur
>            Assignee: Alexandre Vasseur
>
> Needs fix in 0.10
> + backport
>  
> > -----Original Message-----
> > From: Shivshanker G. Shenoy [mailto:shivshankers@coreobjects...] 
> > Sent: Wednesday, May 19, 2004 4:45 PM
> > To: Jonas Boner
> > Subject: RE: [aspectwerkz-user] WrappedRuntimeException
> > 
> > Hi Jonas,
> > With the inclusion of Introduction.java sent by you, here's 
> > what I did.
> >  
> > 1. Since Introduction.java implements Mixin.java interface, 
> > method signatures are modified in Mixin as well.
> > 2. The exception is thrown at line 102 of 
> > IntroductionContainer.java (invokeIntroductionPerJvm() 
> > method), where the caught exception is getting wrapped. 
> > Here the exception that is being caught is InvocationTargetException.
> > So the method invokeIntroductionPerJvm() signature is 
> > modified to throw Throwable and the line below,
> >   throw new WrappedRuntimeException(e.getTargetException());
> > is modified to the following line:
> >   throw e.getTargetException();
> > 3. Now the invokeAdvicePerJvm() method at line 181 of 
> > DefaultAspectContainerStrategy.java is throwing the 
> > exception, where it is getting wrapped again in 
> > WrappedRuntimeException and being thrown.
> >  
> > Since all along the exception chain the exception is being 
> > wrapped in a runtime exception object, the method signatures 
> > would change at all these places (to throw Throwable and in 
> > the method to throw the target exception).
> > The exception trace at point number 3 are below:
> >  
> > Server trace:
> > -------------
> > com.coreobjects.cfc.account.authentication.AuthenticationException
> >         at 
> > org.codehaus.aspectwerkz.aspect.DefaultAspectContainerStrategy
> > .invokeAdvicePerJvm(DefaultAspectCo
> > ntainerStrategy.java:181)
> >         at 
> > org.codehaus.aspectwerkz.aspect.DefaultAspectContainerStrategy
> > .invokeAdvice(DefaultAspectContaine
> > rStrategy.java:123)
> >         at 
> > org.codehaus.aspectwerkz.joinpoint.management.AroundAdviceExec
> > utor.proceed(AroundAdviceExecutor.j
> > ava:98)
> >         at 
> > org.codehaus.aspectwerkz.joinpoint.management.MethodJoinPoint.
> > proceed(MethodJoinPoint.java:66)
> >         at 
> > org.codehaus.aspectwerkz.joinpoint.management.JoinPointManager
> > .proceedWithExecutionJoinPoint(Join
> > PointManager.java:243)
> >         at 
> > com.coreobjects.cfc.account.authentication.impl.UserAuthClearT
> > extImpl.validate(Unknown Source)
> >         at 
> > com.coreobjects.cfc.account.authentication.impl.UserAuthClearT
> > extImpl.___AW_$_AW_$authenticate$_A
> > W_$1$_AW_$com_coreobjects_cfc_account_authentication_impl_User
> > AuthClearTextImpl(Unknown Source)
> >         at 
> > org.codehaus.aspectwerkz.joinpoint.management.___AW_JP_executi
> > on_com_coreobjects_cfc_account_auth
> > entication_impl_UserAuthClearTextImpl_com_coreobjects_cfc_acco
> > unt_authentication_impl_UserAuthClearTextImpl_
> > 830998678_cfc.proceed(Unknown Source)
> >         at 
> > com.coreobjects.cfc.util.LoggingAspect.execute(Unknown Source)
> >         at 
> > org.codehaus.aspectwerkz.joinpoint.management.___AW_JP_executi
> > on_com_coreobjects_cfc_account_auth
> > entication_impl_UserAuthClearTextImpl_com_coreobjects_cfc_acco
> > unt_authentication_impl_UserAuthClearTextImpl_
> > 830998678_cfc.proceed(Unknown Source)
> >         at 
> > org.codehaus.aspectwerkz.joinpoint.management.JoinPointManager
> > .proceedWithExecutionJoinPoint(Join
> > PointManager.java:243)
> >         at 
> > com.coreobjects.cfc.account.authentication.impl.UserAuthClearT
> > extImpl.authenticate(Unknown Source
> > )
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at 
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> > orImpl.java:39)
> >         at 
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> > odAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:324)
> >         at 
> > org.codehaus.aspectwerkz.aspect.IntroductionContainer.invokeIn
> > troductionPerJvm(IntroductionContai
> > ner.java:95)
> >         at 
> > org.codehaus.aspectwerkz.aspect.Introduction.invokeMixin(Intro
> > duction.java:256)
> >         at 
> > com.coreobjects.cfc.account.authentication.AuthenticationManag
> > er.authenticate(Unknown Source)
> >         at 
> > com.coreobjects.cfc.account.ui.tapestry.page.LoginPage.___AW_$
> > _AW_$authenticate$_AW_$1$_AW_$com_c
> > oreobjects_cfc_account_ui_tapestry_page_LoginPage(Unknown Source)
> >         at 
> > org.codehaus.aspectwerkz.joinpoint.management.___AW_JP_executi
> > on_com_coreobjects_cfc_account_ui_t
> > apestry_page_LoginPage_com_coreobjects_cfc_account_ui_tapestry
> > _page_LoginPage__178932534_cfc.proceed(Unknown
> >  Source)
> >         at 
> > com.coreobjects.cfc.util.LoggingAspect.execute(Unknown Source)
> >         at 
> > org.codehaus.aspectwerkz.joinpoint.management.___AW_JP_executi
> > on_com_coreobjects_cfc_account_ui_t
> > apestry_page_LoginPage_com_coreobjects_cfc_account_ui_tapestry
> > _page_LoginPage__178932534_cfc.proceed(Unknown
> >  Source)
> >         at 
> > org.codehaus.aspectwerkz.joinpoint.management.JoinPointManager
> > .proceedWithExecutionJoinPoint(Join
> > PointManager.java:243)
> >         at 
> > com.coreobjects.cfc.account.ui.tapestry.page.LoginPage.authent
> > icate(Unknown Source)
> >         at 
> > com.coreobjects.cfc.account.ui.tapestry.page.LoginPage.___AW_$
> > _AW_$loginFormSubmitted$_AW_$1$_AW_
> > $com_coreobjects_cfc_account_ui_tapestry_page_LoginPage(Unknow
> > n Source)
> >         at 
> > org.codehaus.aspectwerkz.joinpoint.management.___AW_JP_executi
> > on_com_coreobjects_cfc_account_ui_t
> > apestry_page_LoginPage_com_coreobjects_cfc_account_ui_tapestry
> > _page_LoginPage_169658945_cfc.proceed(Unknown
> > Source)
> >         at 
> > com.coreobjects.cfc.util.LoggingAspect.execute(Unknown Source)
> >         at 
> > org.codehaus.aspectwerkz.joinpoint.management.___AW_JP_executi
> > on_com_coreobjects_cfc_account_ui_t
> > apestry_page_LoginPage_com_coreobjects_cfc_account_ui_tapestry
> > _page_LoginPage_169658945_cfc.proceed(Unknown
> > Source)
> >         at 
> > org.codehaus.aspectwerkz.joinpoint.management.JoinPointManager
> > .proceedWithExecutionJoinPoint(Join
> > PointManager.java:243)
> >         at 
> > com.coreobjects.cfc.account.ui.tapestry.page.LoginPage.loginFo
> > rmSubmitted(Unknown Source)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at 
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> > orImpl.java:39)
> >         at 
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> > odAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:324)
> >         at 
> > org.apache.tapestry.listener.ListenerMap.invokeTargetMethod(Li
> > stenerMap.java:301)
> >         at 
> > org.apache.tapestry.listener.ListenerMap.access$100(ListenerMa
> > p.java:87)
> >         at 
> > org.apache.tapestry.listener.ListenerMap$SyntheticListener.inv
> > oke(ListenerMap.java:141)
> >         at 
> > org.apache.tapestry.listener.ListenerMap$SyntheticListener.act
> > ionTriggered(ListenerMap.java:146)
> >         at 
> > org.apache.tapestry.form.Form.renderComponent(Form.java:457)
> >         at 
> > org.apache.tapestry.AbstractComponent.render(AbstractComponent
> > .java:898)
> >         at org.apache.tapestry.form.Form.rewind(Form.java:602)
> >         at 
> > org.apache.tapestry.engine.RequestCycle.rewindForm(RequestCycl
> > e.java:476)
> >         at org.apache.tapestry.form.Form.trigger(Form.java:616)
> >         at 
> > org.apache.tapestry.engine.DirectService.service(DirectService
> > .java:210)
> >         at 
> > org.apache.tapestry.engine.AbstractEngine.service(AbstractEngi
> > ne.java:913)
> >         at 
> > org.apache.tapestry.ApplicationServlet.doService(ApplicationSe
> > rvlet.java:238)
> >         at 
> > org.apache.tapestry.ApplicationServlet.doPost(ApplicationServl
> > et.java:367)
> >         at 
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> >         at 
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >         at 
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> > er(ApplicationFilterChain.java:247)
> >         at 
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> > cationFilterChain.java:193)
> >         at 
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> > rapperValve.java:260)
> >         at 
> > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > eContext.invokeNext(StandardPipelin
> > e.java:643)
> >         at 
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > ine.java:480)
> >         at 
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> >         at 
> > org.apache.catalina.core.StandardContextValve.invoke(StandardC
> > ontextValve.java:191)
> >         at 
> > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > eContext.invokeNext(StandardPipelin
> > e.java:643)
> >         at 
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > ine.java:480)
> >         at 
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> >         at 
> > org.apache.catalina.core.StandardContext.invoke(StandardContex
> > t.java:2415)
> >         at 
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> > Valve.java:180)
> >         at 
> > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > eContext.invokeNext(StandardPipelin
> > e.java:643)
> >         at 
> > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
> > spatcherValve.java:170)
> >         at 
> > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > eContext.invokeNext(StandardPipelin
> > e.java:641)
> >         at 
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> > Valve.java:172)
> >         at 
> > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > eContext.invokeNext(StandardPipelin
> > e.java:641)
> >         at 
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > ine.java:480)
> >         at 
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> >         at 
> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> > gineValve.java:174)
> >         at 
> > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > eContext.invokeNext(StandardPipelin
> > e.java:643)
> >         at 
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > ine.java:480)
> >         at 
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> >         at 
> > org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.
> > java:223)
> >         at 
> > org.apache.coyote.http11.Http11Processor.process(Http11Process
> > or.java:432)
> >         at 
> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle
> > r.processConnection(Http11Protocol.
> > java:386)
> >         at 
> > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi
> > nt.java:534)
> >         at 
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> > ThreadPool.java:530)
> >         at java.lang.Thread.run(Thread.java:536)
> > Caused by: 
> > com.coreobjects.cfc.account.authentication.AuthenticationException
> >         at 
> > com.coreobjects.cfc.account.authentication.impl.UserAuthClearT
> > extImpl.___AW_$_AW_$validate$_AW_$1
> > $_AW_$com_coreobjects_cfc_account_authentication_impl_UserAuth
> > ClearTextImpl(Unknown Source)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at 
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> > orImpl.java:39)
> >         at 
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> > odAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:324)
> >         at 
> > org.codehaus.aspectwerkz.joinpoint.management.JoinPointBase.in
> > vokeTargetMethodExecution(JoinPoint
> > Base.java:94)
> >         at 
> > org.codehaus.aspectwerkz.joinpoint.management.JoinPointBase.in
> > vokeJoinPoint(JoinPointBase.java:27
> > 1)
> >         at 
> > org.codehaus.aspectwerkz.joinpoint.management.AroundAdviceExec
> > utor.proceed(AroundAdviceExecutor.j
> > ava:88)
> >         at 
> > org.codehaus.aspectwerkz.joinpoint.management.MethodJoinPoint.
> > proceed(MethodJoinPoint.java:66)
> >         at 
> > com.coreobjects.cfc.util.LoggingAspect.execute(Unknown Source)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at 
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> > orImpl.java:39)
> >         at 
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> > odAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:324)
> >         at 
> > org.codehaus.aspectwerkz.aspect.DefaultAspectContainerStrategy
> > .invokeAdvicePerJvm(DefaultAspectCo
> > ntainerStrategy.java:178)        
> > ... 78 more
> > 
> > Regards,
> > Shiv.
> > 
> > -----Original Message----- 
> > From: Jonas Boner 
> > Sent: Tue 5/18/2004 1:27 PM 
> > To: Shivshanker G. Shenoy 
> > Cc: 
> > Subject: RE: [aspectwerkz-user] WrappedRuntimeException
> > 
> > 
> > 
> > Hi.
> > 
> > Thanks a lot for the stacktrace, with your help I think 
> > I have found the bug.
> > Please verify that it has been fixed by using this 
> > attached file instead of the one you have in the dist.
> > 
> > Thanks.
> > 
> > --
> > Jonas Bonér
> > Senior Software Engineer
> > Java Runtime Products Group
> > BEA Systems
> > Cell: +46707616256
> > 
> > 
> > 
> > > -----Original Message-----
> > > From: Shivshanker G. Shenoy 
> > [mailto:shivshankers@coreobjects...]
> > > Sent: Tuesday, May 18, 2004 6:20 PM
> > > To: Jonas Boner
> > > Subject: RE: [aspectwerkz-user] WrappedRuntimeException
> > >
> > > Hi Jonas,
> > >
> > > Thanks for your patience (sorry for being late, I wasnt well
> > > yesterday).
> > >
> > > Here's the trace after I compiled
> > > WrappedRuntimeException.java sent by you and placed into
> > > aspectwerkz-0.10.RC2.jar (I couldnt figure out how to execute
> > > maven command you mentioned). And placed the jar in my
> > > application library.
> > >
> > > Pls notice the following log statement after the trace: "INFO:
> > > Authentication failed e.getClass().getName()--"
> > >
> > > Let me know if this is ok.
> > >
> > > ============================================== stacktrace
> > > start =============================================
> > >
> > > 
> > com.coreobjects.cfc.account.authentication.AuthenticationException
> > >
> > > at
> > > org.codehaus.aspectwerkz.aspect.Introduction.invokeMixin(Intro
> > > duction.ja
> > > va:280)
> > >
> > > at
> > > com.coreobjects.cfc.account.authentication.AuthenticationManag
> > > er.authent
> > > icate(Unknown Source)
> > >
> > > at
> > > com.coreobjects.cfc.account.ui.tapestry.page.LoginPage.___AW_$
> > > _AW_$authe
> > > nticate$_AW_$1$_AW_$com_c
> > >
> > > 
> > oreobjects_cfc_account_ui_tapestry_page_LoginPage(Unknown Source)
> > >
> > > at
> > > org.codehaus.aspectwerkz.joinpoint.management.___AW_JP_executi
> > > on_com_cor
> > > eobjects_cfc_account_ui_t
> > >
> > > apestry_page_LoginPage_com_coreobjects_cfc_account_ui_tapestry
> > > _page_Logi
> > > nPage__178932534_cfc.proceed(Unknown
> > >
> > > Source)
> > >
> > > at 
> > com.coreobjects.cfc.util.LoggingAspect.execute(Unknown Source)
> > >
> > > at
> > > org.codehaus.aspectwerkz.joinpoint.management.___AW_JP_executi
> > > on_com_cor
> > > eobjects_cfc_account_ui_t
> > >
> > > apestry_page_LoginPage_com_coreobjects_cfc_account_ui_tapestry
> > > _page_Logi
> > > nPage__178932534_cfc.proceed(Unknown
> > >
> > > Source)
> > >
> > > at
> > > org.codehaus.aspectwerkz.joinpoint.management.JoinPointManager
> > > .proceedWi
> > > thExecutionJoinPoint(Join
> > >
> > > PointManager.java:243)
> > >
> > > at
> > > com.coreobjects.cfc.account.ui.tapestry.page.LoginPage.authent
> > > icate(Unkn
> > > own Source)
> > >
> > > at
> > > com.coreobjects.cfc.account.ui.tapestry.page.LoginPage.___AW_$
> > > _AW_$login
> > > FormSubmitted$_AW_$1$_AW_
> > >
> > > $com_coreobjects_cfc_account_ui_tapestry_page_LoginPage(Unknow
> > > n Source)
> > >
> > > at
> > > org.codehaus.aspectwerkz.joinpoint.management.___AW_JP_executi
> > > on_com_cor
> > > eobjects_cfc_account_ui_t
> > >
> > > apestry_page_LoginPage_com_coreobjects_cfc_account_ui_tapestry
> > > _page_Logi
> > > nPage_169658945_cfc.proceed(Unknown
> > >
> > > Source)
> > >
> > > at 
> > com.coreobjects.cfc.util.LoggingAspect.execute(Unknown Source)
> > >
> > > at
> > > org.codehaus.aspectwerkz.joinpoint.management.___AW_JP_executi
> > > on_com_cor
> > > eobjects_cfc_account_ui_t
> > >
> > > apestry_page_LoginPage_com_coreobjects_cfc_account_ui_tapestry
> > > _page_Logi
> > > nPage_169658945_cfc.proceed(Unknown
> > >
> > > Source)
> > >
> > > at
> > > org.codehaus.aspectwerkz.joinpoint.management.JoinPointManager
> > > .proceedWi
> > > thExecutionJoinPoint(Join
> > >
> > > PointManager.java:243)
> > >
> > > at
> > > com.coreobjects.cfc.account.ui.tapestry.page.LoginPage.loginFo
> > > rmSubmitte
> > > d(Unknown Source)
> > >
> > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >
> > > at
> > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> > > orImpl.jav
> > > a:39)
> > >
> > > at
> > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> > > odAccessor
> > > Impl.java:25)
> > >
> > > at java.lang.reflect.Method.invoke(Method.java:324)
> > >
> > > at
> > > org.apache.tapestry.listener.ListenerMap.invokeTargetMethod(Li
> > > stenerMap.
> > > java:301)
> > >
> > > at
> > > org.apache.tapestry.listener.ListenerMap.access$100(ListenerMa
> > > p.java:87)
> > >
> > > at
> > > org.apache.tapestry.listener.ListenerMap$SyntheticListener.inv
> > > oke(Listen
> > > erMap.java:141)
> > >
> > > at
> > > org.apache.tapestry.listener.ListenerMap$SyntheticListener.act
> > > ionTrigger
> > > ed(ListenerMap.java:146)
> > >
> > > at 
> > org.apache.tapestry.form.Form.renderComponent(Form.java:457)
> > >
> > > at
> > > org.apache.tapestry.AbstractComponent.render(AbstractComponent
> > > .java:898)
> > >
> > > at org.apache.tapestry.form.Form.rewind(Form.java:602)
> > >
> > > at
> > > org.apache.tapestry.engine.RequestCycle.rewindForm(RequestCycl
> > > e.java:476
> > > )
> > >
> > > at org.apache.tapestry.form.Form.trigger(Form.java:616)
> > >
> > > at
> > > org.apache.tapestry.engine.DirectService.service(DirectService
> > > .java:210)
> > >
> > > at
> > > org.apache.tapestry.engine.AbstractEngine.service(AbstractEngi
> > > ne.java:91
> > > 3)
> > >
> > > at
> > > org.apache.tapestry.ApplicationServlet.doService(ApplicationSe
> > > rvlet.java
> > > :238)
> > >
> > > at
> > > org.apache.tapestry.ApplicationServlet.doPost(ApplicationServl
> > > et.java:36
> > > 7)
> > >
> > > at 
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> > >
> > > at 
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > >
> > > at
> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> > > er(Applica
> > > tionFilterChain.java:247)
> > >
> > > at
> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> > > cationFilt
> > > erChain.java:193)
> > >
> > > at
> > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> > > rapperValv
> > > e.java:260)
> > >
> > > at
> > > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > > eContext.i
> > > nvokeNext(StandardPipelin
> > >
> > > e.java:643)
> > >
> > > at
> > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > > ine.java:4
> > > 80)
> > >
> > > at
> > > 
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > >
> > > at
> > > org.apache.catalina.core.StandardContextValve.invoke(StandardC
> > > ontextValv
> > > e.java:191)
> > >
> > > at
> > > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > > eContext.i
> > > nvokeNext(StandardPipelin
> > >
> > > e.java:643)
> > >
> > > at
> > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > > ine.java:4
> > > 80)
> > >
> > > at
> > > 
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > >
> > > at
> > > org.apache.catalina.core.StandardContext.invoke(StandardContex
> > > t.java:241
> > > 5)
> > >
> > > at
> > > org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> > > Valve.java
> > > :180)
> > >
> > > at
> > > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > > eContext.i
> > > nvokeNext(StandardPipelin
> > >
> > > e.java:643)
> > >
> > > at
> > > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
> > > spatcherVa
> > > lve.java:170)
> > >
> > > at
> > > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > > eContext.i
> > > nvokeNext(StandardPipelin
> > >
> > > e.java:641)
> > >
> > > at
> > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> > > Valve.java
> > > :172)
> > >
> > > at
> > > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > > eContext.i
> > > nvokeNext(StandardPipelin
> > >
> > > e.java:641)
> > >
> > > at
> > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > > ine.java:4
> > > 80)
> > >
> > > at
> > > 
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > >
> > > at
> > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> > > gineValve.
> > > java:174)
> > >
> > > at
> > > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > > eContext.i
> > > nvokeNext(StandardPipelin
> > >
> > > e.java:643)
> > >
> > > at
> > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > > ine.java:4
> > > 80)
> > >
> > > at
> > > 
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > >
> > > at
> > > org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.
> > > java:223)
> > >
> > > at
> > > org.apache.coyote.http11.Http11Processor.process(Http11Process
> > > or.java:43
> > > 2)
> > >
> > > at
> > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle
> > > r.processC
> > > onnection(Http11Protocol.
> > >
> > > java:386)
> > >
> > > at
> > > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi
> > > nt.java:53
> > > 4)
> > >
> > > at
> > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> > > ThreadPool
> > > .java:530)
> > >
> > > at java.lang.Thread.run(Thread.java:536)
> > >
> > > Caused by:
> > > 
> > com.coreobjects.cfc.account.authentication.AuthenticationException
> > >
> > > at
> > > org.codehaus.aspectwerkz.aspect.IntroductionContainer.invokeIn
> > > troduction
> > > PerJvm(IntroductionContai
> > >
> > > ner.java:102)
> > >
> > > at
> > > org.codehaus.aspectwerkz.aspect.Introduction.invokeMixin(Intro
> > > duction.ja
> > > va:256)
> > >
> > > ... 61 more
> > >
> > > Caused by:
> > > 
> > com.coreobjects.cfc.account.authentication.AuthenticationException
> > >
> > > at
> > > org.codehaus.aspectwerkz.aspect.DefaultAspectContainerStrategy
> > > .invokeAdv
> > > icePerJvm(DefaultAspectCo
> > >
> > > ntainerStrategy.java:181)
> > >
> > > at
> > > org.codehaus.aspectwerkz.aspect.DefaultAspectContainerStrategy
> > > .invokeAdv
> > > ice(DefaultAspectContaine
> > >
> > > rStrategy.java:123)
> > >
> > > at
> > > org.codehaus.aspectwerkz.joinpoint.management.AroundAdviceExec
> > > utor.proce
> > > ed(AroundAdviceExecutor.j
> > >
> > > ava:98)
> > >
> > > at
> > > org.codehaus.aspectwerkz.joinpoint.management.MethodJoinPoint.
> > > proceed(Me
> > > thodJoinPoint.java:66)
> > >
> > > at
> > > org.codehaus.aspectwerkz.joinpoint.management.JoinPointManager
> > > .proceedWi
> > > thExecutionJoinPoint(Join
> > >
> > > PointManager.java:243)
> > >
> > > at
> > > com.coreobjects.cfc.account.authentication.impl.UserAuthClearT
> > > extImpl.va
> > > lidate(Unknown Source)
> > >
> > > at
> > > com.coreobjects.cfc.account.authentication.impl.UserAuthClearT
> > > extImpl.__
> > > _AW_$_AW_$authenticate$_A
> > >
> > > W_$1$_AW_$com_coreobjects_cfc_account_authentication_impl_User
> > > AuthClearT
> > > extImpl(Unknown Source)
> > >
> > > at
> > > org.codehaus.aspectwerkz.joinpoint.management.___AW_JP_executi
> > > on_com_cor
> > > eobjects_cfc_account_auth
> > >
> > > entication_impl_UserAuthClearTextImpl_com_coreobjects_cfc_acco
> > > unt_authen
> > > tication_impl_UserAuthClearTextImpl_
> > >
> > > 830998678_cfc.proceed(Unknown Source)
> > >
> > > at 
> > com.coreobjects.cfc.util.LoggingAspect.execute(Unknown Source)
> > >
> > > at
> > > org.codehaus.aspectwerkz.joinpoint.management.___AW_JP_executi
> > > on_com_cor
> > > eobjects_cfc_account_auth
> > >
> > > entication_impl_UserAuthClearTextImpl_com_coreobjects_cfc_acco
> > > unt_authen
> > > tication_impl_UserAuthClearTextImpl_
> > >
> > > 830998678_cfc.proceed(Unknown Source)
> > >
> > > at
> > > org.codehaus.aspectwerkz.joinpoint.management.JoinPointManager
> > > .proceedWi
> > > thExecutionJoinPoint(Join
> > >
> > > PointManager.java:243)
> > >
> > > at
> > > com.coreobjects.cfc.account.authentication.impl.UserAuthClearT
> > > extImpl.au
> > > thenticate(Unknown Source
> > >
> > > )
> > >
> > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >
> > > at
> > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> > > orImpl.jav
> > > a:39)
> > >
> > > at
> > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> > > odAccessor
> > > Impl.java:25)
> > >
> > > at java.lang.reflect.Method.invoke(Method.java:324)
> > >
> > > at
> > > org.codehaus.aspectwerkz.aspect.IntroductionContainer.invokeIn
> > > troduction
> > > PerJvm(IntroductionContai
> > >
> > > ner.java:94)
> > >
> > > ... 62 more
> > >
> > > Caused by:
> > > 
> > com.coreobjects.cfc.account.authentication.AuthenticationException
> > >
> > > at
> > > com.coreobjects.cfc.account.authentication.impl.UserAuthClearT
> > > extImpl.__
> > > _AW_$_AW_$validate$_AW_$1
> > >
> > > $_AW_$com_coreobjects_cfc_account_authentication_impl_UserAuth
> > > ClearTextI
> > > mpl(Unknown Source)
> > >
> > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >
> > > at
> > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> > > orImpl.jav
> > > a:39)
> > >
> > > at
> > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> > > odAccessor
> > > Impl.java:25)
> > >
> > > at java.lang.reflect.Method.invoke(Method.java:324)
> > >
> > > at
> > > org.codehaus.aspectwerkz.joinpoint.management.JoinPointBase.in
> > > vokeTarget
> > > MethodExecution(JoinPoint
> > >
> > > Base.java:94)
> > >
> > > at
> > > org.codehaus.aspectwerkz.joinpoint.management.JoinPointBase.in
> > > vokeJoinPo
> > > int(JoinPointBase.java:27
> > >
> > > 1)
> > >
> > > at
> > > org.codehaus.aspectwerkz.joinpoint.management.AroundAdviceExec
> > > utor.proce
> > > ed(AroundAdviceExecutor.j
> > >
> > > ava:88)
> > >
> > > at
> > > org.codehaus.aspectwerkz.joinpoint.management.MethodJoinPoint.
> > > proceed(Me
> > > thodJoinPoint.java:66)
> > >
> > > at 
> > com.coreobjects.cfc.util.LoggingAspect.execute(Unknown Source)
> > >
> > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >
> > > at
> > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> > > orImpl.jav
> > > a:39)
> > >
> > > at
> > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> > > odAccessor
> > > Impl.java:25)
> > >
> > > at java.lang.reflect.Method.invoke(Method.java:324)
> > >
> > > at
> > > org.codehaus.aspectwerkz.aspect.DefaultAspectContainerStrategy
> > > .invokeAdv
> > > icePerJvm(DefaultAspectCo
> > >
> > > ntainerStrategy.java:178)
> > >
> > > ... 78 more
> > >
> > > May 18, 2004 10:31:16 PM LoginPage loginFormSubmitted
> > >
> > > INFO: Authentication failed e.getClass().getName()--:
> > > org.codehaus.aspectwerkz.exception.WrappedRuntimeExcep
> > >
> > > tion
> > >
> > > May 18, 2004 10:31:16 PM LoginPage loginFormSubmitted
> > >
> > > INFO: Authentication failed e.getCause()--:
> > > 
> > com.coreobjects.cfc.account.authentication.AuthenticationExcepti
> > >
> > > on
> > >
> > > May 18, 2004 10:31:16 PM LoginPage loginFormSubmitted
> > >
> > > INFO: Authentication failed 
> > e.getCause().getClass().getName()--:
> > > org.codehaus.aspectwerkz.exception.WrappedR
> > >
> > > untimeException
> > >
> > > May 18, 2004 10:31:16 PM
> > > com.coreobjects.cfc.account.ui.tapestry.page.LoginPage
> > > getDefaultLoginMessage
> > >
> > > INFO: >> entry.
> > >
> > > May 18, 2004 10:31:16 PM
> > > com.coreobjects.cfc.account.ui.tapestry.page.LoginPage
> > > getDefaultLoginMessage
> > >
> > > INFO: exit >>.
> > >
> > > ============================================== stacktrace end
> > > =============================================
> > >
> > > Regards,
> > >
> > > Shiv.
> > >
> > > 
> > >
> > > -----Original Message-----
> > >
> > > From: Jonas Boner [mailto:jboner@bea...]
> > >
> > > Sent: Monday, May 17, 2004 11:53 AM
> > >
> > > To: Shivshanker G. Shenoy
> > >
> > > Subject: RE: [aspectwerkz-user] WrappedRuntimeException
> > >
> > > 
> > >
> > > 
> > >
> > > Ok, thanks.
> > >
> > > Could you replace the current version of
> > > WrappedRuntimeException in the dists with the attached
> > > version, do a clean build ('maven clean
> > > aspectwerkz:jar') and then do a 'e.printStackTrace()' on the
> > > WrappedRuntimeException (and not the getCause exception).
> > > Then send me the stacktrace. I have a hard time finding out
> > > where this wrapping occurs.
> > >
> > > That would be great.
> > >
> > > Thanks.
> > >
> > > /Jonas
> > >
> > > -----Original Message-----
> > >
> > > From: Shivshanker G. Shenoy 
> > [mailto:shivshankers@coreobjects...]
> > >
> > > Sent: Mon 5/17/2004 5:42 AM
> > >
> > > To: Jonas Boner
> > >
> > > Cc:
> > >
> > > Subject: RE: [aspectwerkz-user] WrappedRuntimeException
> > >
> > > I used AspectWerkzC to do offline aspectization on 
> > bycodes, using the
> > >
> > > following ANT task:
> > >
> > > <target name="aspectwerkz" description="">
> > >
> > > <pathconvert property="compilePath"
> > >
> > > dirsep="${file.separator}"
> > >
> > > pathsep="${path.separator}">
> > >
> > > <path>
> > >
> > > <fileset dir="${dir.lib}">
> > >
> > > <include name="*.jar"/>
> > >
> > > </fileset>
> > >
> > > </path>
> > >
> > > </pathconvert>
> > >
> > > <java 
> > classname="org.codehaus.aspectwerkz.compiler.AspectWerkzC"
> > >
> > > fork="true">
> > >
> > > <classpath>
> > >
> > > <fileset dir="${aspectwerkz.home}/lib">
> > >
> > > <include name="*.jar"/>
> > >
> > > </fileset>
> > >
> > > </classpath>
> > >
> > > <sysproperty key="aspectwerkz.transform.filter" value="no"/>
> > >
> > > <sysproperty key="aspectwerkz.definition.file"
> > >
> > > value="${dir.classes}/aspectwerkz.xml"/>
> > >
> > > <sysproperty key="aspectwerkz.home" 
> > value="${aspectwerkz.home}"/>
> > >
> > > <arg value="-verbose"/>
> > >
> > > <arg value="-cp"/>
> > >
> > > <arg value="${compilePath}"/>
> > >
> > > <arg value="${dir.classes}"/>
> > >
> > > </java>
> > >
> > > </target>
> > >
> > > Regards,
> > >
> > > Shiv.
> > >
> > > -----Original Message-----
> > >
> > > From: Jonas Boner [mailto:jboner@bea...]
> > >
> > > Sent: Sunday, May 16, 2004 2:15 PM
> > >
> > > To: Shivshanker G. Shenoy
> > >
> > > Subject: RE: [aspectwerkz-user] WrappedRuntimeException
> > >
> > > 
> > >
> > > Hi.
> > >
> > > Does this happen when JIT compilation is off or on? E.g have
> > > you turned
> > >
> > > off JIT with '-Daspectwerkz.jit.off.true'??
> > >
> > > Thanks.
> > >
> > > --
> > >
> > > Jonas Bonér
> > >
> > > Senior Software Engineer
> > >
> > > Java Runtime Products Group
> > >
> > > BEA Systems
> > >
> > > Cell: +46707616256
> > >
> > > > -----Original Message-----
> > >
> > > > From: aspectwerkz-user-admin@lists.codehaus...
> > >
> > > > [mailto:aspectwerkz-user-admin@lists.codehaus...] On Behalf
> > >
> > > > Of Shivshanker G. Shenoy
> > >
> > > > Sent: Wednesday, May 12, 2004 12:02 PM
> > >
> > > > To: aspectwerkz-user@lists.codehaus...
> > >
> > > > Subject: [aspectwerkz-user] WrappedRuntimeException
> > >
> > > >
> > >
> > > > Hi,
> > >
> > > >
> > >
> > > > While using aspectwerkz 0.10RC2, I came across an 
> > interesting
> > >
> > > > observation:
> > >
> > > >
> > >
> > > > I have a business implementation class that has a business
> > >
> > > > method (viz., authenticate()). This throws
> > >
> > > > AuthenticationException (a custom exception).
> > >
> > > >
> > >
> > > > This class is Introduced by aspectwerkz on to another dummy
> > >
> > > > class (without any methods or variables) which is 
> > accessed by
> > >
> > > > the client program.
> > >
> > > > When the client calls authenticate() method,
> > >
> > > > AuthenticationException is thrown, but the one caught in the
> > >
> > > > client program is of
> > >
> > > > "org.codehaus.aspectwerkz.exception.WrappedRuntimeException"
> > >
> > > > type. And getCause() method on this object returns
> > >
> > > > AuthenticationException Throwable object.
> > >
> > > >
> > >
> > > > My understanding is that since the client is calling a
> > >
> > > > business method, it should be interested in 
> > catching business
> > >
> > > > exceptions only. Why and how is the business exception being
> > >
> > > > wrapped by
> > >
> > > > org.codehaus.aspectwerkz.exception.WrappedRuntimeException
> > >
> > > > (more over this is a runtime exception)?
> > >
> > > >
> > >
> > > > Can you please let me know if I'm missing something here or
> > >
> > > > is this a bug?
> > >
> > > >
> > >
> > > > Regards,
> > >
> > > > Shiv.
> > >
> > > >
> > >
> > > >
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > >
> > 
> > 
> >

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Message Thread

[aspectwerkz-dev] [jira] Deleted: (AW-164) issue when exception throwned from mixin admin@example.com (JIRA) (jira@codehaus...)
02 Aug 2007
Copyright 2006-2007 The Codehaus Foundation
Powered by Codehaus March (Version: 0.1-HEAD)