IllegalArgumentException

Hi,

i have a very strange exception that occur when i press DDL PREVIEW on a Entity in Cuba Studio (6.4.1)

I don’t understand the problem, please help. Thank you.


java.lang.IllegalArgumentException: ven20n column is null

 at com.haulmont.studio.common.z.a(SourceFile:44)

 at com.haulmont.studio.backend.e.c.a.a(SourceFile:1334)

 at com.haulmont.studio.backend.e.c.a.b(SourceFile:1155)

 at com.haulmont.studio.backend.e.c.a.e(SourceFile:1088)

 at com.haulmont.studio.backend.e.c.a.d(SourceFile:1058)

 at com.haulmont.studio.ui.d.b.a.a(SourceFile:86)

 at com.haulmont.studio.ui.d.b.a.a(SourceFile:70)

 at com.haulmont.studio.ui.d.r.a(SourceFile:163)

 at com.haulmont.studio.ui.d.r.a(SourceFile:62)

 at com.haulmont.studio.ui.d.s.selectedTabChange(SourceFile:143)

 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

 at java.lang.reflect.Method.invoke(Method.java:497)

 at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:508)

 at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:198)

 at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:161)

 at com.vaadin.server.AbstractClientConnector.fireEvent(AbstractClientConnector.java:1008)

 at com.vaadin.ui.TabSheet.fireSelectedTabChange(TabSheet.java:884)

 ...
[17:04:54.871] Unexpected error
java.lang.IllegalArgumentException: ven20n column is null
[17:11:37.398] Exception has been thrown by com.haulmont.studio.ui.app.a@2d661949:
[17:11:37.400] java.lang.IllegalArgumentException: ven20n column is null

 at com.haulmont.studio.common.z.a(SourceFile:44)

 at com.haulmont.studio.backend.e.c.a.a(SourceFile:1334)

 at com.haulmont.studio.backend.e.c.a.b(SourceFile:1155)

 at com.haulmont.studio.backend.e.c.a.e(SourceFile:1088)

 at com.haulmont.studio.backend.e.c.a.d(SourceFile:1058)

 at com.haulmont.studio.ui.d.b.a.a(SourceFile:86)

 at com.haulmont.studio.ui.d.b.a.a(SourceFile:70)

 at com.haulmont.studio.ui.d.r.a(SourceFile:163)

 at com.haulmont.studio.ui.d.r.a(SourceFile:62)

 at com.haulmont.studio.ui.d.s.selectedTabChange(SourceFile:143)

 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

 at java.lang.reflect.Method.invoke(Method.java:497)

 at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:508)

 at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:198)

 at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:161)

 at com.vaadin.server.AbstractClientConnector.fireEvent(AbstractClientConnector.java:1008)

 at com.vaadin.ui.TabSheet.fireSelectedTabChange(TabSheet.java:884)

 ...
[17:11:37.429] Unexpected error
java.lang.IllegalArgumentException: ven20n column is null

The same Exception occurs when i try to start the application server …

The problem it’s occured after adding a new attribute on the entity.
If i remove the new attribute it’s possible to start the application server.

Very very strange problem.

:frowning:

Could you give us more details about what attribute have you added? The full source code of the entity would also help.

Hi Konstantin,

i send you all the project zipped. The entity with the problem is Ven20.

If you try to open DDL PREVIEW than you have the Exception.

If you add an attribute to the entity, than is not possible to start application server.

Thank you.

erp.zip (20.3M)

Hi Maurizio,

It turned out to be a bug in Studio: non-owning side of OneToOne association yields this error if entity has composite primary key. The bug is fixed and will be available in Studio 6.4.2 in the next couple of days. Meanwhile the only workaround is to change the relation to ManyToOne (which shouldn’t affect the logic of your app).

Perfect Konstantin,

it is not urgent, I’ll wait for the 6.4.2 version

Always a great support.

Thank you.

:slight_smile:

:ticket: See the following issue in our bug tracker:

https://youtrack.cuba-platform.com/issue/STUDIO-3452