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

NullPointer Exception thrown when Show "System Applications" is chosen in CacheViewer

XMLWordPrintable

    • generic
    • generic

      JDK-Info:
      ---------
      java version "1.6.0-beta2"
      Java(TM) SE Runtime Environment (build 1.6.0-beta2-b79)
      Java HotSpot(TM) Client VM (build 1.6.0-beta2-b79, mixed mode, sharing)


      Operating System:
      -----------------
      Generic


      Steps to Reproduce:
      -------------------
      1) Install jre/jdk
      2) Clean cache (\rm -rf ~/.java)
      3) Launch a JNLP application which uses user cache
      ./javaws http://java.sun.com/products/javawebstart/apps/mg.jnlp
      4) Enable System cache (./javaws -userConfig deployment.system.cachedir /tmp/abc)
      5) Launch Cache Viewer (./javaws -viewer)
      Note: Application "Military Game" is listed under "Aplications"
      6) Choose "System Applications" from "Show:" combo box

      Application "Military Game" is listed under "System Applications" too

      Also, NullPointerException is thrown on the prompt

      bash-3.00# ./javaws -viewer
      bash-3.00# Exception occurred during event dispatching:
      java.lang.NullPointerException
              at com.sun.deploy.cache.Cache.getCacheEntries(Cache.java:711)
              at com.sun.deploy.cache.Cache.getJnlpCacheEntries(Cache.java:726)
              at com.sun.javaws.ui.CacheTable$CacheTableModel.refresh(CacheTable.java:315)
              at com.sun.javaws.ui.CacheTable$CacheTableModel.<init>(CacheTable.java:267)
              at com.sun.javaws.ui.CacheTable.reset(CacheTable.java:178)
              at com.sun.javaws.ui.CacheTable.<init>(CacheTable.java:151)
              at com.sun.javaws.ui.CacheViewer$2.run(CacheViewer.java:206)
              at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
              at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
              at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)

            Unassigned Unassigned
            rkumarsunw Ram Kumar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: