Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ptp-dev] Problems with null pointer exceptions in PTP 2.0 RSEFileSystem.getStore on AIX


I'm trying to run my PTP 2.0 plugins on AIX and am having problems with lots of null pointer exceptions when filling in a launch configuration that I'm not seeing on Linux  that have the following few methods at the top of the traceback
java.lang.NullPointerException
        at org.eclipse.core.internal.filesystem.NullFileSystem.getStore(NullFileSystem.java:52)
        at org.eclipse.rse.internal.efs.RSEFileSystem.getStore(RSEFileSystem.java:88)
        at org.eclipse.ptp.remote.rse.RSEFileManager.getResource(RSEFileManager.java:74)
        at org.eclipse.ptp.rm.ibm.pe.ui.rmLaunchConfiguration.PERMLaunchConfigurationDynamicTab.validateOutputPath(PERMLaunchConfigurationDynamicTab.java:2751)
        at org.eclipse.ptp.rm.ibm.pe.ui.rmLaunchConfiguration.PERMLaunchConfigurationDynamicTab.validateOutputPath(PERMLaunchConfigurationDynamicTab.java:2694)
        at org.eclipse.ptp.rm.ibm.pe.ui.rmLaunchConfiguration.PERMLaunchConfigurationDynamicTab.validateMiscTab(PERMLaunchConfigurationDynamicTab.java:2644)
        at org.eclipse.ptp.rm.ibm.pe.ui.rmLaunchConfiguration.PERMLaunchConfigurationDynamicTab.validateAllFields(PERMLaunchConfigurationDynamicTab.java:2451)
        at org.eclipse.ptp.rm.ibm.pe.ui.rmLaunchConfiguration.PERMLaunchConfigurationDynamicTab$EventMonitor.modifyText(PERMLaunchConfigurationDynamicTab.java:679)

I downloaded the PTP code from CVS using the PTP 2.0 tag to try to debug this. It looks like the reason I'm getting the null pointer exception is because there's a call to RSEFileManager.toURI where a URISyntaxException is caught and that method returns null. The IPath object that's passed to toURI has a device=null and a segments array with a single String element with value pmadjpri.log.
The detail message in the URISyntaxException is "Relative path in absolute URI". The input variable in the URIException object is rse://K17SF2P01.PPD.POK.IBM.COMpmadjpri.log

Is this exception being thrown because of something missing out of the pathname (it looks like '/' or ':' might be missing)?

Note: The pmadjpri.log is passed in as a String parameter (path name) to my method org.eclipse.ptp.rm.ibm.pe.ui.PERMLaunchConfigurationDynamicTab.validateOutputPath at line 2740 where I'm trying to validate a pathname on the remote system. Am I doing something invalid in that method?

Dave

Back to the top