You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2017/03/22 06:32:41 UTC

[jira] [Commented] (OAK-5961) Handle scenario where jansi library cannot be loaded

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

Chetan Mehrotra commented on OAK-5961:
--------------------------------------

With 1788056 such exception would be caught and logged

> Handle scenario where jansi library cannot be loaded
> ----------------------------------------------------
>
>                 Key: OAK-5961
>                 URL: https://issues.apache.org/jira/browse/OAK-5961
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: run
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>            Priority: Minor
>             Fix For: 1.8
>
>
> Following exception is seen on setup where jansi cannot be loaded
> {noformat}
> Apache Jackrabbit Oak 1.6.1
> Repository connected in read-only mode. Use '--read-write' for write operations
> Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load library. Reasons: [no jansi64-1.6.1 in java.library.path, no jansi-1.6.1 in java.library.path, no jansi in java.library.pa
> th, /tmp/libjansi-64-1-9219049328008584189.6: /tmp/libjansi-64-1-9219049328008584189.6: failed to map segment from shared object: Operation not permitted]
>         at org.fusesource.hawtjni.runtime.Library.doLoad(Library.java:182)
>         at org.fusesource.hawtjni.runtime.Library.load(Library.java:140)
>         at org.fusesource.jansi.internal.CLibrary.<clinit>(CLibrary.java:42)
>         at org.fusesource.jansi.AnsiConsole.wrapOutputStream(AnsiConsole.java:48)
>         at org.fusesource.jansi.AnsiConsole.<clinit>(AnsiConsole.java:38)
>         at org.apache.jackrabbit.oak.console.GroovyConsole.<clinit>(GroovyConsole.groovy:45)
>         at org.apache.jackrabbit.oak.console.Console.main(Console.java:155)
>         at org.apache.jackrabbit.oak.run.ConsoleCommand.execute(ConsoleCommand.java:26)
>         at org.apache.jackrabbit.oak.run.Mode.execute(Mode.java:65)
>         at org.apache.jackrabbit.oak.run.Main.main(Main.java:49)
> {noformat}
> As per [1] such issues can occur if noexec is set for /tmp. Oak Console should handle such case at least for those cases where the console is not to be loaded and just a script needs to be run
> [1] https://support.cloudbees.com/hc/en-us/articles/215281717-Jenkins-fails-to-start-with-JNA-error



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