This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS: java.lang.NullPointerException when importing project

Tool/software: Code Composer Studio

Hi,

I am running CCS 5.5... When I try to import an existing code composer project, the import fails with a java.lang.NullPointerException..no other details are given.

The project imports and builds fine on a colleagues computer, and I can import and build other similar projects fine.  How can I track down what is causing this?

Attached is the log from Help -> CCS Support-> View the Eclipse Log.

Thanks

2465.eclipse_log.txt
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
!SESSION 2017-05-31 092138.339 -----------------------------------------------
eclipse.buildId=M20120914-1540
java.version=1.6.0_13
java.vendor=Sun Microsystems Inc.
BootLoader constants OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments -product com.ti.ccstudio.branding.product
Command-line arguments -os win32 -ws win32 -arch x86 -product com.ti.ccstudio.branding.product
!ENTRY org.eclipse.ui 2 0 2017-05-31 092310.866
!MESSAGE Warnings while parsing the viewer contributions from the 'org.eclipse.ui.popupMenus' extension point
!SUBENTRY 1 org.eclipse.ui 2 0 2017-05-31 092310.866
!MESSAGE invalid keybinding Cannot bind to an incomplete key sequence plug-in='org.eclipse.cdt.debug.ui', id='AUTOGENorg.eclipse.cdt.debug.ui.CEditorRulerActionsorg.eclipse.cdt.debug.internal.ui.actions.CBreakpointPropertiesRulerActionDelegate'
!SUBENTRY 1 org.eclipse.ui 2 0 2017-05-31 092310.866
!MESSAGE invalid keybinding Cannot bind to an incomplete key sequence plug-in='org.eclipse.cdt.debug.ui', id='AUTOGENorg.eclipse.cdt.debug.ui.CEditorRulerActionsorg.eclipse.cdt.debug.internal.ui.actions.EnableDisableBreakpointRulerActionDelegate'
!SUBENTRY 1 org.eclipse.ui 2 0 2017-05-31 092310.866
!MESSAGE invalid keybinding Cannot bind to an incomplete key sequence plug-in='org.eclipse.cdt.debug.ui', id='AUTOGENorg.eclipse.cdt.debug.ui.CEditorRulerActionsorg.eclipse.cdt.debug.ui.actions.RulerCreateBreakpointInteractiveAction'
!SUBENTRY 1 org.eclipse.ui 2 0 2017-05-31 092310.866
!MESSAGE invalid keybinding Cannot bind to an incomplete key sequence plug-in='org.eclipse.cdt.debug.ui', id='AUTOGENorg.eclipse.cdt.debug.ui.AsmEditorRulerActionsorg.eclipse.cdt.debug.internal.ui.actions.asm.CBreakpointPropertiesRulerActionDelegate'
!SUBENTRY 1 org.eclipse.ui 2 0 2017-05-31 092310.866
!MESSAGE invalid keybinding Cannot bind to an incomplete key sequence plug-in='org.eclipse.cdt.debug.ui', id='AUTOGENorg.eclipse.cdt.debug.ui.AsmEditorRulerActionsorg.eclipse.cdt.debug.internal.ui.actions.asm.EnableDisableBreakpointRulerActionDelegate'
!SUBENTRY 1 org.eclipse.ui 2 0 2017-05-31 092310.866
!MESSAGE invalid keybinding Cannot bind to an incomplete key sequence plug-in='org.eclipse.cdt.debug.ui', id='AUTOGENorg.eclipse.cdt.debug.ui.AsmEditorRulerActionsorg.eclipse.cdt.debug.ui.actions.asm.RulerCreateBreakpointInteractiveAction'
!SUBENTRY 1 org.eclipse.ui 2 0 2017-05-31 092310.866
!MESSAGE invalid keybinding Cannot bind to an incomplete key sequence plug-in='org.eclipse.cdt.dsf.ui', id='AUTOGENorg.eclipse.cdt.dsf.debug.ui.disassemblyRulerActionsorg.eclipse.debug.ui.actions.RulerAddBreakpointAction'
!SUBENTRY 1 org.eclipse.ui 2 0 2017-05-31 092310.866
!MESSAGE invalid keybinding Cannot bind to an incomplete key sequence plug-in='org.eclipse.cdt.dsf.ui', id='org.eclipse.cdt.dsf.debug.ui.disassembly.commands.rulerToggleBreakpoint'
!ENTRY org.eclipse.core.resources 4 2 2017-05-31 092422.939
!MESSAGE Problems occurred when invoking code from plug-in org.eclipse.core.resources.
!STACK 0
java.lang.NullPointerException
at java.lang.Integer.decode(Unknown Source)
at org.eclipse.cdt.managedbuilder.internal.core.Builder.decodeParallelizationNumber(Builder.java641)
at org.eclipse.cdt.managedbuilder.internal.core.Builder.loadFromProject(Builder.java803)
at org.eclipse.cdt.managedbuilder.internal.core.Builder.init(Builder.java235)
at org.eclipse.cdt.managedbuilder.internal.core.ToolChain.init(ToolChain.java276)
at org.eclipse.cdt.managedbuilder.internal.core.FolderInfo.init(FolderInfo.java141)
at org.eclipse.cdt.managedbuilder.internal.core.Configuration.init(Configuration.java417)
at org.eclipse.cdt.managedbuilder.internal.dataprovider.ConfigurationDataProvider.load(ConfigurationDataProvider.java373)
at org.eclipse.cdt.managedbuilder.internal.dataprovider.ConfigurationDataProvider.loadConfiguration(ConfigurationDataProvider.java548)
at org.eclipse.cdt.internal.core.settings.model.CProjectDescriptionManager.loadData(CProjectDescriptionManager.java1144)
at org.eclipse.cdt.internal.core.settings.model.CConfigurationDescriptionCache.loadData(CConfigurationDescriptionCache.java130)
at org.eclipse.cdt.internal.core.settings.model.CProjectDescription.loadDatas(CProjectDescription.java194)
at org.eclipse.cdt.internal.core.settings.model.xml.XmlProjectDescriptionStorage.loadProjectDescription(XmlProjectDescriptionStorage.java493)
at org.eclipse.cdt.internal.core.settings.model.xml.XmlProjectDescriptionStorage.getProjectDescription(XmlProjectDescriptionStorage.java235)
at org.eclipse.cdt.internal.core.settings.model.CProjectDescriptionManager.getProjectDescriptionInternal(CProjectDescriptionManager.java436)
at org.eclipse.cdt.internal.core.settings.model.CProjectDescriptionManager.getProjectDescription(CProjectDescriptionManager.java418)
at org.eclipse.cdt.internal.core.settings.model.CProjectDescriptionManager.getProjectDescription(CProjectDescriptionManager.java412)
at org.eclipse.cdt.internal.core.settings.model.CProjectDescriptionManager.getProjectDescription(CProjectDescriptionManager.java405)
at org.eclipse.cdt.internal.core.settings.model.CProjectDescriptionManager.getProjectDescription(CProjectDescriptionManager.java650)
at org.eclipse.cdt.core.model.CoreModel.getProjectDescription(CoreModel.java1371)
at com.ti.common.project.core.internal.events.ProjectStateMonitor$ResourceChangeListener.resourceChanged(ProjectStateMonitor.java228)
at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java291)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java42)
at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java285)
at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java149)
at org.eclipse.core.internal.resources.Workspace.broadcastBuildEvent(Workspace.java381)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java139)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java54)
!ENTRY org.eclipse.core.resources 4 2 2017-05-31 092423.424
!MESSAGE Problems occurred when invoking code from plug-in org.eclipse.core.resources.
!STACK 0
java.lang.NullPointerException
at java.lang.Integer.decode(Unknown Source)
at org.eclipse.cdt.managedbuilder.internal.core.Builder.decodeParallelizationNumber(Builder.java641)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Hi David,
    In the past, when importing a project, that error would usually occur for one of the following reasons:
    1) Device support for that project is missing in your CCS installation
    2) The Compiler version the project was created with is missing in your CCS installation
    3) err... mmm... there were some other reasons but I can't recall them at the moment. The first two are the main culprits

    I say "past", because we have improved CCS since then to handle such cases better than spitting out some cryptic error message. You version of CCS is quite old. Is there any reason why you are still using this older version? Any chance you can upgrade?

    Thanks
    ki
  • Thanks.

    I don't think it is the first or second case, this is a safety rated project that uses the same device and compiler as other projects I can open. I don't think upgrading is an option because of the safety rating that we use.

    I am doing a clean install to see if that helps.

    Thanks
  • Try using a new workspace folder first and import the project to that.
  • I have tried that with no success. Re-installing did not help
  • For what it's worth, I installed CCS 7 just to see, and it does import OK there.. It is unable to build because it uses items that are no longer supported, but it imports without error. Not sure why CCS 5 won't import it
  • Hi David, 

    This is a known issue in older builds of CDT - https://bugs.eclipse.org/bugs/show_bug.cgi?id=394735.  It has since been fixed, which explains why you no longer see this issue in newer versions of CCS.

    If you have to stick with the older version of CCS, you'd have to manually fix your projects as follows:

    1. Use any text editor to open the .cproject file for each of the projects that fail to import.
    2. Search for every occurrence of parallelBuildOn="true", and add parallelizationNumber="2" right beside it.

    - Baltasar