cuba-platform / global-events-addon Goto Github PK
View Code? Open in Web Editor NEWGlobal Events add-on enables receiving Spring's application events on any application block of the distributed system
Global Events add-on enables receiving Spring's application events on any application block of the distributed system
See a topic on support forum: link
CUBA version: 7.0.6
Addon version: 0.4
10:06:23.746 ERROR com.haulmont.cuba.web.log.AppLog - Exception:
java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Can't find metaClass 'com.haulmont.cuba.security.entity.User'
at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[na:1.8.0_121]
at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[na:1.8.0_121]
at com.vaadin.server.VaadinSession$FutureAccess.get(VaadinSession.java:102) ~[vaadin-server-8.6.4-11-cuba.jar:8.6.4-11-cuba]
at com.vaadin.server.VaadinService.runPendingAccessTasks(VaadinService.java:2021) [vaadin-server-8.6.4-11-cuba.jar:8.6.4-11-cuba]
at com.vaadin.server.VaadinSession.unlock(VaadinSession.java:1007) ~[vaadin-server-8.6.4-11-cuba.jar:8.6.4-11-cuba]
at com.vaadin.server.VaadinService.ensureAccessQueuePurged(VaadinService.java:1983) [vaadin-server-8.6.4-11-cuba.jar:8.6.4-11-cuba]
at com.vaadin.server.VaadinService.accessSession(VaadinService.java:1949) [vaadin-server-8.6.4-11-cuba.jar:8.6.4-11-cuba]
at com.vaadin.server.VaadinSession.access(VaadinSession.java:1406) ~[vaadin-server-8.6.4-11-cuba.jar:8.6.4-11-cuba]
at com.haulmont.addon.globalevents.web.GlobalUiEvents.publish(GlobalUiEvents.java:67) ~[na:na]
at com.haulmont.addon.globalevents.web.WebLocalClient.lambda$onMessage$0(WebLocalClient.java:84) ~[na:na]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_121]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_121]
at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_121]
Caused by: java.lang.IllegalStateException: Can't find metaClass 'com.haulmont.cuba.security.entity.User'
at com.haulmont.cuba.gui.xml.data.DsContextLoader.loadMetaClass(DsContextLoader.java:354) ~[na:na]
at com.haulmont.cuba.gui.xml.data.DsContextLoader.initDatasourceAttributes(DsContextLoader.java:240) ~[na:na]
at com.haulmont.cuba.gui.xml.data.DsContextLoader.loadDatasource(DsContextLoader.java:220) ~[na:na]
at com.haulmont.cuba.gui.xml.data.DsContextLoader.loadDatasources(DsContextLoader.java:94) ~[na:na]
at com.haulmont.cuba.web.sys.WebScreens.loadDsContext(WebScreens.java:380) ~[na:na]
at com.haulmont.cuba.web.sys.WebScreens.initDsContext(WebScreens.java:358) ~[na:na]
at com.haulmont.cuba.web.sys.WebScreens.loadWindowFromXml(WebScreens.java:346) ~[na:na]
at com.haulmont.cuba.web.sys.WebScreens.createScreen(WebScreens.java:227) ~[na:na]
at com.haulmont.cuba.web.sys.WebScreens.openEditor(WebScreens.java:1158) ~[na:na]
at com.haulmont.cuba.gui.components.HasWindowManager.openEditor(HasWindowManager.java:82) ~[na:na]
at com.company.sample.web.screens.ExtAppMainWindow.onAlarm(ExtAppMainWindow.java:25) ~[na:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_121]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_121]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_121]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_121]
at com.haulmont.cuba.gui.events.sys.UiEventListenerMethodAdapter.doInvoke(UiEventListenerMethodAdapter.java:224) ~[na:na]
at com.haulmont.cuba.gui.events.sys.UiEventListenerMethodAdapter.processEvent(UiEventListenerMethodAdapter.java:150) ~[na:na]
at com.haulmont.cuba.gui.events.sys.UiEventListenerMethodAdapter.onApplicationEvent(UiEventListenerMethodAdapter.java:109) ~[na:na]
at com.haulmont.cuba.gui.events.sys.UiEventsMulticasterImpl.invokeListener(UiEventsMulticasterImpl.java:73) ~[na:na]
at com.haulmont.cuba.gui.events.sys.UiEventsMulticasterImpl.multicastEvent(UiEventsMulticasterImpl.java:66) ~[na:na]
at com.haulmont.addon.globalevents.web.GlobalUiEvents.lambda$null$0(GlobalUiEvents.java:78) ~[na:na]
at com.vaadin.ui.UI.accessSynchronously(UI.java:1468) ~[vaadin-server-8.6.4-11-cuba.jar:8.6.4-11-cuba]
at com.haulmont.addon.globalevents.web.GlobalUiEvents.lambda$publish$1(GlobalUiEvents.java:77) ~[na:na]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_121]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_121]
at com.vaadin.server.VaadinService.runPendingAccessTasks(VaadinService.java:2018) [vaadin-server-8.6.4-11-cuba.jar:8.6.4-11-cuba]
... 11 common frames omitted
I think this happens when I have a window open where @eventlistener is registered but in the browser the main tab becomes different. Or when the browser is generally minimized or is under other windows.
Cuba-platform version: 7.0.9
Addon version: 0.4.1
17:36:00.132 ERROR com.haulmont.cuba.web.log.AppLog - Exception:
java.util.concurrent.ExecutionException: java.lang.NullPointerException
at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[na:na]
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191) ~[na:na]
at com.vaadin.server.VaadinSession$FutureAccess.get(VaadinSession.java:102) ~[vaadin-server-8.6.4-17-cuba.jar:8.6.4-17-cuba]
at com.vaadin.server.VaadinService.runPendingAccessTasks(VaadinService.java:2021) ~[vaadin-server-8.6.4-17-cuba.jar:8.6.4-17-cuba]
at com.vaadin.server.VaadinSession.unlock(VaadinSession.java:1007) ~[vaadin-server-8.6.4-17-cuba.jar:8.6.4-17-cuba]
at com.vaadin.server.VaadinService.ensureAccessQueuePurged(VaadinService.java:1983) ~[vaadin-server-8.6.4-17-cuba.jar:8.6.4-17-cuba]
at com.vaadin.server.VaadinService.accessSession(VaadinService.java:1949) ~[vaadin-server-8.6.4-17-cuba.jar:8.6.4-17-cuba]
at com.vaadin.server.VaadinSession.access(VaadinSession.java:1406) ~[vaadin-server-8.6.4-17-cuba.jar:8.6.4-17-cuba]
at com.haulmont.addon.globalevents.web.GlobalUiEvents.publish(GlobalUiEvents.java:67) ~[cubaglevt-web-0.4.1.jar:na]
at com.haulmont.addon.globalevents.web.WebLocalClient.lambda$onMessage$0(WebLocalClient.java:88) ~[cubaglevt-web-0.4.1.jar:na]
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[na:na]
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]
at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na]
Caused by: java.lang.NullPointerException: null
Create information about Software Components file
https://doc.cuba-platform.com/manual-7.2/credits.html
Update the "Usage" section of readme.md: describe how to install the component using Add-ons Marketplace
URISyntaxException is raised when working in cluster mode, URI is preped by whitespace character
java.lang.IllegalStateException: Could not create URI object: Illegal character in scheme name at index 0: %20http://vlt-app02:8080/quantum-core/cubaglevt-ws/handler
Cuba v7.1.5 / Global events v0.5.1
Reproduces with Cuba v7.2.4 / Global events v0.6.0
In web-app.properties URL are configured as:
cuba.connectionUrlList=http://vlt-app01:8080/quantum-core,http://vlt-app02:8080/quantum-core
StackTrace:
java.lang.IllegalStateException: Could not create URI object: Illegal character in scheme name at index 0: %20http://vlt-app02:8080/quantum-core/cubaglevt-ws/handler
at org.springframework.web.util.HierarchicalUriComponents.toUri(HierarchicalUriComponents.java:526)
at org.springframework.web.socket.sockjs.client.SockJsClient.doHandshake(SockJsClient.java:241)
at com.haulmont.addon.globalevents.transport.AbstractWebSocketClient.tryConnect(AbstractWebSocketClient.java:141)
at com.haulmont.addon.globalevents.transport.AbstractWebSocketClient.connect(AbstractWebSocketClient.java:84)
at com.haulmont.addon.globalevents.web.WebRemoteClient.init(WebRemoteClient.java:67)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:305)
at org.springframework.context.event.ApplicationListenerMethodAdapter.processEvent(ApplicationListenerMethodAdapter.java:190)
at org.springframework.context.event.ApplicationListenerMethodAdapter.onApplicationEvent(ApplicationListenerMethodAdapter.java:153)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:403)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:360)
at com.haulmont.cuba.core.sys.EventsImpl.publish(EventsImpl.java:33)
at com.haulmont.cuba.web.sys.WebEvents.publish(WebEvents.java:36)
at com.haulmont.cuba.web.DefaultApp.publishAppStartedEvent(DefaultApp.java:321)
at com.haulmont.cuba.web.DefaultApp.loginOnStart(DefaultApp.java:308)
at com.haulmont.cuba.web.AppUI.setupUI(AppUI.java:522)
at com.haulmont.cuba.web.AppUI.init(AppUI.java:346)
at com.vaadin.ui.UI.doInit(UI.java:738)
at com.vaadin.server.communication.UIInitHandler.getBrowserDetailsUI(UIInitHandler.java:209)
at com.vaadin.server.communication.UIInitHandler.synchronizedHandleRequest(UIInitHandler.java:67)
at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:40)
at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1578)
at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:425)
at com.haulmont.cuba.web.sys.CubaApplicationServlet.serviceAppRequest(CubaApplicationServlet.java:329)
at com.haulmont.cuba.web.sys.CubaApplicationServlet.service(CubaApplicationServlet.java:215)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:763)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1631)
at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:226)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:549)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:602)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1610)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1363)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:489)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1580)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1278)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:221)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.Server.handle(Server.java:500)
at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383)
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:547)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.net.URISyntaxException: Illegal character in scheme name at index 0: %20http://vlt-app02:8080/quantum-core/cubaglevt-ws/handler
at java.base/java.net.URI$Parser.fail(URI.java:2913)
at java.base/java.net.URI$Parser.checkChars(URI.java:3084)
at java.base/java.net.URI$Parser.checkChar(URI.java:3094)
at java.base/java.net.URI$Parser.parse(URI.java:3109)
at java.base/java.net.URI.(URI.java:600)
at org.springframework.web.util.HierarchicalUriComponents.toUri(HierarchicalUriComponents.java:512)
... 68 more
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.