java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to java.lang.String

ICEsoft JIRA Issue Tracker | Michael Thiem | 10 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    dragging a panelGrid to the design canvas and then modifying the column or rowClass property causes a ClassCastException. java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to java.lang.String at com.sun.jsfcl.std.reference.StyleClassesReferenceDataDefiner.addDesignPropertyItems(StyleClassesReferenceDataDefiner.java:56) at com.sun.jsfcl.std.reference.DesignPropertyAttachedReferenceData.defineItems(DesignPropertyAttachedReferenceData.java:36) at com.sun.jsfcl.std.reference.ReferenceData.getItems(ReferenceData.java:56) at com.sun.jsfcl.std.reference.CompositeReferenceData.defineItems(CompositeReferenceData.java:75) at com.sun.jsfcl.std.reference.ReferenceData.getItems(ReferenceData.java:56) at com.sun.jsfcl.std.reference.CompositeReferenceData.getItems(CompositeReferenceData.java:86) at com.sun.jsfcl.std.reference.CompositeReferenceData.getItemsSorted(CompositeReferenceData.java:96) at com.sun.jsfcl.std.property.ChooseOneReferenceDataPropertyEditor.getItems(ChooseOneReferenceDataPropertyEditor.java:140) at com.sun.jsfcl.std.property.ChooseOneReferenceDataPanel.getChoices(ChooseOneReferenceDataPanel.java:90) at com.sun.jsfcl.std.property.ChooseOneReferenceDataPanel.initializeComponents(ChooseOneReferenceDataPanel.java:206) at com.sun.jsfcl.std.property.ChooseManyReferenceDataPanel.initializeComponents(ChooseManyReferenceDataPanel.java:258) at com.sun.jsfcl.std.property.ChooseManyOfManyReferenceDataPanel.initializeComponents(ChooseManyOfManyReferenceDataPanel.java:355) at com.sun.jsfcl.std.property.AbstractPropertyJPanel.<init>(AbstractPropertyJPanel.java:40) at com.sun.jsfcl.std.property.ChooseOneReferenceDataPanel.<init>(ChooseOneReferenceDataPanel.java:63) at com.sun.jsfcl.std.property.ChooseManyReferenceDataPanel.<init>(ChooseManyReferenceDataPanel.java:57) at com.sun.jsfcl.std.property.ChooseManyOfManyReferenceDataPanel.<init>(ChooseManyOfManyReferenceDataPanel.java:52) at com.sun.jsfcl.std.property.ChooseManyOfManyReferenceDataPropertyEditor.getCustomEditor(ChooseManyOfManyReferenceDataPropertyEditor.java:39) at com.sun.rave.propertyeditors.binding.ValueBindingPropertyEditor.getCustomEditor(ValueBindingPropertyEditor.java:345) at org.openide.explorer.propertysheet.PropertyDialogManager.<init>(PropertyDialogManager.java:111) at org.openide.explorer.propertysheet.CustomEditorAction.actionPerformed(CustomEditorAction.java:202) at org.openide.explorer.propertysheet.SheetTable.processMouseEvent(SheetTable.java:685) at java.awt.Component.processEvent(Component.java:5803) at java.awt.Container.processEvent(Container.java:2058) at java.awt.Component.dispatchEventImpl(Component.java:4410) at java.awt.Container.dispatchEventImpl(Container.java:2116) at java.awt.Component.dispatchEvent(Component.java:4240) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3983) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916) at java.awt.Container.dispatchEventImpl(Container.java:2102) at java.awt.Window.dispatchEventImpl(Window.java:2429) at java.awt.Component.dispatchEvent(Component.java:4240) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

    ICEsoft JIRA Issue Tracker | 10 years ago | Michael Thiem
    java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to java.lang.String
  2. 0

    dragging a panelGrid to the design canvas and then modifying the column or rowClass property causes a ClassCastException. java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to java.lang.String at com.sun.jsfcl.std.reference.StyleClassesReferenceDataDefiner.addDesignPropertyItems(StyleClassesReferenceDataDefiner.java:56) at com.sun.jsfcl.std.reference.DesignPropertyAttachedReferenceData.defineItems(DesignPropertyAttachedReferenceData.java:36) at com.sun.jsfcl.std.reference.ReferenceData.getItems(ReferenceData.java:56) at com.sun.jsfcl.std.reference.CompositeReferenceData.defineItems(CompositeReferenceData.java:75) at com.sun.jsfcl.std.reference.ReferenceData.getItems(ReferenceData.java:56) at com.sun.jsfcl.std.reference.CompositeReferenceData.getItems(CompositeReferenceData.java:86) at com.sun.jsfcl.std.reference.CompositeReferenceData.getItemsSorted(CompositeReferenceData.java:96) at com.sun.jsfcl.std.property.ChooseOneReferenceDataPropertyEditor.getItems(ChooseOneReferenceDataPropertyEditor.java:140) at com.sun.jsfcl.std.property.ChooseOneReferenceDataPanel.getChoices(ChooseOneReferenceDataPanel.java:90) at com.sun.jsfcl.std.property.ChooseOneReferenceDataPanel.initializeComponents(ChooseOneReferenceDataPanel.java:206) at com.sun.jsfcl.std.property.ChooseManyReferenceDataPanel.initializeComponents(ChooseManyReferenceDataPanel.java:258) at com.sun.jsfcl.std.property.ChooseManyOfManyReferenceDataPanel.initializeComponents(ChooseManyOfManyReferenceDataPanel.java:355) at com.sun.jsfcl.std.property.AbstractPropertyJPanel.<init>(AbstractPropertyJPanel.java:40) at com.sun.jsfcl.std.property.ChooseOneReferenceDataPanel.<init>(ChooseOneReferenceDataPanel.java:63) at com.sun.jsfcl.std.property.ChooseManyReferenceDataPanel.<init>(ChooseManyReferenceDataPanel.java:57) at com.sun.jsfcl.std.property.ChooseManyOfManyReferenceDataPanel.<init>(ChooseManyOfManyReferenceDataPanel.java:52) at com.sun.jsfcl.std.property.ChooseManyOfManyReferenceDataPropertyEditor.getCustomEditor(ChooseManyOfManyReferenceDataPropertyEditor.java:39) at com.sun.rave.propertyeditors.binding.ValueBindingPropertyEditor.getCustomEditor(ValueBindingPropertyEditor.java:345) at org.openide.explorer.propertysheet.PropertyDialogManager.<init>(PropertyDialogManager.java:111) at org.openide.explorer.propertysheet.CustomEditorAction.actionPerformed(CustomEditorAction.java:202) at org.openide.explorer.propertysheet.SheetTable.processMouseEvent(SheetTable.java:685) at java.awt.Component.processEvent(Component.java:5803) at java.awt.Container.processEvent(Container.java:2058) at java.awt.Component.dispatchEventImpl(Component.java:4410) at java.awt.Container.dispatchEventImpl(Container.java:2116) at java.awt.Component.dispatchEvent(Component.java:4240) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3983) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916) at java.awt.Container.dispatchEventImpl(Container.java:2102) at java.awt.Window.dispatchEventImpl(Window.java:2429) at java.awt.Component.dispatchEvent(Component.java:4240) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

    ICEsoft JIRA Issue Tracker | 10 years ago | Michael Thiem
    java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to java.lang.String

    Root Cause Analysis

    1. java.lang.ClassCastException

      [Ljava.lang.Object; cannot be cast to java.lang.String

      at com.sun.jsfcl.std.reference.StyleClassesReferenceDataDefiner.addDesignPropertyItems()
    2. com.sun.jsfcl
      ChooseManyOfManyReferenceDataPropertyEditor.getCustomEditor
      1. com.sun.jsfcl.std.reference.StyleClassesReferenceDataDefiner.addDesignPropertyItems(StyleClassesReferenceDataDefiner.java:56)
      2. com.sun.jsfcl.std.reference.DesignPropertyAttachedReferenceData.defineItems(DesignPropertyAttachedReferenceData.java:36)
      3. com.sun.jsfcl.std.reference.ReferenceData.getItems(ReferenceData.java:56)
      4. com.sun.jsfcl.std.reference.CompositeReferenceData.defineItems(CompositeReferenceData.java:75)
      5. com.sun.jsfcl.std.reference.ReferenceData.getItems(ReferenceData.java:56)
      6. com.sun.jsfcl.std.reference.CompositeReferenceData.getItems(CompositeReferenceData.java:86)
      7. com.sun.jsfcl.std.reference.CompositeReferenceData.getItemsSorted(CompositeReferenceData.java:96)
      8. com.sun.jsfcl.std.property.ChooseOneReferenceDataPropertyEditor.getItems(ChooseOneReferenceDataPropertyEditor.java:140)
      9. com.sun.jsfcl.std.property.ChooseOneReferenceDataPanel.getChoices(ChooseOneReferenceDataPanel.java:90)
      10. com.sun.jsfcl.std.property.ChooseOneReferenceDataPanel.initializeComponents(ChooseOneReferenceDataPanel.java:206)
      11. com.sun.jsfcl.std.property.ChooseManyReferenceDataPanel.initializeComponents(ChooseManyReferenceDataPanel.java:258)
      12. com.sun.jsfcl.std.property.ChooseManyOfManyReferenceDataPanel.initializeComponents(ChooseManyOfManyReferenceDataPanel.java:355)
      13. com.sun.jsfcl.std.property.AbstractPropertyJPanel.<init>(AbstractPropertyJPanel.java:40)
      14. com.sun.jsfcl.std.property.ChooseOneReferenceDataPanel.<init>(ChooseOneReferenceDataPanel.java:63)
      15. com.sun.jsfcl.std.property.ChooseManyReferenceDataPanel.<init>(ChooseManyReferenceDataPanel.java:57)
      16. com.sun.jsfcl.std.property.ChooseManyOfManyReferenceDataPanel.<init>(ChooseManyOfManyReferenceDataPanel.java:52)
      17. com.sun.jsfcl.std.property.ChooseManyOfManyReferenceDataPropertyEditor.getCustomEditor(ChooseManyOfManyReferenceDataPropertyEditor.java:39)
      17 frames
    3. com.sun.rave
      ValueBindingPropertyEditor.getCustomEditor
      1. com.sun.rave.propertyeditors.binding.ValueBindingPropertyEditor.getCustomEditor(ValueBindingPropertyEditor.java:345)
      1 frame
    4. org.openide.explorer
      SheetTable.processMouseEvent
      1. org.openide.explorer.propertysheet.PropertyDialogManager.<init>(PropertyDialogManager.java:111)
      2. org.openide.explorer.propertysheet.CustomEditorAction.actionPerformed(CustomEditorAction.java:202)
      3. org.openide.explorer.propertysheet.SheetTable.processMouseEvent(SheetTable.java:685)
      3 frames
    5. Java RT
      Component.dispatchEvent
      1. java.awt.Component.processEvent(Component.java:5803)
      2. java.awt.Container.processEvent(Container.java:2058)
      3. java.awt.Component.dispatchEventImpl(Component.java:4410)
      4. java.awt.Container.dispatchEventImpl(Container.java:2116)
      5. java.awt.Component.dispatchEvent(Component.java:4240)
      6. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
      7. java.awt.LightweightDispatcher.processMouseEvent(Container.java:3983)
      8. java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
      9. java.awt.Container.dispatchEventImpl(Container.java:2102)
      10. java.awt.Window.dispatchEventImpl(Window.java:2429)
      11. java.awt.Component.dispatchEvent(Component.java:4240)
      11 frames