SAX problem
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
java.lang.NullPointerException
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1132)
at com.abnamro.wcs.orchard.gui.madj.ImportXMLFile.main(ImportXMLFile.java:179)
Exception in thread "main"
from the code below. I copied the source from the JAXP example so I cannot understand why it does not work. What is missing?
Any help much appreciated. Please reply to address below.
reply to:
[EMAIL][email protected] [/EMAIL]
[ April 29, 2002: Message edited by: Jim Yingst ]
John Coleman, MSTA<br />Sun Certified Programmer for the Java� 2 Platform<br />[email protected]<br />Eurobase banking solutions<br /><a href="http://www.eurobase-international.com/banking" target="_blank" rel="nofollow">http://www.eurobase-international.com/banking</a>
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
It sounds like something is not being created properly but what the reason is is hard to say.
John
The only reason for time is so that everything doesn't happen all at once.
- Buckaroo Banzai
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Anyway, the exception must have been thrown by the line xmlReader.parse(convertToFileURL(aFileName));
as that's the only place parse() is called. But it's not really clear what the cause is.
"I'm not back." - Bill Harding, Twister
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
You are correct that the error occurs in the .parse method, and also that there is no way of diagnosing the error.
This makes me wonder if the Sax example in JAXP works. I also wonder if anyone unserstands Sax enough to tell me what is missing? Should I contact the author?
John
John Coleman, MSTA<br />Sun Certified Programmer for the Java� 2 Platform<br />[email protected]<br />Eurobase banking solutions<br /><a href="http://www.eurobase-international.com/banking" target="_blank" rel="nofollow">http://www.eurobase-international.com/banking</a>
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
The moral of the tale is not to let cryptic error messages put you off running a debug or looking for obvious mistakes.
thanks anyway,
John
John Coleman, MSTA<br />Sun Certified Programmer for the Java� 2 Platform<br />[email protected]<br />Eurobase banking solutions<br /><a href="http://www.eurobase-international.com/banking" target="_blank" rel="nofollow">http://www.eurobase-international.com/banking</a>
| When you have exhausted all possibilities, remember this: you haven't - Edison. Tiny ad: Paul Wheaton's 16th Kickstarter: Gardening playing cards for gardeners and homesteaders https://coderanch.com/t/889615/Paul-Wheaton-Kickstarter-Gardening-playing |










