commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "s r" <...@lycos.com>
Subject Strange problem with Digester and Log4j
Date Tue, 28 Mar 2006 21:16:29 GMT


Hi -

I am running into a strange  NoSuchMethodError when using
the latest version 1.7 of Digester with the version 1.2.9
of Log4j. I have a very simple digester ruleset (but I
think that is irrelevant).  The version of commons-beanutils
is the latest I could download from Jakarta.

Beanutils seems to be invoking an undefined method in
 org.apache.log4j.Category. I call this strange because
when I repackage the classes com.bajji.sm.ems.* into
the default package the error disappears. This gives me
an impression that this may have to do with class loading.

If you have any clues to debugging this problem, pl
let me know. I 'd immensely appreciate it since I have now
spent a couple of days trying to figure this out.

Thanks,

/rk_


//...
DEBUG MethodUtils Found straight match: public void org.apache.commons
.digester.xmlrules.DigesterRuleParser.add(org.apache.commons.digester.
Rule)^M
^M
ERROR  Digester   12:51:17 [main] (?:?): commons.digester.Digester^M
ERROR Digester   End event threw error^M
java.lang.NoSuchMethodError: org.apache.log4j.Category: method log(Lja
va/lang/String;Lorg/apache/log4j/Level;Ljava/lang/Object;Ljava/lang/Th
rowable;)V not found^M
    at org.apache.commons.beanutils.MethodUtils.getMatchingAccessibleM
ethod(Compiled Code)^M
    at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUti
ls.java:209)^M
    at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:21
6)^M
    at org.apache.commons.digester.Rule.end(Compiled Code)^M
    at org.apache.commons.digester.Digester.endElement(Compiled Code)^
M
    at org.apache.crimson.parser.Parser2.maybeElement(Compiled Code)^M
    at org.apache.crimson.parser.Parser2.content(Compiled Code)^M
    at org.apache.crimson.parser.Parser2.maybeElement(Compiled Code)^M
    at org.apache.crimson.parser.Parser2.content(Compiled Code)^M
    at org.apache.crimson.parser.Parser2.maybeElement(Compiled Code)^M
    at org.apache.crimson.parser.Parser2.parseInternal(Compiled Code)^
M
    at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)^M
    at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.jav
a:433)^M
    at org.apache.commons.digester.Digester.parse(Digester.java:1666)^
M
    at org.apache.commons.digester.xmlrules.FromXmlRuleSet$URLXMLRules
Loader.loadRules(FromXmlRuleSet.java:196)^M
    at org.apache.commons.digester.xmlrules.FromXmlRuleSet.addRuleInst
ances(FromXmlRuleSet.java:175)^M
    at org.apache.commons.digester.xmlrules.FromXmlRuleSet.addRuleInst
ances(FromXmlRuleSet.java:140)^M
    at org.apache.commons.digester.Digester.addRuleSet(Digester.java:1
776)^M
    at org.apache.commons.digester.xmlrules.DigesterLoader.createDiges
ter(DigesterLoader.java:79)^M
    at com.bajji.sm.ems.classifier.dictionary.Dictionary.load(Dictiona
ry.java:92)^M
    at com.bajji.sm.ems.classifier.dictionary.SnmpTrapDictionary.<init
>(SnmpTrapDictionary.java:61)^M
    at com.bajji.sm.ems.classifier.dictionary.SnmpTrapDictionary.<clin
it>(SnmpTrapDictionary.java:36)^M



-- 
_______________________________________________

Search for businesses by name, location, or phone number.  -Lycos Yellow Pages

http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message