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 13884 - ClassCastExceptionException when opening 'Other Properties' FormPropertyEditor
Summary: ClassCastExceptionException when opening 'Other Properties' FormPropertyEditor
Status: CLOSED INVALID
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: -FFJ-
Hardware: PC Windows ME/2000
: P4 blocker (vote)
Assignee: issues@www
URL:
Keywords:
: 18207 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-07-24 15:57 UTC by peterp
Modified: 2005-03-09 04:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
files to reproduce the problem (5.62 KB, application/octet-stream)
2001-07-24 15:58 UTC, peterp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description peterp 2001-07-24 15:57:48 UTC
SYSINFO: >Log Session: Monday, July 16, 2001 10:30:48 AM EDT
>System Info: 
  Product Version = Forte for Java, CE v. 3.0 (Build 010523)
  IDE Versioning = IDE/1 spec=1.2.1 impl=010523
  Operating System = Windows NT version 4.0 running on x86
  Java; VM; Vendor = 1.3.1; Java HotSpot(TM) Client VM 1.3.1-b24; Sun 
Microsystems Inc.
  Java Home = C:\JDK13~1.1\jre
  System Locale = en_US (f4j_ce)
  Home Dir; Current Dir = C:\WINNT\Profiles\mores; C:\forte
  IDE Install; User Dir = C:\forte; c:\forte_settings
  CLASSPATH = C:\forte\lib\patches\openide-compat.jar;C:\forte\l 
