How to resolve the issue cannot find FileDescriptor entity

Hi,

“java.lang.IllegalStateException: Cannot find entity com.haulmont.cuba.core.entity.FileDescriptor”

for me it is showing the above exception. I am using “import com.haulmont.cuba.core.entity.FileDescriptor;” this in imports code.

Can anyone say me how to resolve this issue.

Thanks!

Hi,

Could you share the full stack trace and your code that causes the issue?


[23:29:22.144] Unexpected error 
java.lang.IllegalStateException: Cannot find entity com.haulmont.cuba.core.entity.FileDescriptor 
[23:31:29.686] Tomcat's context.xml is changed externally, parsing the DB properties 
[23:31:49.172] Exception has been thrown by com.haulmont.studio.ui.app.a@59b34263: 
[23:31:49.176] java.lang.IllegalStateException: Cannot find entity com.haulmont.cuba.core.entity.FileDescriptor 
 at com.haulmont.studio.backend.e.c.a.a(SourceFile:1246) 
 at com.haulmont.studio.backend.e.c.a.a(SourceFile:1861) 
 at com.haulmont.studio.backend.e.c.N.a(SourceFile:540) 
 at com.haulmont.studio.backend.e.c.N.a(SourceFile:306) 
 at com.haulmont.studio.backend.e.c.N.a(SourceFile:115) 
 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.c.a.a(SourceFile:63) 
 at com.haulmont.studio.ui.app.aP.r(SourceFile:733) 
 at com.haulmont.studio.ui.app.aP.J(SourceFile:77) 
 at com.haulmont.studio.ui.app.br.a(SourceFile:712) 
 at com.haulmont.studio.ui.d.T.buttonClick(SourceFile:96) 
 at sun.reflect.GeneratedMethodAccessor119.invoke(Unknown Source) 
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
 at java.lang.reflect.Method.invoke(Method.java:498) 
 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) 
 ... 
[23:31:49.536] Unexpected error 
java.lang.IllegalStateException: Cannot find entity com.haulmont.cuba.core.entity.FileDescriptor

And could please describe what did you do? What is the use case in Studio?