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

NPE thrown when toggling Early Access category content on/off

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • 4.2.0.Beta2
    • 4.2.0.Beta2
    • central, central-update
    • None
    • Hide

      0. Install /home/nboldt/tmp/Eclipse_Bundles/eclipse-jee-luna-M7-linux-gtk-x86_64.tar.gz
      1. Using clean workspace, launch Eclipse and install JBoss Tools Community Central feature (not all of JBT, just that feature)

      Here's a subset of what gets installed when I do the above - not sure why I have two different versions installed. Must be the result of the two locally-built aggregates I used to quickly install JBT:

      ~/jbosstools-build-sites/aggregate/site/target/repository/
      ~/jbdevstudio-product/site/target/repository/

      $➔ find . -maxdepth 2 -name "*central*" -o -name "*community*" | sort
      
      ./features/org.jboss.tools.central.feature_1.3.0.Beta2-v20140520-1435-B488
      ./features/org.jboss.tools.central.feature_1.3.0.Beta3-v20140523-0414-B490
      ./features/org.jboss.tools.community.central.feature_1.3.0.Beta2-v20140520-1435-B488
      ./features/org.jboss.tools.community.project.examples.feature_1.6.0.Beta2-v20140520-1435-B488
      ./plugins/org.jboss.tools.central_1.3.0.Beta2-v20140520-1435-B488.jar
      ./plugins/org.jboss.tools.central_1.3.0.Beta3-v20140523-0414-B490.jar
      ./plugins/org.jboss.tools.community.project.examples_1.6.0.Beta2-v20140520-1435-B488.jar
      

      2. Shut down when prompted and point JBT at a locally-built discovery site by adding this into your eclipse.ini file:

      -Djboss.discovery.directory.url=http://localhost:8080/jbosstools/org.jboss.tools.central.discovery.earlyaccess/target/discovery-site/jbosstools-directory.xml
      -Djboss.discovery.site.url=http://localhost:8080/jbosstools/org.jboss.tools.central.discovery.earlyaccess/target/discovery-site/
      -Djboss.discovery.earlyaccess.site.url=http://localhost:8080/jbosstools/org.jboss.tools.central.discovery.earlyaccess/target/discovery-site/

      3. Launch Eclipse, open Central
      4. Enable Early Access features, scroll through the list of features (3), and then disable Early Access features.
      5. And boom goes the NPE.

      Show
      0. Install /home/nboldt/tmp/Eclipse_Bundles/eclipse-jee-luna-M7-linux-gtk-x86_64.tar.gz 1. Using clean workspace, launch Eclipse and install JBoss Tools Community Central feature (not all of JBT, just that feature) Here's a subset of what gets installed when I do the above - not sure why I have two different versions installed. Must be the result of the two locally-built aggregates I used to quickly install JBT: ~/jbosstools-build-sites/aggregate/site/target/repository/ ~/jbdevstudio-product/site/target/repository/ $➔ find . -maxdepth 2 -name "*central*" -o -name "*community*" | sort ./features/org.jboss.tools.central.feature_1.3.0.Beta2-v20140520-1435-B488 ./features/org.jboss.tools.central.feature_1.3.0.Beta3-v20140523-0414-B490 ./features/org.jboss.tools.community.central.feature_1.3.0.Beta2-v20140520-1435-B488 ./features/org.jboss.tools.community.project.examples.feature_1.6.0.Beta2-v20140520-1435-B488 ./plugins/org.jboss.tools.central_1.3.0.Beta2-v20140520-1435-B488.jar ./plugins/org.jboss.tools.central_1.3.0.Beta3-v20140523-0414-B490.jar ./plugins/org.jboss.tools.community.project.examples_1.6.0.Beta2-v20140520-1435-B488.jar 2. Shut down when prompted and point JBT at a locally-built discovery site by adding this into your eclipse.ini file: -Djboss.discovery.directory.url=http: //localhost:8080/jbosstools/org.jboss.tools.central.discovery.earlyaccess/target/discovery-site/jbosstools-directory.xml -Djboss.discovery.site.url=http: //localhost:8080/jbosstools/org.jboss.tools.central.discovery.earlyaccess/target/discovery-site/ -Djboss.discovery.earlyaccess.site.url=http: //localhost:8080/jbosstools/org.jboss.tools.central.discovery.earlyaccess/target/discovery-site/ 3. Launch Eclipse, open Central 4. Enable Early Access features, scroll through the list of features (3), and then disable Early Access features. 5. And boom goes the NPE.

      with https://github.com/jbosstools/jbosstools-discovery/pull/165/files applied, if you toggle the EA content on/off via the checkbox, a nasty NPE is thrown each time:

      Unhandled event loop exception
      java.lang.NullPointerException
      	at org.jboss.tools.central.editors.SoftwarePage$8.widgetSelected(SoftwarePage.java:353)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4462)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1388)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3806)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3416)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1152)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1033)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
      	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:635)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:578)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:379)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:233)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:483)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
      

              mistria@redhat.com Mickael Istria
              nickboldt Nick Boldt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: