473,394 Members | 1,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Permissions error? Mac Java problem.

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

"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: NathanK | last post by:
Hi Guys, im starting out in java and i'm getting the error: Exception in thread "main" java.lang.NoClassDefFoundError: blurf if i run "javac blurf.java", it compiles fine and without any...
1
by: Matt | last post by:
I run the xalan-java v2.60 command line: java org.apache.xalan.xslt.Process -in test.xml -xsl test.xsl -out test.html But it has the following error: (Location of error unknown)XSLT Error...
6
by: Matt Bostock | last post by:
Hi, When I validate this page: http://www.drfunkenstein.net/using http://jigsaw.w3.org/css-validator/, I get the following results: ...
15
by: Steve Horrillo | last post by:
I can't figure out why this script won't insert the subject in the email and why can't I control the font and size being used? I'm not sure where to post this. Let me know where if this is OT. ...
2
by: Steve Richfield | last post by:
My error handler works GREAT. However, VBA seems to have some bugs/features that are causing it fits. The little snippet that I put at the end of each routine looks like this: Error_Handler: If...
3
by: rodchar | last post by:
hey all, i'm getting a systems.net permissions error on my page and not sure how to resolve it. i've narrowed it down to one method. do i need to add an attribute to that method for it to work or...
3
by: davidiwharper | last post by:
Hello everyone, I am running a database maintenance script to remove old entries from a log file. The script runs as expected when initiated manually: ./maintain.pl $HOME/website/database/...
2
by: cloudy | last post by:
First at all, i'm sorry, i not good in writing english. i want to retrieve a string from my applet via Javascript. I use a method named ReadAll. public String ReadAll(String StrOut, String...
3
by: makweatan | last post by:
Hello guys... Data is not updated into table. I got this error : java.lang.NullPointerException 00000030 SystemErr R java.lang.NullPointerException 00000030 SystemErr R at...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.