commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "amine achergui" <amine.acher...@gmail.com>
Subject [digester] problem with factory creation rule
Date Wed, 29 Mar 2006 23:45:41 GMT
Hi everyone,
I'm using an xml file for rules.

   <pattern value="configuration/action/destination">
     <factory-create-rule
     classname="pakcagename.DestinationCreationFactory">
      <bean-property-setter-rule pattern="value"/>
      <set-next-rule methodname="setDestination"/>
    </pattern>


I have defined an implementation for AbstractObjectCreationFactory that's
DestinationCreationFactory. On Runtime i'm having this exception:


0 [main] ERROR digester.Digester - End event threw exception

java.lang.NoSuchMethodException: No such accessible method: add() on object:
org.apache.commons.digester.FactoryCreateRule

at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java
:250)

at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)

at org.apache.commons.digester.Rule.end(Rule.java:276)

at org.apache.commons.digester.Digester.endElement(Digester.java:1058)

at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)

at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
Source)

at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

at org.apache.commons.digester.Digester.parse(Digester.java:1567)

at org.apache.commons.digester.xmlrules.FromXmlRuleSet.addRuleInstances(
FromXmlRuleSet.java:149)

at org.apache.commons.digester.Digester.addRuleSet(Digester.java:1663)

at org.apache.commons.digester.xmlrules.DigesterLoader.createDigester(
DigesterLoader.java:91)

.....

org.apache.commons.digester.xmlrules.XmlLoadException: Error at (20, 51: No
such accessible method: add() on object:
org.apache.commons.digester.FactoryCreateRule

at org.apache.commons.digester.xmlrules.FromXmlRuleSet.addRuleInstances(
FromXmlRuleSet.java:151)

at org.apache.commons.digester.Digester.addRuleSet(Digester.java:1663)

at org.apache.commons.digester.xmlrules.DigesterLoader.createDigester(
DigesterLoader.java:91)
Has anyone had this problem before?
Cheers,
Amine.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message