LISTSERV mailing list manager LISTSERV 15.5

Help for XML-L Archives


XML-L Archives

XML-L Archives


View:

Next Message | Previous Message
Next in Topic | Previous in Topic
Next by Same Author | Previous by Same Author
Chronologically | Most Recent First
Proportional Font | Monospaced Font

Options:

Join or Leave XML-L
Reply | Post New Message
Search Archives


Subject: Re: Runtime error while using DOM
From: "Maddipatla, Gopal" <[log in to unmask]>
Reply-To:General discussion of Extensible Markup Language <[log in to unmask]>
Date:Thu, 27 Dec 2001 16:00:10 -0500
Content-Type:text/plain
Parts/Attachments:
Parts/Attachments

text/plain (80 lines)


Hi Rishi,
 THANK YOU VERY MUCH for your quick response to this.
 I've basically downloaded the "Xerces-J-bin.1.4.4.tar.gz" file and the
problem seems to be due to the version mismatch between those JAR files.
 It is working well now.

 Thanks a bunch to you all for your responses!

Thanks & Regards,
- Gopal

> -----Original Message-----
> From: General discussion of Extensible Markup Language
> <[log in to unmask]>@STATESTREET  On Behalf Of Rishi Raj Yadav
> <[log in to unmask]>
> Sent: Thursday, December 27, 2001 1:04 AM
> To:   [log in to unmask]
> Subject:      Re: Runtime error while using DOM
>
> Hi Gopal,
>         You can start with setting Validation to false i.e.
>   docfact.setValidating(false);
> and see if things work since it seems to be validations issue.
>  Could you please send the whole source code attached (maybe in a text
> file)
> so that we can find out the problem.
> regards,
> rishi
>
>
> -----Original Message-----
> From: General discussion of Extensible Markup Language
> [mailto:[log in to unmask]]On Behalf Of Gopal Maddipatla
> Sent: Thursday, December 27, 2001 12:07 AM
> To: [log in to unmask]
> Subject: Runtime error while using DOM
>
>
> Hi,
>  I would be thankful if you could look into this runtime error using Java
> DOM:
>  The source code is like :
>
> -------------------------- SOURCE BEGIN -------------------------------
> ....
> javax.xml.parsers.DocumentBuilderFactory docfact;
> javax.xml.parsers.DocumentBuilder docbuild;
>
>  public CreateDocument()
>  {
>   docfact  = DocumentBuilderFactory.newInstance();
>   docfact.setValidating(true);
>   docfact.setNamespaceAware(false);
>
>   try
>   {
>    docbuild = docfact.newDocumentBuilder();
>    doc      = docbuild.newDocument();
>   }
>   ...
>
> This compiles successfully.. But, during runtime, I get the following
> error:
>
> -------------------------- SOURCE END -------------------------------
>  Exception in thread "main" java.lang.NoSuchMethodError:
> javax.xml.parsers.DocumentBuilderFactory: method
> isIgnoringElementContentWhitespace()Z not found
>         at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>
> (DocumentBuilderImpl.java:133)
>         at
> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder
> (DocumentBuilderFactoryImpl.java:92)
>         at CreateDocument.<init>(CreateDocument.java:105)
>         at Test.main(Test.java:16)
> -------------------------- ERROR END -------------------------------
>
> I'm novice to this XML environment.  Any help from you will be greatly
> appreciated.  Thank you,
> - Gopal

Back to: Top of Message | Previous Page | Main XML-L Page

Permalink



LISTSERV.HEANET.IE

CataList Email List Search Powered by the LISTSERV Email List Manager