Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-4601

JBoss Profiler throws NPE when Profile > Profile Configurations... dialog is launched for a Main class

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • 3.3.x
    • 3.1.0.M2
    • profiler
    • None

      Steps to repro:

      a) install Eclipse 3.5
      b) install JBoss Profiler feature from update site http://download.jboss.org/jbosstools/updates/nightly/3.1.0.M2/
      c) restart Eclipse
      d) create a Java project, eg., foobar
      e) create a Main class in that project, eg., foo.bar.Main
      f) put this in Main.java:

      package foo.bar;
      public class Main {
      /**

      • @param args
        */
        public static void main(String[] args) { System.out.println("Hello, Foo!"); }

        }

      f) debug the class: right-click in the file and Debug As > Java Application
      g) add a breakpoint on the println() line
      h) debug again, this time switching to the Debug perspective when prompted
      i) right-click in class file, Debug As > Debug Configurations...
      j) note the new JBoss Profiler tab for your Java Application > Main launch configuration – see screenshot-1. Close the dialog.
      k) right-click in class file, Profile As > Profile Configurations...
      l) note three error dialogs:

      "Exception occurred creating launch config tabs - Reason: No tab group defined for launch config type org.eclipse.jdt.launching.localJavaApplication"
      "Problem occurred: no tabs defined for launch configuration type Java Application"
      "NullPointerException" (see screenshot-2).

        1. Screenshot-2.png
          Screenshot-2.png
          63 kB
        2. Screenshot-1.png
          Screenshot-1.png
          80 kB
        3. 13 EDT 2009.txt
          7 kB

            manderse@redhat.com Max Andersen
            nickboldt Nick Boldt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: