[sip-comm-dev] [Applet]: access denied


#1

Hi everybody!!
I am trying to program an applet following the path of Sebastian. I am using
the version alpha2.
I don't have compiling problems, but when I open the browser a gray window
appears where it's supposed to find the applet.
If I open the Java Console... I find this errors:

java.lang.NullPointerException
    at
net.java.sip.communicator.launcher.SIPCommunicatorApplet.destroy(SIPCommunicatorApplet.java:263)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown
Source)
    at java.lang.Thread.run(Unknown Source)

Welcome to Felix.

···

=================

Could not create framework: java.security.AccessControlException: access
denied (java.util.PropertyPermission user.language read)
java.security.AccessControlException: access denied
(java.util.PropertyPermission user.language read)
    at java.security.AccessControlContext.checkPermission(Unknown Source)
    at java.security.AccessController.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
    at java.lang.System.getProperty(Unknown Source)
    at
org.apache.felix.framework.Felix.initializeFrameworkProperties(Felix.java:3541)
    at org.apache.felix.framework.Felix.<init>(Felix.java:233)
    at
net.java.sip.communicator.launcher.SIPCommunicatorApplet.init(SIPCommunicatorApplet.java:234)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown
Source)
    at java.lang.Thread.run(Unknown Source)

I have given all permissions to variable *user.language* and I have signed
all jars that are used.
In line 263 I have:
felix.stop(),
and in line 234 I have:
felix = new Felix(configMap, list);

Can anyone help me, please?
Thanks in advance,
Regards.

Marta Luna Serrano


#2

Hi again!!
I have resolve the problem of permissions and other bundle problems, but I
have this new error that I really don't know what to do...
This is what Java Consola shows:

basic: Receptor de progreso agregado:
sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@cb6a34
basic: Subprograma cargado.
basic: Applet resized and added to parent container
basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt
205732 us, pluginInit dt 460881526 us, TotalTime: 461087258 us

Welcome to Felix.

···

=================

ERROR: Error starting
file:/C:/eclipse/Workspace/SIPCommApplet/sc-bundles/branding.jar
(org.osgi.framework.BundleException: Unresolved package in bundle 26:
package;
(&(package=org.jdesktop.jdic.desktopnet.java.sip.communicator.service.applet)(version>=0.0.0)))
org.osgi.framework.BundleException: Unresolved package in bundle 26:
package;
(&(package=org.jdesktop.jdic.desktopnet.java.sip.communicator.service.applet)(version>=0.0.0))
    at org.apache.felix.framework.Felix._resolveBundle(Felix.java:1650)
    at org.apache.felix.framework.Felix._startBundle(Felix.java:1517)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:1470)
    at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1065)
    at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258)
    at java.lang.Thread.run(Unknown Source)

Any idea?
Thanks in advance.
Marta

2009/5/26 Marta Luna Serrano <martalun@gmail.com>

Hi everybody!!
I am trying to program an applet following the path of Sebastian. I am
using the version alpha2.
I don't have compiling problems, but when I open the browser a gray window
appears where it's supposed to find the applet.
If I open the Java Console... I find this errors:

java.lang.NullPointerException
    at
net.java.sip.communicator.launcher.SIPCommunicatorApplet.destroy(SIPCommunicatorApplet.java:263)
    at
sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown
Source)
    at java.lang.Thread.run(Unknown Source)

Welcome to Felix.

Could not create framework: java.security.AccessControlException: access
denied (java.util.PropertyPermission user.language read)
java.security.AccessControlException: access denied
(java.util.PropertyPermission user.language read)
    at java.security.AccessControlContext.checkPermission(Unknown Source)
    at java.security.AccessController.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
    at java.lang.System.getProperty(Unknown Source)
    at
org.apache.felix.framework.Felix.initializeFrameworkProperties(Felix.java:3541)
    at org.apache.felix.framework.Felix.<init>(Felix.java:233)
    at
net.java.sip.communicator.launcher.SIPCommunicatorApplet.init(SIPCommunicatorApplet.java:234)
    at
sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown
Source)
    at java.lang.Thread.run(Unknown Source)

I have given all permissions to variable *user.language* and I have signed
all jars that are used.
In line 263 I have:
felix.stop(),
and in line 234 I have:
felix = new Felix(configMap, list);

Can anyone help me, please?
Thanks in advance,
Regards.

