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.
[Nb Build 200110260100, jdk1.3.1, Linux] Fri Oct 26 11:08:48 CEST 2001: java.lang.UnsupportedOperationException: null java.io.IOException at org.openide.loaders.DataLoader.findDataObject(DataLoader.java:229) at org.openide.loaders.DataLoaderPool.findDataObject(DataLoaderPool.java:362) at org.openide.loaders.FolderList.createBoth(FolderList.java:570) at org.openide.loaders.FolderList.access$600(FolderList.java:43) at org.openide.loaders.FolderList$2.run(FolderList.java:259) at org.openide.util.Task.run(Task.java:152) [catch] at org.openide.util.RequestProcessor$ProcessorThread.run(RequestProcessor.java:611) Fri Oct 26 11:08:48 CEST 2001: java.lang.UnsupportedOperationException: null java.lang.UnsupportedOperationException at org.openide.loaders.UniFileLoader.createSecondaryEntry(UniFileLoader.java:94) at org.openide.loaders.MultiFileLoader.createSecondaryEntryImpl(MultiFileLoader.java:228) at org.openide.loaders.MultiDataObject.createSecondaryEntry(MultiDataObject.java:655) at org.openide.loaders.MultiDataObject.registerEntry(MultiDataObject.java:247) at org.openide.loaders.MultiFileLoader.handleFindDataObject(MultiFileLoader.java:101) at org.openide.loaders.DataLoader.findDataObject(DataLoader.java:219) at org.openide.loaders.DataLoaderPool.findDataObject(DataLoaderPool.java:362) at org.openide.loaders.FolderList.createBoth(FolderList.java:570) at org.openide.loaders.FolderList.access$600(FolderList.java:43) at org.openide.loaders.FolderList$2.run(FolderList.java:259) at org.openide.util.Task.run(Task.java:152) [catch] at org.openide.util.RequestProcessor$ProcessorThread.run(RequestProcessor.java:611)
Just updating the subcomponent.
This bug is in some data loader - bug it is not possible to recognize which one. This loader extends UniFileLoader, but recognized not just primary file, but also some other file. The secondary entry was trying to create and obviously failed in UniFileLoader. The debug message was added to UniFileLoader.createSecondaryEntry method. It should print the class of the problematic data loader.
I have reproduce this issue, reopen and new attachment.
Created attachment 3646 [details] java.lang.UnsupportedOperationException: Error in data loader: org.netbeans.modules.image.ImageDataLoader
Target milestone -> 3.3.1.
ImageDataLoader looks correct. The problem is probably in some bad timing in datasystem. I added more debug messages to UniFileLoader. Please reopen once more, when the exception occurs. Thanks.
Resolved for 3.4.x or earlier, no new info since then -> verified
Resolved for 3.4.x or earlier, no new info since then -> closing.
It happened again (3.5 release, Jdk 1.4.2 beta). Just once, and I cannot reproduce it. java.io.IOException: java.lang.UnsupportedOperationException: Error in data system. Please reopen the bug #17014 with the following message: DataLoader:org.apache.tools.ant.module.loader.AntProjectData Loader DataObject:org.apache.tools.ant.module.loader.AntProjectData Object@12d0a4e[xml/core/build.xml] PrimaryEntry:org.openide.loaders.FileEntry@9c57a6 PrimaryFile:xml/core/build.xml SecondaryFile:xml/core/build.xml at org.openide.loaders.DataLoader.findDataObject (DataLoader.java:243) at org.openide.loaders.DataLoaderPool.findDataObject (DataLoaderPool.java:360) at org.openide.loaders.FolderList.createBoth (FolderList.java:653) at org.openide.loaders.FolderList.getObjects (FolderList.java:464) at org.openide.loaders.FolderList.access$200 (FolderList.java:50) at org.openide.loaders.FolderList$ListTask.run (FolderList.java:829) at org.openide.util.Task.run(Task.java:136) at org.openide.util.RequestProcessor$Task.run (RequestProcessor.java:328) [catch] at org.openide.util.RequestProcessor$Processor.run (RequestProcessor.java:670) ==> java.lang.UnsupportedOperationException: Error in data system. Please reopen the bug #17014 with the following message: DataLoader:org.apache.tools.ant.module.loader.AntProjectData Loader DataObject:org.apache.tools.ant.module.loader.AntProjectData Object@12d0a4e[xml/core/build.xml] PrimaryEntry:org.openide.loaders.FileEntry@9c57a6 PrimaryFile:xml/core/build.xml SecondaryFile:xml/core/build.xml at org.openide.loaders.UniFileLoader.createSecondaryEntry (UniFileLoader.java:109) at org.openide.loaders.MultiFileLoader.createSecondaryEntryImpl (MultiFileLoader.java:228) at org.openide.loaders.MultiDataObject.createSecondaryEntry (MultiDataObject.java:784) at org.openide.loaders.MultiDataObject.registerEntry (MultiDataObject.java:303) at org.openide.loaders.MultiFileLoader.handleFindDataObject (MultiFileLoader.java:101) at org.openide.loaders.DataLoader.findDataObject (DataLoader.java:233) at org.openide.loaders.DataLoaderPool.findDataObject (DataLoaderPool.java:360) at org.openide.loaders.FolderList.createBoth (FolderList.java:653) at org.openide.loaders.FolderList.getObjects (FolderList.java:464) at org.openide.loaders.FolderList.access$200 (FolderList.java:50) at org.openide.loaders.FolderList$ListTask.run (FolderList.java:829) at org.openide.util.Task.run(Task.java:136) at org.openide.util.RequestProcessor$Task.run (RequestProcessor.java:328) [catch] at org.openide.util.RequestProcessor$Processor.run (RequestProcessor.java:670)
wokkel: you should add yourself to CC: otherwise you will not learn about any comments or bug status changes. Unfortunately, I have to agree with Petr Hamernik saying "The problem is probably in some bad timing in datasystem.". The current DS is known to have problems like this. If a reproducible case is found then we can fix it. Without it there is not much I can do because current code is very fragile and any improvement is rewarded with couple of new bugs. Will be solved by DS rewrite. Closing as WONTFIX. Feel free to reopen if you have reproducible case and it is causing serious (ie. P2) problems.
Without reproducible case, we can't do more - verifying.
*** Issue 52530 has been marked as a duplicate of this issue. ***
Reopen per instruction in the stack trace. Please see issue 52530 for test case. java.io.IOException: java.lang.UnsupportedOperationException: Error in data system. Please reopen the bug #17014 with the following message: DataLoader:org.netbeans.modules.j2ee.deployment.config.ConfigDataLoader DataObject:org.netbeans.modules.j2ee.deployment.config.SecondaryConfigDataObject@909918[MasterFileObject@167264e[file:/opt/J2EE/projects/NewRoster/src/conf/sun-cmp-mappings.xml]] PrimaryEntry:org.openide.loaders.FileEntry@167264e PrimaryFile:MasterFileObject@167264e[file:/opt/J2EE/projects/NewRoster/src/conf/sun-cmp-mappings.xml] SecondaryFile:AbstractFileObject@19b35e1[jar:file:/opt/J2EE/projects/NewRoster/dist/NewRoster.jar!/META-INF/sun-cmp-mappings.xml]
I copied icon from Source package to Test package node and then open EJB module jar in file tab and got attached exception. NB 20050106
Created attachment 19558 [details] stack trace
java.io.IOException: java.lang.UnsupportedOperationException: Error in data system. Please reopen the bug #17014 with the following message: DataLoader:org.netbeans.modules.j2ee.deployment.config.ConfigDataLoader DataObject:org.netbeans.modules.j2ee.deployment.config.SecondaryConfigDataObject@1c4710c[MasterFileObject@b7522c[file:/E:/workarea/Java/LearnEJB_Realestate/src/conf/sun-cmp-mappings.xml]] PrimaryEntry:org.openide.loaders.FileEntry@b7522c PrimaryFile:MasterFileObject@b7522c[file:/E:/workarea/Java/LearnEJB_Realestate/src/conf/sun-cmp-mappings.xml] SecondaryFile:MasterFileObject@1a7491e[file:/E:/workarea/Java/LearnEJB_Realestate/build/jar/META-INF/sun-cmp-mappings.xml] at org.openide.loaders.DataLoader.findDataObject(DataLoader.java:360) at org.openide.loaders.DataLoaderPool.findDataObject(DataLoaderPool.java:378) at org.openide.loaders.FolderList.createBoth(FolderList.java:698) at org.openide.loaders.FolderList.getObjects(FolderList.java:509) at org.openide.loaders.FolderList.access$200(FolderList.java:50) at org.openide.loaders.FolderList$ListTask.run(FolderList.java:877) at org.openide.util.Task.run(Task.java:189) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:721) ==> java.lang.UnsupportedOperationException: Error in data system. Please reopen the bug #17014 with the following message: DataLoader:org.netbeans.modules.j2ee.deployment.config.ConfigDataLoader DataObject:org.netbeans.modules.j2ee.deployment.config.SecondaryConfigDataObject@1c4710c[MasterFileObject@b7522c[file:/E:/workarea/Java/LearnEJB_Realestate/src/conf/sun-cmp-mappings.xml]] PrimaryEntry:org.openide.loaders.FileEntry@b7522c PrimaryFile:MasterFileObject@b7522c[file:/E:/workarea/Java/LearnEJB_Realestate/src/conf/sun-cmp-mappings.xml] SecondaryFile:MasterFileObject@1a7491e[file:/E:/workarea/Java/LearnEJB_Realestate/build/jar/META-INF/sun-cmp-mappings.xml] at org.openide.loaders.UniFileLoader.createSecondaryEntry(UniFileLoader.java:109) at org.openide.loaders.MultiFileLoader.createSecondaryEntryImpl(MultiFileLoader.java:228) at org.openide.loaders.MultiDataObject.createSecondaryEntry(MultiDataObject.java:783) at org.openide.loaders.MultiDataObject.registerEntry(MultiDataObject.java:301) at org.openide.loaders.MultiFileLoader.handleFindDataObject(MultiFileLoader.java:101) at org.openide.loaders.DataObjectPool.handleFindDataObject(DataObjectPool.java:111) at org.openide.loaders.DataLoader.findDataObject(DataLoader.java:350) at org.openide.loaders.DataLoaderPool.findDataObject(DataLoaderPool.java:378) at org.openide.loaders.FolderList.createBoth(FolderList.java:698) at org.openide.loaders.FolderList.getObjects(FolderList.java:509) at org.openide.loaders.FolderList.access$200(FolderList.java:50) at org.openide.loaders.FolderList$ListTask.run(FolderList.java:877) at org.openide.util.Task.run(Task.java:189) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:721)
The issue 52530 is pretty strange, and probably contains bug in itself. I've asked the owner to help us produce testcase, meanwhile this works for us.
happend again with build 200503172015
Was the error message the same?
closed
Please re-open this issue. We have been facing this issue reglarly in the 3.6 version of NetBeans (on a windows platform). We have extended the IDE for our application for which the cut-paste operation of our multidataobjects FAIL. The application hangs when the application is thrown. Here is the attached exception. *********** Exception occurred ************ at Tue Aug 09 12:47:40 GMT+05:30 2005 java.io.IOException: java.lang.UnsupportedOperationException: Error in data system. Please reopen the bug #17014 with the following message: DataLoader:com.huawei.iweb.report.client.td.nb.TemplateDataLoader DataObject:com.huawei.iweb.report.client.td.nb.TemplateDataObject@ceb8e2 [Templates/Table_Intermediate.xml] PrimaryEntry:com.huawei.iweb.report.client.td.nb.TemplateDataLoader$LayoutFileEn try@1d17f01 PrimaryFile:Templates/Table_Intermediate.xml SecondaryFile:Templates/Table/Table_Intermediate.xml at org.openide.loaders.DataLoader.findDataObject(DataLoader.java:243) at org.openide.loaders.DataLoaderPool.findDataObject (DataLoaderPool.java:365) [catch] at org.openide.loaders.FolderList.createBoth(FolderList.java:690) at org.openide.loaders.FolderList.access$600(FolderList.java:50) at org.openide.loaders.FolderList$2.run(FolderList.java:323) at org.openide.util.Task.run(Task.java:136) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330) at org.openide.util.RequestProcessor$Processor.run (RequestProcessor.java:686) ==> java.lang.UnsupportedOperationException: Error in data system. Please reopen the bug #17014 with the following message: DataLoader:com.huawei.iweb.report.client.td.nb.TemplateDataLoader DataObject:com.huawei.iweb.report.client.td.nb.TemplateDataObject@ceb8e2 [Templates/Table_Intermediate.xml] PrimaryEntry:com.huawei.iweb.report.client.td.nb.TemplateDataLoader$LayoutFileEn try@1d17f01 PrimaryFile:Templates/Table_Intermediate.xml SecondaryFile:Templates/Table/Table_Intermediate.xml at org.openide.loaders.UniFileLoader.createSecondaryEntry (UniFileLoader.java:109) at org.openide.loaders.MultiFileLoader.createSecondaryEntryImpl (MultiFileLoader.java:228) at org.openide.loaders.MultiDataObject.createSecondaryEntry (MultiDataObject.java:783) at org.openide.loaders.MultiDataObject.registerEntry (MultiDataObject.java:301) at org.openide.loaders.MultiFileLoader.handleFindDataObject (MultiFileLoader.java:101) at org.openide.loaders.DataObjectPool.handleFindDataObject (DataObjectPool.java:111) at org.openide.loaders.DataLoader.findDataObject(DataLoader.java:233) at org.openide.loaders.DataLoaderPool.findDataObject (DataLoaderPool.java:365) [catch] at org.openide.loaders.FolderList.createBoth(FolderList.java:690) at org.openide.loaders.FolderList.access$600(FolderList.java:50) at org.openide.loaders.FolderList$2.run(FolderList.java:323) at org.openide.util.Task.run(Task.java:136) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330) at org.openide.util.RequestProcessor$Processor.run (RequestProcessor.java:686) This issue is repoducible very easily in the 3.6 - Windows platform combo.
Target milestone is 4.1. Which means if you see this issue in older versions than 4.1 there is nothing to do with it.
New info from achyuthkrishna: I am performing a cut-paste operation. 1) This operation is being done from a parent folder to a sub-folder and back i.e Cut from the parent and paste in the sub-folder.....cut the same from the sub-folder and paste into the parent folder. 2) No, I am not deleting or creating anything. I am simply using the cut-paste functionality provided by the IDE. 3) The fileobjects that I deal with are representations of normal xml files. Here is your reproducible case: 1) Cut files from a parent folder (more than 4, not a single file) 2) Paste in any sub folder 3) Cut the same from the sub-folder 4) Paste it back to the parent folder. 5) Repeat this operation about 3-4 times. The exception occurs.
I agree that there is something strange happening, but I need your help on this. Please run your ide with -Dorg.openide.loaders=-1 and if you get the failure, please attache your log into this issue. I've enhanced the logging, so in current trunk the data is going to be much more valuable: /cvs/openide/loaders/src/org/openide/loaders/DataLoader.java,v <-- DataLoader.java new revision: 1.11; previous revision: 1.10 done Checking in loaders/src/org/openide/loaders/MultiFileLoader.java; /cvs/openide/loaders/src/org/openide/loaders/MultiFileLoader.java,v <-- MultiFileLoader.java new revision: 1.4; previous revision: 1.3
I just reproduced the test case in Issue 52530 in the NB 5 beta build. I tried to run with the option you mentioned, but got "Ignored unknown option: -Dorg.openide.loaders=-1"
-J-Dorg.openide.loaders=-1
Oops, sorry - forgot how to do that =). Anyway, I reproduced it and will attach the log.
Created attachment 25379 [details] jarred up log file
Inspite of the message the log shows that the problem is in DataLoader:org.netbeans.modules.j2ee.sun.share.config.ConfigDataLoader DataObject:org.netbeans.modules.j2ee.sun.share.config.SecondaryConfigDataObject@bac7f3 [MasterFileObject@16a94d2[file:/tmp/EJBModule1/src/conf/sun-cmp-mappings.xml]] Which seem to do some wild things. Reassigning to the new module. At least tell me what wild things you do.
-> sunappserv
ConfigDataLoader is a unifile loader for each of two types of files: Primary configuration files (sun-web.xml, sun-ejb-jar.xml, etc.) and secondary configuration files (only sun-cmp-mappings.xml). The implementation is more convoluted than necessary because of it's origins in j2eeserver and being server independent at that time. Related to this however, I found some coding in ConfigDataLoader.findPrimaryFile() that could conceivably return a non-null FileObject that was not the FileObject passed in which I suspect breaks this method's implementation contract as UniFileLoader. This situation would only affect files named "sun-cmp-mappings.xml" and only when the FileObject passed in was not in the modules configuration directory. But this is exactly the situation described in Rochelle's bug report (where the "primary" is the real primary and the secondary is a file of the same name from the distribution jar.)
I reproduced Rochelle's occurence of this message and confirmed that fixing the implementation of findPrimaryFile() in ConfigDataLoader as described above resolved the issue. Closing as fixed. Diffs: http://serverplugins.netbeans.org/source/browse/serverplugins/sun/sunddui/src/org/netbeans/modules/j2ee/sun/share/config/ConfigDataLoader.java?r1=1.2&r2=1.3
Verified in #200603280200.
Created attachment 64320 [details] The data and messages.log of Exception 75098
I've got Exception 75098, build #200807101204. It says: java.io.IOException: java.lang.UnsupportedOperationException: Error in data system. Please reopen the bug #17014 with the following message: DataLoader:org.netbeans.modules.xsl.XSLDataLoader DataObject:org.netbeans.modules.xsl.XSLDataObject@1a2801e[C:\Documents and Settings\vimi\My Documents\_Projects\sandbox\test\xsltcaching\XslUpdateWatchdogUtilImplTest_xsl1_2_2.xsl] PrimaryEntry:org.netbeans.modules.xml.XMLDataLoader$XMLFileEntry@3bbd32 PrimaryFile:C:\Documents and Settings\vimi\My Documents\_Projects\sandbox\test\xsltcaching\XslUpdateWatchdogUtilImplTest_xsl1_2_2.xsl SecondaryFile:C:\Documents and Settings\vimi\My Documents\_Projects\sandbox\test\xsltcaching\watchdog\XslUpdateWatchdogUtilImplTest_xsl1_2_2.xsl
new message, new component -> moving to XML
Changed target milestone.
I'm not able to reproduce this bug. I've extracted all files from the attached .zip-file "exception_75098_data_msgs_log.zip" and I've opened all of them in NB (see the build number below) without any exceptions in the file "messages.log": Product Version: NetBeans IDE 6.1 (Build 200810140114) Java: 1.5.0_14; Java HotSpot(TM) Client VM 1.5.0_14-b03 System: Windows XP version 5.1 running on x86;
UnsupportedOperationException: Error in data system. Please reopen the bug #17014 with the following message: DataLoader:org.netbeans.modules.csl.core.GsfDataLoader DataObject:org.netbeans.modules.csl.core.GsfDataObject@1c901a7[D:\Users\Development\phpMyBills\setup2.php@f60af149:110c391] PrimaryEntry:org.netbeans.modules.csl.core.GsfDataLoader$1@110c391 PrimaryFile:D:\Users\Development\phpMyBills\setup2.php@f60af149:110c391 SecondaryFile:D:\Users\Development\phpMyBills\installer\setup2.php@9c3ab7fd:12db691[invalid] http://statistics.netbeans.org/analytics/exception.do?id=676348
New bug id Bug #231225
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss