Permissions error? Mac Java problem.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tim Murray

    #1

    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.A ccessControlExc eption: access denied
    (java.lang.Runt imePermission accessClassInPa ckage.com.apple .mrj)
    at
    java.security.A ccessControlCon text.checkPermi ssion(AccessCon trolContext.jav a:2
    64)
    at java.security.A ccessController .checkPermissio n(AccessControl ler.java:427)
    at java.lang.Secur ityManager.chec kPermission(Sec urityManager.ja va:532)
    at java.lang.Secur ityManager.chec kPackageAccess( SecurityManager .java:1512)
    at sun.applet.Appl etSecurity.chec kPackageAccess( AppletSecurity. java:190)
    at java.lang.Class Loader$1.run(Cl assLoader.java: 330)
    at java.security.A ccessController .doPrivileged(N ative Method)
    at java.lang.Class Loader.checkPac kageAccess(Clas sLoader.java:32 8)
    <snipped 18 similar lines>
    Exception in thread "Thread-17" java.lang.NullP ointerException
    at sun.plugin.util .GrayBoxPainter .showLoadingErr or(GrayBoxPaint er.java:153)
    at sun.plugin.Appl etViewer.showAp pletException(A ppletViewer.jav a:1968)
    at sun.applet.Appl etPanel.runLoad er(AppletPanel. java:664)
    at sun.applet.Appl etPanel.run(App letPanel.java:3 20)
    at java.lang.Threa d.run(Thread.ja va:613)
    java.lang.NullP ointerException
    at sun.plugin.util .GrayBoxPainter .showLoadingErr or(GrayBoxPaint er.java:153)
    at sun.plugin.Appl etViewer.showAp pletStatus(Appl etViewer.java:1 898)
    at sun.applet.Appl etPanel.run(App letPanel.java:3 65)
    at java.lang.Threa d.run(Thread.ja va:613)
    Exception in thread "thread
    applet-com.efi.appls.w ebtools.WebTool sApplet.class"
    java.lang.NullP ointerException
    at sun.plugin.util .GrayBoxPainter .showLoadingErr or(GrayBoxPaint er.java:153)
    at sun.plugin.Appl etViewer.showAp pletException(A ppletViewer.jav a:1968)
    at sun.applet.Appl etPanel.run(App letPanel.java:5 29)
    at java.lang.Threa d.run(Thread.ja va:613)
    =============== =============== ==========

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

    Any idea what the problem is?

  • Oliver Wong

    #2
    Re: Permissions error? Mac Java problem.


    "Tim Murray" <no-spam@thankyou.c om> wrote in message
    news:0001HW.C00 12FF200384952F0 4B8550@newsgrou ps.bellsouth.ne t...[color=blue]
    > 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.
    >[/color]

    Yes, they have a weird numbering scheme. "1.5" is considered the same as
    "5".
    [color=blue]
    > 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.[/color]

    1.5 can do everything 1.4.2 can do and more, so you should be able to
    just stick with 1.5
    [color=blue]
    >
    > 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.A ccessControlExc eption: access denied
    > (java.lang.Runt imePermission accessClassInPa ckage.com.apple .mrj)
    > at
    > java.security.A ccessControlCon text.checkPermi ssion(AccessCon trolContext.jav a:2
    > 64)
    > at
    > java.security.A ccessController .checkPermissio n(AccessControl ler.java:427)
    > at java.lang.Secur ityManager.chec kPermission(Sec urityManager.ja va:532)
    > at java.lang.Secur ityManager.chec kPackageAccess( SecurityManager .java:1512)
    > at sun.applet.Appl etSecurity.chec kPackageAccess( AppletSecurity. java:190)
    > at java.lang.Class Loader$1.run(Cl assLoader.java: 330)
    > at java.security.A ccessController .doPrivileged(N ative Method)
    > at java.lang.Class Loader.checkPac kageAccess(Clas sLoader.java:32 8)
    > <snipped 18 similar lines>
    > Exception in thread "Thread-17" java.lang.NullP ointerException
    > at
    > sun.plugin.util .GrayBoxPainter .showLoadingErr or(GrayBoxPaint er.java:153)
    > at sun.plugin.Appl etViewer.showAp pletException(A ppletViewer.jav a:1968)
    > at sun.applet.Appl etPanel.runLoad er(AppletPanel. java:664)
    > at sun.applet.Appl etPanel.run(App letPanel.java:3 20)
    > at java.lang.Threa d.run(Thread.ja va:613)
    > java.lang.NullP ointerException
    > at
    > sun.plugin.util .GrayBoxPainter .showLoadingErr or(GrayBoxPaint er.java:153)
    > at sun.plugin.Appl etViewer.showAp pletStatus(Appl etViewer.java:1 898)
    > at sun.applet.Appl etPanel.run(App letPanel.java:3 65)
    > at java.lang.Threa d.run(Thread.ja va:613)
    > Exception in thread "thread
    > applet-com.efi.appls.w ebtools.WebTool sApplet.class"
    > java.lang.NullP ointerException
    > at
    > sun.plugin.util .GrayBoxPainter .showLoadingErr or(GrayBoxPaint er.java:153)
    > at sun.plugin.Appl etViewer.showAp pletException(A ppletViewer.jav a:1968)
    > at sun.applet.Appl etPanel.run(App letPanel.java:5 29)
    > at java.lang.Threa d.run(Thread.ja va:613)
    > =============== =============== ==========
    >
    > This appears like a permissions problem, but I've fixed permissions
    > several
    > times.
    >
    > Any idea what the problem is?[/color]

    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


    Comment

    • Tim Murray

      #3
      Re: Permissions error? Mac Java problem.

      On Feb 2, 2006, Oliver Wong wrote:[color=blue]
      > 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."[/color]

      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.

      Comment

      Working...