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

The call to getResource().getLocation() can return null if the project not local. I'd say this is your problem.

Greg

On Mar 10, 2011, at 4:13 PM, Wyatt Spear wrote:

> 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



Back to the top