Bugs item #901028, was opened at 2004-02-20 12:05
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=901028&group_id=22866

Category: Aspects
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Lionel Seinturier (lseinturier)
Assigned to: Nobody/Anonymous (nobody)
Summary: Method field and constructor pointcut

Initial Comment:
With JBoss AOP DR2, when declaring a method pointcut 
in jboss-aop.xml the program execution fails with a 
NullPointerException: 

Caused by: java.lang.NullPointerException
        at 
org.jboss.aop.AspectXmlLoader.deployMethodPointcut
(AspectXmlLoader.java:262)
        at org.jboss.aop.AspectXmlLoader.deployXML
(AspectXmlLoader.java:683)
        at org.jboss.aop.AspectXmlLoader.deployXML
(AspectXmlLoader.java:818)
        ... 8 more
java.lang.Error: Error deploying aop configrations

Line 262 of deployMethodPointcut is
if (attr != null && group.trim().equals(""))
it should be
if (attr != null && attr.trim().equals(""))

The error has been cut and paste in methods for 
defining field pointcuts and constructor pointcut.

Line 370 of DeployFieldPointcut should be
if (attr != null && attr.trim().equals(""))

Line 420 of deployConstructorPointcut should be
if (attr != null && attr.trim().equals(""))

Lionel.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=901028&group_id=22866


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to