ib\locale\core_f4j.jar;C:\forte\lib\locale\core_f4 
j_ce.jar;C:\forte\lib\locale\openide_f4j.jar;C:\fo 
rte\lib\core.jar;C:\forte\lib\openide-fs.jar;C:\fo rte\lib\openide-
nodes.jar;C:\forte\lib\openide-uti 
l.jar;C:\forte\lib\openide.jar;C:\forte\lib\ext\bs h-1_0-
fj.jar;C:\forte\lib\ext\cmd.jar;C:\forte\lib 
\ext\cosnaming.jar;C:\forte\lib\ext\dd2beans.jar;C :\forte\lib\ext\ddl.jar;C:\fo
rte\lib\ext\fjscript. jar;C:\forte\lib\ext\fscontext.jar;C:\forte\lib\ex 
t\idlcompilers.jar;C:\forte\lib\ext\jaas.jar;C:\fo 
rte\lib\ext\jaxp.jar;C:\forte\lib\ext\jh.jar;C:\fo 
rte\lib\ext\jndi.jar;C:\forte\lib\ext\ldap.jar;C:\ 
forte\lib\ext\ldapbp.jar;C:\forte\lib\ext\logger.j 
ar;C:\forte\lib\ext\nis.jar;C:\forte\lib\ext\openo rb-
1.0.2.jar;C:\forte\lib\ext\parser.jar;C:\forte\ 
lib\ext\pbembeddedeval.jar;C:\forte\lib\ext\provid 
erutil.jar;C:\forte\lib\ext\regexp.jar;C:\forte\li b\ext\rmi-
ext.jar;C:\forte\lib\ext\rmiregistry.jar ;C:\forte\lib!
\ext\sax2.jar;C:\forte\lib\ext\servlet.jar;C:\fort 
e\lib\ext\xerces.jar;C:\forte\lib\ext\jdbc20x.zip; C:\JDK13~1.1
\lib\dt.jar;C:\JDK13~1.1\lib\tools.jar 
-------------------------------------------------- -----------------------------
[INFO] Loaded modules: org.netbeans.core/1 (1.0/unspec); 
com.sun.forte4j.modules.pointbase/1 (1.1/010523); org.apache.tools.ant.module/2 
(2.2.1/010523); org.netbeans.modules.autoupdate/1 (2.0/010523); 
org.netbeans.modules.clazz/1 (1.6.1/010523); org.netbeans.modules.db/1 
(1.3/010523); com.sun.forte4j.modules.dbmodel.jdbcimpl/1 (1.1/010523); 
org.netbeans.modules.debugger.core/2 (2.0.1/010523); 
org.netbeans.modules.applet/1 (1.6.1/010523); 
org.netbeans.modules.debugger.debug/1 (1.8.1/010523); 
org.netbeans.modules.debugger.jpda/1 (1.8.1/010523); 
org.netbeans.modules.editor/1 (1.7.1/010523); 
org.netbeans.modules.corba.idl.editor/1 (1.1/010523); 
org.netbeans.modules.filecopy/1 (1.3/010523); org.netbeans.modules.html/1 
(1.7.1/010523); org.netbeans.modules.httpserver/1 (1.6.1/010523); 
org.netbeans.modules.extbrowser/1 (0.2.1/010523); 
org.netbeans.modules.icebrowser/1 (1.6.1/010523); org.netbeans.modules.image/1 
(1.6.1/010523); org.netbeans.modules.jarpackager/2 (1.6.1/010523); org.!
netbeans.modules.java/1 (1.6.1/010523); org.netbeans.modules.beans/1 
(1.6.1/010523); org.netbeans.modules.corba/1 (1.3/010523); 
org.netbeans.modules.form/2 (1.6.1/010523); org.netbeans.modules.javadoc/1 
(1.6.1/010523); org.netbeans.modules.jndi/1 (1.4/010523); 
org.netbeans.modules.logger/1 (1.2/010523); com.sun.forte4j.modules.depclass/1 
(1.0/010523); org.netbeans.modules.objectbrowser/1 (1.6.1/010523); 
org.netbeans.modules.projects/1 (1.6.1/010523); 
org.netbeans.modules.properties/1 (1.6.1/010523); org.netbeans.modules.i18n/1 
(1.7/010523); org.netbeans.modules.i18n.form/2 (1.7/010523); 
org.netbeans.modules.jdbc/1 (1.1/010523); 
org.netbeans.modules.properties.syntax/1 (1.6.1/010523); 
org.netbeans.modules.text/1 (1.6.1/010523); org.netbeans.modules.usersguide/1 
(1.7.1/010523); org.openidex.util/1 (1.7.1/010523); 
org.netbeans.modules.j2eeserver/1 (1.1.1/010523); 
org.netbeans.modules.utilities/1 (1.6.1/010523); com.sun.forte4j.j2ee.lib/1 
(0.2/010523); org.netbeans.modules.apisu!
pport.lite/1 (0.1.1/010523); org.netbeans.modules.rmi/1 (1.3.1/010523); 
org.netbeans.modules.vcscore/1 (1.4.1/010523); org.netbeans.modules.cvsclient/1 
(1.3.1/010523); org.netbeans.modules.vcs.advanced/1 (1.4.1/010523); 
org.netbeans.modules.vcs.cmdline/1 (1.7.1/010523)
WARNING: C:\JDK13~1.1\jre\classes cannot be opened
org.openide.filesystems.FSException: Root C:\JDK13~1.1\jre\classes does not 
exist.
*********** Exception occurred ************
Mon Jul 16 10:32:26 EDT 2001: java.lang.ClassCastException: java.lang.Object
Annotation: Exception in org.netbeans.modules.form.FormPropertyEditor Property 
Editor.
java.lang.ClassCastException: java.lang.Object
        at sun.beans.editors.BoolEditor.getAsText(BoolEditor. java:33)
        at org.netbeans.modules.form.FormPropertyEditor.getAs Text
(FormPropertyEditor.java:170)
[catch] at org.openide.explorer.propertysheet.PropertyDisplay 
er.getReaderComponent(PropertyDisplayer.java:405)< BR>         at 
org.openide.explorer.propertysheet.PropertyDisplay er.setValue
(PropertyDisplayer.java:233)
        at org.openide.explorer.propertysheet.PropertyDisplay er.<init>
(PropertyDisplayer.java:167)
        at org.openide.explorer.propertysheet.PropertySheet.r efreshTab
(PropertySheet.java:804)
        at org.openide.explorer.propertysheet.PropertySheet.s etCurrentPage
