karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jamie goodyear (JIRA)" <j...@apache.org>
Subject [jira] Commented: (KARAF-189) Java endorsed dirs on AIX (IBM JVM)
Date Mon, 13 Sep 2010 18:21:33 GMT

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

Jamie goodyear commented on KARAF-189:
--------------------------------------

The trouble section of code appears to be:

{code}
private static final SecurityManagerEx sm = new SecurityManagerEx();
private transient Class[] classContext = sm.getThrowableContext(this);
{code}

I have tried changing it to the following to ensure that SecurityManagerEx is instantiated.

{code}
private static final SecurityManagerEx sm;
    static {
        try {
            sm = new SecurityManagerEx();
       } catch (Throwable t) {
            sm = null;
   }

private transient Class[] classContext = sm != null ? sm.getThrowableContext(this) : null;
{code}

However I continue to experience having the SecurityManagerEx class fail to init, taking out
the JVM.

Setting the SecurityManagerEx to null appears to allow IBM Java 6 to continue to fully boot
Karaf, as such I'd like to suggest fixing this issue as discribed, and opening another issue
to restore this lost functionality.

> Java endorsed dirs on AIX (IBM JVM)
> -----------------------------------
>
>                 Key: KARAF-189
>                 URL: https://issues.apache.org/jira/browse/KARAF-189
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>         Environment: AIX 5.3, IBM jre 1.6 sr8, power-pc
> Ubuntu linux 10.04, IBM jre sr8, x86
>            Reporter: haedri
>            Assignee: Jamie goodyear
>            Priority: Minor
>             Fix For: 2.1.0
>
>
> I have troubles launching karaf 2.0 on AIX, using an IBM jre (1.6 sr8), here are the
relevant lines of the output :
> IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 AIX ppc-32
> jvmap3260sr8-20100401_55940 (JIT enabled, AOT enabled)
> Unhandled exception
> Type=Segmentation error vmState=0x00000000
> (...)
> After trying everything possible (setting LDR_CTRL, LIBPATH, ulimit,...) it appears the
problem is linked to the "-Djava.endorsed.dirs" parameter from the java startup command line,
if I remove the "${KARAF_HOME}/lib/endorsed" entry, then karaf starts successfully.
> I've been able to reproduce the problem on a linux ubuntu on a x86 processor, using the
same IBM jvm version (http://www.ibm.com/developerworks/java/jdk/linux/download.html)
> I think problem comes from IBM jre (because it works on a jre 1.6 sr0), but I din't investigate
enough to be sure

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message