开发者社区> 问答> 正文

主备配置数据源验证失败

数据源配置中,单独配置主数据库地址或备份数据库地址都可以验证通过,但是配置jdbc:mysql://groupKey=db后验证失败

db是我在主备配置中的groupkey,jdbc:mysql://groupKey=db之前实验是可以验证通过的,请问可能是哪里的问题

manager日志如下 2022-07-06 16:33:34.301 [/dwr/call/plaincall/Hello.check.dwr] WARN c.a.o.s.a.i.communication.ArbitrateCommmunicationClient - call manager [10.193.145.33:33330] event [FindMediaEvent[dataId=db-test,type=findMedia]] failed, maybe can try another manager. 2022-07-06 16:33:34.302 [/dwr/call/plaincall/Hello.check.dwr] ERROR c.alibaba.otter.common.push.media.MediaSubscribeManager - call_manager_error com.alibaba.otter.shared.communication.core.exception.CommunicationException: call[10.193.145.33:33330] , Event[FindMediaEvent[dataId=db-test,type=findMedia]] Caused by: com.alibaba.dubbo.rpc.RpcException: Failed to invoke remote method: acceptEvent, provider: dubbo://10.193.145.33:33330/endpoint?acceptEvent.timeout=50000&client=netty&codec=dubbo&connections=30&iothreads=4&lazy=true&payload=8388608&serialization=java&threads=50, cause: client(url: dubbo://10.193.145.33:33330/endpoint?acceptEvent.timeout=50000&client=netty&codec=dubbo&connections=30&heartbeat=60000&iothreads=4&lazy=true&payload=8388608&send.reconnect=true&serialization=java&threads=50) failed to connect to server /10.193.145.33:33330, error message is:connection timed out at com.alibaba.dubbo.rpc.protocol.dubbo.DubboInvoker.doInvoke(DubboInvoker.java:101) ~[dubbo-2.5.3.jar:2.5.3] at com.alibaba.dubbo.rpc.protocol.AbstractInvoker.invoke(AbstractInvoker.java:144) ~[dubbo-2.5.3.jar:2.5.3] at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:52) ~[dubbo-2.5.3.jar:2.5.3] at com.alibaba.dubbo.common.bytecode.proxy0.acceptEvent(proxy0.java) ~[na:2.5.3] at com.alibaba.otter.shared.communication.core.impl.dubbo.DubboCommunicationConnection.call(DubboCommunicationConnection.java:45) ~[shared.communication-4.2.18.jar:na] at com.alibaba.otter.shared.communication.core.impl.DefaultCommunicationClientImpl.call(DefaultCommunicationClientImpl.java:96) ~[shared.communication-4.2.18.jar:na] at com.alibaba.otter.shared.arbitrate.impl.communication.ArbitrateCommmunicationClient.callManager(ArbitrateCommmunicationClient.java:74) ~[shared.arbitrate-4.2.18.jar:na] at com.alibaba.otter.common.push.media.MediaSubscribeManager$1.apply(MediaSubscribeManager.java:67) [shared.push-4.2.18.jar:na] at com.alibaba.otter.common.push.media.MediaSubscribeManager$1.apply(MediaSubscribeManager.java:61) [shared.push-4.2.18.jar:na] at com.alibaba.otter.shared.common.utils.cache.RefreshMemoryMirror.get(RefreshMemoryMirror.java:65) [shared.common-4.2.18.jar:na] at com.alibaba.otter.common.push.media.MediaSubscribeManager.fetchConfig(MediaSubscribeManager.java:118) [shared.push-4.2.18.jar:na] at com.alibaba.otter.common.push.media.MediaSubscribeManager.fetchConfig(MediaSubscribeManager.java:114) [shared.push-4.2.18.jar:na] at com.alibaba.otter.common.push.supplier.media.MediaDatasourceSupplier.init(MediaDatasourceSupplier.java:102) [shared.push-4.2.18.jar:na] at com.alibaba.otter.common.push.supplier.media.MediaDatasourceSupplier.doStart(MediaDatasourceSupplier.java:87) [shared.push-4.2.18.jar:na] at com.alibaba.otter.common.push.supplier.AbstractDatasourceSupplier.start(AbstractDatasourceSupplier.java:34) [shared.push-4.2.18.jar:na] at com.alibaba.otter.common.push.datasource.media.MediaPushDataSource.init(MediaPushDataSource.java:100) [shared.push-4.2.18.jar:na] at com.alibaba.otter.common.push.datasource.media.MediaPushDataSourceHandler.createDataSource(MediaPushDataSourceHandler.java:106) [shared.push-4.2.18.jar:na] at com.alibaba.otter.common.push.datasource.media.MediaPushDataSourceHandler$1$1.apply(MediaPushDataSourceHandler.java:65) [shared.push-4.2.18.jar:na] at com.alibaba.otter.common.push.datasource.media.MediaPushDataSourceHandler$1$1.apply(MediaPushDataSourceHandler.java:62) [shared.push-4.2.18.jar:na] at com.google.common.collect.ComputingConcurrentHashMap$ComputingValueReference.compute(ComputingConcurrentHashMap.java:356) [guava-18.0.jar:na] at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.compute(ComputingConcurrentHashMap.java:182) [guava-18.0.jar:na] at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.getOrCompute(ComputingConcurrentHashMap.java:151) [guava-18.0.jar:na] at com.google.common.collect.ComputingConcurrentHashMap.getOrCompute(ComputingConcurrentHashMap.java:67) [guava-18.0.jar:na] at com.google.common.collect.MapMaker$ComputingMapAdapter.get(MapMaker.java:885) [guava-18.0.jar:na] at com.alibaba.otter.common.push.datasource.media.MediaPushDataSourceHandler.create(MediaPushDataSourceHandler.java:87) [shared.push-4.2.18.jar:na] at com.alibaba.otter.manager.biz.common.DataSourceCreator.preCreate(DataSourceCreator.java:116) [manager.biz-4.2.18.jar:na] at com.alibaba.otter.manager.biz.common.DataSourceCreator.createDataSource(DataSourceCreator.java:70) [manager.biz-4.2.18.jar:na] at com.alibaba.otter.manager.biz.utils.DataSourceChecker.check(DataSourceChecker.java:146) [manager.biz-4.2.18.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_312] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_312] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_312] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_312] at org.directwebremoting.impl.ExecuteAjaxFilter.doFilter(ExecuteAjaxFilter.java:34) [dwr-2.0.10.jar:na] at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428) [dwr-2.0.10.jar:na] at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:431) [dwr-2.0.10.jar:na] at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:283) [dwr-2.0.10.jar:na] at org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:52) [dwr-2.0.10.jar:na] at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:101) [dwr-2.0.10.jar:na] at org.directwebremoting.spring.DwrSpringServlet.doPost(DwrSpringServlet.java:158) [dwr-2.0.10.jar:na] at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) [javax.servlet-3.0.0.v201112011016.jar:na] at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) [javax.servlet-3.0.0.v201112011016.jar:na] at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:648) [jetty-servlet-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1336) [jetty-servlet-8.1.7.v20120910.jar:8.1.7.v20120910] at com.alibaba.citrus.webx.support.AbstractWebxRootController.giveUpControl(AbstractWebxRootController.java:306) [citrus-webx-all-3.2.0.jar:3.2.0] at com.alibaba.citrus.webx.support.AbstractWebxRootController.service(AbstractWebxRootController.java:168) [citrus-webx-all-3.2.0.jar:3.2.0] at com.alibaba.citrus.webx.servlet.WebxFrameworkFilter.doFilter(WebxFrameworkFilter.java:152) [citrus-webx-all-3.2.0.jar:3.2.0] at com.alibaba.citrus.webx.servlet.FilterBean.doFilter(FilterBean.java:147) [citrus-webx-all-3.2.0.jar:3.2.0] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307) [jetty-servlet-8.1.7.v20120910.jar:8.1.7.v20120910] at com.alibaba.citrus.webx.servlet.SetLoggingContextFilter.doFilter(SetLoggingContextFilter.java:61) [citrus-webx-all-3.2.0.jar:3.2.0] at com.alibaba.citrus.webx.servlet.FilterBean.doFilter(FilterBean.java:147) [citrus-webx-all-3.2.0.jar:3.2.0] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307) [jetty-servlet-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453) [jetty-servlet-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:559) [jetty-security-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382) [jetty-servlet-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.Server.handle(Server.java:365) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:937) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:998) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856) [jetty-http-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) [jetty-http-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627) [jetty-io-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51) [jetty-io-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) [jetty-util-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) [jetty-util-8.1.7.v20120910.jar:8.1.7.v20120910] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_312] Caused by: com.alibaba.dubbo.remoting.RemotingException: client(url: dubbo://10.193.145.33:33330/endpoint?acceptEvent.timeout=50000&client=netty&codec=dubbo&connections=30&heartbeat=60000&iothreads=4&lazy=true&payload=8388608&send.reconnect=true&serialization=java&threads=50) failed to connect to server /10.193.145.33:33330, error message is:connection timed out at com.alibaba.dubbo.remoting.transport.netty.NettyClient.doConnect(NettyClient.java:124) ~[dubbo-2.5.3.jar:2.5.3] at com.alibaba.dubbo.remoting.transport.AbstractClient.connect(AbstractClient.java:280) ~[dubbo-2.5.3.jar:2.5.3] at com.alibaba.dubbo.remoting.transport.AbstractClient.(AbstractClient.java:103) ~[dubbo-2.5.3.jar:2.5.3] at com.alibaba.dubbo.remoting.transport.netty.NettyClient.(NettyClient.java:61) ~[dubbo-2.5.3.jar:2.5.3] at com.alibaba.dubbo.remoting.transport.netty.NettyTransporter.connect(NettyTransporter.java:37) ~[dubbo-2.5.3.jar:2.5.3] at com.alibaba.dubbo.remoting.Transporter$Adpative.connect(Transporter$Adpative.java) ~[na:2.5.3] at com.alibaba.dubbo.remoting.Transporters.connect(Transporters.java:67) ~[dubbo-2.5.3.jar:2.5.3] at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchanger.connect(HeaderExchanger.java:37) ~[dubbo-2.5.3.jar:2.5.3] at com.alibaba.dubbo.remoting.exchange.Exchangers.connect(Exchangers.java:102) ~[dubbo-2.5.3.jar:2.5.3] at com.alibaba.dubbo.rpc.protocol.dubbo.LazyConnectExchangeClient.initClient(LazyConnectExchangeClient.java:79) ~[dubbo-2.5.3.jar:2.5.3] at com.alibaba.dubbo.rpc.protocol.dubbo.LazyConnectExchangeClient.request(LazyConnectExchangeClient.java:104) ~[dubbo-2.5.3.jar:2.5.3] at com.alibaba.dubbo.rpc.protocol.dubbo.DubboInvoker.doInvoke(DubboInvoker.java:96) ~[dubbo-2.5.3.jar:2.5.3] ... 72 common frames omitted Caused by: java.net.ConnectException: connection timed out at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.processConnectTimeout(NioClientSocketPipelineSink.java:371) ~[netty-3.2.2.Final.jar:na] at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.run(NioClientSocketPipelineSink.java:283) ~[netty-3.2.2.Final.jar:na] at org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:46) ~[netty-3.2.2.Final.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_312] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_312] ... 1 common frames omitted 2022-07-06 16:33:34.305 [/dwr/call/plaincall/Hello.check.dwr] ERROR com.alibaba.otter.manager.biz.utils.DataSourceChecker - check error! com.google.common.collect.ComputationException: java.lang.NullPointerException at com.google.common.collect.MapMaker$ComputingMapAdapter.get(MapMaker.java:889) ~[guava-18.0.jar:na] at com.alibaba.otter.common.push.datasource.media.MediaPushDataSourceHandler.create(MediaPushDataSourceHandler.java:87) ~[shared.push-4.2.18.jar:na] at com.alibaba.otter.manager.biz.common.DataSourceCreator.preCreate(DataSourceCreator.java:116) ~[manager.biz-4.2.18.jar:na] at com.alibaba.otter.manager.biz.common.DataSourceCreator.createDataSource(DataSourceCreator.java:70) ~[manager.biz-4.2.18.jar:na] at com.alibaba.otter.manager.biz.utils.DataSourceChecker.check(DataSourceChecker.java:146) ~[manager.biz-4.2.18.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_312] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_312] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_312] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_312] at org.directwebremoting.impl.ExecuteAjaxFilter.doFilter(ExecuteAjaxFilter.java:34) [dwr-2.0.10.jar:na] at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428) [dwr-2.0.10.jar:na] at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:431) [dwr-2.0.10.jar:na] at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:283) [dwr-2.0.10.jar:na] at org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:52) [dwr-2.0.10.jar:na] at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:101) [dwr-2.0.10.jar:na] at org.directwebremoting.spring.DwrSpringServlet.doPost(DwrSpringServlet.java:158) [dwr-2.0.10.jar:na] at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) [javax.servlet-3.0.0.v201112011016.jar:na] at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) [javax.servlet-3.0.0.v201112011016.jar:na] at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:648) [jetty-servlet-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1336) [jetty-servlet-8.1.7.v20120910.jar:8.1.7.v20120910] at com.alibaba.citrus.webx.support.AbstractWebxRootController.giveUpControl(AbstractWebxRootController.java:306) [citrus-webx-all-3.2.0.jar:3.2.0] at com.alibaba.citrus.webx.support.AbstractWebxRootController.service(AbstractWebxRootController.java:168) [citrus-webx-all-3.2.0.jar:3.2.0] at com.alibaba.citrus.webx.servlet.WebxFrameworkFilter.doFilter(WebxFrameworkFilter.java:152) [citrus-webx-all-3.2.0.jar:3.2.0] at com.alibaba.citrus.webx.servlet.FilterBean.doFilter(FilterBean.java:147) [citrus-webx-all-3.2.0.jar:3.2.0] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307) [jetty-servlet-8.1.7.v20120910.jar:8.1.7.v20120910] at com.alibaba.citrus.webx.servlet.SetLoggingContextFilter.doFilter(SetLoggingContextFilter.java:61) [citrus-webx-all-3.2.0.jar:3.2.0] at com.alibaba.citrus.webx.servlet.FilterBean.doFilter(FilterBean.java:147) [citrus-webx-all-3.2.0.jar:3.2.0] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307) [jetty-servlet-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453) [jetty-servlet-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:559) [jetty-security-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382) [jetty-servlet-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.Server.handle(Server.java:365) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:937) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:998) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856) [jetty-http-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) [jetty-http-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) [jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627) [jetty-io-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51) [jetty-io-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) [jetty-util-8.1.7.v20120910.jar:8.1.7.v20120910] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) [jetty-util-8.1.7.v20120910.jar:8.1.7.v20120910] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_312] Caused by: java.lang.NullPointerException: null at com.alibaba.otter.common.push.supplier.media.MediaDatasourceSupplier.parse(MediaDatasourceSupplier.java:135) ~[shared.push-4.2.18.jar:na] at com.alibaba.otter.common.push.supplier.media.MediaDatasourceSupplier.init(MediaDatasourceSupplier.java:103) ~[shared.push-4.2.18.jar:na] at com.alibaba.otter.common.push.supplier.media.MediaDatasourceSupplier.doStart(MediaDatasourceSupplier.java:87) ~[shared.push-4.2.18.jar:na] at com.alibaba.otter.common.push.supplier.AbstractDatasourceSupplier.start(AbstractDatasourceSupplier.java:34) ~[shared.push-4.2.18.jar:na] at com.alibaba.otter.common.push.datasource.media.MediaPushDataSource.init(MediaPushDataSource.java:100) ~[shared.push-4.2.18.jar:na] at com.alibaba.otter.common.push.datasource.media.MediaPushDataSourceHandler.createDataSource(MediaPushDataSourceHandler.java:106) ~[shared.push-4.2.18.jar:na] at com.alibaba.otter.common.push.datasource.media.MediaPushDataSourceHandler$1$1.apply(MediaPushDataSourceHandler.java:65) ~[shared.push-4.2.18.jar:na] at com.alibaba.otter.common.push.datasource.media.MediaPushDataSourceHandler$1$1.apply(MediaPushDataSourceHandler.java:62) ~[shared.push-4.2.18.jar:na] at com.google.common.collect.ComputingConcurrentHashMap$ComputingValueReference.compute(ComputingConcurrentHashMap.java:356) ~[guava-18.0.jar:na] at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.compute(ComputingConcurrentHashMap.java:182) ~[guava-18.0.jar:na] at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.getOrCompute(ComputingConcurrentHashMap.java:151) ~[guava-18.0.jar:na] at com.google.common.collect.ComputingConcurrentHashMap.getOrCompute(ComputingConcurrentHashMap.java:67) ~[guava-18.0.jar:na] at com.google.common.collect.MapMaker$ComputingMapAdapter.get(MapMaker.java:885) ~[guava-18.0.jar:na] ... 49 common frames omitted