(PropertySheet.java:498)
        at org.openide.explorer.propertysheet.PropertySheet$3 .stateChanged
(PropertySheet.java:285)
        at javax.swing.JTabbedPane.fireStateChanged(JTabbedPa ne.java:234)
        at javax.swing.JTabbedPane$ModelListener.stateChanged 
(JTabbedPane.java:179)
        at javax.swing.DefaultSingleSelectionModel.fireStateC hanged
(DefaultSingleSelectionModel.java:99)
        at javax.swing.DefaultSingleSelectionModel.setSelecte dIndex
(DefaultSingleSelectionModel.java:51)
        at javax.swing.JTabbedPane.setSelectedIndex(JTabbedPa ne.java:349)
        at javax.swing.plaf.basic.BasicTabbedPaneUI$MouseHand ler.mousePressed
(BasicTabbedPaneUI.java:1822)
        at java.awt.AWTEventMulticaster.mousePressed(AWTEvent 
Multicaster.java:220)
        at java.awt.Component.processMouseEvent(Component.jav a:3712)
        at java.awt.Component.processEvent(Component.java:354 4)
        at java.awt.Container.processEvent(Container.java:116 4)
        at java.awt.Component.dispatchEventImpl(Component.jav a:2593)
        at java.awt.Container.dispatchEventImpl(Container.jav a:1213)
        at java.awt.Component.dispatchEvent(Component.java:24 97)
        at java.awt.LightweightDispatcher.retargetMouseEvent( 
Container.java:2451)
        at java.awt.LightweightDispatcher.processMouseEvent(C 
ontainer.java:2210)
        at java.awt.LightweightDispatcher.dispatchEvent(Conta iner.java:2125)
        at java.awt.Container.dispatchEventImpl(Container.jav a:1200)
        at java.awt.Window.dispatchEventImpl(Window.java:914) 
        at java.awt.Component.dispatchEvent(Component.java:24 97)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java: 339)
        at java.awt.EventDispatchThread.pumpOneEventForHierar chy
(EventDispatchThread.java:131)
        at java.awt.EventDispatchThread.pumpEventsForHierarch y
(EventDispatchThread.java:98)
        at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:85)
OPERATING_SYSTEM: WINNT
REPEATABILITY: Reproducible
EDITION_VERSION: ffj3.0EA
PROBLEM: 
1. Compile PathTable from attached debug.jar (unpack before working with it)
2. Double Click InfoWindow
3. In the Component Inspector
    select pathTable1
    select the otherProperties tab

This appears in FFJ30 EA, last build of FFJ30, not in last NetBeans build.

*** [FFJ CUSTBUG] this bug was reported by customer ***
Comment 1 peterp 2001-07-24 15:58:54 UTC
Created attachment 1960 [details]
files to reproduce the problem
Comment 2 Jan Zajicek 2001-07-25 11:12:43 UTC
Please, fill correctly the version field next time and attach the long
stacktraces as attachments, they are not wrapped out.

To the issue. IMHO this is not P2 and it isn't our issue too. The
problem is in the user's component code. When user want to use owns
components as a beans in the form editor, they have to be well
written. When beaninfo is used, than there can be i.e. problematic
showDDDDs property disabled. When there exist only setter method, this
can cause problems. The easiest solution of described problem is to
rename the setter to something else i.e:

    public void showDDDDs(boolean showDDDDs) {...

This solves the problem. You mentioned that this works under latest
nb3.3 dev build. There were many changes made, so it may works now,
but I still thinks that the problem is on users side.
Comment 3 Jan Zajicek 2001-07-25 11:14:00 UTC
Also note that the exception is harmless and hasn't any impact to the
user's code.
Comment 4 Marian Mirilovic 2001-11-30 08:26:02 UTC
*** Issue 18207 has been marked as a duplicate of this issue. ***
Comment 5 Jan Chalupa 2003-07-07 13:58:09 UTC
Obsolete issue resolved for 3.4 or earlier. Marking as VERIFIED, will CLOSE shortly.
Comment 6 Jan Chalupa 2003-07-07 14:00:24 UTC
Closing.