Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] 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(UtilDelegateImpl.java:221)

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

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

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

            at com.ft.esource.client.commun.executionprocessus.delegate.ProcessusDelegate$AjcClosure19.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(AbstractSimpleDurationMethod14.aj:44)

            at com.ft.esource.client.commun.executionprocessus.delegate.ProcessusDelegate.creerProcessus(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(AbstractSimpleDurationMethod14.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

jeanlouis.pasturel@xxxxxxxxxxxxxxxxxx

 

*********************************
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.
********************************

Back to the top