原提问者Github用户 rsy93

展开
收起
云上静思 2023-06-14 23:14:04 84 0
4 条回答
写回答
取消 提交回答
  • 找到问题了,manager中otter.domainName配置的ip无法访问本机的端口导致的,将ip换了就行了

    原回答者 Github用户 rsy93

    2023-06-16 15:19:04
    赞同 展开评论 打赏
  • 值得去的地方都没有捷径

    根据您提供的信息,我能看出是您的数据源验证失败了。您在配置数据源时,使用了JDBC URL "jdbc:mysql://groupKey=db",但是验证失败了。您提到单独配置主数据库地址或备份数据库地址都可以验证通过,这意味着您的数据库服务器设置是没有问题的。我建议您检查以下几点:

    检查您的JDBC URL是否正确。确认您的数据源URL是否正确,用户名和密码是否正确,以及您是否有适当的访问权限。

    检查您的数据库是否已经正确地设置主备关系。请确认您的主数据库和备份数据库是否都能够正常运行,并且在同一主备关系下。

    检查您的防火墙设置是否正确。有时候,防火墙可能会阻止数据库服务器之间的通信。请确认您的防火墙设置是否正确,并且不会阻止数据库服务器之间的通信。

    检查您的日志文件。您提供的日志文件信息不够详细,但是您可以尝试查看更多的日志信息,以便确定问题所在。您可以查看数据库服务器的日志文件,以获取更多的信息。

    希望以上建议能够帮助您解决问题。如果您还有任何问题,请随时问我。

    2023-06-15 17:36:19
    赞同 展开评论 打赏
  • 北京阿里云ACE会长

    错误的原因和解决方法:

    配置文件中的语法错误:请确保您在配置文件中正确地书写了jdbc:mysql://groupKey=db,并检查您是否有不必要的空格或拼写错误。

    数据库连接问题:请确保您的主数据库和备份数据库都能够成功连接,并且您正在使用正确的用户名和密码进行连接。您可以尝试使用数据库客户端连接到数据库来验证连接是否正常。

    网络问题:请确保您的网络连接正常,并且您的数据库服务器可以通过网络访问。您可以尝试使用ping命令测试数据库服务器的连通性。

    端口号问题:请确保您的数据库服务器端口号正确,并且防火墙没有阻止访问该端口。您可以尝试使用telnet命令测试数据库服务器的端口是否可用。

    Otter Manager配置问题:请确保您的Otter Manager配置正确,并且您的数据源已经正确地添加到管理界面。您可以尝试重新启动Otter Manager服务,然后再次验证数据源配置。

    2023-06-15 08:06:17
    赞同 展开评论 打赏
  • 根据提供的日志信息,似乎是在调用manager时出现了问题,可能是由于配置中的jdbc:mysql://groupKey=db导致了数据源无法正确加载,从而导致连接失败。建议仔细检查配置文件中的相关配置,确保语法和参数都正确。另外,可以尝试去掉groupKey=db这个参数,看看能否正常连接主备数据库。如果问题仍然存在,建议进一步查看相关的异常日志或调试信息,以定位问题的具体原因。

    2023-06-15 08:05:33
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载