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 116294 - Editor broken for unknown/non-highlighted file types
Summary: Editor broken for unknown/non-highlighted file types
Status: RESOLVED INVALID
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-21 11:12 UTC by gestalt
Modified: 2008-11-21 13:47 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The error dialog shown (250.06 KB, image/jpeg)
2007-09-21 11:12 UTC, gestalt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gestalt 2007-09-21 11:12:05 UTC
It seems like the editor is broken for unknown/non-highlighted with Netbeans 6 Beta1 on MacOS X.

Everytime I type a character a cryptic  warning dialog appears. (screenshot to follow).
Comment 1 gestalt 2007-09-21 11:12:50 UTC
Created attachment 49225 [details]
The error dialog shown
Comment 2 Jiri Prox 2007-09-21 11:29:39 UTC
Seems as problem with cnd settings
Comment 3 gestalt 2007-09-21 19:57:39 UTC
Indeed, I disabled the 'cnd' module and the problem disappeared. even better it still works after re-enabling.. :-)

I wonder if it is reproducible with a fresh installation, although I am not going to do try this now.

Comment 4 soldatov 2007-09-21 20:30:21 UTC
I see same error dialog on Windows XP when I repeat these steps:
- Create project
- Close IDE
- Delete project in console
- Run Netbeans
Comment 5 soldatov 2007-09-21 20:36:09 UTC
Sorry. I forgot 1 step:
- Create project
- Open source file in editor
- Close IDE
- Delete project in console
- Run Netbeans
Comment 6 Thomas Preisler 2007-09-21 22:10:48 UTC
Not sure it is cnd:

Caused: org.openide.filesystems.FileStateInvalidException: /Users/thp/netbeans-6.0-dev/nbbuild/Users/thp/NetBeansProjects/Args_3/Makefile
        at org.openide.loaders.DataObject.find(DataObject.java:452)
Caused: org.openide.loaders.DataObjectNotFoundException: /Users/thp/netbeans-6.0-dev/nbbuild/Users/thp/NetBeansProjects/Args_3/Makefile
        at org.openide.loaders.DataObject.find(DataObject.java:472)
        at org.openide.loaders.DataObject$Replace.readObject(DataObject.java:1028)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1809)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
        at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908)
        at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:479)
        at org.openide.loaders.OpenSupport$Env.readObject(OpenSupport.java:144)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1809)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
        at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908)
        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
        at org.openide.windows.CloneableTopComponent.readExternal(CloneableTopComponent.java:202)
        at org.openide.text.CloneableEditor.readExternal(CloneableEditor.java:530)
        at org.openide.windows.TopComponent$Replacer.readObject(TopComponent.java:1419)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1809)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
        at org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.readSerial(XMLSettingsSupport.java:520)
        at org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.instanceCreate(XMLSettingsSupport.java:552)
        at org.netbeans.modules.settings.convertors.SerialDataConvertor$SettingsInstance.instanceCreate(SerialDataConvertor.java:393)
[catch] at org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentPersistentForID(PersistenceManager.java:475)
        at org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentForID(PersistenceManager.java:580)
        at org.netbeans.core.windows.PersistenceHandler.getTopComponentForID(PersistenceHandler.java:405)
        at org.netbeans.core.windows.PersistenceHandler.load(PersistenceHandler.java:130)
        at org.netbeans.core.windows.WindowSystemImpl.load(WindowSystemImpl.java:47)
        at org.netbeans.core.NonGui$3.run(NonGui.java:183)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Content: 
