This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 228763 - org.apache.xerces.* classes loaded on startup with J2SE project
Summary: org.apache.xerces.* classes loaded on startup with J2SE project
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.4
Hardware: PC All
: P2 normal (vote)
Assignee: Svata Dedic
URL:
Keywords: PERFORMANCE
Depends on: 232425 232426
Blocks:
  Show dependency tree
 
Reported: 2013-04-19 12:18 UTC by Petr Cyhelsky
Modified: 2013-08-08 02:30 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
snapshot-like distribution of loaders (40.72 KB, application/octet-stream)
2013-04-19 12:18 UTC, Petr Cyhelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Cyhelsky 2013-04-19 12:18:36 UTC
Created attachment 133593 [details]
snapshot-like distribution of loaders

According to the snapshot-like distribution of loaders the classes are loaded by:
org.netbeans.modules.project.ant.ProjectXMLCatalogReader.validate() please see the attached snapshot. When/if fixed please remove the classes from whitelist3.
Following classes are loaded:

org.apache.xerces.impl.dtd.models.CMNode
org.apache.xerces.impl.dtd.models.CMStateSet
org.apache.xerces.impl.dv.SchemaDVFactory
org.apache.xerces.impl.dv.ValidatedInfo
org.apache.xerces.impl.dv.XSFacets
org.apache.xerces.impl.dv.XSSimpleType
org.apache.xerces.impl.dv.xs.AbstractDateTimeDV
org.apache.xerces.impl.dv.xs.AbstractDateTimeDV$DateTimeData
org.apache.xerces.impl.dv.xs.AnyAtomicDV
org.apache.xerces.impl.dv.xs.AnySimpleDV
org.apache.xerces.impl.dv.xs.AnyURIDV
org.apache.xerces.impl.dv.xs.Base64BinaryDV
org.apache.xerces.impl.dv.xs.BooleanDV
org.apache.xerces.impl.dv.xs.DateDV
org.apache.xerces.impl.dv.xs.DateTimeDV
org.apache.xerces.impl.dv.xs.DayDV
org.apache.xerces.impl.dv.xs.DayTimeDurationDV
org.apache.xerces.impl.dv.xs.DecimalDV
org.apache.xerces.impl.dv.xs.DecimalDV$XDecimal
org.apache.xerces.impl.dv.xs.DoubleDV
org.apache.xerces.impl.dv.xs.DurationDV
org.apache.xerces.impl.dv.xs.EntityDV
org.apache.xerces.impl.dv.xs.FloatDV
org.apache.xerces.impl.dv.xs.HexBinaryDV
org.apache.xerces.impl.dv.xs.IDDV
org.apache.xerces.impl.dv.xs.IDREFDV
org.apache.xerces.impl.dv.xs.IntegerDV
org.apache.xerces.impl.dv.xs.ListDV
org.apache.xerces.impl.dv.xs.MonthDV
org.apache.xerces.impl.dv.xs.MonthDayDV
org.apache.xerces.impl.dv.xs.PrecisionDecimalDV
org.apache.xerces.impl.dv.xs.QNameDV
org.apache.xerces.impl.dv.xs.QNameDV$XQName
org.apache.xerces.impl.dv.xs.SchemaDVFactoryImpl
org.apache.xerces.impl.dv.xs.StringDV
org.apache.xerces.impl.dv.xs.TimeDV
org.apache.xerces.impl.dv.xs.TypeValidator
org.apache.xerces.impl.dv.xs.UnionDV
org.apache.xerces.impl.dv.xs.XSSimpleTypeDecl
org.apache.xerces.impl.dv.xs.XSSimpleTypeDecl$ValidationContextImpl
org.apache.xerces.impl.dv.xs.YearDV
org.apache.xerces.impl.dv.xs.YearMonthDV
org.apache.xerces.impl.dv.xs.YearMonthDurationDV
org.apache.xerces.impl.validation.ConfigurableValidationState
org.apache.xerces.impl.validation.EntityState
org.apache.xerces.impl.xpath.regex.ParserForXMLSchema
org.apache.xerces.impl.xpath.regex.REUtil
org.apache.xerces.impl.xpath.regex.RangeToken
org.apache.xerces.impl.xpath.regex.RegexParser
org.apache.xerces.impl.xpath.regex.RegularExpression
org.apache.xerces.impl.xpath.regex.Token
org.apache.xerces.impl.xpath.regex.Token$CharToken
org.apache.xerces.impl.xpath.regex.Token$ClosureToken
org.apache.xerces.impl.xpath.regex.Token$ConcatToken
org.apache.xerces.impl.xpath.regex.Token$ParenToken
org.apache.xerces.impl.xpath.regex.Token$StringToken
org.apache.xerces.impl.xpath.regex.Token$UnionToken
org.apache.xerces.impl.xpath.regex.message
org.apache.xerces.impl.xpath.regex.message_en
org.apache.xerces.impl.xpath.regex.message_en_US
org.apache.xerces.impl.xs.AttributePSVImpl
org.apache.xerces.impl.xs.ElementPSVImpl
org.apache.xerces.impl.xs.SchemaGrammar
org.apache.xerces.impl.xs.SchemaGrammar$BuiltinAttrDecl
org.apache.xerces.impl.xs.SchemaGrammar$BuiltinSchemaGrammar
org.apache.xerces.impl.xs.SchemaGrammar$Schema4Annotations
org.apache.xerces.impl.xs.SchemaGrammar$XSAnyType
org.apache.xerces.impl.xs.SchemaNamespaceSupport
org.apache.xerces.impl.xs.SchemaSymbols
org.apache.xerces.impl.xs.SubstitutionGroupHandler
org.apache.xerces.impl.xs.SubstitutionGroupHandler$OneSubGroup
org.apache.xerces.impl.xs.XMLSchemaLoader
org.apache.xerces.impl.xs.XMLSchemaValidator
org.apache.xerces.impl.xs.XMLSchemaValidator$LocalIDKey
org.apache.xerces.impl.xs.XMLSchemaValidator$ValueStoreCache
org.apache.xerces.impl.xs.XMLSchemaValidator$XPathMatcherStack
org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter
org.apache.xerces.impl.xs.XSAnnotationImpl
org.apache.xerces.impl.xs.XSAttributeDecl
org.apache.xerces.impl.xs.XSAttributeGroupDecl
org.apache.xerces.impl.xs.XSAttributeUseImpl
org.apache.xerces.impl.xs.XSComplexTypeDecl
org.apache.xerces.impl.xs.XSConstraints
org.apache.xerces.impl.xs.XSDDescription
org.apache.xerces.impl.xs.XSDeclarationPool
org.apache.xerces.impl.xs.XSElementDecl
org.apache.xerces.impl.xs.XSGrammarBucket
org.apache.xerces.impl.xs.XSGroupDecl
org.apache.xerces.impl.xs.XSMessageFormatter
org.apache.xerces.impl.xs.XSModelGroupImpl
org.apache.xerces.impl.xs.XSNotationDecl
org.apache.xerces.impl.xs.XSParticleDecl
org.apache.xerces.impl.xs.XSWildcardDecl
org.apache.xerces.impl.xs.identity.FieldActivator
org.apache.xerces.impl.xs.identity.IdentityConstraint
org.apache.xerces.impl.xs.identity.XPathMatcher
org.apache.xerces.impl.xs.models.CMBuilder
org.apache.xerces.impl.xs.models.CMNodeFactory
org.apache.xerces.impl.xs.models.XSCMBinOp
org.apache.xerces.impl.xs.models.XSCMLeaf
org.apache.xerces.impl.xs.models.XSCMUniOp
org.apache.xerces.impl.xs.models.XSCMValidator
org.apache.xerces.impl.xs.models.XSDFACM
org.apache.xerces.impl.xs.models.XSEmptyCM
org.apache.xerces.impl.xs.opti.AttrImpl
org.apache.xerces.impl.xs.opti.DefaultDocument
org.apache.xerces.impl.xs.opti.DefaultElement
org.apache.xerces.impl.xs.opti.DefaultNode
org.apache.xerces.impl.xs.opti.DefaultXMLDocumentHandler
org.apache.xerces.impl.xs.opti.ElementImpl
org.apache.xerces.impl.xs.opti.NamedNodeMapImpl
org.apache.xerces.impl.xs.opti.NodeImpl
org.apache.xerces.impl.xs.opti.SchemaDOM
org.apache.xerces.impl.xs.opti.SchemaDOMParser
org.apache.xerces.impl.xs.opti.SchemaDOMParser$BooleanStack
org.apache.xerces.impl.xs.opti.SchemaParsingConfig
org.apache.xerces.impl.xs.traversers.Container
org.apache.xerces.impl.xs.traversers.LargeContainer
org.apache.xerces.impl.xs.traversers.OneAttr
org.apache.xerces.impl.xs.traversers.SmallContainer
org.apache.xerces.impl.xs.traversers.XSAttributeChecker
org.apache.xerces.impl.xs.traversers.XSDAbstractIDConstraintTraverser
org.apache.xerces.impl.xs.traversers.XSDAbstractParticleTraverser
org.apache.xerces.impl.xs.traversers.XSDAbstractParticleTraverser$ParticleArray
org.apache.xerces.impl.xs.traversers.XSDAbstractTraverser
org.apache.xerces.impl.xs.traversers.XSDAbstractTraverser$FacetInfo
org.apache.xerces.impl.xs.traversers.XSDAttributeGroupTraverser
org.apache.xerces.impl.xs.traversers.XSDAttributeTraverser
org.apache.xerces.impl.xs.traversers.XSDComplexTypeTraverser
org.apache.xerces.impl.xs.traversers.XSDElementTraverser
org.apache.xerces.impl.xs.traversers.XSDGroupTraverser
org.apache.xerces.impl.xs.traversers.XSDHandler
org.apache.xerces.impl.xs.traversers.XSDHandler$XSDKey
org.apache.xerces.impl.xs.traversers.XSDKeyrefTraverser
org.apache.xerces.impl.xs.traversers.XSDNotationTraverser
org.apache.xerces.impl.xs.traversers.XSDSimpleTypeTraverser
org.apache.xerces.impl.xs.traversers.XSDUniqueOrKeyTraverser
org.apache.xerces.impl.xs.traversers.XSDWildcardTraverser
org.apache.xerces.impl.xs.traversers.XSDocumentInfo
org.apache.xerces.impl.xs.util.SimpleLocator
org.apache.xerces.impl.xs.util.XInt
org.apache.xerces.impl.xs.util.XIntPool
org.apache.xerces.impl.xs.util.XSObjectListImpl
org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl
org.apache.xerces.jaxp.validation.AbstractXMLSchema
org.apache.xerces.jaxp.validation.DOMDocumentHandler
org.apache.xerces.jaxp.validation.DOMResultAugmentor
org.apache.xerces.jaxp.validation.DOMResultBuilder
org.apache.xerces.jaxp.validation.DOMValidatorHelper
org.apache.xerces.jaxp.validation.DOMValidatorHelper$DOMNamespaceContext
org.apache.xerces.jaxp.validation.DraconianErrorHandler
org.apache.xerces.jaxp.validation.ReadOnlyGrammarPool
org.apache.xerces.jaxp.validation.ValidatorHelper
org.apache.xerces.jaxp.validation.ValidatorImpl
org.apache.xerces.jaxp.validation.XMLSchema
org.apache.xerces.jaxp.validation.XMLSchemaFactory
org.apache.xerces.jaxp.validation.XMLSchemaFactory$XMLGrammarPoolImplExtension
org.apache.xerces.jaxp.validation.XMLSchemaFactory$XMLGrammarPoolWrapper
org.apache.xerces.jaxp.validation.XMLSchemaValidatorComponentManager
org.apache.xerces.jaxp.validation.XSGrammarPoolContainer
org.apache.xerces.parsers.BasicParserConfiguration
org.apache.xerces.util.DOMEntityResolverWrapper
org.apache.xerces.util.DOMInputSource
org.apache.xerces.util.DOMUtil
org.apache.xerces.util.DefaultErrorHandler
org.apache.xerces.util.IntStack
org.apache.xerces.util.NamespaceSupport$Prefixes
org.apache.xerces.util.SAXInputSource
org.apache.xerces.util.SymbolHash
org.apache.xerces.util.SymbolHash$Entry
org.apache.xerces.util.URI
org.apache.xerces.util.XMLGrammarPoolImpl
org.apache.xerces.util.XMLGrammarPoolImpl$Entry
org.apache.xerces.xni.XNIException
org.apache.xerces.xni.grammars.Grammar
org.apache.xerces.xni.grammars.XMLGrammarLoader
org.apache.xerces.xni.grammars.XMLSchemaDescription
org.apache.xerces.xni.grammars.XSGrammar
org.apache.xerces.xni.parser.XMLConfigurationException
org.apache.xerces.xs.AttributePSVI
org.apache.xerces.xs.ElementPSVI
org.apache.xerces.xs.ItemPSVI
org.apache.xerces.xs.ShortList
org.apache.xerces.xs.XSAnnotation
org.apache.xerces.xs.XSAttributeDeclaration
org.apache.xerces.xs.XSAttributeGroupDefinition
org.apache.xerces.xs.XSAttributeUse
org.apache.xerces.xs.XSComplexTypeDefinition
org.apache.xerces.xs.XSElementDeclaration
org.apache.xerces.xs.XSIDCDefinition
org.apache.xerces.xs.XSLoader
org.apache.xerces.xs.XSModelGroup
org.apache.xerces.xs.XSModelGroupDefinition
org.apache.xerces.xs.XSNamespaceItem
org.apache.xerces.xs.XSNotationDeclaration
org.apache.xerces.xs.XSObject
org.apache.xerces.xs.XSObjectList
org.apache.xerces.xs.XSParticle
org.apache.xerces.xs.XSSimpleTypeDefinition
org.apache.xerces.xs.XSTerm
org.apache.xerces.xs.XSTypeDefinition
org.apache.xerces.xs.XSWildcard
org.apache.xerces.xs.datatypes.XSDateTime
org.apache.xerces.xs.datatypes.XSDecimal
org.apache.xerces.xs.datatypes.XSQName
Comment 1 Petr Cyhelsky 2013-04-19 12:33:03 UTC
Classes aded to whitelist at: http://hg.netbeans.org/ergonomics/rev/fdd524fb89cd
Comment 2 Petr Cyhelsky 2013-04-22 12:22:44 UTC
reassigning to xml. Is there some way in which only modules really needing the libs.xerces module will see it?
Comment 3 Quality Engineering 2013-04-28 02:19:14 UTC
Integrated into 'main-golden', will be available in build *201304272301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/fdd524fb89cd
User: Petr Cyhelsky <cyhelsky@netbeans.org>
Log: #228763 - adding org.apache.xerces classes to whitelist
Comment 4 Svata Dedic 2013-07-12 09:52:58 UTC
registration removed in http://hg.netbeans.org/jet-main/rev/6d83edb4f7a6


See linked bugs - adjustments in library usage in affected modules
Comment 5 Quality Engineering 2013-07-13 02:05:53 UTC
Integrated into 'main-silver', will be available in build *201307122300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/6d83edb4f7a6
User: Svata Dedic <sdedic@netbeans.org>
Log: #228763: removed Xerces registration as the default parser
Comment 6 Quality Engineering 2013-08-08 02:30:32 UTC
Integrated into 'main-silver', will be available in build *201308072300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/f1951dfd491b
User: Petr Cyhelsky <cyhelsky@netbeans.org>
Log: #228763 - removing org.apache.xerces classes from whitelist