请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

MyCat虚拟机启动不了

STATUS | wrapper | 2018/11/18 17:30:09 | --> Wrapper Started as Daemon
STATUS | wrapper | 2018/11/18 17:30:09 | Launching a JVM…
INFO | jvm 1 | 2018/11/18 17:30:09 | OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=64M; support was removed in 8.0
INFO | jvm 1 | 2018/11/18 17:30:09 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
INFO | jvm 1 | 2018/11/18 17:30:09 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
INFO | jvm 1 | 2018/11/18 17:30:09 |
INFO | jvm 1 | 2018/11/18 17:30:10 |
INFO | jvm 1 | 2018/11/18 17:30:10 | WrapperSimpleApp: Encountered an error running main: java.lang.ExceptionInInitializerError
INFO | jvm 1 | 2018/11/18 17:30:10 | java.lang.ExceptionInInitializerError
INFO | jvm 1 | 2018/11/18 17:30:10 | at io.mycat.MycatStartup.main(MycatStartup.java:53)
INFO | jvm 1 | 2018/11/18 17:30:10 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO | jvm 1 | 2018/11/18 17:30:10 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
INFO | jvm 1 | 2018/11/18 17:30:10 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO | jvm 1 | 2018/11/18 17:30:10 | at java.lang.reflect.Method.invoke(Method.java:498)
INFO | jvm 1 | 2018/11/18 17:30:10 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
INFO | jvm 1 | 2018/11/18 17:30:10 | at java.lang.Thread.run(Thread.java:748)
INFO | jvm 1 | 2018/11/18 17:30:10 | Caused by: io.mycat.config.util.ConfigException: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
INFO | jvm 1 | 2018/11/18 17:30:10 | at io.mycat.config.loader.xml.XMLSchemaLoader.load(XMLSchemaLoader.java:126)
INFO | jvm 1 | 2018/11/18 17:30:10 | at io.mycat.config.loader.xml.XMLSchemaLoader.(XMLSchemaLoader.java:83)
INFO | jvm 1 | 2018/11/18 17:30:10 | at io.mycat.config.loader.xml.XMLSchemaLoader.(XMLSchemaLoader.java:87)
INFO | jvm 1 | 2018/11/18 17:30:10 | at io.mycat.config.ConfigInitializer.(ConfigInitializer.java:76)
INFO | jvm 1 | 2018/11/18 17:30:10 | at io.mycat.config.MycatConfig.(MycatConfig.java:72)
INFO | jvm 1 | 2018/11/18 17:30:10 | at io.mycat.MycatServer.(MycatServer.java:170)
INFO | jvm 1 | 2018/11/18 17:30:10 | at io.mycat.MycatServer.(MycatServer.java:116)
INFO | jvm 1 | 2018/11/18 17:30:10 | … 7 more
INFO | jvm 1 | 2018/11/18 17:30:10 | Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
INFO | jvm 1 | 2018/11/18 17:30:10 | at java.lang.String.substring(String.java:1967)
INFO | jvm 1 | 2018/11/18 17:30:10 | at io.mycat.config.loader.xml.XMLSchemaLoader.createDBHostConf(XMLSchemaLoader.java:689)
INFO | jvm 1 | 2018/11/18 17:30:10 | at io.mycat.config.loader.xml.XMLSchemaLoader.loadDataHosts(XMLSchemaLoader.java:780)
INFO | jvm 1 | 2018/11/18 17:30:10 | at io.mycat.config.loader.xml.XMLSchemaLoader.load(XMLSchemaLoader.java:118)
INFO | jvm 1 | 2018/11/18 17:30:10 | … 13 more
STATUS | wrapper | 2018/11/18 17:30:12 | <-- Wrapper Stopped
[root@MyCat1 logs]#

正在回答

1回答

这个说的是mycat配置文件改错了

0 回复 有任何疑惑可以回复我~
  • 提问者 慕先生0841180 #1
    需要配置hosts吗?我的三份Mycat文件是照着视频配置的,但就是启动不了Mycat
    回复 有任何疑惑可以回复我~ 2018-11-24 11:47:48
  • 提问者 慕先生0841180 #2
    非常感谢!
    回复 有任何疑惑可以回复我~ 2018-11-24 12:32:50
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信