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.

Bug 193661 - Installing CND from UC failed on Windows
Summary: Installing CND from UC failed on Windows
Status: RESOLVED DUPLICATE of bug 198085
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-20 17:47 UTC by johnny_bit
Modified: 2011-06-01 15:36 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 167890


Attachments
stacktrace (2.82 KB, text/plain)
2010-12-20 17:47 UTC, johnny_bit
Details
messages.log (132.16 KB, text/plain)
2011-05-24 20:05 UTC, soldatov
Details
messages.log/stacktrace (9.04 KB, application/octet-stream)
2011-05-25 06:26 UTC, vieiro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description johnny_bit 2010-12-20 17:47:04 UTC
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)
Comment 1 johnny_bit 2010-12-20 17:47:07 UTC
Created attachment 104321 [details]
stacktrace
Comment 2 David Strupl 2011-03-08 14:02:12 UTC
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.
Comment 3 Vladimir Voskresensky 2011-05-24 10:38:27 UTC
Could someone provides test case how to reproduce this issue?
Thanks.
Comment 4 vieiro 2011-05-24 17:12:35 UTC
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
Comment 5 soldatov 2011-05-24 18:54:38 UTC
I saw http://forums.netbeans.org/topic38648.html also, but in latest time Plugin Manager worked correctly.
Comment 6 soldatov 2011-05-24 20:05:57 UTC
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.
Comment 7 vieiro 2011-05-25 06:25:35 UTC
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
Comment 8 vieiro 2011-05-25 06:26:50 UTC
Created attachment 108493 [details]
messages.log/stacktrace
Comment 9 Vladimir Voskresensky 2011-05-27 08:32:27 UTC
it is reproducible in ML version. 
Can someone from localization team evaluate why we have such problems in ML version?

Thanks,
Vladimir.
Comment 10 Masaki Katakai 2011-05-27 11:10:12 UTC
(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.
Comment 11 vieiro 2011-05-27 12:54:27 UTC
Yes, Windows is a spanish localized version.

NetBeans IDE is in english, though (I never use spanish localized versions of NetBeans).
Comment 12 Masaki Katakai 2011-05-30 02:03:57 UTC
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?
Comment 13 Vladimir Voskresensky 2011-06-01 15:36:26 UTC
looks like issue of extra installing cnd into j2se ide.

*** This bug has been marked as a duplicate of bug 198085 ***