Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] RE: Exception LTWeaving with Jacorb

Andy,

I made an answer more detailed in the bug 219818.

Reducing the scope of the pointcut solves my problem.

are there best practices to weave regarding numbers of pointcuts that can be woven ?

 

Cordialement / Best regards

 

Jean-Louis Pasturel
jeanlouis.pasturel@xxxxxxxxxxxxxxxxxx

 


De : aspectj-users-bounces@xxxxxxxxxxx [mailto:aspectj-users-bounces@xxxxxxxxxxx] De la part de Andy Clement
Envoyé : jeudi 21 février 2008 17:47
À : aspectj-users@xxxxxxxxxxx
Objet : Re: [aspectj-users] RE: Exception LTWeaving with Jacorb

 

Have you tried narrowing down the scope of application of your aspect to see if that makes any difference? Change call(public * com.ft.esource..*.*(..)) so it would match fewer places (is it matching a lot of places right now?) - and see if that affects whether the error occurs?

Andy

On 21/02/2008, jeanlouis.pasturel@xxxxxxxxxxxxxxxxxx <jeanlouis.pasturel@xxxxxxxxxxxxxxxxxx> wrote:

Unfortunately it doesn't solve the problem.

Hope for help …
 

Cordialement / Best regards

 

Jean-Louis Pasturel
jeanlouis.pasturel@xxxxxxxxxxxxxxxxxx

 


De : aspectj-users-bounces@xxxxxxxxxxx [mailto:aspectj-users-bounces@xxxxxxxxxxx] De la part de jeanlouis.pasturel@xxxxxxxxxxxxxxxxxx
Envoyé : jeudi 21 février 2008 08:34
À : aspectj-users@xxxxxxxxxxx
Objet : [aspectj-users] RE: Exception LTWeaving with Jacorb

 

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
jeanlouis.pasturel@xxxxxxxxxxxxxxxxxx

 


De : Jean-Louis PASTUREL [mailto:jeanlouis.pasturel@xxxxxxxxxxxxx]
Envoyé : mercredi 20 février 2008 15:54
À : 'aspectj-users@xxxxxxxxxxx'
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(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.
********************************

 

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


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

 

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