Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-dev] Null pointer exception in ETFW at PTP 4.0.7 level

Wyatt,

If IResource#getLocation() returns null, then you can call IResource#getLocationURI() to get the URI. However, getLocationURI() never returns null, so it is probably better practice to use this, then convert it into a local resource if you need to access something in the local filesystem. You shouldn't really rely on projects being local though, and any file accessing should probably be done through the IResource interfaces.

Greg


On Mar 11, 2011, at 3:00 PM, Wyatt Spear wrote:

I can take a look at catching this exception.  Can someone point me to the right spot in the api to check for a remote location if the local returns null?

Thanks,
Wyatt

On Fri, Mar 11, 2011 at 10:28 AM, Dave Wootton <dwootton@xxxxxxxxxx> wrote:

Wyatt
The HPC Toolkit plugin code isn't in CVS. It's IBM product code that uses ETFW. I was using remote projects, so maybe Greg's comment explains what's going on. I tried once with a local project and didn't get the exception. I need to install the HPC Toolkit plugin code in an install that has plugin development environment installed to get a little more info. I've been busy with other things this morning but will look at this later today.
Dave


From: Wyatt Spear <wspear@xxxxxxxxxxxxxx>
To: Parallel Tools Platform general developers <ptp-dev@xxxxxxxxxxx>
Date: 03/10/2011 04:18 PM
Subject: Re: [ptp-dev] Null pointer exception in ETFW at PTP 4.0.7 level
Sent by: ptp-dev-bounces@xxxxxxxxxxx





I'll need to try to reproduce this bug to track it down.  Is the
hpctoolkit plugin in cvs?  I'm not spotting it just now.  The final
exception is taking place on the call: projectLocation =
thisCProject.getResource().getLocation().toOSString(); So it sounds
like the project may not be properly assigned to the configuration.
Does this happen just the first time you try to launch or do you need
to to select that stuff every time?

Thanks,
Wyatt

On Thu, Mar 10, 2011 at 12:35 PM, Dave Wootton <dwootton@xxxxxxxxxx> wrote:
>
> I'm getting a null pointer exception with PTP 4.0.7 when I click 'profile'
> in the profile configuration dialog. I'm using my HPC Toolkit plugin which
> uses ETFW to launch the application. It seems that if I don't click the HPC
> Toolkit in the initial page of the performance analysis tab or visit the
> pages on the tabs in the performance analysis tab, then I get the null
> pointer exception. The traceback follows.
>
> java.lang.NullPointerException
>         at org.eclipse.ptp.etfw.internal.ToolStep.<init>(ToolStep.java:100)
>         at
> org.eclipse.ptp.etfw.internal.BuilderTool.<init>(BuilderTool.java:80)
>         at
> org.eclipse.ptp.etfw.internal.ToolLaunchManager.launch(ToolLaunchManager.java:142)
>         at
> org.eclipse.ptp.etfw.parallel.ParallelToolLaunchConfigurationDelegate.launch(ParallelToolLaunchConfigurationDelegate.java:70)
>         at
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:853)
>         at
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:702)
>         at
> org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:923)
>         at
> org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1126)
>         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>
> Any idea what might be going on?
>
> Thanks
>
> Dave
> _______________________________________________
> ptp-dev mailing list
> ptp-dev@xxxxxxxxxxx
>
https://dev.eclipse.org/mailman/listinfo/ptp-dev
>
>
_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev



_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev


_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev


Back to the top