By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,480 Members | 1,144 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,480 IT Pros & Developers. It's quick & easy.

Permissions error? Mac Java problem.

P: n/a
First of all, I don't know much about Java, even its naming and version
numbering nomenclature, and second, if there is a better group to ask this
in, please let me know.

System is Mac with 10.4.4. I have Java 1.3.1 and 1.4.2 plug-ins, and J2SE
5.0 (1.5.0) installed. The Java preferences application lets me choose J2SE
5 or 1.4.2 to run applets via a browser. The problem happens in both
settings.

The problem is that we have a printer that serves a little Java-based
management application to view history and otherwise manage it. When I hit
the IP, I get the Java coffee cup for a few moments, then a blank area. It
fails in both Safari and Internet Explorer,.

I'm pretty sure this used to work in OS X 10.4.3. It works from Windows
which has 1.4.something.

In the Java console, I get the following. (I've snipped some lines.)
========================================
Java Plug-in 1.5.0
Using JRE version 1.5.0_05 Java HotSpot(TM) Client VM
User home directory = /Users/timmurray
----------------------------------------------------
java.security.AccessControlException: access denied
(java.lang.RuntimePermission accessClassInPackage.com.apple.mrj)
at
java.security.AccessControlContext.checkPermission (AccessControlContext.java:2
64)
at java.security.AccessController.checkPermission(Acc essController.java:427)
at java.lang.SecurityManager.checkPermission(Security Manager.java:532)
at java.lang.SecurityManager.checkPackageAccess(Secur ityManager.java:1512)
at sun.applet.AppletSecurity.checkPackageAccess(Apple tSecurity.java:190)
at java.lang.ClassLoader$1.run(ClassLoader.java:330)
at java.security.AccessController.doPrivileged(Native Method)
at java.lang.ClassLoader.checkPackageAccess(ClassLoad er.java:328)
<snipped 18 similar lines>
Exception in thread "Thread-17" java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(Gr ayBoxPainter.java:153)
at sun.plugin.AppletViewer.showAppletException(Applet Viewer.java:1968)
at sun.applet.AppletPanel.runLoader(AppletPanel.java: 664)
at sun.applet.AppletPanel.run(AppletPanel.java:320)
at java.lang.Thread.run(Thread.java:613)
java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(Gr ayBoxPainter.java:153)
at sun.plugin.AppletViewer.showAppletStatus(AppletVie wer.java:1898)
at sun.applet.AppletPanel.run(AppletPanel.java:365)
at java.lang.Thread.run(Thread.java:613)
Exception in thread "thread
applet-com.efi.appls.webtools.WebToolsApplet.class"
java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(Gr ayBoxPainter.java:153)
at sun.plugin.AppletViewer.showAppletException(Applet Viewer.java:1968)
at sun.applet.AppletPanel.run(AppletPanel.java:529)
at java.lang.Thread.run(Thread.java:613)
========================================

This appears like a permissions problem, but I've fixed permissions several
times.

Any idea what the problem is?

Jan 28 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a

"Tim Murray" <no*****@thankyou.com> wrote in message
news:00*****************************@newsgroups.be llsouth.net...
First of all, I don't know much about Java, even its naming and version
numbering nomenclature, and second, if there is a better group to ask this
in, please let me know.

Yes, they have a weird numbering scheme. "1.5" is considered the same as
"5".
System is Mac with 10.4.4. I have Java 1.3.1 and 1.4.2 plug-ins, and J2SE
5.0 (1.5.0) installed. The Java preferences application lets me choose
J2SE
5 or 1.4.2 to run applets via a browser. The problem happens in both
settings.
1.5 can do everything 1.4.2 can do and more, so you should be able to
just stick with 1.5

The problem is that we have a printer that serves a little Java-based
management application to view history and otherwise manage it. When I hit
the IP, I get the Java coffee cup for a few moments, then a blank area.
It
fails in both Safari and Internet Explorer,.

I'm pretty sure this used to work in OS X 10.4.3. It works from Windows
which has 1.4.something.

In the Java console, I get the following. (I've snipped some lines.)
========================================
Java Plug-in 1.5.0
Using JRE version 1.5.0_05 Java HotSpot(TM) Client VM
User home directory = /Users/timmurray
----------------------------------------------------
java.security.AccessControlException: access denied
(java.lang.RuntimePermission accessClassInPackage.com.apple.mrj)
at
java.security.AccessControlContext.checkPermission (AccessControlContext.java:2
64)
at
java.security.AccessController.checkPermission(Acc essController.java:427)
at java.lang.SecurityManager.checkPermission(Security Manager.java:532)
at java.lang.SecurityManager.checkPackageAccess(Secur ityManager.java:1512)
at sun.applet.AppletSecurity.checkPackageAccess(Apple tSecurity.java:190)
at java.lang.ClassLoader$1.run(ClassLoader.java:330)
at java.security.AccessController.doPrivileged(Native Method)
at java.lang.ClassLoader.checkPackageAccess(ClassLoad er.java:328)
<snipped 18 similar lines>
Exception in thread "Thread-17" java.lang.NullPointerException
at
sun.plugin.util.GrayBoxPainter.showLoadingError(Gr ayBoxPainter.java:153)
at sun.plugin.AppletViewer.showAppletException(Applet Viewer.java:1968)
at sun.applet.AppletPanel.runLoader(AppletPanel.java: 664)
at sun.applet.AppletPanel.run(AppletPanel.java:320)
at java.lang.Thread.run(Thread.java:613)
java.lang.NullPointerException
at
sun.plugin.util.GrayBoxPainter.showLoadingError(Gr ayBoxPainter.java:153)
at sun.plugin.AppletViewer.showAppletStatus(AppletVie wer.java:1898)
at sun.applet.AppletPanel.run(AppletPanel.java:365)
at java.lang.Thread.run(Thread.java:613)
Exception in thread "thread
applet-com.efi.appls.webtools.WebToolsApplet.class"
java.lang.NullPointerException
at
sun.plugin.util.GrayBoxPainter.showLoadingError(Gr ayBoxPainter.java:153)
at sun.plugin.AppletViewer.showAppletException(Applet Viewer.java:1968)
at sun.applet.AppletPanel.run(AppletPanel.java:529)
at java.lang.Thread.run(Thread.java:613)
========================================

This appears like a permissions problem, but I've fixed permissions
several
times.

Any idea what the problem is?


Normally what would happen is a pop up appears in your browser asking
you if you "trust" the applet, and you would normally say "yes", and then it
would run. My suspicion is that at some point, someone said "No, never trust
this applet", and so now you're no longer getting asked, and it's just by
default assuming not to trust the applet.

Try clearing your browser's settings to make it forget everything, so
that it'll ask you if you trust the applet again, and this time say "yes,
always."

- Oliver
Feb 2 '06 #2

P: n/a
On Feb 2, 2006, Oliver Wong wrote:
Normally what would happen is a pop up appears in your browser asking
you if you "trust" the applet, and you would normally say "yes", and then it
would run. My suspicion is that at some point, someone said "No, never trust
this applet", and so now you're no longer getting asked, and it's just by
default assuming not to trust the applet.

Try clearing your browser's settings to make it forget everything, so
that it'll ask you if you trust the applet again, and this time say "yes,
always."


I did clean all available items -- pretty much just cookie and some caches --
and it still fails. Also, I'm pretty sure that over time I have always taken
the "run always" approach. Thanks.

Feb 11 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.