You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Prabhakara Sastry (JIRA)" <ji...@apache.org> on 2017/02/07 19:43:41 UTC

[jira] [Commented] (SLING-2476) Sling installer swallows exceptions for properties config file parsing

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

Prabhakara Sastry commented on SLING-2476:
------------------------------------------

Hi [~cziegeler],

Could you please let me know how the issue is fixed? Because, even I'm facing the same issue. Please help me on this.

Thanks,
Prabhakara

> Sling installer swallows exceptions for properties config file parsing
> ----------------------------------------------------------------------
>
>                 Key: SLING-2476
>                 URL: https://issues.apache.org/jira/browse/SLING-2476
>             Project: Sling
>          Issue Type: Improvement
>          Components: Installer
>    Affects Versions: Installer Core 3.3.4
>            Reporter: Alexander Klimetschek
>            Assignee: Carsten Ziegeler
>            Priority: Minor
>             Fix For: Installer Core 3.3.8
>
>
> If there is a syntax error in the properties config file (.config), all you get is this:
> org.apache.sling.installer.core.impl.OsgiInstallerImpl Cannot create internal resource (resource will be ignored):InstallableResource, priority=100, id=/libs/sling/config/org.apache.sling.i18n.impl.I18NFilter.config java.io.IOException: Unable to read dictionary from input stream: /libs/sling/config/org.apache.sling.i18n.impl.I18NFilter.config
> 	at org.apache.sling.installer.core.impl.InternalResource.create(InternalResource.java:99)
> 	at org.apache.sling.installer.core.impl.OsgiInstallerImpl.createResources(OsgiInstallerImpl.java:277)
> 	at org.apache.sling.installer.core.impl.OsgiInstallerImpl.updateResources(OsgiInstallerImpl.java:316)
> 	at org.apache.sling.installer.provider.jcr.impl.JcrInstaller.runOneCycle(JcrInstaller.java:579)
> 	at org.apache.sling.installer.provider.jcr.impl.JcrInstaller$StoppableThread.run(JcrInstaller.java:265)
> However, debugging shows there is a more specific IOException message available from the dictionary parser:
>     java.io.IOException: Unexpected token 78; expected: 61 (line=2, pos=4)
> InternalResource#readDictionary() is swallowing the IOException in line 250 [0]. It should be added to the exception chain.
> [0] http://svn.apache.org/viewvc/sling/trunk/installer/core/src/main/java/org/apache/sling/installer/core/impl/InternalResource.java?revision=1240017&view=markup



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)