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 12993 - java.io.NotSerializableException while copying from jar to package
Summary: java.io.NotSerializableException while copying from jar to package
Status: CLOSED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on: 13644
Blocks:
  Show dependency tree
 
Reported: 2001-06-19 16:00 UTC by Jan Lahoda
Modified: 2003-06-30 16:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception thrown. (8.96 KB, text/plain)
2001-06-19 16:01 UTC, Jan Lahoda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lahoda 2001-06-19 16:00:49 UTC
I tested this on following steps:
1. Have mounted some local filesystem
2. mount editor.jar (tested on editor.jar from build 200106190100)
3. create new package on local filesystem ("jar" in my case)
4. Open the jar, select both nodes (META-INF, org)
5. Perform copy on selected nodes
6. Paste the into newly created package on local filesystem

Attached excpetion is thrown and not all files are copied.
Build pilsen 010618_2.
Comment 1 Jan Lahoda 2001-06-19 16:01:43 UTC
Created attachment 1639 [details]
Exception thrown.
Comment 2 Jan Lahoda 2001-06-19 16:08:13 UTC
I forgot, some files are not copied and in output window is following text:
Warning: Object NbHTMLSettingsInitializer cannot be copied.
Warning: Object NbReaderProvider cannot be copied.
Warning: Object JCExtension cannot be copied.
Warning: Object JCLevelPanel cannot be copied.
Warning: Object JCProgressPanel cannot be copied.
Warning: Object JCStorage cannot be copied.
Warning: Object JCUpdater cannot be copied.
Warning: Object JavaIndentEngineBeanInfo cannot be copied.
Warning: Object NbJavaCompletion cannot be copied.
Warning: Object NbJavaFastImport cannot be copied.
Warning: Object NbJavaFastOpen cannot be copied.
Warning: Object NbJavaSettingsInitializer cannot be copied.
Warning: Object NbJavaSyntaxSupport cannot be copied.
Warning: Object AbbrevsEditor cannot be copied.
Warning: Object AbbrevsEditorPanel cannot be copied.
Warning: Object AllOptionsBeanInfo cannot be copied.
Warning: Object BaseOptionsBeanInfo cannot be copied.
Warning: Object BasePrintOptionsBeanInfo cannot be copied.
Warning: Object ColoringArrayEditor cannot be copied.
Warning: Object ColoringBeanBeanInfo cannot be copied.
Warning: Object ColoringEditor cannot be copied.
Warning: Object ContextOptionsListener cannot be copied.
Warning: Object HTMLOptionsBeanInfo cannot be copied.
Warning: Object HTMLPrintOptionsBeanInfo cannot be copied.
Warning: Object JavaOptionsBeanInfo cannot be copied.
Warning: Object JavaPrintOptionsBeanInfo cannot be copied.
Warning: Object KeyBindingsEditor cannot be copied.
Warning: Object KeyBindingsEditorPanel cannot be copied.
Warning: Object MacrosEditor cannot be copied.
Warning: Object MacrosEditorPanel cannot be copied.
Warning: Object OptionSupport cannot be copied.
Warning: Object PlainOptionsBeanInfo cannot be copied.
Warning: Object PlainPrintOptionsBeanInfo cannot be copied.
Warning: Object ScrollInsetsCustomEditor cannot be copied.
Warning: Object ScrollInsetsEditor cannot be copied.
Warning: Object UpgradeOptions cannot be copied.
Warning: Object NbPlainSettingsInitializer cannot be copied.
Warning: Object DORegistryListener cannot be copied.
Warning: Object FormatterIndentEngine cannot be copied.
Warning: Object FormatterIndentEngineBeanInfo cannot be copied.
Warning: Object IndentEngineFormatter cannot be copied.
Warning: Object NbDialogSupport cannot be copied.
Warning: Object NbEditorDocument cannot be copied.
Warning: Object NbEditorSettingsInitializer cannot be copied.
Warning: Object NbEditorUI cannot be copied.
Warning: Object NbEditorUtilities cannot be copied.
Warning: Object NbLocalizer cannot be copied.
Warning: Object RepositListener cannot be copied.
Warning: Object SimpleIndentEngineBeanInfo cannot be copied.
Warning: Object NbHTMLSettingsInitializer cannot be copied.
Warning: Object NbReaderProvider cannot be copied.
Warning: Object JCExtension cannot be copied.
Warning: Object JCLevelPanel cannot be copied.
Warning: Object JCProgressPanel cannot be copied.
Warning: Object JCStorage cannot be copied.
Warning: Object JCUpdater cannot be copied.
Warning: Object JavaIndentEngineBeanInfo cannot be copied.
Warning: Object NbJavaCompletion cannot be copied.
Warning: Object NbJavaFastImport cannot be copied.
Warning: Object NbJavaFastOpen cannot be copied.
Warning: Object NbJavaSettingsInitializer cannot be copied.
Warning: Object NbJavaSyntaxSupport cannot be copied.
Warning: Object AbbrevsEditor cannot be copied.
Warning: Object AbbrevsEditorPanel cannot be copied.
Warning: Object AllOptionsBeanInfo cannot be copied.
Warning: Object BaseOptionsBeanInfo cannot be copied.
Warning: Object BasePrintOptionsBeanInfo cannot be copied.
Warning: Object ColoringArrayEditor cannot be copied.
Warning: Object ColoringBeanBeanInfo cannot be copied.
Warning: Object ColoringEditor cannot be copied.
Warning: Object ContextOptionsListener cannot be copied.
Warning: Object HTMLOptionsBeanInfo cannot be copied.
Warning: Object HTMLPrintOptionsBeanInfo cannot be copied.
Warning: Object JavaOptionsBeanInfo cannot be copied.
Warning: Object JavaPrintOptionsBeanInfo cannot be copied.
Warning: Object KeyBindingsEditor cannot be copied.
Warning: Object KeyBindingsEditorPanel cannot be copied.
Warning: Object MacrosEditor cannot be copied.
Warning: Object MacrosEditorPanel cannot be copied.
Warning: Object OptionSupport cannot be copied.
Warning: Object PlainOptionsBeanInfo cannot be copied.
Warning: Object PlainPrintOptionsBeanInfo cannot be copied.
Warning: Object ScrollInsetsCustomEditor cannot be copied.
Warning: Object ScrollInsetsEditor cannot be copied.
Warning: Object UpgradeOptions cannot be copied.
Warning: Object NbPlainSettingsInitializer cannot be copied.
Warning: Object DORegistryListener cannot be copied.
Warning: Object FormatterIndentEngine cannot be copied.
Warning: Object FormatterIndentEngineBeanInfo cannot be copied.
Warning: Object IndentEngineFormatter cannot be copied.
Warning: Object NbDialogSupport cannot be copied.
Warning: Object NbEditorDocument cannot be copied.
Warning: Object NbEditorSettingsInitializer cannot be copied.
Warning: Object NbEditorUI cannot be copied.
Warning: Object NbEditorUtilities cannot be copied.
Warning: Object NbLocalizer cannot be copied.
Warning: Object RepositListener cannot be copied.
Warning: Object SimpleIndentEngineBeanInfo cannot be copied.
Warning: Object NbHTMLSettingsInitializer cannot be copied.
Warning: Object NbReaderProvider cannot be copied.
Warning: Object JCExtension cannot be copied.
Warning: Object JCLevelPanel cannot be copied.
Warning: Object JCProgressPanel cannot be copied.
Warning: Object JCStorage cannot be copied.
Warning: Object JCUpdater cannot be copied.
Warning: Object JavaIndentEngineBeanInfo cannot be copied.
Warning: Object NbJavaCompletion cannot be copied.
Warning: Object NbJavaFastImport cannot be copied.
Warning: Object NbJavaFastOpen cannot be copied.
Warning: Object NbJavaSettingsInitializer cannot be copied.
Warning: Object NbJavaSyntaxSupport cannot be copied.
Warning: Object AbbrevsEditor cannot be copied.
Warning: Object AbbrevsEditorPanel cannot be copied.
Warning: Object AllOptionsBeanInfo cannot be copied.
Warning: Object BaseOptionsBeanInfo cannot be copied.
Warning: Object BasePrintOptionsBeanInfo cannot be copied.
Warning: Object ColoringArrayEditor cannot be copied.
Warning: Object ColoringBeanBeanInfo cannot be copied.
Warning: Object ColoringEditor cannot be copied.
Warning: Object ContextOptionsListener cannot be copied.
Warning: Object HTMLOptionsBeanInfo cannot be copied.
Warning: Object HTMLPrintOptionsBeanInfo cannot be copied.
Warning: Object JavaOptionsBeanInfo cannot be copied.
Warning: Object JavaPrintOptionsBeanInfo cannot be copied.
Warning: Object KeyBindingsEditor cannot be copied.
Warning: Object KeyBindingsEditorPanel cannot be copied.
Warning: Object MacrosEditor cannot be copied.
Warning: Object MacrosEditorPanel cannot be copied.
Warning: Object OptionSupport cannot be copied.
Warning: Object PlainOptionsBeanInfo cannot be copied.
Warning: Object PlainPrintOptionsBeanInfo cannot be copied.
Warning: Object ScrollInsetsCustomEditor cannot be copied.
Warning: Object ScrollInsetsEditor cannot be copied.
Warning: Object UpgradeOptions cannot be copied.
Warning: Object NbPlainSettingsInitializer cannot be copied.
Warning: Object DORegistryListener cannot be copied.
Warning: Object FormatterIndentEngine cannot be copied.
Warning: Object FormatterIndentEngineBeanInfo cannot be copied.
Warning: Object IndentEngineFormatter cannot be copied.
Warning: Object NbDialogSupport cannot be copied.
Warning: Object NbEditorDocument cannot be copied.
Warning: Object NbEditorSettingsInitializer cannot be copied.
Warning: Object NbEditorUI cannot be copied.
Warning: Object NbEditorUtilities cannot be copied.
Warning: Object NbLocalizer cannot be copied.
Warning: Object RepositListener cannot be copied.
Warning: Object SimpleIndentEngineBeanInfo cannot be copied.
Comment 3 Jan Zajicek 2001-06-20 13:15:00 UTC
Assigning to Vita, but think that problem can be in clazz module and it's handle
copy.
Comment 4 Vitezslav Stejskal 2001-07-10 16:29:26 UTC
Reassigning to clazz module, exception is thrown from 
CompiledDataObject.handleCopy ().
Comment 5 Vitezslav Stejskal 2001-07-10 16:31:15 UTC
'Assigned to' field changed as well, sorry.
Comment 6 Svata Dedic 2001-07-17 09:39:40 UTC
In the current state, the .class file cannot be copied - the module 
serializes the default instance to the target place instead of 
copying .class file. The exception is OK as long as it does not 
appear appears in a dialog other than "Unexpected exception".
After the #13644 is implemented, serialization won't be done at all.
Comment 7 Jan Becicka 2001-07-17 09:47:49 UTC
Due to explanation, which Svata mentioned above, I'm changing 
priority. Honza, if you don't agree, please put priority back.
Comment 8 Svata Dedic 2001-08-17 16:03:03 UTC
Please verify whether it still happens. From my side, the .class 
file is disabling copy operation if it is not serializable. 
Currently Copy operation over a folder does not throw any exception, 
only the warning message is generated. The .class object itself (if 
it's not serializable) cannot be copied at all.

Comment 9 Quality Engineering 2003-06-30 16:39:57 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 10 Quality Engineering 2003-06-30 16:44:18 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.