Bug 544419 - empty Launch Error window with latest builds of ptp, cdt, and jdt
Summary: empty Launch Error window with latest builds of ptp, cdt, and jdt
Status: NEW
Alias: None
Product: PTP
Classification: Tools
Component: Launch (show other bugs)
Version: 9.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-13 08:24 EST by Vaclav Kadlcik CLA
Modified: 2019-06-10 07:29 EDT (History)
3 users (show)

See Also:


Attachments
screenshot (257.12 KB, image/png)
2019-02-13 08:24 EST, Vaclav Kadlcik CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vaclav Kadlcik CLA 2019-02-13 08:24:32 EST
Created attachment 277562 [details]
screenshot

While setting up a run configuration for a simple PTP app I get
an empty error window (see the attached screenshot) and no
meaningful log reg record.

I'm using latest builds of Platform, PTP, CDT, and JDT
on Fedora 28 with Java 8. *Not* installing JDT makes the
problem go away.

Steps to reproduce:

1. Have a machine with OpenMPI and Java 8

2. Have a shell with PATH set to OpenMPI, on my Fedora it was
   PATH=/usr/lib64/openmpi/bin:$PATH

3. Have a fresh clean Eclipse install (latest I-build) and add
   CDT+JDT+PTP to it, e.g.:

   rm -rf .eclipse .eclipsesettings .p2 eclipse workspace
   tar xf eclipse-platform-I20190211-1800-linux-gtk-x86_64.tar.gz
   REPOS='
       http://download.eclipse.org/releases/2019-03
       http://download.eclipse.org/eclipse/updates/4.11
       http://download.eclipse.org/tools/cdt/builds/9.7/cdt-9.7.0-simrel-2019-03-m2/
       http://download.eclipse.org/tools/ptp/builds/nightly
   '
   IUS='
       org.eclipse.cdt.feature.group
       org.eclipse.jdt.feature.group
       org.eclipse.ptp.feature.group
   '
   eclipse/eclipse -noSplash \
       -application org.eclipse.equinox.p2.director \
       -repository $(echo $REPOS | tr ' ' ,) \
       -i $(echo $IUS | tr ' ' ,) \
       -vmargs -Xmx4096m

4. Run Eclipse:
   eclipse/eclipse -debug -console -consoleLog -data workspace -Xms512m -Xmx4096m

6. Create a simple MPI Project:
     * File > New > Project... > C/C++ > C project > Next
     * Fill in the new C Project's details:
         Project name: demo
         Project type: Executable > MPI Hello World C Project
         Toolchains: Linux GCC
         Next >
         Next >
     * You may need to tune the MPI details, I had to:
         Untick "Use default information" and set "Include path"
         to "/usr/include/openmpi-x86_64"
     * Finish

7. Build the project:
   Right-click the project > Build Project

8. Try to create a run configuration:
     * Run > Run Configurations...
     * Select "Parallel Application" and click on the
       "New launch configuration" button
     * In the Resources tab
       * Select "Target System Configuration": "Generic
         OpenMPI Interactive"
       * Click on "Connection Type": "Local"

Right after clicking "Local" I get the empty error window.
The workspace log records just an empty message:
!ENTRY org.eclipse.ptp.launch 4 4 2019-02-13 13:30:09.277
!MESSAGE 

Notes:

1. If I exclude org.eclipse.jdt.feature.group from the
   installation list then there's no problem and I can go
   on with the run configuration.

2. This may be related to bug 541264 - the scenario is very
   similar but there are some differences. Here we have:
    * Java 8
    * different set of installed units
    * different error window
Comment 1 Greg Watson CLA 2019-06-06 19:53:17 EDT
I can reproduce this problem with 4.12RC1 using the latest CDT and PTP. The dialog is caused by a NullPointerException in ContextFinder#handleClastCastException because the context being loaded is not an instance of JAXBContext. As far as I can tell, this I because the JRE version of JAXBContextImpl is being loaded rather than the one from com.sun.xml.bind_2.2.0.v201505121915.jar. This problem does not occur if Eclipse is run under Java 1. It also does not occur for either Java 8 or Java 11 if you use the latest Parallel Package. I really don't have any more time to try to track down the cause, particularly as it is somehow related to how you are installing the plugins.
Comment 2 Vaclav Kadlcik CLA 2019-06-10 07:29:37 EDT
(In reply to Greg Watson from comment #1)
> I can reproduce this problem with 4.12RC1 using the latest CDT and PTP. The
> dialog is caused by a NullPointerException in
> ContextFinder#handleClastCastException because the context being loaded is
> not an instance of JAXBContext. As far as I can tell, this I because the JRE
> version of JAXBContextImpl is being loaded rather than the one from
> com.sun.xml.bind_2.2.0.v201505121915.jar. This problem does not occur if
> Eclipse is run under Java 1. It also does not occur for either Java 8 or
> Java 11 if you use the latest Parallel Package. I really don't have any more
> time to try to track down the cause, particularly as it is somehow related
> to how you are installing the plugins.

Greg, thank you very much for your analysis.