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.

Java.lang.NULL when importing projects

Guru 18625 points

Other Parts Discussed in Thread: CCSTUDIO

Hi,


during the last two days I have been suffering from errors when trying to import the CCS projects related to CapTIvate Library.

No problems with the rest of projects. This is the CCS Log:

!ENTRY com.ti.ccstudio.project.core 4 0 2015-12-24 14:07:43.093
!MESSAGE Error in project-spec:
!STACK 0
java.lang.NullPointerException
    at com.ti.ccstudio.project.core.internal.services.ProjectSpecParser.parseProjectNode(ProjectSpecParser.java:298)
    at com.ti.ccstudio.project.core.internal.services.ProjectSpecParser.parseDocument(ProjectSpecParser.java:259)
    at com.ti.ccstudio.project.core.internal.services.ProjectSpecParser.parse(ProjectSpecParser.java:219)
    at com.ti.ccstudio.project.core.services.ProjectCreator.createCCSProject(ProjectCreator.java:806)
    at com.ti.ccstudio.project.ui.internal.resexplorer.ResourceExplorerProjectDelegate$6.run(ResourceExplorerProjectDelegate.java:480)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)

I thought this was fixed in CCS v6.12 but it is not. This happens in both Windows and Linux.

Please let me know your opinions.

  • Hello,
    I've determined the cause of this issue. It is because you do not have the latest MSP430 Emulators pack (6.2.1) installed. You need that version for FR2633 support. Without it, importing the project via projectspec will fail since CCS will not recognize the device specified in the projectspec. Note that both 6.1.1 and 6.1.2 does NOT come with the latest MSP430 Emulators update (the update was released while 6.1.2 was being put together).

    Please update the MSP430 Emulators pack to the latest and you should be able to import the project

    Thanks
    ki
  • I also filed a request to improve on the error message so it is actually useful. Tracking ID: SDSCM00052613

    Thanks
    ki
  • Ok,
    I was able to import at least on Windows!

    However, the CCS APP Center screen now is blank :(

    Well, not blank, but it is stuck on "Connecting to CCS App Center Server" and the wheel is spinning.

    All these issues are after a fresh install.

    We can try to solve also this blank CCS APP Center in this thread so people suffering from this 2 issues in a row can find the solutions in the same place?

  • Hi,

    If you wait long enough, you should see something like the below:

    Then use the "browse" button (highlighted in red) and specify the below path to the json file:

    http://software-dl.ti.com/ccs/non-esd/ccs_appcenter/apps_6.1.2.json

    Then wait a few moments. App center should then access the file and open up App center successfully.

    thanks

    ki

  • Yeah,

    it worked.

    How do I apply this change permanently?

    After restarting, it has to be re-appied.

  • This is still under investigation. Unfortunately we will have to wait for the new year for more progress on this as many of the folks required for the investigation are still on holiday. I will keep you posted when I have an news to report

    thanks
    ki
  • I just tried Andy's suggestion for a reinstall:
    e2e.ti.com/.../1727731

    And that also worked for me. I don't know if you want to try reinstalling also...
  • Ki-Soo Lee said:
    Then use the "browse" button (highlighted in red) and specify the below path to the json file:

    http://software-dl.ti.com/ccs/non-esd/ccs_appcenter/apps_6.1.2.json

    Then wait a few moments. App center should then access the file and open up App center successfully.

    I have seen this problem on two systems now.

    I installed CCS 6.1.2 on a Windows 7 PC two days ago, and had the symptom of the CCS App Center not displaying, and having to "browse" and select the http path to the json file after (re-)starting CCS.

    Having just installed CCS 6.1.2 on a CentOS 6 Linux system have the same problem on the CCS App Center not displaying. However, on the CentOS 6 system when using the "browse" button the dialog which is displayed will only let me select an existing file on the system and won't let me enter the http link to the json file. To work-around this I had to use wget to retrieve the apps_6.1.2.json file to a local file system, and use the "browse" button on the CSS App Center to point at the local copy of the apps_6.1.2.json file rather than the http link.

  • Ki-Soo Lee said:
    This is still under investigation.

    In case it helps with the investigation, I used WireShark to watch the network traffic when CCS 6.1.2.00014 was started under Linux with the CCS App Center open.

    This shows CCS 6.1.2 attempting to retrieve http://software-dl.ti.com/ccs/non-esd/ccs_appcenter/apps_5.1.0.json to which the server replies with a "HTTP/1.1 404 Not Found".

    I think it is the <CCS_install_root>/ccsv6/eclipse/plugins/com.ti.ccstudio.app.center_1.1.0.201512011200/com/ti/ccstudio/app/center/internal/Utils.class in CCS 6.1.2 which is responsible for trying to retrieve the CCS App Center .json file from the incorrect link. Unable to find any CCS 6.1.2 preference where the correct link can be entered.

  • Chester - we are getting closer to the root cause. In the meantime, I've been told a workaround has been implemented. Can you try again and see if the App Center works for you now?

    Thanks
    ki
  • Ki-Soo Lee said:
    In the meantime, I've been told a workaround has been implemented. Can you try again and see if the App Center works for you now?

    I have just started CCS 6.1.2 on both Windows and Linux while WireShark was capturing network traffic.

    In both cases:

    - The CCS App Center was not displayed

    - WireShark showed that CCS 6.1.2 attempted to request http://software-dl.ti.com/ccs/non-esd/ccs_appcenter/apps_5.1.0.json to which the server replied with a "HTTP/1.1 404 Not Found"

    i.e. no sign that the workaround has had any effect.

  • Thanks for the update. I'll keep you posted when this is finally resolved
  • Chester - can you try again?
  • Ki-Soo Lee said:
    Chester - can you try again?

    I have checked with CCS 6.1.2 under Windows and Linux, and confirm that the App Center is now functional when CCS is started.

    I notice that the server is now responding to a request for http://software-dl.ti.com/ccs/non-esd/ccs_appcenter/apps_5.1.0.json (with a copy of the contents of the apps_6.1.2.json file)

  • Thanks Chester. We have identified the root cause as related to msp update patches which overwrite the correct CCS build ID and screw up app center. We are working on a fix.

    Thanks
    ki
  • Yep,
    the issue was appearing after applying some updates.
    I'm trying with a clean installation of CCS 6.12.0004.
    I will post the results right now :)
  • All this works now :)
    On the other hand, on Linux the TI Resource Explorer link labeled as "Launch Captivate design center" points to an ".exe" instead of to a ".py" and it throws the consequent error but this is something which I consider not critical :)

    kaz@kaz-AMILO-Li-1718 ~ $ sudo find ./ -name launch_captivate*
    ./ti/msp430/MSPWare_2_40_00_37/~TIRex/MSPWare/templates/launch_captivate.html
    ./ti/msp430/MSPWare_2_40_00_37/~TIRex/MSPWare/templates/scripts/launch_captivate.exe
    ./ti/msp430/MSPWare_2_40_00_37/~TIRex/MSPWare/templates/scripts/launch_captivate.py

    Have a nice day!
  • kazola said:
    On the other hand, on Linux the TI Resource Explorer link labeled as "Launch Captivate design center" points to an ".exe" instead of to a ".py" and it throws the consequent error but this is something which I consider not critical :)

    Thanks, I believe this is already a known issue but if it is not, i will be sure to inform the right folks!

    ki