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.
Trying to import and build a legacy project with CCS Command Line. I get a null pointer exception after the tool starts.
The same project can be imported and built using the GUI by using the Project->Import Legacy CCSv3.3 Project
I am using CCS v5.5 on Windows 7 (32-bit).
Appreciate any help in resolving this problem. I need to write a batch file to import and build multiple such projects.
C:\ti\ccsv5\eclipse>eclipsec -noSplash -data "C:\Users\username\workspacev5_5" -application com.ti.ccstudio.apps.legacyProjectImport -ccs.pjtFile "C:\Users\username\Downloads\F2806x Target\buck current loop\buck current loop (hardware) (C code)\buck_current_loop__hardware_.pjt"
--------------------------------------------------------------------------------
Importing legacy project 'C:/Users/hxv120430/Downloads/F2806x Target/buck current loop/buck current loop (hardware) (C code)/buck_current_loop__hardware_.pjt'...
java.lang.NullPointerException
at com.ti.ccstudio.project.core.services.ProjectImporter.internalImportLegacyProject(ProjectImporter.java:527)
at com.ti.ccstudio.project.core.services.ProjectImporter.access$2(ProjectImporter.java:523)
at com.ti.ccstudio.project.core.services.ProjectImporter$3.run(ProjectImporter.java:508)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at com.ti.ccstudio.project.core.services.ProjectImporter.importLegacyProject(ProjectImporter.java:506)
at com.ti.ccstudio.apps.internal.project.LegacyImport.doRun(LegacyImport.java:81)
at com.ti.ccstudio.apps.internal.BaseHeadlessApp$2.run(BaseHeadlessApp.java:273)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at com.ti.ccstudio.apps.internal.BaseHeadlessApp.internalRun(BaseHeadlessApp.java:271)
at com.ti.ccstudio.apps.internal.BaseHeadlessApp.start(BaseHeadlessApp.java:220)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
I just tried with CCS 6.1.3 where this bug is supposed to be fixed.
eclipsec -nosplash -data ccs_ws -application com.ti.ccstudio.apps.legacyProjectImport -ccs.pjtFile LOJ_F.pjt
--------------------------------------------------------------------------------
Importing legacy project 'LOJ_F.pjt'...
!ERROR: Unexpected exception encountered while migrating project. Please see the Eclipse log file for details.
Done!
Makefile:256: recipe for target 'ccs_ws/.metadata/.plugins/org.eclipse.core.resources/.projects/LOJ_F' failed
make: *** [ccs_ws/.metadata/.plugins/org.eclipse.core.resources/.projects/LOJ_F] Error 1
The .log file contains:
!SESSION 2016-05-13 13:04:33.626 -----------------------------------------------
eclipse.buildId=4.5.1.M20150904-0015
java.version=1.7.0_80
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Framework arguments: -application com.ti.ccstudio.apps.legacyProjectImport -ccs.pjtFile LOJ_F.pjt
Command-line arguments: -os win32 -ws win32 -arch x86 -data ccs_ws -application com.ti.ccstudio.apps.legacyProjectImport -ccs.pjtFile LOJ_F.pjt
!ENTRY com.ti.common.core 4 0 2016-05-13 13:04:34.453
!MESSAGE path=ccs_base/DebugServer
!ENTRY com.ti.common.core 4 0 2016-05-13 13:04:34.454
!MESSAGE debugServerDir=C:/ti/ccsv6/ccs_base/DebugServer
!ENTRY com.ti.ccstudio.project.core 4 0 2016-05-13 13:04:35.575
!MESSAGE An internal error was logged by 'com.ti.ccstudio.project.core'.
!STACK 0
java.lang.NullPointerException
at com.ti.ccstudio.project.core.internal.legacy.LegacyProjectImporter.createEclipseProject(LegacyProjectImporter.java:363)
at com.ti.ccstudio.project.core.internal.legacy.LegacyProjectImporter.doRun(LegacyProjectImporter.java:251)
at com.ti.ccstudio.project.core.internal.legacy.LegacyProjectImporter.access$0(LegacyProjectImporter.java:230)
at com.ti.ccstudio.project.core.internal.legacy.LegacyProjectImporter$1.run(LegacyProjectImporter.java:213)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2241)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2225)
at com.ti.ccstudio.project.core.internal.legacy.LegacyProjectImporter.run(LegacyProjectImporter.java:211)
at com.ti.ccstudio.project.core.services.ProjectImporter.internalImportLegacyProject(ProjectImporter.java:608)
at com.ti.ccstudio.project.core.services.ProjectImporter.access$2(ProjectImporter.java:588)
at com.ti.ccstudio.project.core.services.ProjectImporter$3.run(ProjectImporter.java:573)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2241)
at com.ti.ccstudio.project.core.services.ProjectImporter.importLegacyProject(ProjectImporter.java:571)
at com.ti.ccstudio.apps.internal.project.ProjectImportApp_Legacy.doRun(ProjectImportApp_Legacy.java:82)
at com.ti.ccstudio.apps.internal.BaseHeadlessApp$1.run(BaseHeadlessApp.java:278)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2241)
at com.ti.ccstudio.apps.internal.BaseHeadlessApp.internalRun(BaseHeadlessApp.java:276)
at com.ti.ccstudio.apps.internal.BaseHeadlessApp.start(BaseHeadlessApp.java:218)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
BTW, GUI import of that project works (with a couple of warnings).
!CONFIGURATION: 'com.ti.ccstudio.buildDefinitions.C2000.Debug.978085415' [Fri May 13 12:51:55 CEST 2016]
!TOOL: 'com.ti.ccstudio.buildDefinitions.C2000_6.4.exe.compilerDebug.638652144'
!WARNING: Unresolved option: com.ti.ccstudio.buildDefinitions.C2000_6.4.exe.compilerDebug.638652144::!--symdebug:dwarf
!TOOL: 'com.ti.ccstudio.buildDefinitions.C2000_6.4.exe.linkerDebug.1529623423.408653261'
!WARNING: Unresolved option: com.ti.ccstudio.buildDefinitions.C2000_6.4.exe.linkerDebug.1529623423.408653261::-q
!TOOL: 'com.ti.ccstudio.buildDefinitions.C2000_6.4.exe.linkerDebug.1529623423.708886464'
!WARNING: Unresolved option: com.ti.ccstudio.buildDefinitions.C2000_6.4.exe.linkerDebug.1529623423.708886464::-q
Any suggestions?
Regards, Johannes