This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build: NetBeans IDE 6.9.1 (Build 201011082200) VM: OpenJDK Client VM, 19.0-b09, OpenJDK Runtime Environment, 1.6.0_20-b20 OS: Linux User Comments: johnny_bit: Trying to start a new C++ project Stacktrace: java.lang.NullPointerException at org.netbeans.api.editor.mimelookup.MimePath.parseImpl(MimePath.java:0) at org.netbeans.api.editor.mimelookup.MimePath.parse(MimePath.java:0) at org.netbeans.modules.editor.indent.TaskHandler.collectTasks(TaskHandler.java:0) at org.netbeans.modules.editor.indent.IndentImpl.reformatLock(IndentImpl.java:0) at org.netbeans.modules.editor.indent.api.Reformat.lock(Reformat.java:0) at org.netbeans.modules.cnd.source.SourceAbstractDataLoader$CndFormat.createFromTemplate(SourceAbstractDataLoader.java:0)
Created attachment 104321 [details] stacktrace
After checking the current code I would like the CND team to have a look. 1. The code path from the exception is valid only when the IDE is run with assertions turned off, otherwise the exception would be assertionError. Did anyone get the AssertionError from similar situation. 2. Seems like the document does not have a mime type which according to this report happened only handful of times when creating C++ project. We did not see this problem with other mime types. 3. The reports are from 6.9.x only - I don't see any newer report. The indentation code has been changed by Dusan. It may have stopped - if the exception is not seen recently I suggest to just close the issue. Thanks.
Could someone provides test case how to reproduce this issue? Thanks.
My case: - I run a NB 7.0 J2SE Edition on Windows. - I installed the C/C++ support from the Plugin Manager. It computed some dependencies, but after download it told me it had to disable lots of modules because a missing dependency. This is weird, isn't it? - Then I tried to create a Plain C Project. I chose a directory and gave the project a name, but then the "New Project Wizard" failed telling me that the "nbproject" was already there. Surprising. I finally noticed the red "alert" exception at the bottom of the screen, so I decided to use the exception reporter to file an issue. The final result is that I can't create new c projects with NetBeans 7.0. That's a major failure (it's two failures, actually) that should be scalated to P1, I think. Cheers, Antonio
I saw http://forums.netbeans.org/topic38648.html also, but in latest time Plugin Manager worked correctly.
Created attachment 108489 [details] messages.log I checked again on different platforms. I can't install C/C++ plugin on my Windows machine only. messages.log file is attached.
I'm attaching an excerpt of the messages.log with the relevant information. This happens on >Log Session: Tuesday, May 24, 2011 1:31:57 PM CEST >System Info: Product Version = NetBeans IDE 7.0 (Build 201104080000) (#a693229ccdbb) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.6.0_24; Java HotSpot(TM) Client VM 19.1-b02; Sun Microsystems Inc. Runtime = Java(TM) SE Runtime Environment 1.6.0_24-b07 Java Home = C:\Documents and Settings\XXX\Mis documentos\SOFTWARE\jdk1.6.0_24\jre System Locale; Encoding = es_ES (nb); Cp1252
Created attachment 108493 [details] messages.log/stacktrace
it is reproducible in ML version. Can someone from localization team evaluate why we have such problems in ML version? Thanks, Vladimir.
(In reply to comment #4) Hi Antonio, Thank you very much for providing information. I have one question for you - your're using Windows in Spanish version because I can see the following, > System Locale; Encoding = es_ES (nb); Cp1252 When you start installer, was the installer localized? I believe you saw English installer.
Yes, Windows is a spanish localized version. NetBeans IDE is in english, though (I never use spanish localized versions of NetBeans).
Thank you very much Antonio! Hi Vladimir, According to Antonio's comment, Antonio didn't use NetBeans with localized messages. It means Antonio simply downloaded NetBeans installer from netbeans.org - didn't select and download any localized version for Spanish. NetBeans binary/installer are now ML-ed by default. It includes English, zh_CN, ja, pt_BR and ru localizations and Antonio was using it. We build just English binaries but those are internal use and don't publish. Actually I tried the same operation: 1. Install just JavaSE 2. Install CND from UC on English Windows and I could reproduce the sample issue. So I don't think it's a localization issue. Will CND folks please evaluate?
looks like issue of extra installing cnd into j2se ide. *** This bug has been marked as a duplicate of bug 198085 ***