Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - java.lang.NullPointerException: (8 Items)
   
java.lang.NullPointerException  
Hello,

I am trying to debug an IPL and startup program using IDE 4.5 (6.4 M7 build).
I have an Abatron BDI3000 debugger connected to an i.mx27 development board.

Every time I try to launch the debug session, it appears to download the image, but then I get an error box with the 
following.

"An internal error occurred during "Launching bsp-freescale-i.mx27",
java.lang.NullPointerException"

I have no idea what is causing this.... 

Any help would be greatly appreciated.

Thanks,
- Mike
Re: java.lang.NullPointerException  
Does it have more stack trace followed by error? If not can you please copy it from the log? (Log available in workspace
/.metadata/.log) and post here?

Michael Cranston wrote:
> Hello,
> 
> I am trying to debug an IPL and startup program using IDE 4.5 (6.4 M7 build).
> I have an Abatron BDI3000 debugger connected to an i.mx27 development board.
> 
> Every time I try to launch the debug session, it appears to download the image, but then I get an error box with the 
following.
> 
> "An internal error occurred during "Launching bsp-freescale-i.mx27",
> java.lang.NullPointerException"
> 
> I have no idea what is causing this.... 
> 
> Any help would be greatly appreciated.
> 
> Thanks,
> - Mike
> 
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post13509
> 
Attachment: Text elaskavaia.vcf 116 bytes
Re: java.lang.NullPointerException  
Thanks for the reply, I figured there was a log somewhere, but I didn't know where to look.

Here is the log, it doesn't look very helpful to me.

=====================
!SESSION 2008-09-17 07:07:23.046 -----------------------------------------------
eclipse.buildId=I20080902
java.version=1.5.0_11
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.ui.workbench 2 0 2008-09-17 07:07:37.343
!MESSAGE A handler conflict occurred.  This may disable some commands.
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2008-09-17 07:07:37.343
!MESSAGE Conflict for 'AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.
CheatSheetHelpMenuAction':
HandlerActivation(commandId=AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.
CheatSheetHelpMenuAction,
	handler=ActionDelegateHandlerProxy(null,org.eclipse.ui.cheatsheets.CheatSheetExtensionFactory:helpMenuAction),
	expression=AndExpression(ActionSetExpression(org.eclipse.ui.cheatsheets.actionSet,org.eclipse.ui.internal.
WorkbenchWindow@1818f80),WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@1818f80)),sourcePriority=
16640)
HandlerActivation(commandId=AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.
CheatSheetHelpMenuAction,
	handler=ActionDelegateHandlerProxy(null,org.eclipse.ui.cheatsheets.CheatSheetExtensionFactory:helpMenuAction),
	expression=AndExpression(ActionSetExpression(org.eclipse.ui.cheatsheets.actionSet,org.eclipse.ui.internal.
WorkbenchWindow@1818f80),WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@1818f80)),sourcePriority=
16640)

!ENTRY org.eclipse.ui.workbench 2 0 2008-09-17 07:07:37.546
!MESSAGE A handler conflict occurred.  This may disable some commands.
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2008-09-17 07:07:37.546
!MESSAGE Conflict for 'com.qnx.tools.ide.qde.ui.shortcut.qconn.debug':
HandlerActivation(commandId=com.qnx.tools.ide.qde.ui.shortcut.qconn.debug,
	handler=org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension$LaunchCommandHandler@11dd95c,
	expression=,sourcePriority=0)
HandlerActivation(commandId=com.qnx.tools.ide.qde.ui.shortcut.qconn.debug,
	handler=org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension$LaunchCommandHandler@a92aaa,
	expression=,sourcePriority=0)

!ENTRY org.eclipse.ui.workbench 2 0 2008-09-17 07:07:37.546
!MESSAGE A handler conflict occurred.  This may disable some commands.
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2008-09-17 07:07:37.546
!MESSAGE Conflict for 'com.qnx.tools.ide.qde.ui.shortcut.qconn.run':
HandlerActivation(commandId=com.qnx.tools.ide.qde.ui.shortcut.qconn.run,
	handler=org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension$LaunchCommandHandler@1d07e4,
	expression=,sourcePriority=0)
HandlerActivation(commandId=com.qnx.tools.ide.qde.ui.shortcut.qconn.run,
	handler=org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension$LaunchCommandHandler@1f13b08,
	expression=,sourcePriority=0)

!ENTRY org.eclipse.core.jobs 4 2 2008-09-17 07:09:14.250
!MESSAGE An internal error occurred during: "Launching bsp-freescale-i.mx27".
!STACK 0
java.lang.NullPointerException
	at org.eclipse.cdt.debug.gdbjtag.core.GDBJtagLaunchConfigurationDelegate.launch(GDBJtagLaunchConfigurationDelegate.java
:67)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:766)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:608)
	at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:899)
	at org.eclipse.debug.internal.ui.DebugUIPlugin$7.run(DebugUIPlugin.java:1102)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
=======================
Re: java.lang.NullPointerException  
It should not have been failed but looks like you need to set binary path in the Main tab (which would be used for 
source lookup)

Michael Cranston wrote:
> Thanks for the reply, I figured there was a log somewhere, but I didn't know where to look.
> 
> Here is the log, it doesn't look very helpful to me.
> 
> =====================
> !SESSION 2008-09-17 07:07:23.046 -----------------------------------------------
> eclipse.buildId=I20080902
> java.version=1.5.0_11
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> Command-line arguments:  -os win32 -ws win32 -arch x86
> 
> !ENTRY org.eclipse.ui.workbench 2 0 2008-09-17 07:07:37.343
> !MESSAGE A handler conflict occurred.  This may disable some commands.
> !SUBENTRY 1 org.eclipse.ui.workbench 2 0 2008-09-17 07:07:37.343
> !MESSAGE Conflict for 'AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.
CheatSheetHelpMenuAction':
> HandlerActivation(commandId=AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.
CheatSheetHelpMenuAction,
> 	handler=ActionDelegateHandlerProxy(null,org.eclipse.ui.cheatsheets.CheatSheetExtensionFactory:helpMenuAction),
> 	expression=AndExpression(ActionSetExpression(org.eclipse.ui.cheatsheets.actionSet,org.eclipse.ui.internal.
WorkbenchWindow@1818f80),WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@1818f80)),sourcePriority=
16640)
> HandlerActivation(commandId=AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.
CheatSheetHelpMenuAction,
> 	handler=ActionDelegateHandlerProxy(null,org.eclipse.ui.cheatsheets.CheatSheetExtensionFactory:helpMenuAction),
> 	expression=AndExpression(ActionSetExpression(org.eclipse.ui.cheatsheets.actionSet,org.eclipse.ui.internal.
WorkbenchWindow@1818f80),WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@1818f80)),sourcePriority=
16640)
> 
> !ENTRY org.eclipse.ui.workbench 2 0 2008-09-17 07:07:37.546
> !MESSAGE A handler conflict occurred.  This may disable some commands.
> !SUBENTRY 1 org.eclipse.ui.workbench 2 0 2008-09-17 07:07:37.546
> !MESSAGE Conflict for 'com.qnx.tools.ide.qde.ui.shortcut.qconn.debug':
> HandlerActivation(commandId=com.qnx.tools.ide.qde.ui.shortcut.qconn.debug,
> 	handler=org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension$LaunchCommandHandler@11dd95c,
> 	expression=,sourcePriority=0)
> HandlerActivation(commandId=com.qnx.tools.ide.qde.ui.shortcut.qconn.debug,
> 	handler=org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension$LaunchCommandHandler@a92aaa,
> 	expression=,sourcePriority=0)
> 
> !ENTRY org.eclipse.ui.workbench 2 0 2008-09-17 07:07:37.546
> !MESSAGE A handler conflict occurred.  This may disable some commands.
> !SUBENTRY 1 org.eclipse.ui.workbench 2 0 2008-09-17 07:07:37.546
> !MESSAGE Conflict for 'com.qnx.tools.ide.qde.ui.shortcut.qconn.run':
> HandlerActivation(commandId=com.qnx.tools.ide.qde.ui.shortcut.qconn.run,
> 	handler=org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension$LaunchCommandHandler@1d07e4,
> 	expression=,sourcePriority=0)
> HandlerActivation(commandId=com.qnx.tools.ide.qde.ui.shortcut.qconn.run,
> 	handler=org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension$LaunchCommandHandler@1f13b08,
> 	expression=,sourcePriority=0)
> 
> !ENTRY org.eclipse.core.jobs 4 2 2008-09-17 07:09:14.250
> !MESSAGE An internal error occurred during: "Launching bsp-freescale-i.mx27".
> !STACK 0
> java.lang.NullPointerException
> 	at org.eclipse.cdt.debug.gdbjtag.core.GDBJtagLaunchConfigurationDelegate.launch(GDBJtagLaunchConfigurationDelegate.
java:67)
> 	at...
View Full Message
Attachment: Text elaskavaia.vcf 116 bytes
Re: java.lang.NullPointerException  
I wondered about that, but the instructions in the help are not really clear.
It says to place the .srec or .elf file to download onto the board in that field.

I am using an ARM processor and only the .srec format is available.  When I choose the same srec file I use in the the 
debugger tab, I get the following error after download.

Error:
Program is not a recognized executable.

Thoughts?
Re: java.lang.NullPointerException  
There are two fields: one for image file (and this one does not check format) and another for symbol file.
Can you create an symbol file while building image (Doc should have instruction of how to do that). What are trying to 
debug btw, startup?
Did you try to use cheat sheets (Help->Cheat Sheets)?

Michael Cranston wrote:
> I wondered about that, but the instructions in the help are not really clear.
> It says to place the .srec or .elf file to download onto the board in that field.
> 
> I am using an ARM processor and only the .srec format is available.  When I choose the same srec file I use in the the
 debugger tab, I get the following error after download.
> 
> Error:
> Program is not a recognized executable.
> 
> Thoughts?
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post13559
> 
Attachment: Text elaskavaia.vcf 116 bytes
RE: java.lang.NullPointerException  
If you have created the symbol file (*.sym) for your binary, you can put
that symbol file path to the "C/C++ Application" field.

-----Original Message-----
From: Michael Cranston [mailto:community-noreply@qnx.com] 
Sent: Wednesday, September 17, 2008 9:58 AM
To: general-ide
Subject: Re: java.lang.NullPointerException

I wondered about that, but the instructions in the help are not really
clear.
It says to place the .srec or .elf file to download onto the board in
that field.

I am using an ARM processor and only the .srec format is available.
When I choose the same srec file I use in the the debugger tab, I get
the following error after download.

Error:
Program is not a recognized executable.

Thoughts?

_______________________________________________
General
http://community.qnx.com/sf/go/post13559
Re: RE: java.lang.NullPointerException  
Thanks for the help.

I am trying to debug an IPL for the i.mx27 processor.  I am using the IPL from the i.mx21 processor as my starting point
 since they are similar parts.

It looks like I have to build an entire system image to be able to generate the srec format for the IPL and debug that. 


I have not looked at the cheat sheets, just the help files.  I will give those a shot.

- Mike