Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2006

Tip: Looking for answers? Try searching our database.

Permissions error? Mac Java problem.

Thread view: 
Tim Murray - 28 Jan 2006 19:28 GMT
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(AccessController.java:427)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
    at java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1512)
    at sun.applet.AppletSecurity.checkPackageAccess(AppletSecurity.java:190)
    at java.lang.ClassLoader$1.run(ClassLoader.java:330)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.lang.ClassLoader.checkPackageAccess(ClassLoader.java:328)
<snipped 18 similar lines>
Exception in thread "Thread-17" java.lang.NullPointerException
    at sun.plugin.util.GrayBoxPainter.showLoadingError(GrayBoxPainter.java:153)
    at sun.plugin.AppletViewer.showAppletException(AppletViewer.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(GrayBoxPainter.java:153)
    at sun.plugin.AppletViewer.showAppletStatus(AppletViewer.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(GrayBoxPainter.java:153)
    at sun.plugin.AppletViewer.showAppletException(AppletViewer.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?
Oliver Wong - 02 Feb 2006 20:29 GMT
> 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
[quoted text clipped - 53 lines]
>
> 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
Tim Murray - 11 Feb 2006 01:46 GMT
>     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
[quoted text clipped - 5 lines]
> 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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.