VisualVM
  1. VisualVM
  2. VISUALVM-342

NPE when attaching to restarted remote GlassFish instance

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.1
    • Fix Version/s: not determined
    • Component/s: plugins
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: All

    • Issuezilla Id:
      342

      Description

      It is not possible to attach to a remote glassfish instance that has been
      restarted after VisualVM's first has connected to it with JMX.
      After a restart of the GF instance, I try to open a new JMX tab to the instance
      in the same VisualVM instance I used before the restart. This fails with the
      following error detail:

      java.lang.NullPointerException
      at
      net.java.visualvm.modules.glassfish.GlassFishApplicationTypeFactory.createModelF
      or(GlassFishApplicationTypeFactory.java:62)
      at
      net.java.visualvm.modules.glassfish.GlassFishApplicationTypeFactory.createModelF
      or(GlassFishApplicationTypeFactory.java:43)
      at
      com.sun.tools.visualvm.core.model.ModelFactory.getModel(ModelFactory.java:111)
      at
      com.sun.tools.visualvm.application.type.ApplicationTypeFactory.getApplicationTyp
      eFor(ApplicationTypeFactory.java:72)
      at
      net.java.visualvm.modules.glassfish.dataview.GlassFishApplicationViewProvider.su
      pportsViewFor(GlassFishApplicationViewProvider.java:93)
      at
      net.java.visualvm.modules.glassfish.dataview.GlassFishApplicationViewProvider.su
      pportsViewFor(GlassFishApplicationViewProvider.java:52)
      at
      com.sun.tools.visualvm.core.ui.DataSourceViewsManager.getViews(DataSourceViewsMa
      nager.java:136)
      at
      com.sun.tools.visualvm.core.ui.DataSourceWindowManager.openWindowAndAddView(Data
      SourceWindowManager.java:180)
      at
      com.sun.tools.visualvm.core.ui.DataSourceWindowManager.access$000(DataSourceWind
      owManager.java:50)
      at
      com.sun.tools.visualvm.core.ui.DataSourceWindowManager$1.run(DataSourceWindowMan
      ager.java:100)
      at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:577)
      [catch] at
      org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1030)

      I'm running VisualVM on a 32 bit XP professional with Sun java 1.6.0_17-b04

        Activity

        Hide
        mhankus added a comment -

        This bug is quite annoying, it happens also when computer on which visualvm is running hibernates. After computer resumes operation, all you can do is restart visualvm to continue operation.

        More current stack for 1.3.5 (previous one was filed against 1.2.1)

        java.lang.NullPointerException
        	at net.java.visualvm.modules.glassfish.GlassFishApplicationTypeFactory.createModelFor(GlassFishApplicationTypeFactory.java:62)
        	at net.java.visualvm.modules.glassfish.GlassFishApplicationTypeFactory.createModelFor(GlassFishApplicationTypeFactory.java:43)
        	at com.sun.tools.visualvm.core.model.ModelFactory.getModel(ModelFactory.java:111)
        	at com.sun.tools.visualvm.application.type.ApplicationTypeFactory.getApplicationTypeFor(ApplicationTypeFactory.java:74)
        	at net.java.visualvm.modules.glassfish.dataview.GlassFishApplicationViewProvider.supportsViewFor(GlassFishApplicationViewProvider.java:93)
        	at net.java.visualvm.modules.glassfish.dataview.GlassFishApplicationViewProvider.supportsViewFor(GlassFishApplicationViewProvider.java:52)
        	at com.sun.tools.visualvm.core.ui.DataSourceViewsManager.getViews(DataSourceViewsManager.java:136)
        	at com.sun.tools.visualvm.core.ui.DataSourceWindowManager.openWindowAndAddView(DataSourceWindowManager.java:189)
        	at com.sun.tools.visualvm.core.ui.DataSourceWindowManager.access$000(DataSourceWindowManager.java:50)
        	at com.sun.tools.visualvm.core.ui.DataSourceWindowManager$1.run(DataSourceWindowManager.java:100)
        	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1452)
        [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2032)
        
        Show
        mhankus added a comment - This bug is quite annoying, it happens also when computer on which visualvm is running hibernates. After computer resumes operation, all you can do is restart visualvm to continue operation. More current stack for 1.3.5 (previous one was filed against 1.2.1) java.lang.NullPointerException at net.java.visualvm.modules.glassfish.GlassFishApplicationTypeFactory.createModelFor(GlassFishApplicationTypeFactory.java:62) at net.java.visualvm.modules.glassfish.GlassFishApplicationTypeFactory.createModelFor(GlassFishApplicationTypeFactory.java:43) at com.sun.tools.visualvm.core.model.ModelFactory.getModel(ModelFactory.java:111) at com.sun.tools.visualvm.application.type.ApplicationTypeFactory.getApplicationTypeFor(ApplicationTypeFactory.java:74) at net.java.visualvm.modules.glassfish.dataview.GlassFishApplicationViewProvider.supportsViewFor(GlassFishApplicationViewProvider.java:93) at net.java.visualvm.modules.glassfish.dataview.GlassFishApplicationViewProvider.supportsViewFor(GlassFishApplicationViewProvider.java:52) at com.sun.tools.visualvm.core.ui.DataSourceViewsManager.getViews(DataSourceViewsManager.java:136) at com.sun.tools.visualvm.core.ui.DataSourceWindowManager.openWindowAndAddView(DataSourceWindowManager.java:189) at com.sun.tools.visualvm.core.ui.DataSourceWindowManager.access$000(DataSourceWindowManager.java:50) at com.sun.tools.visualvm.core.ui.DataSourceWindowManager$1.run(DataSourceWindowManager.java:100) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1452) [ catch ] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2032)

          People

          • Assignee:
            visualvm-issues
            Reporter:
            olamattsson
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: