I'm just patching that at present. Overlook it for the moment, it's not
related.
It is something to do with setting relationships, because (after fixing
that bug) inserting into the root element doesn't cause any problems.
Marcel
Andrus Adamchik wrote:
> Ok, new exception on the client when I am trying to edit new artist
> properties:
>
> java.lang.IllegalArgumentException: Cannot format given Object as a Date
> at java.text.DateFormat.format(DateFormat.java:279)
> at java.text.Format.format(Format.java:133)
> at
> org.apache.cayenne.ropbrowser.model.AbstractObject.getPropertyValue(AbstractObject.java:121)
>
> at
> org.apache.cayenne.ropbrowser.model.CollectionModelElement.getPropertyValue(CollectionModelElement.java:158)
>
> at
> org.eclipse.ui.views.properties.PropertySheetEntry.refreshValues(PropertySheetEntry.java:618)
>
> at
> org.eclipse.ui.views.properties.PropertySheetEntry.refreshChildEntries(PropertySheetEntry.java:575)
>
> at
> org.eclipse.ui.views.properties.PropertySheetEntry.setValues(PropertySheetEntry.java:767)
>
> at
> org.eclipse.ui.views.properties.PropertySheetViewer.setInput(PropertySheetViewer.java:943)
>
> at
> org.eclipse.ui.views.properties.PropertySheetPage.selectionChanged(PropertySheetPage.java:473)
>
> at
> org.eclipse.ui.views.properties.PropertySheet.partActivated(PropertySheet.java:199)
>
> at
> org.eclipse.ui.part.PageBookView.showBootstrapPart(PageBookView.java:909)
> at
> org.eclipse.ui.part.PageBookView.createPartControl(PageBookView.java:482)
> at
> org.eclipse.ui.views.properties.PropertySheet.createPartControl(PropertySheet.java:96)
>
> at
> org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:332)
>
> at
> org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:197)
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)
>
> at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:290)
> at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:525)
> at
> org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:140)
>
> at
> org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
>
> at
> org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
>
> at
> org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:394)
>
> at
> org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1144)
>
> at
> org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1097)
> at
> org.eclipse.ui.internal.PartStack.presentationSelectionChanged(PartStack.java:795)
>
> at org.eclipse.ui.internal.PartStack.access$1(PartStack.java:781)
> at org.eclipse.ui.internal.PartStack$1.selectPart(PartStack.java:123)
> at
> org.eclipse.ui.internal.presentations.util.TabbedStackPresentation$1.handleEvent(TabbedStackPresentation.java:126)
>
> at
> org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:267)
>
> at
> org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:276)
>
> at
> org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder.access$1(DefaultTabFolder.java:1)
>
> at
> org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder$2.handleEvent(DefaultTabFolder.java:84)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1496)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1505)
> at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
> at
> org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3171)
> at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1953)
> at
> org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:288)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1496)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1505)
> at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
> at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3312)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2941)
> at
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
>
> at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
> at
> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
> at org.eclipse.core.launcher.Main.run(Main.java:977)
> at org.eclipse.core.launcher.Main.main(Main.java:952)
>
>
>
>
> On Jul 22, 2006, at 9:17 PM, Marcel wrote:
>
>>
>> To insert, right click on a collection or an empty single element and
>> select insert.
>>
>> Using the GUI you can generate the exception by:
>>
>> - showing the paintings for an artist
>> - inserting a new one and entering the details
>> - showing the new painting's gallery, inserting a new record and
>> entering the details
>> - saving back to the server and closing the diagram
>> - running the same query again; the exception hits when you try to
>> view the paintings for that artist.
>>
>> Marcel
>
>
This archive was generated by hypermail 2.0.0 : Sat Jul 22 2006 - 21:55:49 EDT