Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 315096

Summary: NPE when creating a Remote C/C++ project with SSH only RSE connection
Product: [Tools] PTP Reporter: Fredrik Berg Kjolstad <kjolsta1>
Component: RDTAssignee: Chris Recoskie <recoskie>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: ptp-inbox, recoskie
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Fredrik Berg Kjolstad CLA 2010-05-31 11:19:16 EDT
I get a NullPointerException when I create a Remote C/C++ project using RSE where the Remote System is not configured to use a dstore.processes services or when this service is configured, but not connected.

The bug is the following null-pointer exception:
An internal error occurred during: "C/C++ Indexer".
java.lang.NullPointerException


Steps to reproduce:
1. New -> Remote C/C++ Project
Remote Provider: RSE
Connection: someserver-ssh (SSH-Only Remote System)
Remote Makefile Project: Linux GCC
2. Next Next Next Finish
3. *Exception*

If I instead choose a remote system that also provides a dstore.processes service I get the same error in addition to the following:
Error Updating Discovered info. Updating discovered includes and macros. Details: Error updating discovered info.


System Information:
Local System:     Mac OS X 10.5.8.
Remote System: Linux 2.6.27
Eclipse Version:  Eclipse Helios M7
CDT Version:      cdt-master-7.0.0-I201005211239
PTP Version:       ptp-master-4.0.0-I201005201043
Comment 1 Fredrik Berg Kjolstad CLA 2010-05-31 11:56:19 EDT
One resolution would be to programatically turn of indexing and then inform the user that it has been turned off and why.
Comment 2 Chris Recoskie CLA 2013-10-28 13:02:39 EDT
FYI only dstore connections are supported with RSE.