It is maybe due to the absence of the packages javax.*  and java.* ( =>
java.rmi.RemoteException and  javax.rmi.CORBA.Util.mapSystemException …)

I will try with it and I will say to you the result

 

Cordialement / Best regards

 

Jean-Louis Pasturel
 <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED]

 

  _____  

De : Jean-Louis PASTUREL [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 20 février 2008 15:54
À : 'aspectj-users@eclipse.org'
Objet : Exception LTWeaving with Jacorb

 

Hi,

Weaving with Jacorb :

Is this kind of  exception has a mean for someone :

 

java.rmi.RemoteException: CORBA UNKNOWN 0 No; nested exception is: 

            org.omg.CORBA.UNKNOWN: org.omg.CORBA.portable.UnknownException

            at
com.sun.corba.se.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:282)

            at
org.objectweb.carol.util.delegate.UtilDelegateImpl.mapSystemException(UtilDe
legateImpl.java:221)

            at javax.rmi.CORBA.Util.mapSystemException(Util.java:67)

            at
com.ft.esource.server.executionprocessus.facade.ejb._ProcessusEJBSession_Stu
b.creerProcessus(Unknown Source)

            at
com.ft.esource.client.commun.executionprocessus.delegate.ProcessusDelegate.c
reerProcessus_aroundBody18(ProcessusDelegate.java:179)

            at
com.ft.esource.client.commun.executionprocessus.delegate.ProcessusDelegate$A
jcClosure19.run(ProcessusDelegate.java:1)

            at
iep.perf.jvm14.abstractAspects.AbstractSimpleDurationMethod14.ajc$around$iep
_perf_jvm14_abstractAspects_AbstractSimpleDurationMethod14$1$cd102c33proceed
(AbstractSimpleDurationMethod14.aj:1)

            at
iep.perf.jvm14.abstractAspects.AbstractSimpleDurationMethod14.ajc$around$iep
_perf_jvm14_abstractAspects_AbstractSimpleDurationMethod14$1$cd102c33(Abstra
ctSimpleDurationMethod14.aj:44)

            at
com.ft.esource.client.commun.executionprocessus.delegate.ProcessusDelegate.c
reerProcessus(ProcessusDelegate.java:179)

            at
com.ft.esource.client.web.executionprocessus.control.GestionProcessusAction.
creerProcessus_aroundBody6(GestionProcessusAction.java:164)

            at
com.ft.esource.client.web.executionprocessus.control.GestionProcessusAction$
AjcClosure7.run(GestionProcessusAction.java:1)

            at
iep.perf.jvm14.abstractAspects.AbstractSimpleDurationMethod14.ajc$around$iep
_perf_jvm14_abstractAspects_AbstractSimpleDurationMethod14$1$cd102c33proceed
(AbstractSimpleDurationMethod14.aj:1)

            at
iep.perf.jvm14.abstractAspects.AbstractSimpleDurationMethod14.ajc$around$iep
_perf_jvm14_abstractAspects_AbstractSimpleDurationMethod14$1$cd102c33(Abstra
ctSimpleDurationMethod14.aj:44)

            at
com.ft.esource.client.web.executionprocessus.control.GestionProcessusAction.
initialiserProcessus(GestionProcessusAction.java:164)

            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 

the aspect is iep.perf.jvm14.abstractAspects.AbstractSimpleDurationMethod14

 

the snipplet of the around advice :

public abstract pointcut methods();

 

      java.lang.Object around(): methods()     {

 

            long deb = Calendar.getInstance().getTimeInMillis();

            try {

                  return proceed();

 

            } finally {

                  long fin = Calendar.getInstance().getTimeInMillis();

                  if (fin - deb >= this.durationMini) {

 

                        outDurationMethods.append(new StringBuffer(

                                   outDurationMethods.getSdf().format(

 
Calendar.getInstance().getTime())).append(";")

                                   .append(

                                               thisJoinPoint.getSignature()

 
.getDeclaringTypeName()).append(".")

 
.append(thisJoinPoint.getSignature().getName()).append(

                                               ";").append((fin -
deb)).append("\n")

                                   .toString());

                        // outDurationMethods.flush();

                  }

            }

 

      }

 

And the weaving in aop.xml :

<aspectj>

 

            <aspects>

                        

                        <concrete-aspect
name="iep.perf.jvm14.abstractAspects.DurationMethods"

 
extends="iep.perf.jvm14.abstractAspects.AbstractSimpleDurationMethod14">

                                   <pointcut name="methods"

 
expression="within(com.ft.esource..*) AND !within(org.jacorb..*)

AND !within(org.omg.CORBA.*)  AND call(public * com.ft.esource..*.*(..))"/>

                        </concrete-aspect>

            

            </aspects>

 

            

 

            <weaver options="-XnoInline">

            <include within="com.ft.esource..*"/>

            <include within="iep.perf.jvm14..*"/>

            <exclude within="org.omg.CORBA..*"/>

            <exclude within="org.jacorb..*"/>

            

            </weaver>

            

            

            

            

 

</aspectj>

 

Sorry for this long post 

 

Cordialement / Best regards

 

Jean-Louis Pasturel

 <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED]



 



*********************************
This message and any attachments (the "message") are confidential and intended 
solely for the addressees. 
Any unauthorised use or dissemination is prohibited.
Messages are susceptible to alteration. 
France Telecom Group shall not be liable for the message if altered, changed or 
falsified.
If you are not the intended addressee of this message, please cancel it 
immediately and inform the sender.
********************************

<<image001.gif>>

_______________________________________________
aspectj-users mailing list
aspectj-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to