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

COMPATIBILITY: Marketwatch- Interactive Java chart applet throws NPE

XMLWordPrintable

    • b62
    • x86
    • windows_2000
    • Verified

      Tested OS/Browser:
                              win 2000 pro(sp4)/IE6
                              XP-Home(sp2)/IE6
                              win 2003 SE/IE6
                              
                                           

      Tested build: jre 1.6.0- build 43

      Problem:
      -------
      The interactive Java Chart applet from marketwatch site throws NPE and doesn't display the stock chart properly. It works OK with MS VM.

      Steps to reproduce:
      ------------------
      1) Install jre1.6.0-build 43 into the test system.
      2) Let's look at Sun stock chart by browsing
         http://custom.marketwatch.com/custom/schwab-com/javacharting.asp?symb=SUNW
      3) You should see the stock chart for Sun.
      Now, try to select 'Monthly' under 'Frequency' drop-down menu from the Control Panel on the left.

      NPE throws and the monthly chart can not be displayed properly.
      Note: And as soon as the applet throws NPE, some other charts with different time frame/frequency selection may also throw NPE.


      Here's the NPE from the Java console
      ---------------------------------------
      Java Plug-in 1.6.0
      Using JRE version 1.6.0-ea Java HotSpot(TM) Client VM
      User home directory = C:\Documents and
      Settings\Administrator


      ----------------------------------------------------
      c: clear console window
      f: finalize objects on finalization queue
      g: garbage collect
      h: display this help message
      l: dump classloader list
      m: print memory usage
      o: trigger logging
      p: reload proxy configuration
      q: hide console
      r: reload policy configuration
      s: dump system and deployment properties
      t: dump thread list
      v: dump thread stack
      x: clear classloader cache
      0-5: set trace level to <n>
      ----------------------------------------------------


      java.lang.NullPointerException
      at java.util.Calendar.setTime(Unknown Source)
      at JAVACharter.a.d.a(Unknown Source)
      at JAVACharter.a.g.a(Unknown Source)
      at JAVACharter.a.f.g(Unknown Source)
      at JAVACharter.Charter.a(Unknown Source)
      at JAVACharter.Charter.SetFrequency(Unknown Source)
      at
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native
      Method)
      at
      sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
      Source)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
      Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at sun.plugin.javascript.JSInvoke.invoke(Unknown
      Source)
      at
      sun.reflect.GeneratedMethodAccessor3.invoke(Unknown
      Source)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
      Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at sun.plugin.javascript.JSClassLoader.invoke(Unknown
      Source)
      at sun.plugin.com.MethodDispatcher.invoke(Unknown
      Source)
      at sun.plugin.com.DispatchImpl.invokeImpl(Unknown
      Source)
      at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native
      Method)
      at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
      java.lang.Exception: java.lang.NullPointerException
      at sun.plugin.com.DispatchImpl.invokeImpl(Unknown
      Source)
      at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native
      Method)
      at sun.plugin.com.DispatchImpl.invoke(Unknown Source)



      ###@###.### 2005-07-20 23:47:32 GMT

            mleisunw Mike Lei (Inactive)
            hungnguy Hung Nguyen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: