Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Process Manager (Stardust) » No Such Method exception org.apache.xml.serializer.ExtendedContentHandler(No Such Method exception org.apache.xml.serializer.ExtendedContentHandler)
No Such Method exception org.apache.xml.serializer.ExtendedContentHandler [message #766008] Thu, 15 December 2011 04:12 Go to next message
Vikram Kodak is currently offline Vikram KodakFriend
Messages: 72
Registered: October 2011
Member
Hi,

I am getting following exception during model deployment.

Exception in thread "main" java.lang.NoSuchMethodError: org.apache.xml.serializer.ExtendedContentHandler.addAttribute(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
at org.apache.xalan.templates.ElemAttribute.constructNode(ElemAttribute.java:197)
at org.apache.xalan.templates.ElemElement.execute(ElemElement.java:290)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:162)
Re: No Such Method exception org.apache.xml.serializer.ExtendedContentHandler [message #766013 is a reply to message #766008] Thu, 15 December 2011 04:28 Go to previous messageGo to next message
Vikram Kodak is currently offline Vikram KodakFriend
Messages: 72
Registered: October 2011
Member
Hi,

This looks like a typical classloading issue where you either have an older version of a library on the classpath or more likely duplicate JARs. Can you search your classpath for duplicate JARs (like Xalan in this case). The ExtendedContentHandler class also is contained in the JDK 6, so depending on what Java version you're using, the conflict might also be between the JDK and another library
Re: No Such Method exception org.apache.xml.serializer.ExtendedContentHandler [message #766015 is a reply to message #766013] Thu, 15 December 2011 04:30 Go to previous messageGo to next message
Vikram Kodak is currently offline Vikram KodakFriend
Messages: 72
Registered: October 2011
Member
The most likely scenario (but that's just a guess) is that you've packaged the xalan-2.7.1.jar within your application, but possibly any other of the listed JARs is sitting on the server's classpath. On some app server's it's possible to go into the management console and see from which JARs a particular class is loaded. It seems that there must be two JARs that contain org.apache.xml.serializer.ExtendedContentHandler
Re: No Such Method exception org.apache.xml.serializer.ExtendedContentHandler [message #766016 is a reply to message #766015] Thu, 15 December 2011 04:33 Go to previous message
Vikram Kodak is currently offline Vikram KodakFriend
Messages: 72
Registered: October 2011
Member
This issue is fixed by adding following property in carnot.properties and saxon.jar to the classpath

Carnot.Xml.TrAX.TransformerFactory = com.icl.saxon.TransformerFactoryImpl

Previous Topic:Model deployment fails due to invalid unicode character
Next Topic:SQLException "Invalid Oracle URL specified"
Goto Forum:
  


Current Time: Thu Mar 28 08:21:58 GMT 2024

Powered by FUDForum. Page generated in 0.02578 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top