Ankita Agarwal created FELIX-6387:
-------------------------------------

             Summary: SAX XML parser does not work properly 
                 Key: FELIX-6387
                 URL: https://issues.apache.org/jira/browse/FELIX-6387
             Project: Felix
          Issue Type: Bug
          Components: Declarative Services (SCR)
            Reporter: Ankita Agarwal


It could be a regression of https://issues.apache.org/jira/browse/FELIX-6218

10.02.2021 00:24:13.479 *ERROR* [FelixStartLevel] 
com.az.nexus.hibernate.service.impl.SessionFactoryServiceImpl Error registering 
Hibernate SessionFactorybl-bundle (nexus_uk_core)10.02.2021 00:24:13.479 
*ERROR* [FelixStartLevel] 
com.az.nexus.hibernate.service.impl.SessionFactoryServiceImpl Error registering 
Hibernate SessionFactorybl-bundle 
(nexus_uk_core)org.hibernate.HibernateException: Could not parse configuration: 
nexus_uk_core-hibernate.cfg.xml at 
org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2246) at 
org.hibernate.cfg.Configuration.configure(Configuration.java:2158) at 
com.az.nexus.hibernate.factory.HibernateSessionFactory.createSessionFactory(HibernateSessionFactory.java:65)
 at 
com.az.nexus.hibernate.service.impl.SessionFactoryServiceImpl.registerSessionFactory(SessionFactoryServiceImpl.java:207)
 at com.az.nexus.bl.Activator.start(Activator.java:149) at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498) at 
org.apache.felix.scr.impl.inject.methods.BaseMethod.invokeMethod(BaseMethod.java:242)
 at 
org.apache.felix.scr.impl.inject.methods.BaseMethod.access$500(BaseMethod.java:41)
 at 
org.apache.felix.scr.impl.inject.methods.BaseMethod$Resolved.invoke(BaseMethod.java:678)
 at 
org.apache.felix.scr.impl.inject.methods.BaseMethod.invoke(BaseMethod.java:524) 
at 
org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:318)
 at 
org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:308)
 at 
org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:342)
 at 
org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:115)
 at 
org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:984)
 at 
org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:957)
 at 
org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:766)
 at 
org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.addedService(DependencyManager.java:1091)
 at 
org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.addedService(DependencyManager.java:1043)
 at 
org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1216)
 at 
org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1137)
 at 
org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.trackAdding(ServiceTracker.java:944)
 at 
org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.track(ServiceTracker.java:880)
 at 
org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:1168)
 at 
org.apache.felix.scr.impl.BundleComponentActivator$ListenerInfo.serviceChanged(BundleComponentActivator.java:125)
 at 
org.apache.felix.framework.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:990)
 at 
org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:838)
 at 
org.apache.felix.framework.EventDispatcher.fireServiceEvent(EventDispatcher.java:545)
 at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4833) at 
org.apache.felix.framework.Felix.registerService(Felix.java:3804) at 
org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:328)
 at 
org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:907)
 at 
org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:893)
 at 
org.apache.felix.scr.impl.manager.RegistrationManager.changeRegistration(RegistrationManager.java:128)
 at 
org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:960)
 at 
org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:733)
 at 
org.apache.felix.scr.impl.manager.AbstractComponentManager.enableInternal(AbstractComponentManager.java:667)
 at 
org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:433)
 at 
org.apache.felix.scr.impl.manager.ConfigurableComponentHolder.enableComponents(ConfigurableComponentHolder.java:666)
 at 
org.apache.felix.scr.impl.BundleComponentActivator.initialEnable(BundleComponentActivator.java:353)
 at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:553) at 
org.apache.felix.scr.impl.Activator.access$200(Activator.java:69) at 
org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:424) at 
org.apache.felix.scr.impl.AbstractExtender.createExtension(AbstractExtender.java:196)
 at 
org.apache.felix.scr.impl.AbstractExtender.modifiedBundle(AbstractExtender.java:169)
 at 
org.apache.felix.scr.impl.AbstractExtender.modifiedBundle(AbstractExtender.java:49)
 at 
org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:488)
 at 
org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:420)
 at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232) at 
org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:450)
 at 
org.apache.felix.framework.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:915)
 at 
org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:834)
 at 
org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:516)
 at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4817) at 
org.apache.felix.framework.Felix.startBundle(Felix.java:2336) at 
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1539) at 
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
 at java.lang.Thread.run(Thread.java:748)Caused by: 
org.dom4j.DocumentException: SAX2 driver class 
org.apache.xerces.parsers.SAXParser does not implement XMLReader Nested 
exception: SAX2 driver class org.apache.xerces.parserWARN [FelixStartLevel] 
org.apache.felix.scr bundle org.apache.felix.scr:2.1.20 (31)bundle 
org.apache.sling.startupfilter.disabler:0.0.1.Rev1758544 (250) : Error while 
creating extension (javax.xml.parsers.FactoryConfigurationError: Provider for 
class javax.xml.parsers.SAXParserFactory cannot be 
created)javax.xml.parsers.FactoryConfigurationError: Provider for class 
javax.xml.parsers.SAXParserFactory cannot be createds.SAXParser does not 
implement XMLReader at org.dom4j.io.SAXReader.read(SAXReader.java:484) at 
org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2238) ... 60 
common frames omitted



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to