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 152396 - [65cat] ClassCastException: java.util.ArrayList cannot be cast to java.lang.String
Summary: [65cat] ClassCastException: java.util.ArrayList cannot be cast to java.lang.S...
Status: RESOLVED INVALID
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Alexey Butenko
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-05 09:47 UTC by sunbiz
Modified: 2009-11-10 06:46 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 133067


Attachments
stacktrace (4.62 KB, text/plain)
2008-11-05 09:47 UTC, sunbiz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sunbiz 2008-11-05 09:47:51 UTC
Build: NetBeans IDE Dev (Build 200811011401)
VM: Java HotSpot(TM) Client VM, 11.0-b11, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b14
OS: Windows XP, 5.1, x86

User Comments:
sunbiz: Closing faces-config.xml file and got this exception

sunbiz: Closing faces-config.xml file and got this exception



Stacktrace: 
java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.String
        at org.netbeans.modules.web.jsf.navigation.FacesModelPropertyChangeListener.runEventNow(FacesModelPropertyChangeListener.java:127)
        at org.netbeans.modules.web.jsf.navigation.FacesModelPropertyChangeListener.propertyChange(FacesModelPropertyChangeListener.java:47)
        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
        at org.netbeans.modules.xml.xam.AbstractModel$Transaction.fireCompleteEventSet(AbstractModel.java:488)
        at org.netbeans.modules.xml.xam.AbstractModel$Transaction.fireEvents(AbstractModel.java:474)
        at org.netbeans.modules.xml.xam.AbstractModel.endTransaction(AbstractModel.java:321)
Comment 1 sunbiz 2008-11-05 09:47:56 UTC
Created attachment 73284 [details]
stacktrace
Comment 2 Peter Zavadsky 2008-11-06 00:35:22 UTC
The problem seems to be that now the value of property 'from-view-id' (or 'to-view-id') is list instead of string
(assuming the code was working before).

Was the type of 'from-view-id' (or 'to-view-id') property changed from string to list? If yes, could that be explained?

In any case, could the properties and their values documented for the JsfConfigModel?
Comment 3 _ potingwu 2008-11-06 21:51:09 UTC
The Faces Model does not fire such event, xam does:
        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
        at org.netbeans.modules.xml.xam.AbstractModel$Transaction.fireCompleteEventSet(AbstractModel.java:488)

I think 'jsf.navigation' needs to handle it properly.

BTW, I cannot reproduce this exception! What have you done for your faces-config.xml before closing it? How did you
modify the contents? Save or Discard when closing it? If you can provide a reproducible steps for this issue, then that
should help a lot! Thanks!
Comment 4 Alexey Butenko 2009-08-10 07:29:25 UTC
Not able to reproduce. Need steps
Comment 5 Michal Mocnak 2009-09-22 10:37:01 UTC
Without requested information for long time - INVALID. We can't do anything in this case. Reporter, please add requested information and reopen issue. 
Thanks in advance.