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 18877

Summary: CNFE when importing data from FFJ3.0CE into Orion builds
Product: xml Reporter: Jan Zajicek <jzajicek>
Component: CodeAssignee: _ lkramolis <lkramolis>
Status: CLOSED WORKSFORME    
Severity: blocker    
Priority: P3    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: stacktrace
new stacktrace

Description Jan Zajicek 2001-12-20 16:13:01 UTC
java.lang.ClassNotFoundException: org.netbeans.modules.xml.tree.TreeNode

This exception occurs when deserializing data from from FFJ3.0CE into Orion build.
Comment 1 Jan Zajicek 2001-12-20 16:16:31 UTC
Ops ;-) Module should be XML.
Comment 2 _ lkramolis 2001-12-20 16:34:27 UTC
Please, could you attach whole stack to know where and when was this
exception thrown.
Comment 3 Jan Zajicek 2002-01-09 12:02:18 UTC
In the FFJ3.0CE (010523_2) build just serialized following objects
XMLSettings and BasicNodeView and try read them in the Orion builds.
I'll attach stacktrace, but it doesn't help because there is code from
my tests. Relevant is only the last line - CNFE.
Comment 4 Jan Zajicek 2002-01-09 12:04:14 UTC
Created attachment 4026 [details]
stacktrace
Comment 5 _ lkramolis 2002-01-09 17:13:36 UTC
No stack trace contains CNFE about XMLSettings and first report
message contains info abou TreeNode. ???

It is hard to find where problem is, when I do not see regular stacktrace.

Q: Do you have enabled XML Backward Combatability modules (xml.jar,
xml-syntax.jar)?
Comment 6 _ lkramolis 2002-01-09 17:20:21 UTC
Typo: first word 'No' had to be 'Now', sorry.
Comment 7 _ lkramolis 2002-01-10 11:08:09 UTC
If you find better test case, please, reopen this issue.
Comment 8 Jan Zajicek 2002-01-10 16:38:20 UTC
Sorry wrong exception pasted. Will attach the right one. 

Yes, the backward compatibility module is present (attached stacktrace
is from test executed in ffjce build #020109_1)
Comment 9 Jan Zajicek 2002-01-10 16:41:48 UTC
Created attachment 4083 [details]
new stacktrace
Comment 10 _ lkramolis 2002-01-10 17:06:22 UTC
TreeNode changed package:
    ffj3.0 - org.netbeans.modules.xml.tree.TreeNode
    nb3.3  - org.netbeans.tax.TreeNode

This tranformation is described in org.openide.util.packages.txt and
used by org.openide.util.Utilities.translate method. This method is
used while IDE deserialization - org.openide.util.io.NbObjectInputStream.

Try to use this class with your tests, I hope this resolve this
problem. Thanks.
Comment 11 Martin Schovanek 2002-07-24 14:26:42 UTC
VERIFIED
Comment 12 Quality Engineering 2003-07-02 08:39:00 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.