[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Can't subclass ElementNode

  • From: "Lars George" <lgeorge@g...>
  • To: "Azly NACRO" <azly@d...>,<xml-dev@i...>
  • Date: Thu, 18 Nov 1999 14:42:22 +1000

java.lang.illegalaccesserror trying to access clas
Hi,

I had the same bug. It boilt down to a problem with the JBuilder. The
compiler produces the wrong bytecode that provokes this error. I have
written a little batch file that compiles the class with the native 1.2
javac and everything worked fine. It only applies to the Sun XML parser as I
have switch to the Oracle one now and even JBuilder has no problems anymore.

However I have not tried to use the swap JDK feature of JBuilder to point to
a separate JDK 1.2 version instead of the shipped one. This may help you as
well.

HTH,

Lars George
Woodgate Research Pty Ltd
Brisbane, Australia

> -----Original Message-----
> From: owner-xml-dev@i... [mailto:owner-xml-dev@i...]On Behalf Of
> Azly NACRO
> Sent: Thursday, 18 November 1999 13:08
> To: xml-dev@i...
> Subject: Can't subclass ElementNode
>
>
> Hi,
>
> I've got a java.lang.IllegalAccessError when trying to subclass
> "ElementNode".
>
> java.lang.IllegalAccessError: try to access class
> com/sun/xml/tree/ParentNode from class CapabilityElement
> 	at CapabilityElement.appendChild(CapabilityElement.java:88)
> 	at
> com.sun.xml.tree.XmlDocumentBuilder.startElement(XmlDocumentBuilde
> r.java:485)
> 	at com.sun.xml.parser.Parser.maybeElement(Parser.java:1390)
> 	at com.sun.xml.parser.Parser.content(Parser.java:1498)
> 	at com.sun.xml.parser.Parser.maybeElement(Parser.java:1399)
> 	at com.sun.xml.parser.Parser.parseInternal(Parser.java:491)
> 	at com.sun.xml.parser.Parser.parse(Parser.java:308)
> 	at XmlCapabilityAccessor.<init>(XmlCapabilityAccessor.java:55)
> 	at Test.main(Test.java, Compiled Code)
>
>
> I'm working with jbuilder3 using jdk1.2.
> 	java version "1.2"
> 	Classic VM (build JDK-1.2-V, native threads)
>
> I've recompile the sun xml package but I still have the same error.
>
> Any ideas what I can do about this? It would be very inconvenient not to
> be able to subclass ElementNode.
>
> Azly NACRO
> azly@d...
> UQAM (Montreal)
>
> xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
> Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on
> CD-ROM/ISBN 981-02-3594-1
> To unsubscribe, mailto:majordomo@i... the following message;
> unsubscribe xml-dev
> To subscribe to the digests, mailto:majordomo@i... the
> following message;
> subscribe xml-dev-digest
> List coordinator, Henry Rzepa (mailto:rzepa@i...)
>


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@i... the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.