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

RE: why importNode error like this

  • From: Mike.Champion@S...
  • To: xml-dev@l...
  • Date: Sun, 21 Jan 2001 13:57:32 -0500

dom importnode
Title: RE: why importNode error like this

org.w3c.dom.Node is an *interface*, so the org.w3c.dom library distributed by the W3C  will have enough information for the compiler to work, but my guess is that the

actual implementation of the DOM you're using (you don't say what it is) doesn't support importNode.  My CLASSPATH suggestion might have been phrased better "figure out which *implementation* of the DOM you're actually picking up (via the CLASSPATH or whatever) and make sure that it supports importNode()." 

Also, the spec says that importNode is a method on the Document interface, not the Node interface... the exception looks like you were trying to access the importNode method on Node.   I can't explain why it would work on NT but not Solaris! I'm not Java expert; I just noticed that you're having problems with importNode(), which is new to Level 2, and that led to the hypothesis that a difference in your DOM implementations on the different platforms may be the root of your problems.



> -----Original Message-----
> From: Huaxin Zhang [mailto:hxzhang@c...]
> Sent: Sunday, January 21, 2001 12:34 PM
> To: Mike.Champion@S...
> Cc: xml-dev@l...
> Subject: RE: why importNode error like this
>
>
> I guess the classpath is not the issue. If classpath is wrong
> how can i compile it on solaris?
>
>
> On Sat, 20 Jan 2001 Mike.Champion@S... wrote:
>
> > importNode was introduced in DOM Level 2; perhaps in the NT
> environment
> > you're picking up a newer implementation of the DOM, and in
> your Solaris
> > environment you're picking up an old one.  The DOM is not
> (yet) a core
> > component of Java, so you'll have to check your CLASSPATH ...
> >
> > > -----Original Message-----
> > > From: Huaxin Zhang [mailto:hxzhang@c...]
> > > Sent: Saturday, January 20, 2001 4:39 PM
> > > To: xml-dev@l...
> > > Cc: Huaxin Zhang
> > > Subject: why importNode error like this
> > >
> > >
> > > When I was compiling and running my program
> > > on NT, JVM 1.3.0-C mixed mode
> > > IT was fine.
> > >
> > > However, when it comes to solaris 2.6 JVM 1.2.2
> > > it compiles well, but when running, it
> > > throws this exception:
> > >
> > > Exception in thread "main" java.lang.NoSuchMethodError:
> > > org.w3c.dom.Document: method
> > > importNode(Lorg/w3c/dom/Node;Z)Lorg/w3c/dom/Node; not found
> > >         at test.main(test.java:45)
> > >
> > >
> > >
> >
>


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.