Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4814720

REGRESSION:security exception throws on the applet which works fine with 1.4.1

XMLWordPrintable

    • b17
    • x86
    • windows_xp


        ###@###.### 2003-02-06

        J2SE Version (please include all output from java -version flag):
          java version "1.4.2-beta"
          Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-beta-b14)
          Java HotSpot(TM) Client VM (build 1.4.2-beta-b14, mixed mode)

        Does this problem occur on J2SE 1.3, 1.4 or 1.4.1?
          NO, works fine with 1.4.1

        Operating System Configuration Information (be specific):
          Microsoft Windows XP with IE

        Bug Description:
          can't use the apache SAX xml parser because it requests access to the
          entityExpansionLimit property, and that generates a security exception
          (see below). This works fine with 1.4.1:

          Java(TM) Plug-in: Version 1.4.2
          Using JRE version 1.4.2-beta Java HotSpot(TM) Client VM
          User home directory = C:\Documents and Settings\bederson Proxy Configuration: No proxy
          java.security.AccessControlException: access denied
          (java.util.PropertyPermission entityExpansionLimit 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.crimson.parser.Parser2.init(Unknown Source)
          at org.apache.crimson.parser.Parser2.parse(Unknown Source)
          at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
          at javax.xml.parsers.SAXParser.parse(Unknown Source)
          at javax.xml.parsers.SAXParser.parse(Unknown Source)
          at edu.umd.cs.spacetree.PTreeNodeBuilder.read(Unknown Source)
          at edu.umd.cs.spacetree.PSpaceTree.read(Unknown Source)
          at edu.umd.cs.spacetree.ApplicationFrame$22.construct(Unknown Source)
          at swingworkerdemo.SwingWorker$2.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)

        Steps to Reproduce (be specific):
          - go to http://www.cs.umd.edu/hcil/spacetree/applet/applet.shtml
          - play around spacetree applet.
          - get exception on Java Console

              nbajajsunw Neeraj Bajaj (Inactive)
              tyao Ting-Yun Ingrid Yao (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: