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.
FULL PRODUCT VERSION : See System Info >System Info: Product Version = Forte for Java 4, Community Edition (Build 020624) IDE Versioning = IDE/1 spec=1.43.3 impl=020624 Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.3.1_04; Java HotSpot(TM) Client VM 1.3.1_04-b02; Sun Microsystems Inc. Java Home = C:\jdk1.3.1_04\jre System Locale; Encod. = nl_BE; Cp1252 (f4j_ce) Home Dir; Current Dir = C:\Documents and Settings\Alex Vanlerberghe; C:\forte4j\bin IDE Install; User Dir = C:\forte4j; C:\forte4j\ide_userdir CLASSPATH = C:\forte4j\lib\patches\openide- compat.jar;C:\forte4j\lib\locale\core_f4j.jar;C:\forte4j\li b\locale\core_f4j_ce.jar;C:\forte4j\lib\locale\core_f4j_ce_ ja.jar;C:\forte4j\lib\locale\core_f4j_ja.jar;C:\forte4j\lib \locale\core_ja.jar;C:\forte4j\lib\locale\openide_f4j.jar;C :\forte4j\lib\locale\openide_ja.jar;C:\forte4j\lib\locale\u pdater_ja.jar;C:\forte4j\lib\core.jar;C:\forte4j\lib\openid e.jar;C:\forte4j\lib\ext\locale\ddl_ja.jar;C:\forte4j\lib\e xt\locale\logger_ja.jar;C:\forte4j\lib\ext\bsh-1_0- fj.jar;C:\forte4j\lib\ext\cmd.jar;C:\forte4j\lib\ext\crimso n.jar;C:\forte4j\lib\ext\ddl.jar;C:\forte4j\lib\ext\fjscrip t.jar;C:\forte4j\lib\ext\jaas.jar;C:\forte4j\lib\ext\jcert. jar;C:\forte4j\lib\ext\jh.jar;C:\forte4j\lib\ext\jnet.jar;C :\forte4j\lib\ext\jsse.jar;C:\forte4j\lib\ext\logger.jar;C: \forte4j\lib\ext\parser.jar;C:\forte4j\lib\ext\pbclient.jar ;C:\forte4j\lib\ext\regexp.jar;C:\forte4j\lib\ext\terminale mulator.jar;C:\forte4j\lib\ext\xerces.jar;C:\forte4j\lib\ex t\jdbc20x.zip;C:\jdk1.3.1_04\lib\dt.jar;C:\jdk1.3.1_04 \lib\tools.jar A DESCRIPTION OF THE PROBLEM : computer just started ffj4 started opened a textfile on local disk of 26,9MB ide take some time, and displays it could not open the file. in the editor you can see a new tab has appeared for the textfile. but when clicking it to view the file a nullpointerexception occured and the IDE hangs! displaying the message to report this bug. Clicking the OK button show the same message again. STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : 1.open a large txt file (27mb or bigger) 2.ide shows message 3.confirm 4.endless loop of the same message 5.kill process to stop IDE EXPECTED VERSUS ACTUAL BEHAVIOR : The IDEshould open the textfile or alert that the txt file is to large to be handeled by the IDE i come into an endless loop every time I want to open it. The file is not corrupt or so. It opens perferctly in notepad or any other txttool ERROR MESSAGES/STACK TRACES THAT OCCUR : log file last entry: ---------------------------------------- >Log Session: woensdag 2 oktober 2002 14.15 u. CEST >System Info: Product Version = Forte for Java 4, Community Edition (Build 020624) IDE Versioning = IDE/1 spec=1.43.3 impl=020624 Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.3.1_04; Java HotSpot(TM) Client VM 1.3.1_04-b02; Sun Microsystems Inc. Java Home = C:\jdk1.3.1_04\jre System Locale; Encod. = nl_BE; Cp1252 (f4j_ce) Home Dir; Current Dir = C:\Documents and Settings\Alex Vanlerberghe; C:\forte4j\bin IDE Install; User Dir = C:\forte4j; C:\forte4j\ide_userdir CLASSPATH = C:\forte4j\lib\patches\openide- compat.jar;C:\forte4j\lib\locale\core_f4j.jar;C:\forte4j\li b\locale\core_f4j_ce.jar;C:\forte4j\lib\locale\core_f4j_ce_ ja.jar;C:\forte4j\lib\locale\core_f4j_ja.jar;C:\forte4j\lib \locale\core_ja.jar;C:\forte4j\lib\locale\openide_f4j.jar;C :\forte4j\lib\locale\openide_ja.jar;C:\forte4j\lib\locale\u pdater_ja.jar;C:\forte4j\lib\core.jar;C:\forte4j\lib\openid e.jar;C:\forte4j\lib\ext\locale\ddl_ja.jar;C:\forte4j\lib\e xt\locale\logger_ja.jar;C:\forte4j\lib\ext\bsh-1_0- fj.jar;C:\forte4j\lib\ext\classes12.jar;C:\forte4j\lib\ext\ cmd.jar;C:\forte4j\lib\ext\crimson.jar;C:\forte4j\lib\ext\d dl.jar;C:\forte4j\lib\ext\fjscript.jar;C:\forte4j\lib\ext\j aas.jar;C:\forte4j\lib\ext\jcert.jar;C:\forte4j\lib\ext\jh. jar;C:\forte4j\lib\ext\jnet.jar;C:\forte4j\lib\ext\jsse.jar ;C:\forte4j\lib\ext\logger.jar;C:\forte4j\lib\ext\mySQL_JDB C.jar;C:\forte4j\lib\ext\parser.jar;C:\forte4j\lib\ext\pbcl ient.jar;C:\forte4j\lib\ext\regexp.jar;C:\forte4j\lib\ext\t erminalemulator.jar;C:\forte4j\lib\ext\xerces.jar;C:\forte4 j\lib\ext\jdbc20x.zip;C:\jdk1.3.1_04 \lib\dt.jar;C:\jdk1.3.1_04\lib\tools.jar ----------------------------------------------------------- -------------------- Warning: the extension C:\forte4j\modules\ext\jasper-runtime.jar may be multiply loaded by modules: [C:\forte4j\modules\jsp-parser.jar, C:\forte4j\modules\tomcat40.jar] Warning: the extension C:\forte4j\modules\ext\jasper-compiler.jar may be multiply loaded by modules: [C:\forte4j\modules\jsp-parser.jar, C:\forte4j\modules\tomcat40.jar] Existing modules: Ant [org.apache.tools.ant.module/2 2.7.3 020624] Applet [org.netbeans.modules.applet/1 1.7.3 020624] Auto Update [org.netbeans.modules.autoupdate/1 2.1.2 020624] Bean Patterns [org.netbeans.modules.beans/1 1.7.3 020624] Built-in CVS Client [org.netbeans.modules.cvsclient/1 1.4.3 020624] CSS Support [org.netbeans.modules.css/1 0.2.8 020624] CVS Command-Line Client Backward Compatibility [org.netbeans.modules.vcs.cmdline.compat/1 1.0.2 020624] Classfile Closure Compiler [com.sun.forte4j.modules.depclass/1 2.1 020624] Database Explorer [org.netbeans.modules.db/1 1.5.3 020624] Database Schema (JDBC Implementation) [com.sun.forte4j.modules.dbmodel.jdbcimpl/1 1.2.1 020624] Editor [org.netbeans.modules.editor/1 1.8.3 020624] External HTML Browser [org.netbeans.modules.extbrowser/1 0.3.3 020624] F4J-J2EE Common Library [com.sun.forte4j.j2ee.lib/1 1.1 020624] File Copy [org.netbeans.modules.filecopy/1 1.6.2 020624] Form Editor [org.netbeans.modules.form/2 1.7.3 020624] Forte for Java Auto Update [org.netbeans.modules.autoupdateffj/1 1.0 020624] General Online Help [org.netbeans.modules.usersguide/1 1.9.3 020624] HTML [org.netbeans.modules.html/1 1.8.3 020624] HTTP Monitor [org.netbeans.modules.web.monitor/1 1.5.1 020624] HTTP Server [org.netbeans.modules.httpserver/1 1.7.3 020624] IDE Core [org.netbeans.core/1 1.1] Image [org.netbeans.modules.image/1 1.7.2 020624] Internationalization [org.netbeans.modules.i18n/1 1.9.3 020624] Internationalization of Form [org.netbeans.modules.i18n.form/2 1.8.3 020624] JAR Packager [org.netbeans.modules.jarpackager/2 1.9.3 020624] JDBC [org.netbeans.modules.jdbc/1 1.2.1 020624] JPDA Debugger [org.netbeans.modules.debugger.jpda/1 1.9.3 020624] JSP Parser [org.netbeans.modules.web.jspparser/1 1.0.2 020624] JSP Syntax Coloring [org.netbeans.modules.web.core.syntax/1 1.6.2 020624] JSP Tag Library Editor [org.netbeans.modules.web.taglibed/1 1.5.1 020624] JSP/Servlet [org.netbeans.modules.web.core/1 1.6.2 020624] JSP/Servlet (Advanced) [org.netbeans.modules.web.ie/1 1.6.2 020624] JSP/Servlet Breakpoint Support [org.netbeans.modules.web.debug/1 1.0.2 020624] JSP/Servlet Depl. Descriptor Editing [org.netbeans.modules.web.dd.editors/1 1.0.1 020624] Java Source Files [org.netbeans.modules.java/1 1.7.3 020624] Javadoc [org.netbeans.modules.javadoc/1 1.7.3 020624] Logger (TraceLogger) [org.netbeans.modules.logger/1 1.4.1 020624] PointBase Server [com.sun.forte4j.modules.pointbase/1 1.2.1 020624] Product Registration [com.sun.ffj.modules.registration/1 1.1 020624] Projects [org.netbeans.modules.projects/1 1.7.3 020624] Resource Bundle Syntax Coloring [org.netbeans.modules.properties.syntax/1 1.7.3 020624] Resource Bundles [org.netbeans.modules.properties/1 1.7.3 020624] Schema2Beans Library [org.netbeans.modules.schema2beans/1 1.2 020624] Sourceless Java Classes [org.netbeans.modules.clazz/1 1.8.3 020624] Text [org.netbeans.modules.text/1 1.7.3 020624] Tomcat 4.0 Server [org.netbeans.modules.web.tomcat.tomcat40/1 1.1.2 020624] Tomcat 4.0 Server Autocompilation Support [org.netbeans.modules.web.tomcat.tomcat40.autocompile/1 1.1.2 020624] Tools Debugger [org.netbeans.modules.debugger.debug/1 1.9.3 020624] User Utilities [org.netbeans.modules.utilities/1 1.7.3 020624] VCS Generic Command-Line Support [org.netbeans.modules.vcs.advanced/1 1.5.3 020624] Web module support for J2EE assembling [org.netbeans.modules.web.assemblee/1 1.0.1 020624] XML Backward Compatibility [org.netbeans.modules.xml/2 0.2.8 020624] XML Coloring Backward Compatibility [org.netbeans.modules.xml.editor.coloring/2 0.2.8 020624] XML Core [org.netbeans.modules.xml.core/1 0.2.8 020624] XML Entity Catalog [org.netbeans.modules.xml.catalog/1 0.2.8 020624] XML Productivity Tools [org.netbeans.modules.xml.tools/1 0.2.8 020624] XML Text Editor [org.netbeans.modules.xml.text/1 0.2.8 020624] XML Tree Editor [org.netbeans.modules.xml.tree/1 0.2.8 020624] *********** Exception occurred ************ Wed Oct 02 14:16:07 CEST 2002: org.openide.loaders.DataObjectNotFoundException: kszMessagesUpload.properties Annotation: Cannot read class org.netbeans.modules.properties.PropertiesOpen$PropertiesCl oneableTopComponent Annotation: Source: Windows/Components/kszMessagesUpload #005BLocal#005D.settings Annotation: 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.netbeans.modules.properties/1" spec="1.7.3"/> <instanceof class="java.awt.image.ImageObserver"/> <instanceof class="java.awt.Container"/> <instanceof class="org.openide.windows.TopComponent"/> <instanceof class="java.awt.MenuContainer"/> <instanceof class="java.awt.Component"/> <instanceof class="java.io.Serializable"/> <instanceof class="java.io.Externalizable"/> <instanceof class="javax.accessibility.Accessible"/> <instanceof class="org.openide.windows.CloneableTopComponent"/> <instanceof class="org.openide.windows.TopComponent$Cloneable"/> <instanceof class="org.netbeans.modules.properties.PropertiesOpen$Prope rtiesCloneableTopComponent"/> <instanceof class="java.lang.Object"/> <instanceof class="javax.swing.JComponent"/> <serialdata class="org.netbeans.modules.properties.PropertiesOpen$Prope rtiesCloneableTopComponent"> ACED0005737200296F72672E6F70656E6964652E77696E646F77732E546 F70436F6D706F6E656E74245265706C6163657284 874494BDDF6D64030000787074004E6F72672E6E65746265616E732E6D6 F64756C65732E70726F706572746965732E50726F 706572746965734F70656E2450726F70657274696573436C6F6E6561626 C65546F70436F6D706F6E656E747372000F6A6176 612E6C616E672E53686F7274684D37133460DA5202000153000576616C7 565787200106A6176612E6C616E672E4E756D6265 7286AC951D0B94E08B020000787000017704000000007400196B737A4D6 573736167657355706C6F6164205B4C6F63616C5D 74006D62652E66676F762E726B775F6F6E616674732E6B737A4D6573736 16765732E6B737A4D6573736167657355706C6F61 64205B70726F706572746965735D20696E2043565320433A5C50726F6A6 56374735C524B575C736F75726365735C6974696E 6572612D636F72655C737263737200296F72672E6F70656E6964652E6C6 F61646572732E446174614E6F6465244F626A6563 7448616E646C655BD0F82E01811D2E0200025A0005636C6F6E654C00036 F626A7400244C6F72672F6F70656E6964652F6669 6C6573797374656D732F46696C654F626A6563743B787000737200326F7 2672E6F70656E6964652E66696C6573797374656D 732E416273747261637446696C654F626A656374245265706C616365896 FA1BCE4B5219F0200024C000866696C654E616D65 7400124C6A6176612F6C616E672F537472696E673B4C000666734E616D6 571007E000C787074003B62652F66676F762F726B 775F6F6E616674732F6B737A4D657373616765732F6B737A4D657373616 7657355706C6F61642E70726F7065727469657374 00576F72672E6E65746265616E732E6D6F64756C65732E6A61766163767 32E4A61766143767346696C6553797374656D2043 3A5C50726F6A656374735C524B575C736F75726365735C6974696E65726 12D636F72655C7372637372002D6F72672E6F7065 6E6964652E77696E646F77732E436C6F6E6561626C65546F70436F6D706 F6E656E74245265664CED3888AC524ABC02000078 70737200266F72672E6F70656E6964652E6C6F61646572732E446174614 F626A656374245265706C616365F7497413DEEC53 8E0200014C0002666F71007E0009787071007E000D78 </serialdata> </settings> Nested annotation: kszMessagesUpload.properties java.io.IOException: kszMessagesUpload.properties at org.openide.windows.TopComponent$Replacer.readObject (TopComponent.java:797) at java.lang.reflect.Method.invoke(Native Method) at java.io.ObjectInputStream.invokeObjectReader (ObjectInputStream.java:2209) at java.io.ObjectInputStream.inputObject (ObjectInputStream.java:1406) at java.io.ObjectInputStream.readObject (ObjectInputStream.java:381) at java.io.ObjectInputStream.readObject (ObjectInputStream.java:231) [catch] at org.openide.loaders.XMLSettingsSupport$SettingsRecognizer.r eadSerial(XMLSettingsSupport.java:400) at org.openide.loaders.XMLSettingsSupport$SettingsRecognizer.i nstanceCreate(XMLSettingsSupport.java:430) at org.openide.loaders.InstanceDataObject$SettingsInstance.ins tanceCreate(InstanceDataObject.java:1218) at org.netbeans.core.windows.PersistenceManager.lookupTCInstan ce(PersistenceManager.java:350) at org.netbeans.core.windows.WindowManagerImpl.lookupTCInstanc e(WindowManagerImpl.java:877) at org.netbeans.core.windows.layers.TCRefImpl.getTopComponent (TCRefImpl.java:358) at org.netbeans.core.windows.layers.TCRefImpl.updateMode (TCRefImpl.java:198) at org.netbeans.core.windows.layers.ModeData$CookiesImpl.addCo mponents(ModeData.java:781) at org.netbeans.core.windows.layers.ModeData$CookiesImpl.updat eComponents(ModeData.java:646) at org.netbeans.core.windows.layers.ModeData$CookiesImpl.loadD ataSection(ModeData.java:1115) at org.netbeans.core.windows.layers.ModeData$CookiesImpl.updat eProperties(ModeData.java:487) at org.netbeans.core.windows.layers.ModeData$CookiesImpl.updat eAll(ModeData.java:397) at org.netbeans.core.windows.layers.ModeData$CookiesImpl.creat eInstance(ModeData.java:341) at org.netbeans.core.windows.layers.ICFolderImpl$R.run (ICFolderImpl.java:261) at org.netbeans.core.windows.layers.ICFolderImpl.instanceCreat e(ICFolderImpl.java:123) at org.netbeans.core.windows.layers.WorkspaceData$InstanceCook ieImpl.createModes(WorkspaceData.java:470) at org.netbeans.core.windows.layers.WorkspaceData$InstanceCook ieImpl.updateModes(WorkspaceData.java:407) at org.netbeans.core.windows.layers.WorkspaceData$InstanceCook ieImpl.updateAll(WorkspaceData.java:342) at org.netbeans.core.windows.layers.WorkspaceData$InstanceCook ieImpl.loadDataSection(WorkspaceData.java:667) at org.netbeans.core.windows.WorkspaceImpl.ensureSectionLoaded (WorkspaceImpl.java:958) at org.netbeans.core.windows.WorkspaceImpl.setVisible (WorkspaceImpl.java:687) at org.netbeans.core.windows.WindowManagerImpl$1.run (WindowManagerImpl.java:431) at org.netbeans.core.windows.WindowManagerImpl.setCurrentWorks pace(WindowManagerImpl.java:392) at org.netbeans.core.windows.WorkspaceImpl$1.run (WorkspaceImpl.java:468) at java.awt.event.InvocationEvent.dispatch (InvocationEvent.java:149) at java.awt.EventQueue.dispatchEvent(EventQueue.java:332) at java.awt.EventDispatchThread.pumpOneEventForHierarchy (EventDispatchThread.java:126) at java.awt.EventDispatchThread.pumpEventsForHierarchy (EventDispatchThread.java:93) at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:88) at java.awt.EventDispatchThread.run (EventDispatchThread.java:80) Wed Oct 02 14:16:07 CEST 2002: org.openide.filesystems.FileStateInvalidException: kszMessagesUpload.properties org.openide.loaders.DataObjectNotFoundException: kszMessagesUpload.properties at org.openide.loaders.DataObject.find(DataObject.java:449) at org.openide.loaders.DataNode$ObjectHandle.getNode (DataNode.java:658) at org.openide.windows.TopComponent.readExternal (TopComponent.java:526) at org.openide.windows.CloneableTopComponent.readExternal (CloneableTopComponent.java:160) at org.netbeans.modules.properties.PropertiesOpen$PropertiesCl oneableTopComponent.readExternal(PropertiesOpen.java:759) at org.openide.windows.TopComponent$Replacer.readObject (TopComponent.java:761) at java.lang.reflect.Method.invoke(Native Method) at java.io.ObjectInputStream.invokeObjectReader (ObjectInputStream.java:2209) at java.io.ObjectInputStream.inputObject (ObjectInputStream.java:1406) at java.io.ObjectInputStream.readObject (ObjectInputStream.java:381) at java.io.ObjectInputStream.readObject (ObjectInputStream.java:231) [catch] at org.openide.loaders.XMLSettingsSupport$SettingsRecognizer.r eadSerial(XMLSettingsSupport.java:400) at org.openide.loaders.XMLSettingsSupport$SettingsRecognizer.i nstanceCreate(XMLSettingsSupport.java:430) at org.openide.loaders.InstanceDataObject$SettingsInstance.ins tanceCreate(InstanceDataObject.java:1218) at org.netbeans.core.windows.PersistenceManager.lookupTCInstan ce(PersistenceManager.java:350) at org.netbeans.core.windows.WindowManagerImpl.lookupTCInstanc e(WindowManagerImpl.java:877) at org.netbeans.core.windows.layers.TCRefImpl.getTopComponent (TCRefImpl.java:358) at org.netbeans.core.windows.layers.TCRefImpl.updateMode (TCRefImpl.java:198) at org.netbeans.core.windows.layers.ModeData$CookiesImpl.addCo mponents(ModeData.java:781) at org.netbeans.core.windows.layers.ModeData$CookiesImpl.updat eComponents(ModeData.java:646) at org.netbeans.core.windows.layers.ModeData$CookiesImpl.loadD ataSection(ModeData.java:1115) at org.netbeans.core.windows.layers.ModeData$CookiesImpl.updat eProperties(ModeData.java:487) at org.netbeans.core.windows.layers.ModeData$CookiesImpl.updat eAll(ModeData.java:397) at org.netbeans.core.windows.layers.ModeData$CookiesImpl.creat eInstance(ModeData.java:341) at org.netbeans.core.windows.layers.ICFolderImpl$R.run (ICFolderImpl.java:261) at org.netbeans.core.windows.layers.ICFolderImpl.instanceCreat e(ICFolderImpl.java:123) at org.netbeans.core.windows.layers.WorkspaceData$InstanceCook ieImpl.createModes(WorkspaceData.java:470) at org.netbeans.core.windows.layers.WorkspaceData$InstanceCook ieImpl.updateModes(WorkspaceData.java:407) at org.netbeans.core.windows.layers.WorkspaceData$InstanceCook ieImpl.updateAll(WorkspaceData.java:342) at org.netbeans.core.windows.layers.WorkspaceData$InstanceCook ieImpl.loadDataSection(WorkspaceData.java:667) at org.netbeans.core.windows.WorkspaceImpl.ensureSectionLoaded (WorkspaceImpl.java:958) at org.netbeans.core.windows.WorkspaceImpl.setVisible (WorkspaceImpl.java:687) at org.netbeans.core.windows.WindowManagerImpl$1.run (WindowManagerImpl.java:431) at org.netbeans.core.windows.WindowManagerImpl.setCurrentWorks pace(WindowManagerImpl.java:392) at org.netbeans.core.windows.WorkspaceImpl$1.run (WorkspaceImpl.java:468) at java.awt.event.InvocationEvent.dispatch (InvocationEvent.java:149) at java.awt.EventQueue.dispatchEvent(EventQueue.java:332) at java.awt.EventDispatchThread.pumpOneEventForHierarchy (EventDispatchThread.java:126) at java.awt.EventDispatchThread.pumpEventsForHierarchy (EventDispatchThread.java:93) at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:88) at java.awt.EventDispatchThread.run (EventDispatchThread.java:80) Wed Oct 02 14:16:07 CEST 2002: org.openide.filesystems.FileStateInvalidException: <no message> org.openide.filesystems.FileStateInvalidException at org.openide.loaders.DataObject.find(DataObject.java:432) at org.openide.loaders.DataNode$ObjectHandle.getNode (DataNode.java:658) at org.openide.windows.TopComponent.readExternal (TopComponent.java:526) at org.openide.windows.CloneableTopComponent.readExternal (CloneableTopComponent.java:160) at org.netbeans.modules.properties.PropertiesOpen$PropertiesCl oneableTopComponent.readExternal(PropertiesOpen.java:759) at org.openide.windows.TopComponent$Replacer.readObject (TopComponent.java:761) at java.lang.reflect.Method.invoke(Native Method) at java.io.ObjectInputStream.invokeObjectReader (ObjectInputStream.java:2209) at java.io.ObjectInputStream.inputObject (ObjectInputStream.java:1406) at java.io.ObjectInputStream.readObject (ObjectInputStream.java:381) at java.io.ObjectInputStream.readObject (ObjectInputStream.java:231) [catch] at org.openide.loaders.XMLSettingsSupport$SettingsRecognizer.r eadSerial(XMLSettingsSupport.java:400) at org.openide.loaders.XMLSettingsSupport$SettingsRecognizer.i nstanceCreate(XMLSettingsSupport.java:430) at org.openide.loaders.InstanceDataObject$SettingsInstance.ins tanceCreate(InstanceDataObject.java:1218) at org.netbeans.core.windows.PersistenceManager.lookupTCInstan ce(PersistenceManager.java:350) at org.netbeans.core.windows.WindowManagerImpl.lookupTCInstanc e(WindowManagerImpl.java:877) at org.netbeans.core.windows.layers.TCRefImpl.getTopComponent (TCRefImpl.java:358) at org.netbeans.core.windows.layers.TCRefImpl.updateMode (TCRefImpl.java:198) at org.netbeans.core.windows.layers.ModeData$CookiesImpl.addCo mponents(ModeData.java:781) at org.netbeans.core.windows.layers.ModeData$CookiesImpl.updat eComponents(ModeData.java:646) at org.netbeans.core.windows.layers.ModeData$CookiesImpl.loadD ataSection(ModeData.java:1115) at org.netbeans.core.windows.layers.ModeData$CookiesImpl.updat eProperties(ModeData.java:487) at org.netbeans.core.windows.layers.ModeData$CookiesImpl.updat eAll(ModeData.java:397) at org.netbeans.core.windows.layers.ModeData$CookiesImpl.creat eInstance(ModeData.java:341) at org.netbeans.core.windows.layers.ICFolderImpl$R.run (ICFolderImpl.java:261) at org.netbeans.core.windows.layers.ICFolderImpl.instanceCreat e(ICFolderImpl.java:123) at org.netbeans.core.windows.layers.WorkspaceData$InstanceCook ieImpl.createModes(WorkspaceData.java:470) at org.netbeans.core.windows.layers.WorkspaceData$InstanceCook ieImpl.updateModes(WorkspaceData.java:407) at org.netbeans.core.windows.layers.WorkspaceData$InstanceCook ieImpl.updateAll(WorkspaceData.java:342) at org.netbeans.core.windows.layers.WorkspaceData$InstanceCook ieImpl.loadDataSection(WorkspaceData.java:667) at org.netbeans.core.windows.WorkspaceImpl.ensureSectionLoaded (WorkspaceImpl.java:958) at org.netbeans.core.windows.WorkspaceImpl.setVisible (WorkspaceImpl.java:687) at org.netbeans.core.windows.WindowManagerImpl$1.run (WindowManagerImpl.java:431) at org.netbeans.core.windows.WindowManagerImpl.setCurrentWorks pace(WindowManagerImpl.java:392) at org.netbeans.core.windows.WorkspaceImpl$1.run (WorkspaceImpl.java:468) at java.awt.event.InvocationEvent.dispatch (InvocationEvent.java:149) at java.awt.EventQueue.dispatchEvent(EventQueue.java:332) at java.awt.EventDispatchThread.pumpOneEventForHierarchy (EventDispatchThread.java:126) at java.awt.EventDispatchThread.pumpEventsForHierarchy (EventDispatchThread.java:93) at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:88) at java.awt.EventDispatchThread.run (EventDispatchThread.java:80) Core, window system warning: cannot set component with ID UploadHandler #005BLocal#005D as active in mode editor, component not present! Core, window system warning: cannot set component with ID UploadHandler #005BLocal#005D as active in mode editor, component not present! REPRODUCIBILITY : This bug can be reproduced always. CUSTOMER WORKAROUND : hmm lets guess... not opening it in forte but in notepad
This is a real problem. I'm afraid we have not resources to solve this problem in next release. There exists many related problem. Your workeround is not the best workeround. I am not sure if it is possible to open 300MB file in notepad :-). Did you try to open 27MB file on other IDE? How many peope want to open 27MB file in netbeans. Maybe we can made dirty workaround: Resolve DataOject as TooBigDataObject if FileObject is too big. Loader of TooBigDataObject will have bigger priority then others loaders. It won't be allowed to open the TBDO in editor, etc.
Well, it may not be possible to make the IDE open 30MB files in a short term, but it should be possible to handle such cases more nicely. If the IDE informs the user it could not open the file, it should also mention the reasons (e.g. "File too big"). Also, the IDE shouldn't get into an unstable state because of this. Why is the editor tab displayed at all, if the IDE knows it can't open the file? IMO, at least this part should be fixed for the next release.
There is more problems then open editor. Solve this problem only for editor case is not best idea. For example I tried to insert new class into big java file :-(... I am not sure if developers has time to fix all these use cases for 4.0 release.
Hi, just some notes: The solution with data loaders won't work. Imagine situation where you have a very big executable file. You wish NB to recognize this as a executable file a to be capable of running it, not mark it is "too big". Better solution would be that the owner of the dataobject (that usually writes something like EditorSupport) would handle this situation himself. (Of course, the OpenIDE should help him, ie. provide default implementation.) This would affect only opening in the editor (potentially other operations), but not the rest of the work. This could be relatively simple and straightforward solution. But, it also rises a few question: what will be the treshold between "small" and "large" files? a static treshold (20MB) or something like: if (Runtime.getRuntime().freeMemory() + safe_pool > file_size) { open the file? } else { System.gc(); System.gc(); if (Runtime.getRuntime().freeMemory() + safe_pool > file_size) { open the file? } else { dialog.can_not_open(); } } (But, even this is quite dangerous.)
I'll assign this bug to openide/editor.
This bug is not only in editor. Ide can crash on any action. Honzo L. why you have reasigned this bug to the editor? I described other example. Solution with Daloader can work. you can add fileobject extension filter (java,txt,xml, ...) for BigDataObject... This solution is not best. It is only workaround. But my solution solves more use cases.
Where is the mentioned NullPointerException? It is not seeing in the log. I have to try it out.
reassigne to David K., new owner of editor
I have changed version from 4.0 dev to S1S 4.2 (Nevada).
The problem is that we are using Swing document and it loads the document completely into memory, so there is not much we can do at the NetBeans side. I'm changing type of this issue to TASK. It will be umbrella issue which will depend on list of individual DEFECT or TASK issues which we can fix. I would also like to ask PERFORMANCE team to look at this issue and file additional issues which they discover. Initially I'm adding dependency on: 27563 - memory leak in editor 31302 - save is not enabled on modified large doc 31303 - warn before opening large document Whoever else feel free to add other dependencies.
Note that javax.swing.text.Document does not force you to load the whole file into memory - Tim B. has had good success with a memory-mapped document for the output window. You still need to keep a list of line start offsets, but that should be about an order of magnitude smaller than the actual file.
Please note that in order to support the not-fully-in-memory documents we will likely be forced to update constraints for certain functionality in the editor. For example current word-match Ctrl-K/L scans the contents of the current doc plus all other opened docs. This needs to be performed in fractions of second. Personally I would first concentrate on being able to swap out non-active docs (including all the corresponding info - parsed stuff etc.) saving memory for the possibly big active file. In the second round I would try to build some sort of MemMappedDocumnet implementation to swap out pieces of the possibly big active doc.
As I haven't found an appropriate update for 4.1 on the update center(...) (If there is, can you point me towards it?) Although my source file is only ~800kB (yet), the IDE starts to freeze (up?) quite quickly while editing (if I recall right, "code completion" (I don't think it would have been the "word match" feature) might trigger it ( ... faster?)) I think to recall something of (endless?) "rollback" exceptioning loop from looking in the IDE log (endless log writing?), freezing up (quite) everything, even IDE in "shutdown" (write (update) "classpath info" to persistent storage? never ends?). As Forte for Java 3 (based on Netbeans 3.x?) also starts to slow down after a while (sadly, even does eclipse) and even producing very nasty errors (error on file write -> once -> source file 0 Byte! Luckily for me the auto backup was still there and fortunately not yet 0) it is no real alternative (for the long term future) for me. Of course, I don't really know, if it really belongs to this (bug?) issue. If it really does, I^ll "vote" for this one.
No, it's completly different issue. You can file it, performance team will certainly be interested in details. (Add PERFORMANCE keyword and cc issues@performance.netbeans.org)
I have duplicated this (although older) issue to issue 98701 since that one contains more current info. *** This issue has been marked as a duplicate of 98701 ***