hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Raoul (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HTTPCLIENT-1862) Equinox SAXException when starting OSGi module httpclient-osgi-4.5.3.jar
Date Fri, 28 Jul 2017 08:07:00 GMT
Nicolas Raoul created HTTPCLIENT-1862:
-----------------------------------------

             Summary: Equinox SAXException when starting OSGi module httpclient-osgi-4.5.3.jar
                 Key: HTTPCLIENT-1862
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1862
             Project: HttpComponents HttpClient
          Issue Type: Bug
          Components: HttpClient (classic)
    Affects Versions: 4.5.3
         Environment: Liferay 7.0sp4
            Reporter: Nicolas Raoul
            Priority: Minor


Equinox starts the httpcore-osgi-4.4.6.jar OSGi module with no problem, but then when it tries
to start httpclient-osgi-4.5.3.jar an exception happens:

06:10:03,114 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:252]
Processing httpclient-osgi-4.5.3.jar
06:10:12,587 INFO  [Refresh Thread: Equinox Container: 10f85e7a-5873-0017-1b6b-dddd49656ffc][BundleStartStopLogger:35]
STARTED jp.co.ahresty.translation.impl_1.0.0 [535]
06:10:12,597 ERROR [fileinstall-/home/nico/p/liferay/liferay-dxp-digital-enterprise-7.0-sp4/osgi/modules][org_eclipse_equinox_metatype:97]
Unable to parse metadata XML at "bundleentry://540.fwk517213600/OSGI-INF/metatype/metatype.properties"
for bundle ID "540" with symbolic name "org.apache.httpcomponents.httpclient".
org.xml.sax.SAXException: Fatal Error: URI=null Line=1: Content is not allowed in prolog.
        at org.eclipse.equinox.metatype.impl.DataParser$MyErrorHandler.fatalError(DataParser.java:856)
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:180)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)
        at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1472)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:994)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:841)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:770)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
        at org.eclipse.equinox.metatype.impl.DataParser.doParse(DataParser.java:110)
        at org.eclipse.equinox.metatype.impl.MetaTypeProviderImpl.readMetaFiles(MetaTypeProviderImpl.java:97)
        at org.eclipse.equinox.metatype.impl.MetaTypeProviderImpl.<init>(MetaTypeProviderImpl.java:59)
        at org.eclipse.equinox.metatype.impl.MetaTypeInformationImpl.<init>(MetaTypeInformationImpl.java:37)
        at org.eclipse.equinox.metatype.impl.MetaTypeServiceImpl$1.run(MetaTypeServiceImpl.java:69)
        at org.eclipse.equinox.metatype.impl.MetaTypeServiceImpl$1.run(MetaTypeServiceImpl.java:1)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.equinox.metatype.impl.MetaTypeServiceImpl.getMetaTypeProvider(MetaTypeServiceImpl.java:65)
        at org.eclipse.equinox.metatype.impl.MetaTypeServiceImpl.getMetaTypeInformation(MetaTypeServiceImpl.java:51)
        at org.eclipse.equinox.metatype.impl.MetaTypeServiceImpl.getMetaTypeInformation(MetaTypeServiceImpl.java:1)
        at com.liferay.portal.configuration.metatype.definitions.annotations.internal.AnnotationsExtendedMetaTypeService.getMetaTypeInformation(AnnotationsExtendedMetaTypeService.java:35)
        at com.liferay.configuration.admin.web.internal.util.ConfigurationModelRetrieverImpl.collectConfigurationModels(ConfigurationModelRetrieverImpl.java:189)
        at com.liferay.configuration.admin.web.internal.util.ConfigurationModelRetrieverImpl.getConfigurationModels(ConfigurationModelRetrieverImpl.java:125)
        at com.liferay.configuration.admin.web.internal.search.ConfigurationIndexingExtender$ConfigurationModelsBundleTrackerCustomizer.addingBundle(ConfigurationIndexingExtender.java:101)
        at com.liferay.configuration.admin.web.internal.search.ConfigurationIndexingExtender$ConfigurationModelsBundleTrackerCustomizer.addingBundle(ConfigurationIndexingExtender.java:89)
        at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:469)
        at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:1)
        at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
        at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
        at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444)
        at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:905)
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
        at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
        at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:165)
        at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:75)
        at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:67)
        at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:102)
        at org.eclipse.osgi.container.Module.publishEvent(Module.java:461)
        at org.eclipse.osgi.container.Module.start(Module.java:452)
        at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:402)
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1253)
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1225)
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:512)
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:361)
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:312)
06:10:12,601 INFO  [fileinstall-/home/nico/p/liferay/liferay-dxp-digital-enterprise-7.0-sp4/osgi/modules][BundleStartStopLogger:35]
STARTED org.apache.httpcomponents.httpclient_4.5.3 [540]

All ".xml" files in the JAR are valid. It could be a bug in Equinox, but I would rather suspect
that some kind of problem in httpclient-osgi-4.5.3.jar, especially since httpcore-osgi-4.4.6.jar
works fine.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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


Mime
View raw message