Marta Luna Serrano


#3

Hi,

it seems to me its an error in the manifest file some coma is missing or something like that (formatting).
package=org.jdesktop.jdic.desktopnet.java.sip.communicator.service.applet
Maybe start checking from branding bundle.

damencho

Marta Luna Serrano wrote:

···

Hi again!!
I have resolve the problem of permissions and other bundle problems, but I have this new error that I really don't know what to do...
This is what Java Consola shows:

basic: Receptor de progreso agregado: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@cb6a34
basic: Subprograma cargado.
basic: Applet resized and added to parent container
basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt 205732 us, pluginInit dt 460881526 us, TotalTime: 461087258 us

Welcome to Felix.

ERROR: Error starting file:/C:/eclipse/Workspace/SIPCommApplet/sc-bundles/branding.jar (org.osgi.framework.BundleException: Unresolved package in bundle 26: package; (&(package=org.jdesktop.jdic.desktopnet.java.sip.communicator.service.applet)(version>=0.0.0)))
org.osgi.framework.BundleException: Unresolved package in bundle 26: package; (&(package=org.jdesktop.jdic.desktopnet.java.sip.communicator.service.applet)(version>=0.0.0))
    at org.apache.felix.framework.Felix._resolveBundle(Felix.java:1650)
    at org.apache.felix.framework.Felix._startBundle(Felix.java:1517)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:1470)
    at org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1065)
    at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258)
    at java.lang.Thread.run(Unknown Source)

Any idea?
Thanks in advance.
Marta

2009/5/26 Marta Luna Serrano <martalun@gmail.com <mailto:martalun@gmail.com>>

    Hi everybody!!
    I am trying to program an applet following the path of Sebastian.
    I am using the version alpha2.
    I don't have compiling problems, but when I open the browser a
    gray window appears where it's supposed to find the applet.
    If I open the Java Console... I find this errors:

    java.lang.NullPointerException
        at
    net.java.sip.communicator.launcher.SIPCommunicatorApplet.destroy(SIPCommunicatorApplet.java:263)
        at
    sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown
    Source)
        at java.lang.Thread.run(Unknown Source)

    Welcome to Felix.
    =================

    Could not create framework: java.security.AccessControlException:
    access denied (java.util.PropertyPermission user.language read)
    java.security.AccessControlException: access denied
    (java.util.PropertyPermission user.language read)
        at java.security.AccessControlContext.checkPermission(Unknown
    Source)
        at java.security.AccessController.checkPermission(Unknown Source)
        at java.lang.SecurityManager.checkPermission(Unknown Source)
        at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
        at java.lang.System.getProperty(Unknown Source)
        at
    org.apache.felix.framework.Felix.initializeFrameworkProperties(Felix.java:3541)
        at org.apache.felix.framework.Felix.<init>(Felix.java:233)
        at
    net.java.sip.communicator.launcher.SIPCommunicatorApplet.init(SIPCommunicatorApplet.java:234)
        at
    sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown
    Source)
        at java.lang.Thread.run(Unknown Source)

    I have given all permissions to variable /user.language/ and I
    have signed all jars that are used.
    In line 263 I have:
    felix.stop(),
    and in line 234 I have:
    felix = new Felix(configMap, list);

    Can anyone help me, please?
    Thanks in advance,
    Regards.

    Marta Luna Serrano

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#4

Hi,
Thanks Damian!!
I have confirmed that the manifest file is OK, I have checked also that the
number of bundles' version is the same on all the manifest files I have.
This is my manifest file of my branding bundle:
Bundle-Activator:
net.java.sip.communicator.plugin.branding.BrandingActivator
Bundle-Name: Branding plugin
Bundle-Description: Branding plugin.
Bundle-Vendor: sip-communicator.org
Bundle-Version: 1.0
Import-Package: org.osgi.framework,
net.java.sip.communicator.service.browserlauncher,
net.java.sip.communicator.service.gui,
net.java.sip.communicator.service.gui.event,
net.java.sip.communicator.util,
javax.swing,
javax.swing.event,
javax.swing.border,
javax.swing.text,
javax.swing.text.html,
javax.imageio,
And this is what I have in the Java Console:
Welcome to Felix.

···

=================

