Studio issue : Node is NOT_FOUND

Hi

Something does not fit Studio in my CustomerEventEntity so I have the mentioned error message when trying to edit entity in Studio.

image

Attached project to reproduce.

nodenotfound.zip (94.9 KB)

Michael

1 Like

Hi,
Same accrues to one of our projects.
We doesn’t change this entity for a while (for a few month i believe) and somehow this problem appears.
Source file is here, entity descripted in persistence.xml. But when we tried to open source/instance name/create listener (all studio functionality that relies on source .java file) we get same error.

Trace:

2018-10-02 09:46:16,693 ERROR [com.haulmont.studio.ui.ed.EntityDesignPage] Error closing page
com.haulmont.studio.common.exceptions.ParseException: com.company.enerstroymain.entity.AccountingPoint: Node is NOT_FOUND
 at com.haulmont.studio.backend.ed.EntitySourceParser.attributesToSource(EntitySourceParser.java:325)
 at com.haulmont.studio.ui.ed.prop.EntityPropertiesPanel.commit(EntityPropertiesPanel.java:730)
 at com.haulmont.studio.ui.ed.EntityDesignPage.commit(EntityDesignPage.java:632)
 at com.haulmont.studio.ui.ed.EntityDesignPage.confirmBeforeClose(EntityDesignPage.java:651)
 at com.haulmont.studio.ui.app.PageContainer.closePage(PageContainer.java:138)
 at com.haulmont.studio.ui.app.PageContainer.openPage(PageContainer.java:85)
 at com.haulmont.studio.ui.app.PageContainer.openPage(PageContainer.java:125)
 at com.haulmont.studio.ui.pm.ProjectNavigatorContent.openPage(ProjectNavigatorContent.java:806)
 at com.haulmont.studio.ui.pm.ProjectNavigatorContent.access$000(ProjectNavigatorContent.java:72)
 at com.haulmont.studio.ui.pm.ProjectNavigatorContent$1.buttonClick(ProjectNavigatorContent.java:305)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.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.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:158)
 at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:119)
 at com.vaadin.server.communication.ServerRpcHandler.handleInvocation(ServerRpcHandler.java:444)
 at com.vaadin.server.communication.ServerRpcHandler.handleInvocations(ServerRpcHandler.java:409)
 at com.vaadin.server.communication.ServerRpcHandler.handleRpc(ServerRpcHandler.java:274)
 at com.vaadin.server.communication.PushHandler$2.run(PushHandler.java:148)
 at com.vaadin.server.communication.PushHandler.callWithUi(PushHandler.java:240)
 at com.vaadin.server.communication.PushHandler.onMessage(PushHandler.java:518)
 at com.vaadin.server.communication.PushAtmosphereHandler.onMessage(PushAtmosphereHandler.java:87)
 at com.vaadin.server.communication.PushAtmosphereHandler.onRequest(PushAtmosphereHandler.java:77)
 at org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:199)
 at org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:107)
 at org.atmosphere.container.Jetty9AsyncSupportWithWebSocket.service(Jetty9AsyncSupportWithWebSocket.java:180)
 at org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:2075)
 at org.atmosphere.websocket.DefaultWebSocketProcessor.dispatch(DefaultWebSocketProcessor.java:571)
 at org.atmosphere.websocket.DefaultWebSocketProcessor$3.run(DefaultWebSocketProcessor.java:333)
 at org.atmosphere.util.VoidExecutorService.execute(VoidExecutorService.java:101)
 at org.atmosphere.websocket.DefaultWebSocketProcessor.dispatch(DefaultWebSocketProcessor.java:328)
 at org.atmosphere.websocket.DefaultWebSocketProcessor.invokeWebSocketProtocol(DefaultWebSocketProcessor.java:425)
 at org.atmosphere.container.Jetty9WebSocketHandler.onWebSocketText(Jetty9WebSocketHandler.java:125)
 at org.eclipse.jetty.websocket.common.events.JettyListenerEventDriver.onTextMessage(JettyListenerEventDriver.java:128)
 at org.eclipse.jetty.websocket.common.message.SimpleTextMessage.messageComplete(SimpleTextMessage.java:69)
 at org.eclipse.jetty.websocket.common.events.AbstractEventDriver.appendMessage(AbstractEventDriver.java:65)
 at org.eclipse.jetty.websocket.common.events.JettyListenerEventDriver.onTextFrame(JettyListenerEventDriver.java:122)
 at org.eclipse.jetty.websocket.common.events.AbstractEventDriver.incomingFrame(AbstractEventDriver.java:161)
 at org.eclipse.jetty.websocket.common.WebSocketSession.incomingFrame(WebSocketSession.java:309)
 at org.eclipse.jetty.websocket.common.extensions.ExtensionStack.incomingFrame(ExtensionStack.java:214)
 at org.eclipse.jetty.websocket.common.Parser.notifyFrame(Parser.java:220)
 at org.eclipse.jetty.websocket.common.Parser.parse(Parser.java:258)
 at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.readParse(AbstractWebSocketConnection.java:632)
 at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onFillable(AbstractWebSocketConnection.java:480)
 at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
 at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
 at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
 at java.lang.Thread.run(Unknown Source)

Studio SE 6.9.5, platform version 6.9.5

Hi, @michael.renaud .

Thanks for reporting the issue. We will try to fix the issue in the next releases (https://youtrack.cuba-platform.com/issue/STUDIO-4816).

Workaround:
Replace ‘javaType’ of custom datatype ‘MyEntitySoftReference’ to ‘com.haulmont.cuba.core.entity.BaseUuidEntity’ and replace java type for attributes ‘subject’ and ‘reference’ of CustomerEventEntity source.

Hi, @baranukis.
Are you use custom datatype in the entity. Please attach the entity source file.

Good afternoon, Alexander Zlatoverov, could you give, please, more information about how to solve this problem. Thank you. I’va the same problem that Ivan has.

I cannot, the purpose of these fields is to hold soft references to other entities than CustomerEventEntity. Subject is one of the client-related entities & reference is one of (e.g) the document related entities.

Replace attribute(‘Subject’, 'reference ') type from ‘com.haulmont.cuba.core.entity.Entity’ to ‘com.haulmont.cuba.core.entity.BaseUuidEntity’. Are your entities(‘client-related’ and ‘document’) inherited from BaseUuidEntity?

Yes they are, got what you said. For now I can live with editing the entity in IDEA, when I need Studio for that I will hcange to BAseUuidEntity

We came with the same conclusion. Switched to full IDE until bug will be fixed.