Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Debug as QNX C/C++ Application throws java.lang.NullPointerException: (15 Items)
   
Debug as QNX C/C++ Application throws java.lang.NullPointerException  
Hi,

I am getting the above error when I try to debug my application.  Guys, please help me. I am in a urgent need. 

Thanks in advance.

Vishal
Re: Debug as QNX C/C++ Application throws java.lang.NullPointerException  
What version of SDP are you using? Which IDE version?


On Mon, 2010-10-04 at 07:46 -0400, Vishal Agrawal wrote:
> Hi,
> 
> I am getting the above error when I try to debug my application.  Guys, please help me. I am in a urgent need. 
> 
> Thanks in advance.
> 
> Vishal
> 
> 
> 
> _______________________________________________
> 
> QNX Momentics Getting Started
> http://community.qnx.com/sf/go/post69397
> 

Re: Debug as QNX C/C++ Application throws java.lang.NullPointerException  
i am using the 6.5 version. i get this error when i actually try to debug my application after the config. 
Re: Debug as QNX C/C++ Application throws java.lang.NullPointerException  
there is no log file in the .metadata directory.
Re: Debug as QNX C/C++ Application throws java.lang.NullPointerException  
Should be .log

Where is your binary? Is it actually in the project or it is link or something like that?

Try to create launch configuration yourself (instead of Debug As...) - and make sure there is no errors displayed.

On 04/10/10 10:09 AM, Vishal Agrawal wrote:
> there is no log file in the .metadata directory.
> 
> 
> 
> _______________________________________________
> 
> QNX Momentics Getting Started
> http://community.qnx.com/sf/go/post69421
> 
Re: Debug as QNX C/C++ Application throws java.lang.NullPointerException  
yeah, my binary is linked. i did the launch configuration myself. there was no error. after the configuration when i try
 to run i am getting this error.
Re: Debug as QNX C/C++ Application throws java.lang.NullPointerException  
Probably does not work on linked resources. Can you link the folder where the binary is instead?

On 04/10/10 10:45 AM, Vishal Agrawal wrote:
> yeah, my binary is linked. i did the launch configuration myself. there was no error. after the configuration when i 
try to run i am getting this error.
> 
> 
> 
> _______________________________________________
> 
> QNX Momentics Getting Started
> http://community.qnx.com/sf/go/post69426
> 
Re: Debug as QNX C/C++ Application throws java.lang.NullPointerException  
- What kind of application is your project? Can you "export" your
project and attach to this thread?

- When did you get the NPE? Did it happen when you first open your debug
launch config, or when you actually launch your program?

- Can you attach your workspace log file? You can find the log file
under your <workspace_dir>/.metadata/.log


-----Original Message-----
From: Vishal Agrawal <community-noreply@qnx.com>
Reply-to: post69397@community.qnx.com
To: momenticsgs-community <post69397@community.qnx.com>
Subject: Debug as QNX C/C++ Application throws
java.lang.NullPointerException
Date: Mon, 4 Oct 2010 07:46:18 -0400 (EDT)

Hi,

I am getting the above error when I try to debug my application.  Guys, please help me. I am in a urgent need. 

Thanks in advance.

Vishal



_______________________________________________

QNX Momentics Getting Started
http://community.qnx.com/sf/go/post69397

Re: Debug as QNX C/C++ Application throws java.lang.NullPointerException  
Hi,

Log file is attached.
Attachment: Text log 2.46 KB
Re: Debug as QNX C/C++ Application throws java.lang.NullPointerException  
It does not work because it is a link

On 05/10/10 12:41 AM, Vishal Agrawal wrote:
> Hi,
> 
> Log file is attached.
> 
> 
> 
> _______________________________________________
> 
> QNX Momentics Getting Started
> http://community.qnx.com/sf/go/post69529
Re: Debug as QNX C/C++ Application throws java.lang.NullPointerException  
But it is working in older version of momentics. I don't know why it is not working in newer version.

Vishal
Re: Debug as QNX C/C++ Application throws java.lang.NullPointerException  
Exception says it cannot validate path for the binary. Does you launch configuration has project set?

On 05/10/10 08:39 AM, Vishal Agrawal wrote:
> But it is working in older version of momentics. I don't know why it is not working in newer version.
> 
> Vishal
> 
> 
> 
> _______________________________________________
> 
> QNX Momentics Getting Started
> http://community.qnx.com/sf/go/post69547
> 
Re: Debug as QNX C/C++ Application throws java.lang.NullPointerException  
What do you mean by "launch configuration has project set?" I didn't get you.

Thanks
Vishal Agrawal
Re: Debug as QNX C/C++ Application throws java.lang.NullPointerException  
I think my problem is due to qnx650 tool chain. 

Because I got the same error with Momentics 6.4.1 + QNX650 tool chain

Can somebody look into this. 

Thanks
Vishal Agrawal
Re: Debug as QNX C/C++ Application throws java.lang.NullPointerException  
I already answered: you cannot use linked file as binary

On 13/10/10 02:39 AM, Vishal Agrawal wrote:
> I think my problem is due to qnx650 tool chain. 
> 
> Because I got the same error with Momentics 6.4.1 + QNX650 tool chain
> 
> Can somebody look into this. 
> 
> Thanks
> Vishal Agrawal
> 
> 
> 
> _______________________________________________
> 
> QNX Momentics Getting Started
> http://community.qnx.com/sf/go/post70386
>