Community
Participate
Working Groups
Build Identifier: M20110210-1200 If a listbox in a form has no generic value type defined, the formdata cannot be udpated: java.lang.ArrayIndexOutOfBoundsException: 0 at org.eclipse.scout.sdk.operation.form.formdata.FormDataUtility.computeFormFieldGenericType(FormDataUtility.java:262) at org.eclipse.scout.sdk.operation.form.formdata.CompositePrimaryTypeSourceBuilder.addFormField(CompositePrimaryTypeSourceBuilder.java:72) at org.eclipse.scout.sdk.operation.form.formdata.CompositePrimaryTypeSourceBuilder.visitFormFields(CompositePrimaryTypeSourceBuilder.java:50) at org.eclipse.scout.sdk.operation.form.formdata.CompositePrimaryTypeSourceBuilder.addFormField(CompositePrimaryTypeSourceBuilder.java:94) at org.eclipse.scout.sdk.operation.form.formdata.CompositePrimaryTypeSourceBuilder.visitFormFields(CompositePrimaryTypeSourceBuilder.java:50) at org.eclipse.scout.sdk.operation.form.formdata.CompositePrimaryTypeSourceBuilder.addFormField(CompositePrimaryTypeSourceBuilder.java:94) at org.eclipse.scout.sdk.operation.form.formdata.CompositePrimaryTypeSourceBuilder.visitFormFields(CompositePrimaryTypeSourceBuilder.java:50) at org.eclipse.scout.sdk.operation.form.formdata.CompositePrimaryTypeSourceBuilder.<init>(CompositePrimaryTypeSourceBuilder.java:38) at org.eclipse.scout.sdk.operation.form.formdata.FormDataUtility.getPrimaryTypeFormDataSourceBuilder(FormDataUtility.java:112) at org.eclipse.scout.sdk.operation.form.formdata.FormDataUpdateOperation.createSourceBuilder(FormDataUpdateOperation.java:196) at org.eclipse.scout.sdk.operation.form.formdata.FormDataUpdateOperation.run(FormDataUpdateOperation.java:77) at org.eclipse.scout.sdk.jobs.OperationJob.run(OperationJob.java:83) at org.eclipse.scout.sdk.jobs.AbstractWorkspaceBlockingJob.doRun(AbstractWorkspaceBlockingJob.java:62) at org.eclipse.scout.sdk.jobs.AbstractWorkspaceBlockingJob.run(AbstractWorkspaceBlockingJob.java:40) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Reproducible: Always Steps to Reproduce: 1. Create a form with a listbox and ensure no generic value type is defined 2. Try to update the formdata 3. In the Scout Explorer right click on the form and press "Update FormData..."
Created attachment 202063 [details] patch proposal
if no generic value type is defined, the FormData is created with the value type = java.lang.Object
applied patch.
shipped with 3.7.1
removed iplog flag from ticket and added iplog flag to attachment