RE: [aspectwerkz-user] getCalee() and getCaller() returning null

"Ricardo de Siqueira Borges Pereira" <[email protected]>
Newsgroups gmane.comp.java.aspectwerkz.user
Message-ID <[email protected]>
Hello!

AW: Rc2.0
Java: 1.3.1
AppServer: JBoss 3.2.7
Source and xml attached!

Thanks in advance!


-----Original Message-----
From: Jonas Bonér [mailto:[email protected]]
Sent: Friday, March 11, 2005 11:05 AM
To: [email protected]
Subject: Re: [aspectwerkz-user] getCalee() and getCaller() returning
null


Hi.

Can you please provide:
AW version
sources 
aop.xml
reproducable test (if possible)
app server
Java version

/Jonas


On Fri, 11 Mar 2005 10:49:45 -0300, Ricardo de Siqueira Borges Pereira
<[email protected]> wrote:
> 
>         Hello All,
> 
>         I'm deploying two applications in the same JBoss. Both application use AOP to do certain operations.
> 
>         The first application, an EJB deployed into an ear, works fine, but the other application, another EJB, shows a particular error. In every pointcut call, the JoinPoit received by the method returns null in getCaller() and getCalle().
> 
>         Does anybody have a hint about it?
> 
>         Thanks in advance!
> 
> Ricardo Borges
> GLOBO.COM :: ISP
> 
>   " Embora ninguém possa voltar atrás e fazer um novo começo,
>  qualquer um pode começar agora e fazer um novo fim".
> 
>              (Chico Xavier)
> 
> 


-- 
/Jonas
aop.xml (text/xml, 3.2 KB)
<!DOCTYPE aspectwerkz PUBLIC
    "-//AspectWerkz//DTD//EN"
    "http://aspectwerkz.codehaus.org/dtd/aspectwerkz.dtd">

<aspectwerkz>
    <system id="Cadunii">
       
        <aspect class="com.globo.cadunii.aop.logger.LogOperacoesAspect" name="LogOperacoes">
		<param name="operacoes" value="com.globo.cadunii.aop.operacoes"/>


		<!-- Mapeamentos basicos -->
		
			<pointcut name="interceptExecution" expression="execution(* execute(com.globo.cadunii.controller.Comando)) AND within(com.globo.cadunii.controller.ControladorRequisicaoBean)"/>
				<advice name="intercept(com.globo.cadunii.controller.Comando cmd)" type="before" bind-to="interceptExecution AND args(cmd)"/>

			<pointcut name="depoisExecution" expression="execution(* execute(com.globo.cadunii.controller.Comando)) AND within(com.globo.cadunii.controller.ControladorRequisicaoBean)"/>
				<advice name="limpaThreadLocal()" type="after" bind-to="depoisExecution"/>
	           
           	<pointcut name="interceptGetMillis" expression="execution(* getMillis(..)) AND within(com.globo.cadunii.util.CaduniiDate)"/>
       			<advice name="interceptGetMillis()" type="around" bind-to="interceptGetMillis"/>
		
		<!-- /Mapeamentos basicos -->

		<!-- Mapeamentos Servicos -->
		   	<pointcut name="insertServico" expression="execution(* insert(com.globo.cadunii.model.dto.UsuarioServicoDTO)) AND within(com.globo.cadunii.model.dao.UsuarioServicoDAO)"/>
       			<advice name="log(JoinPoint jp)" type="before" bind-to="insertServico"/>
	
		   	<pointcut name="updateServico" expression="execution(* update(com.globo.cadunii.model.dto.UsuarioServicoDTO)) AND within(com.globo.cadunii.model.dao.UsuarioServicoDAO)"/>
       			<advice name="log(JoinPoint jp)" type="before" bind-to="updateServico"/>

		   	<pointcut name="deleteServico" expression="execution(* delete(BigDecimal,BigDecimal)) AND within(com.globo.cadunii.model.dao.UsuarioServicoDAO)"/>
       			<advice name="log(JoinPoint jp)" type="before" bind-to="deleteServico"/>

		   	<pointcut name="deleteServicoPorUsuario" expression="execution(* delete(BigDecimal)) AND within(com.globo.cadunii.model.dao.UsuarioServicoDAO)"/>
       			<advice name="log(JoinPoint jp)" type="before" bind-to="deleteServicoPorUsuario"/>
	      
           	
		<!-- /Mapeamentos Servicos -->
		
		<!-- Mapeamentos Usuario-->
		   	<pointcut name="criaUsuario" expression="execution(* insert(com.globo.cadunii.model.dto.UsuarioDTO)) AND within(com.globo.cadunii.model.dao.UsuarioDAO)"/>
       			<advice name="log(JoinPoint jp)" type="before" bind-to="criaUsuario"/>
		    
		    <pointcut name="deleteUsuario" expression="execution(* delete(BigDecimal)) AND within(com.globo.cadunii.model.dao.UsuarioDAO)"/>
       			<advice name="log(JoinPoint jp)" type="before" bind-to="deleteUsuario"/>
       			
       	   <pointcut name="alteraSenha" expression="execution(* alterarSenhaCadastro(..)) AND within(com.globo.cadunii.model.CaduniiModelFacade) AND cflow(execution(*  com.globo.cadunii.model.CaduniiModelFacade.alterarSenha(..)))"/>
       			<advice name="log(JoinPoint jp)" type="before" bind-to="alteraSenha"/>
		
		    

		<!-- /Mapeamentos Usuario-->
        </aspect>
        
    </system>
</aspectwerkz>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.