You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "sucheng (Created) (JIRA)" <xe...@xml.apache.org> on 2011/11/11 13:42:51 UTC

[jira] [Created] (XERCESJ-1543) org.apache.xerces.parsers.ObjectFactory.newInstance sometimes goes wrong

org.apache.xerces.parsers.ObjectFactory.newInstance sometimes goes wrong
------------------------------------------------------------------------

                 Key: XERCESJ-1543
                 URL: https://issues.apache.org/jira/browse/XERCESJ-1543
             Project: Xerces2-J
          Issue Type: Bug
    Affects Versions: 2.7.1
         Environment: hp ia64
            Reporter: sucheng


XML parser works well, but sometimes throw the exception when parser the input XML.

This bug does not always appears, only some times. The error message could'nt help to find the cause of this beahviour.

the error message : 
org.apache.xerces.parsers.ObjectFactory$ConfigurationError: Provider org.apache.xerces.parsers.XIncludeAwareParserConfiguration could not be instantiated: java.lang.IllegalArgumentException: Illegal Load: 0.75
         at org.apache.xerces.parsers.ObjectFactory.newInstance(Unknown Source)
         at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)
         at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)
         at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
         at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
         at sun.reflect.GeneratedConstructorAccessor193.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:501)
         at java.lang.Class.newInstance0(Class.java:354)
         at java.lang.Class.newInstance(Class.java:307)
         at org.xml.sax.helpers.NewInstance.newInstance(NewInstance.java:51)
         at org.xml.sax.helpers.XMLReaderFactory.loadClass(XMLReaderFactory.java:187)
         at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:150)
         at org.dom4j.io.SAXHelper.createXMLReader(SAXHelper.java:83)
         at org.dom4j.io.SAXReader.createXMLReader(SAXReader.java:894)
         at org.dom4j.io.SAXReader.getXMLReader(SAXReader.java:715)
         at org.dom4j.io.SAXReader.read(SAXReader.java:435)
         at org.dom4j.DocumentHelper.parseText(DocumentHelper.java:278)
----------------
Does this remind you something ? 



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] [Commented] (XERCESJ-1543) org.apache.xerces.parsers.ObjectFactory.newInstance sometimes goes wrong

Posted by "sucheng (Commented) (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESJ-1543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13177589#comment-13177589 ] 

sucheng commented on XERCESJ-1543:
----------------------------------

Thanks,HP JDK also have the same problem, HP JDK 1.6 solve this problem. 
                
> org.apache.xerces.parsers.ObjectFactory.newInstance sometimes goes wrong
> ------------------------------------------------------------------------
>
>                 Key: XERCESJ-1543
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1543
>             Project: Xerces2-J
>          Issue Type: Bug
>    Affects Versions: 2.7.1
>         Environment: hp ia64
>            Reporter: sucheng
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> XML parser works well, but sometimes throw the exception when parser the input XML.
> This bug does not always appears, only some times. The error message could'nt help to find the cause of this beahviour.
> the error message : 
> org.apache.xerces.parsers.ObjectFactory$ConfigurationError: Provider org.apache.xerces.parsers.XIncludeAwareParserConfiguration could not be instantiated: java.lang.IllegalArgumentException: Illegal Load: 0.75
>          at org.apache.xerces.parsers.ObjectFactory.newInstance(Unknown Source)
>          at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)
>          at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)
>          at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
>          at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
>          at sun.reflect.GeneratedConstructorAccessor193.newInstance(Unknown Source)
>          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>          at java.lang.reflect.Constructor.newInstance(Constructor.java:501)
>          at java.lang.Class.newInstance0(Class.java:354)
>          at java.lang.Class.newInstance(Class.java:307)
>          at org.xml.sax.helpers.NewInstance.newInstance(NewInstance.java:51)
>          at org.xml.sax.helpers.XMLReaderFactory.loadClass(XMLReaderFactory.java:187)
>          at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:150)
>          at org.dom4j.io.SAXHelper.createXMLReader(SAXHelper.java:83)
>          at org.dom4j.io.SAXReader.createXMLReader(SAXReader.java:894)
>          at org.dom4j.io.SAXReader.getXMLReader(SAXReader.java:715)
>          at org.dom4j.io.SAXReader.read(SAXReader.java:435)
>          at org.dom4j.DocumentHelper.parseText(DocumentHelper.java:278)
> ----------------
> Does this remind you something ? 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] [Resolved] (XERCESJ-1543) org.apache.xerces.parsers.ObjectFactory.newInstance sometimes goes wrong

Posted by "Michael Glavassevich (Resolved) (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Glavassevich resolved XERCESJ-1543.
-------------------------------------------

    Resolution: Cannot Reproduce

Not reproducible, but this is apparently a problem with the Sun/Oracle JDK on some hardware platforms. The exception is thrown internally from java.util.HashMap or java.util.Hashtable. There's nothing we can do about this. Please see: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4832371.
                
> org.apache.xerces.parsers.ObjectFactory.newInstance sometimes goes wrong
> ------------------------------------------------------------------------
>
>                 Key: XERCESJ-1543
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1543
>             Project: Xerces2-J
>          Issue Type: Bug
>    Affects Versions: 2.7.1
>         Environment: hp ia64
>            Reporter: sucheng
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> XML parser works well, but sometimes throw the exception when parser the input XML.
> This bug does not always appears, only some times. The error message could'nt help to find the cause of this beahviour.
> the error message : 
> org.apache.xerces.parsers.ObjectFactory$ConfigurationError: Provider org.apache.xerces.parsers.XIncludeAwareParserConfiguration could not be instantiated: java.lang.IllegalArgumentException: Illegal Load: 0.75
>          at org.apache.xerces.parsers.ObjectFactory.newInstance(Unknown Source)
>          at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)
>          at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)
>          at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
>          at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
>          at sun.reflect.GeneratedConstructorAccessor193.newInstance(Unknown Source)
>          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>          at java.lang.reflect.Constructor.newInstance(Constructor.java:501)
>          at java.lang.Class.newInstance0(Class.java:354)
>          at java.lang.Class.newInstance(Class.java:307)
>          at org.xml.sax.helpers.NewInstance.newInstance(NewInstance.java:51)
>          at org.xml.sax.helpers.XMLReaderFactory.loadClass(XMLReaderFactory.java:187)
>          at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:150)
>          at org.dom4j.io.SAXHelper.createXMLReader(SAXHelper.java:83)
>          at org.dom4j.io.SAXReader.createXMLReader(SAXReader.java:894)
>          at org.dom4j.io.SAXReader.getXMLReader(SAXReader.java:715)
>          at org.dom4j.io.SAXReader.read(SAXReader.java:435)
>          at org.dom4j.DocumentHelper.parseText(DocumentHelper.java:278)
> ----------------
> Does this remind you something ? 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org