#5 Exception in security environment


Occurs when Java Web Start runs application without "all permission" .

Intresting thing: first try fails, second try fails too, but third try pass!


  • Oleg Ermolaev

    Oleg Ermolaev - 2010-02-04


  • mtraut

    mtraut - 2010-02-08

    Please, with a bug report provide more information. At this moment i know that some web started application fails to run.

    There seems to be reason to believe that it is because of jPod, please give:

    * Stacktraces
    * Test code
    * Whatever available

    We currently do not have any Web Start scenario and as such are not intimate with the internals.

    I can not imagine why jPod should be the reason for a permission problem. This is just plain Java, but i am eager to work on it when you provide details...

    Maybe you are using jPodRenderer, which uses native code and as such needs more permissions?

  • Oleg Ermolaev

    Oleg Ermolaev - 2010-02-08

    Stack trace in attachment "stacktrace.jpod.txt"

    This is fragment of jpod code:

    public abstract class COSBasedObject implements IAttributeSupport,
    ICOSObjectListener {
    protected COSBasedObject doCreateCOSBasedObject(COSObject object) {
    try {
    COSBasedObject result;
    synchronized (this) {
    // lazy access must be synchronized
    if (constructor == null) {
    constructor = getInstanceClass()
    new Class[] { COSObject.class });
    constructor.setAccessible(true); // **** throws java.security.AccessControlException
    result = (COSBasedObject) constructor
    .newInstance(new Object[] { object });
    return result;
    } catch (NoSuchMethodException e) {

  • mtraut

    mtraut - 2010-02-08

    now, thats a valid point...

    i thought in the meantime we have replaced this default implementation everwhere with the idiom like:

    protected COSBasedObject doCreateCOSBasedObject(COSObject object) {
    return new PDColorSpaceCache(object);

    - but we didn't. We will look at this.

  • mtraut

    mtraut - 2010-11-06

    added concrete onstructor calls where needed

  • mtraut

    mtraut - 2010-11-06
    • assigned_to: nobody --> mtraut
    • status: open --> closed-fixed

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks