[aspectwerkz-dev] [jira] Deleted: (AW-163) JIT compilation seems not thread safe
"
[email protected] (JIRA)" <jira-yCVjj/
[email protected]>
Fri, 3 Aug 2007 07:12:14 +1000 (EST)
| Newsgroups |
gmane.comp.java.aspectwerkz.devel |
| Message-ID |
<[email protected]> |
[ http://jira.codehaus.org/browse/AW-163?page=3Dcom.atlassian.jira.plu=
gin.system.issuetabpanels:all-tabpanel ]
[email protected] deleted AW-163:
---------------------------------
> JIT compilation seems not thread safe
> -------------------------------------
>
> Key: AW-163
> URL: http://jira.codehaus.org/browse/AW-163
> Project: AspectWerkz
> Issue Type: Bug
> Reporter: Alexandre Vasseur
> Assignee: Alexandre Vasseur
>
> -- Michael Sarr
> -- May 27 2004
> See this exception? It is due to:
> Caused by: java.lang.LinkageError: duplicate class definition:
> org/codehaus/aspe
> ctwerkz/joinpoint/management/___AW_JP_execution_weblogic_servlet_FileServ=
let
> _web
> log?G=A1??]=F3??]=F3??a=F3?=3Dv?
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:431)
> ... 24 more
> Which is strange, since I am actually trying to load the class with the n=
ame I am am then generating with and if it is not loaded then I generate it=
, else return the loaded class. It seems that it is not found when I am loa=
ding it, but exists in the hierarchy somehow anyway. What do you think?
> --
> Jonas Bon=E9r
> =20
> > -----Original Message-----
> > From: aspectwerkz-user-admin-81qHHgoATdGxIXFVlbCvtR2eb7JE58TQ@public.gmane.org=20
> > [mailto:aspectwerkz-user-admin-81qHHgoATdGxIXFVlbCvtR2eb7JE58TQ@public.gmane.org] On Behalf=20
> > Of Michael Sarr
> > Sent: Thursday, May 27, 2004 8:01 PM
> > To: aspectwerkz-user-81qHHgoATdGxIXFVlbCvtR2eb7JE58TQ@public.gmane.org
> > Subject: [aspectwerkz-user] Weblogic error in JoinPoint?
> >=20
> > I am getting an exception when at the proceed part of my=20
> > aspect, any suggestions?
> >=20
> > Using Weblogic 8.1 and AW 1.0 RC2
> >=20
> > with the folowing aspect
> > /**
> >=20
> > *
> >=20
> > * @Aspect perJVM
> >=20
> > */
> >=20
> > public class ServletLoggingAspect
> >=20
> > {
> >=20
> >=20
> >=20
> > /**
> >=20
> > * @Around execution(* javax.servlet.GenericServlet+.*(..))
> >=20
> > */
> >=20
> > public Object logServlet(final JoinPoint joinPoint) throws Throwable
> >=20
> > {
> >=20
> > // get all the values to log first
> >=20
> > MethodSignature signature =3D (MethodSignature)joinPoint.getSignature()=
;
> >=20
> > java.lang.Class temp =3D signature.getDeclaringType();
> >=20
> > java.lang.reflect.Method method =3D signature.getMethod();
> >=20
> > // ok log Before and After method execution
> >=20
> > THNDataLogger.log(java.lang.Thread.currentThread().hashCode(),
> > temp.getName()
> >=20
> > ,method.getName(),"Begin","Servlet");
> >=20
> > final Object result =3D joinPoint.proceed();
> >=20
> > THNDataLogger.log(java.lang.Thread.currentThread().hashCode(),
> > temp.getName()
> >=20
> > ,method.getName(),"End","Servlet");
> >=20
> >=20
> >=20
> > return result;
> >=20
> > }
> >=20
> > }// end ServletLoggingAspect
> >=20
> >=20
> >=20
> > Here is the output from Weblogic running there "Avitek=20
> > Medical Records"
> > sample that ships with Weblogic
> >=20
> >=20
> > <May 27, 2004 11:45:58 AM PDT> <Notice> <WebLogicServer>=20
> > <BEA-000360> <Server st arted in RUNNING mode>=20
> > java.lang.reflect.InvocationTargetException
> > at=20
> > sun.reflect.GeneratedMethodAccessor72.invoke(Unknown Source)
> > at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> > sorImpl.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:324)
> > at
> > org.codehaus.aspectwerkz.transform.AsmHelper.loadClass(AsmHelper.java
> > :188)
> > at
> > org.codehaus.aspectwerkz.joinpoint.management.JitCompiler.compileJoin
> > Point(JitCompiler.java:239)
> > at
> > org.codehaus.aspectwerkz.joinpoint.management.JoinPointManager.handle
> > JitCompilation(JoinPointManager.java:644)
> > at
> > org.codehaus.aspectwerkz.joinpoint.management.JoinPointManager.procee
> > dWithExecutionJoinPoint(JoinPointManager.java:193)
> > at weblogic.servlet.FileServlet.service(FileServlet.java)
> > at
> > javax.servlet.http.HttpServlet.___AW_$_AW_$service$_AW_$1$_AW_$javax_
> > servlet_http_HttpServlet(HttpServlet.java:853)
> > at
> > org.codehaus.aspectwerkz.joinpoint.management.___AW_JP_execution_java
> > x_servlet_http_HttpServlet_javax_servlet_http_HttpServlet__210
> > 2247306_THNPRO
> > BE.p
> > roceed(Unknown Source)
> > at
> > com.thresholdnetworks.thnlogger.ServletLoggingAspect.logServlet(Servl
> > etLoggingAspect.java:38)
> > at
> > org.codehaus.aspectwerkz.joinpoint.management.___AW_JP_execution_java
> > x_servlet_http_HttpServlet_javax_servlet_http_HttpServlet__210
> > 2247306_THNPRO
> > BE.p
> > roceed(Unknown Source)
> > at
> > org.codehaus.aspectwerkz.joinpoint.management.JoinPointManager.procee
> > dWithExecutionJoinPoint(JoinPointManager.java:243)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java)
> > at
> > weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
> > (ServletStubImpl.java:971)
> > at
> > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
> > pl.java:402)
> > at
> > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
> > pl.java:305)
> > at
> > weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
> > n.run(WebAppServletContext.java:6354)
> > at
> > weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
> > dSubject.java:317)
> > at
> > weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
> > 118)
> > at
> > weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
> > rvletContext.java:3635)
> > at
> > weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
> > pl.java:2585)
> > at=20
> > weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
> > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
> > Caused by: java.lang.LinkageError: duplicate class definition:
> > org/codehaus/aspe
> > ctwerkz/joinpoint/management/___AW_JP_execution_weblogic_servl
> > et_FileServlet
> > _web
> > log?G=A1??]=F3??]=F3??a=F3?=3Dv?
> > at java.lang.ClassLoader.defineClass0(Native Method)
> > at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
> > at java.lang.ClassLoader.defineClass(ClassLoader.java:431)
> > ... 24 more
> > WARNING: could not dynamically create, compile and load a=20
> > JoinPoint class for jo in point with hash [-1583677914] with=20
> > target class [class weblogic.servlet.FileS
> > ervlet]: java.lang.reflect.InvocationTargetException
> >=20
> >=20
> > _______________________________________________
> > aspectwerkz-user mailing list
> > aspectwerkz-user-81qHHgoATdGxIXFVlbCvtR2eb7JE58TQ@public.gmane.org
> > http://lists.codehaus.org/mailman/listinfo/aspectwerkz-user
> >
--=20
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: htt=
p://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