ERROR: Error starting
file:/C:/eclipse/Workspace/SIPCommApplet/sc-bundles/branding.jar
(org.osgi.framework.BundleException: Unresolved package in bundle 26:
package;
(&(package=org.jdesktop.jdic.desktopnet.java.sip.communicator.service.applet)(version>=0.0.0)))
org.osgi.framework.BundleException: Unresolved package in bundle 26:
package;
(&(package=org.jdesktop.jdic.desktopnet.java.sip.communicator.service.applet)(version>=0.0.0))
    at org.apache.felix.framework.Felix._resolveBundle(Felix.java:1650)
    at org.apache.felix.framework.Felix._startBundle(Felix.java:1517)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:1470)
    at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1065)
    at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258)
    at java.lang.Thread.run(Unknown Source)

And I have the same error in notification.jar, swing-ui.jar, systray.jar,
whiteboard.jar and extendedcallhistorysearch.jar.

Any idea??
Thanks in advanced!!
Regards,
Marta

2009/5/29 Damian Minkov <damencho@sip-communicator.org>

Hi,

it seems to me its an error in the manifest file some coma is missing or
something like that (formatting).
package=org.jdesktop.jdic.desktopnet.java.sip.communicator.service.applet
Maybe start checking from branding bundle.

damencho

Marta Luna Serrano wrote:

Hi again!!
I have resolve the problem of permissions and other bundle problems, but I
have this new error that I really don't know what to do...
This is what Java Consola shows:

basic: Receptor de progreso agregado:
sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@cb6a34
basic: Subprograma cargado.
basic: Applet resized and added to parent container
basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt
205732 us, pluginInit dt 460881526 us, TotalTime: 461087258 us

Welcome to Felix.

ERROR: Error starting
file:/C:/eclipse/Workspace/SIPCommApplet/sc-bundles/branding.jar
(org.osgi.framework.BundleException: Unresolved package in bundle 26:
package;
(&(package=org.jdesktop.jdic.desktopnet.java.sip.communicator.service.applet)(version>=0.0.0)))
org.osgi.framework.BundleException: Unresolved package in bundle 26:
package;
(&(package=org.jdesktop.jdic.desktopnet.java.sip.communicator.service.applet)(version>=0.0.0))
   at org.apache.felix.framework.Felix._resolveBundle(Felix.java:1650)
   at org.apache.felix.framework.Felix._startBundle(Felix.java:1517)
   at org.apache.felix.framework.Felix.startBundle(Felix.java:1470)
   at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1065)
   at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258)
   at java.lang.Thread.run(Unknown Source)

Any idea?
Thanks in advance.
Marta

2009/5/26 Marta Luna Serrano <martalun@gmail.com <mailto:
martalun@gmail.com>>

   Hi everybody!!
   I am trying to program an applet following the path of Sebastian.
   I am using the version alpha2.
   I don't have compiling problems, but when I open the browser a
   gray window appears where it's supposed to find the applet.
   If I open the Java Console... I find this errors:

   java.lang.NullPointerException
       at

net.java.sip.communicator.launcher.SIPCommunicatorApplet.destroy(SIPCommunicatorApplet.java:263)
       at
   sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown
   Source)
       at java.lang.Thread.run(Unknown Source)

   Welcome to Felix.
   =================

   Could not create framework: java.security.AccessControlException:
   access denied (java.util.PropertyPermission user.language read)
   java.security.AccessControlException: access denied
   (java.util.PropertyPermission user.language read)
       at java.security.AccessControlContext.checkPermission(Unknown
   Source)
       at java.security.AccessController.checkPermission(Unknown Source)
       at java.lang.SecurityManager.checkPermission(Unknown Source)
       at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
       at java.lang.System.getProperty(Unknown Source)
       at

org.apache.felix.framework.Felix.initializeFrameworkProperties(Felix.java:3541)
       at org.apache.felix.framework.Felix.<init>(Felix.java:233)
       at

net.java.sip.communicator.launcher.SIPCommunicatorApplet.init(SIPCommunicatorApplet.java:234)
       at
   sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown
   Source)
       at java.lang.Thread.run(Unknown Source)

   I have given all permissions to variable /user.language/ and I
   have signed all jars that are used.
   In line 263 I have:
   felix.stop(),
   and in line 234 I have:
   felix = new Felix(configMap, list);

   Can anyone help me, please?
   Thanks in advance,
   Regards.

   Marta Luna Serrano

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net