• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Help debugging classpath issue

 
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm using Java 1.6 and running a standalone Java app through Ant (1.8). I am getting an annoying AbstractMethodError, which I have concluded is because a version of a class, "javax.xml.parsers.DocumentBuilderFactory" is getting in my classpath that I don't want there. But everything I thought was in my classpath doesn't have a version of the class with the offending method signature, so any ideas how to find where this offending class lies? - Dave

ps - The error is

 
author and iconoclast
Posts: 24204
44
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Dave,

The message is saying that the method named is not in the class that's being found; sounds like you were thinking the problem was that the method was there, but it's the opposite. What's happening is that an older version of this class is in some jar file on your classpath. There's actually a suitable version that's part of JDK 1.6, and that's the version that you want to be found. So it's a matter of removing something from your classpath, not adding something in.

This class was sometimes shipped as part of the separate JAXP download, so you may have an old version of it someplace. What's on your classpath now?
 
I didn't like the taste of tongue and it didn't like the taste of me. I will now try this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic