[jdom-interest] SAXBuilder.createParser() cannot load Piccolo
Martin Schulz
schulz at videotron.ca
Tue Mar 4 15:53:25 PST 2003
Laurent,
Thanks for this workaround.
Are you suggesting to use it instead the patch I proposed in the JDOM's
SAXBuilder class?
Martin
> -----Original Message-----
> From: jdom-interest-admin at jdom.org
> [mailto:jdom-interest-admin at jdom.org] On Behalf Of Laurent Bihanic
> Sent: March 4, 2003 11:54 AM
> To: Martin Schulz
> Cc: jdom-interest at jdom.org
> Subject: Re: [jdom-interest] SAXBuilder.createParser() cannot
> load Piccolo
>
>
>
> Martin Schulz wrote:
> > A while ago I came across a problem with setting up the Piccolo SAX
> > parser as the SAX parser of choice, when JDOM produced an
> Exception in
> > the reflection code in createParser:
> > java.lang.IllegalAccessException: Class
> org.jdom.input.SAXBuilder can
> > not access a member of class
> > com.bluecast.xml.JAXPSAXParserFactory$JAXPSAXParser with modifiers
> > "public"
>
> This is a known Java reflection issue when dealing with inner classes
> implementing interfaces. It can be worked around by invoking
> setAccessible on
> the method object:
>
> try {
> getXMLReader.setAccessible(true);
> }
> catch (SecurityException ex2) { /* Ignore and try
> anyway! */ }
>
> Laurent
>
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/yo
uraddr at yourhost.com
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 10/01/2003
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 10/01/2003
More information about the jdom-interest
mailing list