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.

CCSv6 gives NullPointer error and freezes Project Explorer when I open a file in a project

Other Parts Discussed in Thread: MSP430F2618

I just upgraded to CCSv6 from CCS v5.3. When I import an existing project or create a new one, it loads fine. However, when I go to double click a file in my project (in Project Explorer), it starts to open the file but: the name of the file isn't in the tab at the top, where it would show the contents of the file is completely blank, and a red circle with an X through it appears in the top left corner of that blank space. After this error, I cannot click anything in the Project Explorer, or change off of the tab with the error. I can, however, click any and all of the Toolbar buttons at the top and any dropdown menus of File, Edit and the like.

I've come to the conclusion this only happens on files that aren't already open in a tab. A short time after the program locks up, I periodically get an error box that appears saying a java.lang.NullPointerException is thrown. I've stacked up as many as 4 or 5 of these errors at one time. The only way I can "un-lock-up the workspace" is to close and reopen Code Composer.

The files that I've been trying to get working still work just fine in CCSv5.3. This issue just makes it almost unbearable to work with in CCSv6 at the moment. I'm using a Windows 7 / 64-bit computer, programming for an MSP430F2618 microcontroller and the language I'm in is C, if it helps. Thanks for any help you guys can give me!

  • Hi Ethan,

    First off, did you try a clean new workspace?

    If that doesn't help, can you explicitly open the source file in the editor using the context menu when right-clicking on a source file?

    Try both C/C++ Editor a Text Editor and let me know if run into the same issues.

    Thanks

    ki

  • Hi Ki,

    I'm running into the same issue as in the original post.  In addition to having the problem with opening a file in an imported project, I'm seeing the issue when creating a new project.

    I'm using Windows 7 64-bit with CCS v6.0.1.00040.  This is a new problem as I've created and imported several projects in the past with no issues and my existing projects I've been using for months still work fine (though now an occasional java.lang.NullPointerException error pops up).  Its only an issue on new projects or newly imported ones.

    I've tried cleaning my workspace, creating a new one workspace, creating a new blank project and moving in only the .c, .h files and nothing seems to work. 

    I tried opening files with C/C++ editor and text editor as recommended in the previous but CCS still locks up. I'm dead in the water and considering uninstalling everything.

    I've attached a screen shot and eclipse logs.  Let me know if there's any additional information that would be useful.

    Thanks,

    Justineclipse log.log

    Debug Server Log.log
    0x0000352C 0 3  COM_DBG_IF C: class XPCOMLogger::CoLogger::OnEnabledChanged()
    0x0000352C 0 3  XPCOM C: ( (dsISimpleEventCallback*)0D1A0F90 )->onEvent()
    0x0000352C 0 3  XPCOM C: ( (dsISimpleEvent*)006B3DC8 )->removeListener( 0D15A728 )
    0x0000352C 0 3  XPCOM R: ( (dsISimpleEvent*)006B3DC8 )->removeListener( 0D15A728 ) = 0x00000000
    0x0000352C 0 3  XPCOM R: ( (dsISimpleEventCallback*)0D1A0F90 )->onEvent() = 0x00000000
    0x0000352C 0 3  COM_DBG_IF R: class XPCOMLogger::CoLogger::OnEnabledChanged()
    0x0000352C 0 3  XPCOM R: ( (dsILogger*)0D108198 )->enable( true ) = 0x00000000
    0x0000352C 0 3  XPCOM C: ( (dsISimpleEvent*)006B3DC8 )->addListener( 0FA76998 )
    0x0000352C 0 3  XPCOM R: ( (dsISimpleEvent*)006B3DC8 )->addListener( 0FA76998 ) = 0x00000000
    0x0000352C 0 3  XPCOM C: ( (dsILogger*)0D108198 )->getLogFile( 0018E5B8 )
    0x0000352C 0 3  XPCOM R: ( (dsILogger*)0D108198 )->getLogFile( *0018E5B8 = C:\Users\mcquownj\Desktop\CCS Logs\Debug Server Log.log ) = 0x00000000
    0x0000352C 0 3  XPCOM C: ( (dsILogger*)0D108198 )->getLogFile( 0018E5A8 )
    0x0000352C 0 3  XPCOM R: ( (dsILogger*)0D108198 )->getLogFile( *0018E5A8 = C:\Users\mcquownj\Desktop\CCS Logs\Debug Server Log.log ) = 0x00000000
    0x0000352C 0 3  XPCOM C: ( (dsILogger*)0D108198 )->getLogFile( 0018E5A8 )
    0x0000352C 0 3  XPCOM R: ( (dsILogger*)0D108198 )->getLogFile( *0018E5A8 = C:\Users\mcquownj\Desktop\CCS Logs\Debug Server Log.log ) = 0x00000000
    0x0000352C 1 3  XPCOM C: ( (dsILogger*)0D108198 )->getLogFile( 0018E5A8 )
    0x0000352C 1 3  XPCOM R: ( (dsILogger*)0D108198 )->getLogFile( *0018E5A8 = C:\Users\mcquownj\Desktop\CCS Logs\Debug Server Log.log ) = 0x00000000
    0x0000352C 1 3  XPCOM C: ( (dsILogger*)0D108198 )->getLogFile( 0018E5A8 )
    0x0000352C 1 3  XPCOM R: ( (dsILogger*)0D108198 )->getLogFile( *0018E5A8 = C:\Users\mcquownj\Desktop\CCS Logs\Debug Server Log.log ) = 0x00000000
    

  • It seems that having imported a project from CCS v5.3 in which the compiler version had been changed caused the problem. I don't understand why I couldn't open anything else or even create a new project in CCS v6 though. The only solution I found was uninstalling and reinstalling CCS.
  • Hi jtm214,

    Thanks for the info: that finally solved the issue! I did a complete uninstall of Code Composer v6, restarted my computer, then installed it again. I've never had the error since, and I can open and edit any file in any project, new or imported from CCSv5.3. Everything is working just great!

    Best of luck!