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

SPORADIC NULLPOINTER EXCEPTION WHEN LOADING A DOCUMENT

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.4.0
    • Component/s: deploy
    • Subcomponent:
    • Resolved In Build:
      beta3
    • CPU:
      x86
    • OS:
      windows_nt

      Description



      Name: mt13159 Date: 07/18/2001


      Problem Description:
      --------------------
      Using merlin build 71 with netscape 4.77 on Windows NT.

      When loading the Oracle Applications page, this exception
      is thrown sometimes.

      java.lang.NullPointerException
              at java.lang.StringBuffer.<init>(StringBuffer.java:132)
              at sun.plugin.AppletViewer.getDocumentBase(AppletViewer.java:684)
              at sun.plugin.AppletViewer.getCodeBase(AppletViewer.java:762)
              at sun.plugin.AppletViewer.appletInit(AppletViewer.java:431)
              at sun.plugin.navig.win32.AppletPluginPanel.initPanel(AppletPluginPanel.java:83)
              at sun.plugin.navig.win32.PluginObject$Initer.run(PluginObject.java:253)

      java.lang.NullPointerException
              at sun.plugin.AppletViewer.getCodeBase(AppletViewer.java:768)
              at sun.plugin.AppletViewer.appletInit(AppletViewer.java:431)
              at sun.plugin.navig.win32.AppletPluginPanel.initPanel(AppletPluginPanel.java:83)
              at sun.plugin.navig.win32.PluginObject$Initer.run(PluginObject.java:253)

      Exact Steps to reproduce:
      -------------------------
      [1] Load the Oracle Applications URL.
          (Oracle Applications is installed in SUN cupertino office)
      [2] Sometimes the above exception is thrown
      (Review ID: 128364)
      ======================================================================


      ###@###.### 2001-08-23

      CAP member reported the same problem:

      Version Info:
      C:\>java -version
      java version "1.4.0-beta2"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta2-b76)
      Java HotSpot(TM) Client VM (build 1.4.0-beta2-b76, mixed mode)

      Same Bug in J2SE 1.3?
      Currently, no suitable configuration for reproduction available.

      Operating System:
      Windows NT 4.0 SP 6.a (US English)

      Hardware:
      Toshiba Satellite Pro4280 Notebook
      Intel Pentium III / 500 MHz
      512 MB RAM
      1 IDE HDD

      Bug Description:
      NullPointerException when using Plugin with the Netscape 4.78 "Enable
      Java Plugin" option.
      (This could also be a Netscape-specific problem.)

      Bug Reproduction:
      Check the option indicated above,
      go to "http://java.sun.com".

      The second NullpointerException only occurs during a fresh startup of
      the plugin.
      Unfortunately, at this point it is already too late for switching the
      trace level to 5.

      copy of the Java console output:

      Java(TM) Plug-in: Version 1.4.0
      Verwendung der JRE-Version 1.4.0-beta2 Java HotSpot(TM) Client VM
      Home-Verzeichnis des Benutzers = C:\WINNT\Profiles\Administrator


      1st dump:
      Trace level set to 5: basic, net, security, ext, liveconnect ...
      completed.

      Registered modality listener

      Evaluate self.document.URL = null

      java.lang.NullPointerException

      at java.lang.StringBuffer.<init>(StringBuffer.java:132)
      at sun.plugin.AppletViewer.getDocumentBase(AppletViewer.java:742)
      at sun.plugin.AppletViewer.getCodeBase(AppletViewer.java:821)
      at sun.plugin.AppletViewer.appletInit(AppletViewer.java:461)
      at
      sun.plugin.viewer.LifeCycleManager.initAppletPanel(LifeCycleManager.java:150)
      at
      sun.plugin.viewer.WNetscapePluginObject$Initer.run(WNetscapePluginObject.java:275)

      Referencing classloader: sun.plugin.ClassLoaderInfo@950198, refcount=1

      Added trace listener:
      sun.plugin.AppletViewer[jug2,0,0,120x150,invalid,layout=java.awt.BorderLayout]

      Added progress listener:
      sun.plugin.AppletViewer[jug2,0,0,120x150,invalid,layout=java.awt.BorderLayout]

      Loading applet...

      Initializing applet...

      Starting applet...

      Loaded image: http://192.18.97.71/images/ad/jug_applet2.gif

      Evaluate function setStatus() { self.status='Applet jug2
      loaded';};void(setTimeout("setStatus()", 1500)) = null

      Evaluate function setStatus() { self.status='Applet jug2
      inited';};void(setTimeout("setStatus()", 1500)) = null

      Evaluate function setStatus() { self.status='Applet jug2
      started';};void(setTimeout("setStatus()", 1500)) = null



      2nd dump:
      java.lang.NullPointerException

      at java.lang.StringBuffer.<init>(StringBuffer.java:132)
      at sun.plugin.AppletViewer.getDocumentBase(AppletViewer.java:742)
      at sun.plugin.AppletViewer.getCodeBase(AppletViewer.java:821)
      at sun.plugin.AppletViewer.appletInit(AppletViewer.java:461)
      at
      sun.plugin.viewer.LifeCycleManager.initAppletPanel(LifeCycleManager.java:150)
      at
      sun.plugin.viewer.WNetscapePluginObject$Initer.run(WNetscapePluginObject.java:275)

      java.lang.NullPointerException

      at
      sun.plugin.net.cookie.Netscape4CookieHandler.getMatchedApplet(Netscape4CookieHandler.java:164)
      at
      sun.plugin.net.cookie.Netscape4CookieHandler.getCookieInfo(Netscape4CookieHandler.java:85)
      at
      sun.plugin.net.cookie.PluginCookieManager.getCookieInfo(PluginCookieManager.java:91)
      at
      sun.plugin.net.protocol.http.HttpURLConnection.connectStep2(HttpURLConnection.java:225)
      at
      sun.plugin.net.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:144)
      at
      sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:258)
      at
      sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1036)
      at
      sun.net.www.protocol.http.HttpURLConnection.getResponseCode(HttpURLConnection.java:1050)
              at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:220)
      at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:41)
      at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:139)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:136)
      at
      sun.plugin.security.PluginClassLoader.findClass(PluginClassLoader.java:185)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:308)
      at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:110)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
      at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:379)
      at sun.applet.AppletPanel.createApplet(AppletPanel.java:542)
      at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1264)
      at sun.applet.AppletPanel.runLoader(AppletPanel.java:478)
      at sun.applet.AppletPanel.run(AppletPanel.java:293)
      at java.lang.Thread.run(Thread.java:539)
      ================================
      Additional comments from Oracle;

      Oracle Applications 11i url at sun is:
                     http://dnm-005.eng.sun.com:8000/OA_HTML/merlin.html

      mayank.thakore(2001-09-20)

        Attachments

          Activity

            People

            Assignee:
            djayaramsunw Devananda Jayaraman (Inactive)
            Reporter:
            mthakore Mayank Thakore (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: