NullPointerException at org.apache.xerces.imple.dtd.XMLDTDValidator

2004-01-19 Thread Chetan Patel
I am using xerces 2.2.1 and J2SDK1.4.1_02 for validating XML files. I am getting NullPointerException at org.apache.xerces.impl.dtd.XMLDTDValidator.ValidateDTDAttribute(XMLDTDValidator.java:2358). I am using a parse(InputSource inSrc) method of XMLReader Class. Also this exception has been

NullPointerException at org.apache.xerces.imple.dtd.XMLDTDValidator

2004-01-19 Thread Chetan Patel
I am using xerces 2.2.1 and J2SDK1.4.1_02 for validating XML files. I am getting NullPointerException at org.apache.xerces.impl.dtd.XMLDTDValidator.ValidateDTDAttribute(XMLDTDValidator.java:2358). I am using a parse(InputSource inSrc) method of XMLReader Class. Also this exception has been

RE: NullPointerException

2003-10-23 Thread Courtney, Craig
figuration"); Craig -Original Message- From: Michael Glavassevich [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003 12:36 AM To: [EMAIL PROTECTED] Subject: RE: NullPointerException Hi Craig, Just skimming over the code in the org.apache.xerces.impl.dtd.models package, I didn

RE: NullPointerException

2003-10-23 Thread Michael Glavassevich
hael Glavassevich [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 22, 2003 2:37 PM > To: [EMAIL PROTECTED] > Subject: Re: NullPointerException > > > Hi Craig, > > What version of Xerces did this occur with? Also, could you supply > a sample document that illustrat

RE: NullPointerException

2003-10-22 Thread Courtney, Craig
n the application has an instance of this helper and DOMs are not shared between threads. Craig -Original Message- From: Michael Glavassevich [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 2:37 PM To: [EMAIL PROTECTED] Subject: Re: NullPointerException Hi Craig, What versi

Re: NullPointerException

2003-10-22 Thread Michael Glavassevich
Hi Craig, What version of Xerces did this occur with? Also, could you supply a sample document that illustrates the problem. Thanks. On Wed, 22 Oct 2003, Courtney, Craig wrote: > We are getting periodic NullPointerExceptions while parsing documents. Here > is the relevant parts of the stack t

NullPointerException

2003-10-22 Thread Courtney, Craig
We are getting periodic NullPointerExceptions while parsing documents. Here is the relevant parts of the stack trace. Has anyone run into a similar problem and know how to solve it? Thanks Craig java.lang.NullPointerException org.apache.xerces.impl.dtd.models.DFAContentModel.buildDFA(DFACo

Re: NullPointerException when calling getLexicalFacetValue() on XSSimpleTypeDefinition

2003-07-29 Thread Peter McCracken
pharma.com> cc: Subject: NullPointerException when calling getLexicalFacetValue() on XSSimpleTypeDefinition

NullPointerException when calling getLexicalFacetValue() on XSSimpleTypeDefinition

2003-07-29 Thread Martin Lambert
Hi, Thanks everybody for your help with my previous questions. I am currently attempting to retrieve information from attribute types, in particular their facets. I am aware of the type heirachy i.e. anySimpleType --> decimal --> integer and have been able to retrieve the individual type objec

RE: XMLGrammarBuilder NullPointerException

2003-05-05 Thread Neil Graham
| | cc: | | Subject: RE: XM

RE: XMLGrammarBuilder NullPointerException

2003-05-05 Thread Andrew Fleet
Thanks Neil, can I use the manifest file Rev 1.1 from CVS? Andy -Original Message- From: Neil Graham [mailto:[EMAIL PROTECTED] Sent: Monday, May 05, 2003 10:29 AM To: [EMAIL PROTECTED] Subject: RE: XMLGrammarBuilder NullPointerException Hi Andrew, You'll hate this, but you

RE: XMLGrammarBuilder NullPointerException

2003-05-05 Thread Neil Graham
| | S

RE: XMLGrammarBuilder NullPointerException

2003-05-05 Thread Andrew Fleet
es/xerces-2_4_0/build.xml:250: Warning: Could not find file C:\xerces\xerces-2_4_0\src\m anifest.xerces to copy. -Original Message- From: Elena Litani [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 30, 2003 7:33 AM To: [EMAIL PROTECTED] Subject: Re: XMLGrammarBuilder NullPointerException And

Re: XMLGrammarBuilder NullPointerException

2003-04-30 Thread Elena Litani
Andrew Fleet wrote: > do you have a sense for when this will be generally available on the > download site Probably in the end of June. >- I've never used CVS! It is easy to extract code from CVS (module: xml-xerces/java [1]) and building it using ant's "build jars" target. [1] http://xml

RE: XMLGrammarBuilder NullPointerException

2003-04-29 Thread Andrew Fleet
ilder NullPointerException Hi Venu, Andrew and all, Just to confirm Venu's impression: this bug has been fixed in CVS, but did exist in 2.4.0. We became aware of it just after 2.4.0 had been released, unfortunately. Cheers, Neil Neil Graham XML Parser Development IBM Toronto Lab Phone: 905-413-351

Re: XMLGrammarBuilder NullPointerException

2003-04-29 Thread Neil Graham
To: [EMAIL PROTECTED] | | cc: | | Subject: Re: XMLGramm

Re: XMLGrammarBuilder NullPointerException

2003-04-29 Thread K. Venugopal
Hi Andy , I am not getting null pointer exception with latest code in CVS. It seems problem is fixed . Regards venu Andrew Fleet wrote: Hi, this may be a simple usage issue, but I'm trying to use XMLGrammarBuilder for validation of an instance document against a schema. I'm using the following c

XMLGrammarBuilder NullPointerException

2003-04-26 Thread Andrew Fleet
Hi, this may be a simple usage issue, but I'm trying to use XMLGrammarBuilder for validation of an instance document against a schema. I'm using the following command; java xni.XMLGrammarBuilder -a name.xsd -i name.xml and get, C:\XMLSchema>java xni.XMLGrammarBuilder -a name.xsd -i name.xml ja

Re: Desperate help needed: normalize() throwing NullPointerException

2003-03-15 Thread Panos Konstantinidis
Posting some of the code that throws the exception would help. --- Kirsten Barber <[EMAIL PROTECTED]> wrote: - I'm not sure if this is the right list to be mailing to, but any help atall would be greatly appreciated. I am trying to normalize the following XML do

Desperate help needed: normalize() throwing NullPointerException

2003-03-14 Thread Kirsten Barber
I'm not sure if this is the right list to be mailing to, but any help at all would be greatly appreciated. I am trying to normalize the following XML document, and am getting a NullPointerException. I have tried parsing my document with two separate programs successfully, but Xerces wil

NullPointerException in DeepNodeListImpl

2002-12-04 Thread YAWN,MIKE (HP-PaloAlto,ex1)
OK, this doesn't seem possible. I am returned a NodeList which, when explicitly tested to be null, is shown to be not null. Yet as soon as I try to access it, I'm awarded a NullPointerException. Here's code that illustrates the problem: Element root = doc.get

NullPointerException in translet

2002-11-29 Thread fackel
ogram. Compiling the translets and the Java app worked fine. Transformations with one smaller translet works fine. The second translet, a much larger one (about 80 match templates and some 20 name templates), gives a NullPointerException. Here is the stack trace: java.lang.NullPointerExce

NullPointerException when trying to add multiple elements and trying to get a list of Attributes

2002-03-06 Thread Steve Turner
cing me is one which concerns multiple additions/deletionsbefore saving the document. Before I was inputting 1 member or deleting itthen saving, This works absolutely fine but if I try to do multipleadditions (which reference each other) I get a NullPointerException when theprogram gets

Re: importNode nullpointerexception (was org.w3c.dom.DOMException: DOM005 Wrong document)

2002-02-25 Thread Cliff Rowley
ontentPane(..) document - I suppose that makes sense (if only my head wasn't full of cold and snot) Thanks for the help!! - Original Message - From: "Alex Speed" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 25, 2002 12:49 PM Subject: Re:

Re: importNode nullpointerexception (was org.w3c.dom.DOMException: DOM005 Wrong document)

2002-02-25 Thread Alex Speed
> To: <[EMAIL PROTECTED]> Sent: Monday, February 25, 2002 12:49 PM Subject: Re: importNode nullpointerexception (was org.w3c.dom.DOMException: DOM005 Wrong document) > Thats still creating a DOM006 Hierarchy request error > > > > > Should that not be: &g

Re: importNode nullpointerexception (was org.w3c.dom.DOMException: DOM005 Wrong document)

2002-02-25 Thread Cliff Rowley
Err .. as far as I'm aware that should work .. is anyone else awake to sanity check that? I'm not saying I'm insane - just slightly unstable .. *dribble* At 12:49 25/02/2002 +, you wrote: Thats still creating a DOM006 Hierarchy request error > > Should that not be: > > Element root_element=

Re: importNode nullpointerexception (was org.w3c.dom.DOMException: DOM005 Wrong document)

2002-02-25 Thread Alex Speed
Thats still creating a DOM006 Hierarchy request error > > Should that not be: > > Element root_element=doc.createElement("page"); > > Document content_doc=getContentPane(...); > Element content_doc_root=content_doc.getDocumentElement(); > > Node new_node=doc.importNode(content_doc_root,true);

Re: importNode nullpointerexception (was org.w3c.dom.DOMException: DOM005 Wrong document)

2002-02-25 Thread Cliff Rowley
nt: Monday, February 25, 2002 12:40 PM Subject: Re: importNode nullpointerexception (was org.w3c.dom.DOMException: DOM005 Wrong document) > Document doc=util.getDocument(); > > Element root_element=doc.createElement("page"); > Document content_doc=getContentPane

Re: importNode nullpointerexception (was org.w3c.dom.DOMException: DOM005 Wrong document)

2002-02-25 Thread Alex Speed
PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 25, 2002 12:40 PM Subject: Re: importNode nullpointerexception (was org.w3c.dom.DOMException: DOM005 Wrong document) > Document doc=util.getDocument(); > > Element root_element=doc.createElement("page"); > Doc

Re: importNode nullpointerexception (was org.w3c.dom.DOMException: DOM005 Wrong document)

2002-02-25 Thread Cliff Rowley
(having just looked through it in Forte debugger). (Its not actually a UI method, its generating XML from a database) doc.importNode(...) is causing the NullPointerException, but I can't see why, because all of the objects are instantiated, and content_doc (the document returned by getContentPa

Re: importNode nullpointerexception (was org.w3c.dom.DOMException: DOM005 Wrong document)

2002-02-25 Thread Alex Speed
aving just looked through it in Forte debugger). (Its not actually a UI method, its generating XML from a database) doc.importNode(...) is causing the NullPointerException, but I can't see why, because all of the objects are instantiated, and content_doc (the document returned by getContent

NullPointerException!

2001-06-28 Thread Ala Heno
Hi,   When running SAXCount sample with the attached XML file (the schema is also attached), I got the following NullPointerException:   java.lang.NullPointerException at org.apache.xerces.validators.common.XMLValidator.pushContentLeafStack(XMLValidator.java:1278) at

Re: NullPointerException trying to parse a simple XML file.

2001-02-19 Thread Elena Litani
Hi, Brad, It is hard to say what is going on without any additional info. I suspect you have some error in your code, cause I don't recall anybody reporting this kind of behaviour before. If you still need help, please, attach your .java files + sample file. Thank you, Elena > Brad O'Hearne wrote

RE: NullPointerException trying to parse a simple XML file.

2001-02-15 Thread Brad O'Hearne
PROTECTED]Subject: NullPointerException trying to parse a simple XML file. This should be a pretty simple question.  Running the following code:         try {  XMLReader parser = XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");  pars

NullPointerException trying to parse a simple XML file.

2001-02-15 Thread Brad O'Hearne
This should be a pretty simple question.  Running the following code:         try {  XMLReader parser = XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");  parser.setContentHandler(contentHandler);  parser.setErrorHandler(errorHandler);  parser.setEnt

NullPointerException in org.apache.xerces.utils.StringPool (example included!)

2001-02-12 Thread Michael Bayer
a NullPointerException at org.apache.xerces.utils.StringPool.addSymbol(StringPool.java:348). Constructing an InputSource from a Reader or InputStream will create this behavior, i.e. getSystemId() returns null. The method setSystemId(String) can be called to manually set the systemid as a