<?xml version="1.0"?>
<!DOCTYPE settings PUBLIC "-//NetBeans//DTD Session settings 1.0//EN" "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd">
<settings version="1.0">
    <module name="org.openide.text" spec="6.16"/>
    <instanceof class="java.awt.Component"/>
    <instanceof class="java.awt.Container"/>
    <instanceof class="java.awt.MenuContainer"/>
    <instanceof class="java.awt.image.ImageObserver"/>
    <instanceof class="java.io.Externalizable"/>
    <instanceof class="java.io.Serializable"/>
    <instanceof class="java.lang.Object"/>
    <instanceof class="javax.accessibility.Accessible"/>
    <instanceof class="javax.swing.JComponent"/>
    <instanceof class="org.openide.text.CloneableEditor"/>
    <instanceof class="org.openide.text.CloneableEditorSupport$Pane"/>
    <instanceof class="org.openide.util.HelpCtx$Provider"/>
    <instanceof class="org.openide.util.Lookup$Provider"/>
    <instanceof class="org.openide.windows.CloneableTopComponent"/>
    <instanceof class="org.openide.windows.TopComponent"/>
    <instanceof class="org.openide.windows.TopComponent$Cloneable"/>
    <serialdata class="org.openide.text.CloneableEditor">
        ACED0005737200296F72672E6F70656E6964652E77696E646F77732E546F70436F6D706F6E656E74245265706C6163657284
        874494BDDF6D6403000078707400206F72672E6F70656E6964652E746578742E436C6F6E6561626C65456469746F72737200
        0F6A6176612E6C616E672E53686F7274684D37133460DA5202000153000576616C7565787200106A6176612E6C616E672E4E
        756D62657286AC951D0B94E08B020000787000017704000000007400084D616B6566696C6574002B2F55736572732F746870
        2F4E65744265616E7350726F6A656374732F417267735F332F4D616B6566696C6571007E000670737200316F72672E6F7065
        6E6964652E77696E646F77732E436C6F6E6561626C654F70656E537570706F7274244C697374656E6572E525E314060C682D
        0200014C0003656E7674002E4C6F72672F6F70656E6964652F77696E646F77732F436C6F6E6561626C654F70656E53757070
        6F727424456E763B7872002D6F72672E6F70656E6964652E77696E646F77732E436C6F6E6561626C65546F70436F6D706F6E
        656E74245265664CED3888AC524ABC0200007870737200256F72672E6F70656E6964652E746578742E53696D706C65455324
        456E7669726F6E6D656E744BA762A1D4D7CAE70200014C0005656E74727974002B4C6F72672F6F70656E6964652F6C6F6164
        6572732F4D756C7469446174614F626A65637424456E7472793B787200266F72672E6F70656E6964652E746578742E446174
        61456469746F72537570706F727424456E76D720E894A9D2FA27020000787200236F72672E6F70656E6964652E6C6F616465
        72732E4F70656E537570706F727424456E76E525E314060C682D0200014C00036F626A7400204C6F72672F6F70656E696465
        2F6C6F61646572732F446174614F626A6563743B7870737200266F72672E6F70656E6964652E6C6F61646572732E44617461
        4F626A656374245265706C616365F7497413DEEC538E0200014C0002666F7400244C6F72672F6F70656E6964652F66696C65
        73797374656D732F46696C654F626A6563743B7870737200366F72672E6E65746265616E732E6D6F64756C65732E6D617374
        657266732E4D617374657246696C654F626A656374245265706C6163658950033C2A34E19F0200014C000470617468740012
        4C6A6176612F6C616E672F537472696E673B787074002A55736572732F7468702F4E65744265616E7350726F6A656374732F
        417267735F332F4D616B6566696C65737200306F72672E6F70656E6964652E6C6F61646572732E4D756C7469446174614F62
        6A65637424456E7472795265706C616365EB3332ABDAFB88A20200014C000466696C6571007E0013787071007E001771007E
        0011737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C75657871007E00040000
        000078
    </serialdata>
Comment 7 Thomas Preisler 2007-09-28 16:24:57 UTC
Saw a similar problem with NB Beta 1 that didn't have CND installed.

Here is what I did: I had perhaps 20 projects open in NB and several files open in editor. While NB was still open, I
removed all the projects from disk from the command line. I then closed and opened NB again and got perhaps 4 of these
kind of errors.

Will reassign to editor.
Comment 8 Thomas Preisler 2007-09-28 16:27:23 UTC
I should note that the projects I had open were Java projects.
Comment 9 Petr Hrebejk 2007-09-30 12:18:21 UTC
I really don't see any problem with editor here. You might have problem with your settings. Please do the investigation
before you assign bugs like this to editor.

Anyway the obscurity of the use case makes the bug not gualify for P1. Workaround delete the projects with project
delete  action.
Comment 10 gestalt 2007-10-03 02:17:30 UTC
update:

it happened again: after installing the mercurial plugin with a re-start. 
Luckily, another restart and the error disappered again.
Comment 11 Alexander Simon 2007-11-16 07:15:24 UTC
Is bug repeatable in RC1?
Comment 12 Jesse Grodnik 2007-12-19 19:00:37 UTC
Is defect repeatable with NetBeans 6 FCS?

Downgrading to P4 pending reply.
Comment 13 Vladimir Voskresensky 2008-11-21 13:47:32 UTC
not reproducible