Announcement Announcement Module
No announcement yet.
Trying to get a Spring RC client upgraded to V1.1, need help with stacktrace Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Trying to get a Spring RC client upgraded to V1.1, need help with stacktrace


    I inherited recently some code from a gone developer and I try now to get the libraries updated where possible. I have currently this stacktrace:

    Caused by: org.springframework.binding.convert.ConversionException: No converter registered to convert from sourceClass 'class [Ljava.lang.Object;' to target class 'class com.ourcompany.manufacturing.commissioning.Batch'
            at org.springframework.richclient.form.binding.swing.ListBinding.isPropertyConversionExecutorAvailable(
            at org.springframework.richclient.form.binding.swing.ListBinding.doBindControl(
            at org.springframework.richclient.form.binding.swing.AbstractListBinding.doBindControl(
            at org.springframework.richclient.factory.AbstractControlFactory.getControl(
            at org.springframework.richclient.form.binding.swing.SwingBindingFactory.createBoundList(
            at org.springframework.richclient.form.binding.swing.SwingBindingFactory.createBoundList(
            at org.springframework.richclient.form.binding.swing.SwingBindingFactory.createBoundList(
            at com.ourcompany.production.commissioning.ui.form.SelectBatchForm.createFormControl(
            at org.springframework.richclient.form.AbstractForm.createControl(
            at org.springframework.richclient.factory.AbstractControlFactory.getControl(
            at org.springframework.richclient.dialog.FormBackedDialogPage.createControl(
            at org.springframework.richclient.dialog.AbstractDialogPage$1.createControl(
            at org.springframework.richclient.factory.AbstractControlFactory.getControl(
            at org.springframework.richclient.dialog.AbstractDialogPage.getControl(
            at com.ourcompany.production.commissioning.ui.SelectBatchAction$1.createDialogContentPane(
            at org.springframework.richclient.dialog.ApplicationDialog.addDialogComponents(
            at org.springframework.richclient.dialog.ApplicationDialog.createDialog(
            at org.springframework.richclient.dialog.ApplicationDialog.showDialog(
            at com.ourcompany.production.commissioning.ui.SelectBatchAction.doExecuteCommand(
            at org.springframework.richclient.command.ActionCommand.execute(
            at com.ourcompany.production.commissioning.ui.InsertMeterAction.doExecuteCommand(
            at org.springframework.richclient.command.ActionCommand.execute(
            at com.ourcompany.production.commissioning.task.impl.connect.DetectMeterTask.doExecute(
            ... 4 more
    From what I have found by analysis:
    - There is a form (SelectBatchForm, extends AbstractForm) that wants to add a ListBinding, so it calls the bindingFactory with the selectionFormProperty "batch", an ArrayList of domain objects and the renderedProperty "name"). that method has no javadoc, but it appears as if the returned Listbinding should display the name property of the given objects in form of a selectable List.
    - The SwingBindingFactory is now trying to create the bound list and to select a binder for a controlType JList, a DefaultFormModel and the given selectionFormProperty. This is a ListBinder. binding is done and then it calls interceptBinding with that binder. (Again an undocumented method)
    - the interceptor (which is a ChainedInterceptor) method processComponent() is now called on the binding property and control. but the getter of that control is causing to throw the exception:
    -- createControl() of ListBinding leads to a call to doBindControl which will throw an unhandled exception in isPropertyConversionExecutorAvailable() when the conversionService fails to get an ConversionExecutor from Object[] (hardcoded) to the propertyType of the ListBinding, which is the domain object class from the begin of the story.

    As this was working in Spring Richclient V1.0, I would like to understand what is missing to get it running under V1.1

    Kindly regards,