commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mladen Turk (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (DAEMON-100) Thread.currentThread().getContextClassLoader() == null when the program is runned by Prunsrv
Date Fri, 24 Sep 2010 13:25:34 GMT

     [ https://issues.apache.org/jira/browse/DAEMON-100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mladen Turk resolved DAEMON-100.
--------------------------------

         Assignee: Mladen Turk
    Fix Version/s: 1.0.4
       Resolution: Fixed

Fixed in the SVN and will be part of 1.0.4
There reason was because the jvm.dll requires to be loaded in the
same thread as main class is started.
Of course this is no where documented in the JNI specs
(at least I wasn't able to find it)




> Thread.currentThread().getContextClassLoader() == null when the program is runned by
Prunsrv
> --------------------------------------------------------------------------------------------
>
>                 Key: DAEMON-100
>                 URL: https://issues.apache.org/jira/browse/DAEMON-100
>             Project: Commons Daemon
>          Issue Type: Bug
>          Components: Procrun
>         Environment: Win XP, jre1.5.0_11, -Djava.security.policy=<path to a file with
following content>:
> grant  {
>     permission java.security.AllPermission "", "";
>     permission com.sun.rmi.rmid.ExecPermission "<<ALL FILES>>";
>     permission com.sun.rmi.rmid.ExecOptionPermission "*";
> };
>            Reporter: Anton Vodonosov
>            Assignee: Mladen Turk
>             Fix For: 1.0.4
>
>         Attachments: __apxJavaWorkerThread.txt, DaemonLoader.patch
>
>
> Thread.currentThread().getContextClassLoader() == null when the program is runned by
Prunsrv, but when we run the same system using java.exe, Thread.currentThread().getContextClassLoader()
is not null.

-- 
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