Unexpected error - Cannot find entity unknown

I’m getting a weird error when I try to generate DB scripts from Studio. It seems to be trying to access an unknown entity. However, I am able to assemble the project without error, so I don’t think there should be any entities unaccounted for. How do I debug this? Version is 6.5.1. Thanks Eric

[16:17:05.903] Unexpected error
java.lang.IllegalStateException: Cannot find entity unknown
[16:17:05.904] Exception has been thrown by com.haulmont.studio.ui.app.a@1985419e:
[16:17:05.904] java.lang.IllegalStateException: Cannot find entity unknown
	at com.haulmont.studio.backend.e.c.a.a(SourceFile:1246)
	at com.haulmont.studio.backend.e.c.N.a(SourceFile:1035)
	at com.haulmont.studio.backend.e.c.N.e(SourceFile:186)
	at com.haulmont.studio.backend.e.c.N.a(SourceFile:117)
	at com.haulmont.studio.backend.e.c.a.a(SourceFile:429)
	at com.haulmont.studio.backend.e.c.a.c(SourceFile:418)
	at com.haulmont.studio.ui.d.E.c(SourceFile:130)
	at com.haulmont.studio.ui.d.E.b(SourceFile:102)
	at com.haulmont.studio.ui.d.H.buttonClick(SourceFile:171)
	at sun.reflect.GeneratedMethodAccessor139.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:510)
	at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:200)
	at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:163)
	at com.vaadin.server.AbstractClientConnector.fireEvent(AbstractClientConnector.java:1037)
	at com.vaadin.ui.Button.fireClick(Button.java:377)
	at com.vaadin.ui.Button$1.click(Button.java:54)
	at sun.reflect.GeneratedMethodAccessor138.invoke(Unknown Source)

1 Like

Just wanted to add… I did try cleaning the project, un-deploying and rebuilding everything… no luck.

Any ideas? I do not know how to debug this. My sense is it may be a bug in Studio.


Which version of Studio do you use?
I tried to reproduce the problem but did not succeed. So I need some additional info about your project.
Could you share it?
Assumably the error occurs while handling some relation between entities (during generation of DDL for the link-attribute). Examine related entities in your project: maybe they have some weird fields with unknown types or annotations.