You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ma...@lntinfotech.com on 2003/10/27 06:49:30 UTC

Help on ---------> comons apache XML Digester along with weblogic

Hi All,

      I am reposting the same question, can any one help me out on this...

      I am using commons-digester1.5 , I am digesting a xml file using xml
rules. When I run the Parsing in a stand alone mode it works fine. But when
the same parser is used along with Weblogic I am getting following error


org.apache.commons.digester.xmlrules.XmlLoadException: Error at (3, 142:
null
        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(Di
gesterLoader.java:91)
        at
com.marsh.cansys.accounting.utility.lockbox.bankfileparser.utility.Ru
leReader.digestRuleXML(RuleReader.java:66)
        at
com.marsh.cansys.accounting.utility.lockbox.bankfileparser.utility.Ru
leReader.<clinit>(RuleReader.java:36)
        at
com.marsh.cansys.accounting.domain.helper.LockboxDataTransmissionFile
Loader.load(LockboxDataTransmissionFileLoader.java:134)
        at
com.marsh.cansys.accounting.controller.impl.ProcessLockboxImpl.loadDa
taTransmissionFile(ProcessLockboxImpl.java:116)
        at
com.marsh.cansys.accounting.controller.ejb.ProcessLockboxEJB_cmomav_E
OImpl.loadDataTransmissionFile(ProcessLockboxEJB_cmomav_EOImpl.java:405)
        at
com.marsh.cansys.accounting.controller.proxy.ProcessLockboxProxy.load
DataTransmissionFile(ProcessLockboxProxy.java:88)
        at
com.marsh.cansys.accounting.web.controller.lockbox.LoadTransmissionFi
leAction.loadFile(LoadTransmissionFileAction.java:129)
        at
com.marsh.cansys.accounting.web.controller.lockbox.LoadTransmissionFi
leAction.handlePerform(LoadTransmissionFileAction.java:52)
        at
com.marsh.cansys.accounting.web.controller.lockbox.AbstractBaseAction
.perform(AbstractBaseAction.java:65)
        at
org.apache.struts.action.ActionServlet.processActionPerform(ActionSer
vlet.java:1787)
        at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:158
6)
        at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:265)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
        at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2546)
        at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm

=============================================================================
The Source code is

strRuleFileName = "LockBoxRules.xml";
strMsgTypeFileName ="lockbox.xml";

//Read URL String from config.
URL ruleURL = RuleReader.class
.getClassLoader().getResource(strRuleFileName);
Digester digester = DigesterLoader.createDigester(ruleURL);

inputStream = RuleReader.class
.getClassLoader().getResourceAsStream(strMsgTypeFileName);
boxSummaryRuleDVO = (LockBoxSummaryRuleDVO)digester.parse(inputStream);

===================================================================

I have also attached the XML file and the XML rule file used to digest the
XML



When digged more into the Digester class, I could find out exception thrown
from the  parse(Reader reader) method. The exception is
NullpointerException( SAXParserException) because of
com.sun.jdi.ClassNotPreparedException occurred while performing method
lookup for selector "toString" with signature "()Ljava/lang/String;"












Regards,
Makarand Sonawane
Insurance SBU
L&T Infotech Limited
Tel - 91-20-5511262 Ext 547
(See attached file: LockBoxRules.xml)(See attached file: lockbox.xml)





























This email may contain confidential or privileged information for the
intended recipient(s). If you are not the intended recipient, please do not
use or disseminate the information, notify the sender and delete it from
your system. Thanks