suddenly a CW 10.6.4 project I have been using for some time refuses to link and won't display the linker-general properties. a java stack error message pops up and I cannot get past it. I have tried creating a new workspace, re-installing CW 10.6.4, and even re-installing java. This problem is showing up in multiple previously good projects. It also is the same if I open the project in CW 10.6.0
I have found a work-around and no longer have any interest in pursuing this issue. I found that when the settings for the linker are checked before building the project, this error shows up. This happens every time CW is started and the work space where the project has been imported is opened. Once the project has been built during the CW session the linker settings are displayed correctly.
FANTASTIC! Thank you for posting this simple workaround. It works in my CW 10.6: Any time you open the CW IDE, you must attempt to build the project before viewing its Project Properties->linker settings, else a null pointer exception (java/lang) will occur.
Ah, so this is a NPE (Null Pointer Exception) which is different from a stack overflow.
And that NPE somehow is not show in your .log.
Not sure what is causing this, but could you post your project (sources are not needed) so the engineers could have a look?
Erich
I cannot see how to attach a file here in the community forum.
Thanks for the suggestion, but changing the java heap in cwide.ini made no difference.
Windows 7 PC. Kinetis K26 chip Below is a screen shot and below that the contents of .log
!SESSION 2016-09-18 05:56:50.359 -----------------------------------------------
eclipse.buildId=I20070613-1755
java.version=1.6.0_15
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en
Command-line arguments: -os win32 -ws win32 -arch x86
!ENTRY org.eclipse.osgi 2 1 2016-09-18 05:57:45.385
!MESSAGE NLS missing message: ContentTypes_errorDialogAlreadyExists in: org.eclipse.ui.internal.messages
!ENTRY com.freescale.processorexpert.core 1 0 2016-09-18 05:57:49.184
!MESSAGE Plugin com.freescale.processorexpert.core.service ProcessorExpertServiceProvider
!ENTRY org.eclipse.osgi 2 0 2016-09-18 05:57:58.372
!MESSAGE While loading class "com.freescale.sa.analysispoints.AnalysispointManager$AnalysispointManagerVisitor", thread "Thread[Worker-1,5,main]" timed out waiting (5003ms) for thread "Thread[Worker-2,5,main]" to finish starting bundle "com.freescale.sa.analysispoints_2.0.0.144301-201410211703 [424]". To avoid deadlock, thread "Thread[Worker-1,5,main]" is proceeding but "com.freescale.sa.analysispoints.AnalysispointManager$AnalysispointManagerVisitor" may not be fully initialized.
!STACK 0
org.osgi.framework.BundleException: State change in progress for bundle "reference:file:plugins/com.freescale.sa.analysispoints_2.0.0.144301-201410211703/" by thread "Worker-2".
at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java:1088)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:298)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.freescale.sa.analysispoints.AnalysispointManager.resourceChanged(AnalysispointManager.java:657)
at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:291)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:285)
at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:149)
at org.eclipse.core.internal.resources.Workspace.broadcastBuildEvent(Workspace.java:387)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:146)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Caused by: org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException
... 22 more
Root exception:
org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException
at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java:1088)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:298)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.freescale.sa.analysispoints.AnalysispointManager.resourceChanged(AnalysispointManager.java:657)
at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:291)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:285)
at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:149)
at org.eclipse.core.internal.resources.Workspace.broadcastBuildEvent(Workspace.java:387)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:146)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
!ENTRY com.freescale.core.ide.cdt.toolchain 4 0 2016-09-18 05:57:58.395
!MESSAGE Environment Variable Dependency not resolved for 'ARMGNUDirEnv'.
!ENTRY com.freescale.core.ide.cdt.toolchain 4 0 2016-09-18 05:57:58.399
!MESSAGE Environment Variable Dependency not resolved for 'ARMSummonDirEnv'.
!ENTRY com.freescale.core.ide.cdt.toolchain 4 0 2016-09-18 05:57:58.403
!MESSAGE Environment Variable Dependency not resolved for 'ARMYagartoDirEnv'.
!ENTRY com.freescale.core.ide.cdt.toolchain 4 0 2016-09-18 05:57:58.406
!MESSAGE Environment Variable Dependency not resolved for 'ARMdevkitProDirEnv'.
!ENTRY com.freescale.core.ide.wizard.ui 2 0 2016-09-18 05:57:59.272
!MESSAGE External elements location 'C:\Freescale\CW MCU v10.6.4\eclipse\../MCU/lib/wizard_data/mqx/4.0/cf' does not exist
!ENTRY com.freescale.core.ide.wizard.ui 2 0 2016-09-18 05:57:59.275
!MESSAGE External elements location 'C:\Freescale\CW MCU v10.6.4\eclipse\../MCU/lib/wizard_data/mqx/4.0/ppc' does not exist
!ENTRY com.freescale.core.ide.wizard.ui 2 0 2016-09-18 05:57:59.279
!MESSAGE External elements location 'C:\Freescale\CW MCU v10.6.4\eclipse\../MCU/lib/wizard_data/mqx/4.0/patches' does not exist
!ENTRY com.freescale.core.ide.wizard.ui 2 0 2016-09-18 05:57:59.505
!MESSAGE External elements location 'C:\Freescale\CW MCU v10.6.4\eclipse\../MCU/lib/wizard_data/mqx/4.1/cf' does not exist
!ENTRY com.freescale.core.ide.wizard.ui 2 0 2016-09-18 05:57:59.510
!MESSAGE External elements location 'C:\Freescale\CW MCU v10.6.4\eclipse\../MCU/lib/wizard_data/mqx/4.1/ppc' does not exist
!ENTRY com.freescale.core.ide.wizard.ui 2 0 2016-09-18 05:57:59.513
!MESSAGE External elements location 'C:\Freescale\CW MCU v10.6.4\eclipse\../MCU/lib/wizard_data/mqx/4.1/patches' does not exist
!ENTRY org.eclipse.cdt.core 1 0 2016-09-18 05:58:51.880
!MESSAGE Indexed 'NC_sixboot' (2 sources, 18 headers) in 0.61 sec: 168 declarations; 478 references; 1 unresolved inclusions; 0 syntax errors; 4 unresolved names (0.62%)
!ENTRY org.eclipse.osgi 2 1 2016-09-18 05:59:07.617
!MESSAGE NLS missing message: BuildStepsTab_BehaviourTab in: org.eclipse.cdt.managedbuilder.internal.ui.Messages
!ENTRY org.eclipse.osgi 2 1 2016-09-18 05:59:07.619
!MESSAGE NLS missing message: ToolChainEditTab_18 in: org.eclipse.cdt.managedbuilder.internal.ui.Messages
Hi James,
There seems to be a configuration problem with your system (maybe).
I would try to increase the Java heap available to Eclipse, see
https://mcuoneclipse.com/2015/07/31/improve-eclipse-performance-with-increased-heap-size/
I hope this helps,
Erich
Hello James,
Could you please take screenshot about your problem ?
What about your system of PC ? And which chip do you used ?
BR
Alice