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 8483 - forte4j startup issues ClassCastException :org.netbeans.core.ToolbarFolderNode
Summary: forte4j startup issues ClassCastException :org.netbeans.core.ToolbarFolderNode
Status: CLOSED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: Other Other
: P1 blocker (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-11-20 19:25 UTC by bord
Modified: 2008-12-23 10:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bord 2000-11-20 19:25:50 UTC
when i run following I get the error at bottom (see trace output for OS,
version, etc. particulars)
>ksh -x forte4j
.
.
.
+ eval /usr/java_dev2/jre/sh/java -Xmx96m -Xss1024k -Dnetbeans.home=/usr/forte4j
 -Djava.security.policy=/usr/forte4j/bin/forte4j.policy -classpath "/usr/forte4j
/lib/ext/AbsoluteLayout.jar:/usr/forte4j/lib/ext/javac.jar:/usr/forte4j/lib/ext/
jh.jar:/usr/forte4j/lib/ext/regexp.jar:/usr/forte4j/lib/ext/servlet.jar:/usr/for
te4j/lib/ext/sun-util.jar:/usr/forte4j/lib/ext/xml.jar:/usr/forte4j/lib:/usr/for
te4j/lib/developer.jar:/usr/forte4j/lib/openide.jar:/usr/forte4j/lib/updater.jar
:/usr/java_dev2/jre/lib/i18n.jar:/usr/java_dev2/jre/lib/javaplugin.jar:/usr/java
_dev2/jre/lib/rt.jar:/usr/java_dev2/jre/lib/*.zip" org.netbeans.core.Main
+ /usr/java_dev2/jre/sh/java -Xmx96m -Xss1024k -Dnetbeans.home=/usr/forte4j -Dja
va.security.policy=/usr/forte4j/bin/forte4j.policy -classpath /usr/forte4j/lib/e
xt/AbsoluteLayout.jar:/usr/forte4j/lib/ext/javac.jar:/usr/forte4j/lib/ext/jh.jar
:/usr/forte4j/lib/ext/regexp.jar:/usr/forte4j/lib/ext/servlet.jar:/usr/forte4j/l
ib/ext/sun-util.jar:/usr/forte4j/lib/ext/xml.jar:/usr/forte4j/lib:/usr/forte4j/l
ib/developer.jar:/usr/forte4j/lib/openide.jar:/usr/forte4j/lib/updater.jar:/usr/
java_dev2/jre/lib/i18n.jar:/usr/java_dev2/jre/lib/javaplugin.jar:/usr/java_dev2/
jre/lib/rt.jar:/usr/java_dev2/jre/lib/*.zip org.netbeans.core.Main
-- System info ----------------------------------------------------------------
  Product Version          = Forte for Java, CE v. 1.0 Update Release 2 (Build 8
49)
  IDE Versioning           = IDE/1 spec=1.0.5 impl=Build 849
  Operating System         = AIX Version 4.3 Running on ppc
  Java Version             = 1.2.2
  Java VM Version          = Classic VM 1.2.2
  Java Vendor              = IBM Corporation
  Java Vendor URL          = http://www.ibm.com/
  Java Home                = /usr/java_dev2/jre/sh/..
  Java Class Version       = 46.0
  System Locale            = en_US
  JIT                      = jitc
  Home Dir                 = /iscp/apd/bord
  Current Directory        = /tmp_mnt/iscp/apd/bord/256/exper/java/forte
  Forte for Java Home      = /usr/forte4j
  Forte for Java User Home = /usr/forte4j
  System Directory         = /usr/forte4j/system
  CLASSPATH                = /usr/forte4j/lib/ext/AbsoluteLayout.jar:/usr/forte4
j/lib/ext/javac.jar:/usr/forte4j/lib/ext/jh.jar:/usr/forte4j/lib/ext/regexp.jar:
/usr/forte4j/lib/ext/servlet.jar:/usr/forte4j/lib/ext/sun-util.jar:/usr/forte4j/
lib/ext/xml.jar:/usr/forte4j/lib:/usr/forte4j/lib/developer.jar:/usr/forte4j/lib
/openide.jar:/usr/forte4j/lib/updater.jar:/usr/java_dev2/jre/lib/i18n.jar:/usr/j
ava_dev2/jre/lib/javaplugin.jar:/usr/java_dev2/jre/lib/rt.jar:/usr/java_dev2/jre
/lib/*.zip
-------------------------------------------------------------------------------
[INFO] Loaded modules: org.netbeans.modules.clazz/1 (1.1/849); org.netbeans.modu
les.html/1 (1.1/849); org.netbeans.modules.httpserver/1 (1.1/849); org.netbeans.
modules.icebrowser/1 (1.1/849); org.netbeans.modules.image/1 (1.1/849); org.netb
eans.modules.text/1 (1.1/849); org.netbeans.modules.usersguide/1 (1.1/unspec); o
rg.netbeans.modules.vcs.cmdline/1 (1.2/849); org.openidex.util/1 (1.1/849); org.
netbeans.modules.autoupdate/1 (1.1/849); org.netbeans.modules.debugger.core/1 (1
.1.3/849); org.netbeans.modules.applet/1 (1.1/849); org.netbeans.modules.debugge
r.debug/1 (1.2/849); org.netbeans.modules.debugger.jpda/1 (1.2/849); org.netbean
s.modules.editor/1 (1.2/849); org.netbeans.modules.java/1 (1.1.1/849); org.netbe
ans.modules.beans/1 (1.1/849); org.netbeans.modules.form/1 (1.2/849); org.netbea
ns.modules.javadoc/1 (1.1/849); org.netbeans.modules.objectbrowser/1 (1.1/849);
org.netbeans.modules.projects/1 (1.1/849); org.netbeans.modules.utilities/1 (1.2
/849); org.netbeans.modules.web.core/1 (1.1.6/849)
Exception in thread "main" java.lang.ClassCastException: org.netbeans.core.Toolb
arFolderNode
        at org.openide.modules.ManifestSection$NodeSection.getNode(ManifestSecti
on.java:532)
        at org.netbeans.core.ModuleItem$InstallIterator.processNode(ModuleItem.j
ava:570)
        at org.openide.modules.ManifestSection$NodeSection.invokeIterator(Manife
stSection.java:549)
        at org.openide.modules.ModuleDescription.forEachSection(ModuleDescriptio
n.java:324)
        at org.netbeans.core.ModuleInstaller.installIDEManifest(ModuleInstaller.
java:677)
        at org.netbeans.core.ModuleInstaller.initialize(ModuleInstaller.java:157
)
        at org.netbeans.core.Main.main(Main.java:502)
Comment 1 Jesse Glick 2000-11-20 21:16:59 UTC
How can this be reproduced? It looks like it might be a JDK bug to me. Have you
tried running with the JIT turned off? This segment of code is run by all
versions of the IDE on all different platforms, and it is never a problem except
apparently for you, so I am guessing there is a bug in the virtual machine.

In fact org.netbeans.core.ToolbarFolderNode does extend org.openide.nodes.Node
and always has; the ClassCastException is a mistake. I am guessing that the VM
is confused by the legal though unusual use of the object.super(args)
construction in the ToolbarFolderNode constructor; its superclass,
DataFolder.FolderNode, is a nonstatic inner class of DataFolder, so the
ToolbarFolderNode constructor takes a DataFolder as argument and calls
folder.super(...somestuff...). The JLS permits this funny syntax for
completeness though it is very rare in practice. I suggest you attempt to
reproduce and file a VM bug against the AIX Java port, or of course reopen this
bug if you are sure it is something wrong in NetBeans.
Comment 2 Quality Engineering 2003-07-01 16:03:56 UTC
Resolved for 3.4.x or earlier, no new info since then -> verified.

Comment 3 Quality Engineering 2003-07-01 16:28:15 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.