DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14288>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14288

org.apache.xerces.util.ObjectFactory$ConfigurationError: Provider 
org.apache.html.dom.HTMLAnchorElementImpl could not be instantiated: 
java.lang.InstantiationException: org.apache.html.dom.HTMLAnchorElementImpl

           Summary: org.apache.xerces.util.ObjectFactory$ConfigurationError:
                    Provider org.apache.html.dom.HTMLAnchorElementImpl could
                    not be instantiated: java.lang.InstantiationException:
                    org.apache.html.dom.HTMLAnchorElementImpl
           Product: Xerces2-J
           Version: 2.2.0
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: DOM
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The following program works correctly with version 1.4.4 but fails with the 
following exception using 2.2.0:

org.apache.xerces.util.ObjectFactory$ConfigurationError: Provider 
org.apache.html.dom.HTMLAnchorElementImpl could not be instantiated: 
java.lang.InstantiationException: org.apache.html.dom.HTMLAnchorElementImpl
        at org.apache.xerces.util.ObjectFactory.newInstance(Unknown Source)
        at org.apache.html.dom.HTMLDocumentImpl.populateElementType(Unknown 
Source)
        at org.apache.html.dom.HTMLDocumentImpl.populateElementTypes(Unknown 
Source)
        at org.apache.html.dom.HTMLDocumentImpl.<init>(Unknown Source)
        at org.pdillard.TestMain.main(TestMain.java:34)
Exception in thread "main"

-------------------- Testcase program code follows -------------------------


import org.apache.html.dom.HTMLDocumentImpl;
import org.apache.xml.serialize.OutputFormat;
import org.apache.xml.serialize.XMLSerializer;
import org.w3c.dom.html.HTMLDocument;

public class TestMain
{
    public static void main(String[] args) throws Exception
    {
        HTMLDocument oDoc = new HTMLDocumentImpl();
        oDoc.setTitle("Testing");
        
        OutputFormat oFormat = new OutputFormat(oDoc);
        oFormat.setIndent(4);
        oFormat.setIndenting(true);
        oFormat.setOmitXMLDeclaration(true);
        
        XMLSerializer oSerializer = new XMLSerializer(System.out, oFormat);
        oSerializer.serialize(oDoc.getDocumentElement());
    }
}

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to