karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-5394) maven-metadata-local.xml in KARs cause SAXParseException
Date Thu, 05 Oct 2017 15:06:01 GMT

    [ https://issues.apache.org/jira/browse/KARAF-5394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16192987#comment-16192987
] 

ASF subversion and git services commented on KARAF-5394:
--------------------------------------------------------

Commit 03bc8dfed90965d8fc9beed38305926d5f1e3a86 in karaf's branch refs/heads/master from [~jbonofre]
[ https://git-wip-us.apache.org/repos/asf?p=karaf.git;h=03bc8df ]

[KARAF-5394] Exclude maven-metadata* from the kar FeatureDetector


> maven-metadata-local.xml in KARs cause SAXParseException
> --------------------------------------------------------
>
>                 Key: KARAF-5394
>                 URL: https://issues.apache.org/jira/browse/KARAF-5394
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-kar
>    Affects Versions: 4.1.2
>            Reporter: Kai Kreuzer
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>             Fix For: 4.2.0, 4.1.3
>
>
> When deploying a kar file into my installation, I get a long list of DEBUG logs like:
> {code:java}
> 16:39:52.095 [DEBUG] [he.karaf.kar.internal.FeatureDetector] - File 'maven-metadata-local.xml'
is not a features file.
> org.xml.sax.SAXParseException: Premature end of file.
> 	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)
[?:?]
> 	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177)
[?:?]
> 	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:1014)
[?:?]
> 	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.DOMParser.parse(DOMParser.java:243) [?:?]
> 	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
[?:?]
> 	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:205) [?:?]
> 	at org.apache.karaf.kar.internal.FeatureDetector.parse(FeatureDetector.java:84) [56:org.apache.karaf.kar.core:4.1.2]
> 	at org.apache.karaf.kar.internal.FeatureDetector.isFeaturesRepository(FeatureDetector.java:53)
[56:org.apache.karaf.kar.core:4.1.2]
> 	at org.apache.karaf.kar.internal.Kar.extract(Kar.java:122) [56:org.apache.karaf.kar.core:4.1.2]
> 	at org.apache.karaf.kar.internal.KarServiceImpl.install(KarServiceImpl.java:102) [56:org.apache.karaf.kar.core:4.1.2]
> 	at org.apache.karaf.kar.internal.KarServiceImpl.install(KarServiceImpl.java:94) [56:org.apache.karaf.kar.core:4.1.2]
> 	at org.apache.karaf.deployer.kar.KarArtifactInstaller.install(KarArtifactInstaller.java:50)
[47:org.apache.karaf.deployer.kar:4.1.2]
> 	at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:937)
[8:org.apache.felix.fileinstall:3.6.0]
> 	at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:871)
[8:org.apache.felix.fileinstall:3.6.0]
> 	at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:485)
[8:org.apache.felix.fileinstall:3.6.0]
> 	at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:361)
[8:org.apache.felix.fileinstall:3.6.0]
> 	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:312)
[8:org.apache.felix.fileinstall:3.6.0]
> {code}
> According to KARAF-1198, it seems to be ok to have those files within the kar, so I would
expect that the FeatureDetector is also aware of their existence and simply ignore them instead
of logging exceptions.



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

Mime
View raw message