Java [v214] Swordie Source

Page 2 of 2 FirstFirst 12
Results 16 to 29 of 29
  1. #16
    Member SomeoneMs is offline
    MemberRank
    Aug 2016 Join Date
    65Posts
    Quote Originally Posted by Roundness View Post
    Instead of being negative everytime someone releases something, how about release something better that the community can use ? Or if you know a fix post that.
    why I release here fixes? lol I say the v206 and 214 not stable and in v214 lot of things not coded..

  2. #17
    Apprentice CRE is offline
    MemberRank
    Nov 2022 Join Date
    12Posts
    Quote Originally Posted by Roundness View Post
    Could you post the link of the github when done ? Thanks.
    https://github.com/CoREse/gms214server
    I managed to get the cash shop fixed too. Although not fully fixed fixed, but at least it works. (I even use brutal for loop to compare SN one to one lol instead of using some kind of map)
    Last edited by CRE; 29-11-22 at 08:04 PM. Reason: typo

  3. #18
    Novice Gishdalah is offline
    MemberRank
    Nov 2022 Join Date
    1Posts
    How did you manage to get the authhook to compile? mine gives out a bunch of errors

  4. #19
    [VIP] Bellocan is offline
    [VIP] MemberRank
    Aug 2007 Join Date
    739Posts
    Quote Originally Posted by Gishdalah View Post
    How did you manage to get the authhook to compile? mine gives out a bunch of errors
    I am using Windows SDK 10.0 and Visual Studio 2022 v143 build tools for compiling. It uses Visual C++ 14 as well. Check your visual studio install to see if you have v143 installed, to include Windows 10 SDK.

  5. #20
    Enthusiast Roundness is offline
    MemberRank
    May 2013 Join Date
    45Posts
    Quote Originally Posted by CRE View Post
    https://github.com/CoREse/gms214server
    I managed to get the cash shop fixed too. Although not fully fixed fixed, but at least it works. (I even use brutal for loop to compare SN one to one lol instead of using some kind of map)
    Wow that was fast and nicely done with the cash shop. I will try to check it out tomorrow.

  6. #21
    Enthusiast swordiemen is offline
    MemberRank
    May 2007 Join Date
    31Posts
    Good to see Soldie being used to further progress the open source mapledev scene :) I'd suggest leaving the .dat files outside of the source itself though (especially if you want to have it on github or something), as it drastically increases the time it takes to unzip/copypaste it somewhere. Although I guess it does make for easier startup (near plug-n-play).

  7. #22
    Novice cryionic is offline
    MemberRank
    Dec 2022 Join Date
    3Posts
    Hi! I'm having the following errors while compiling auth hook. Can anyone guide me on this? Thanks.

    Severity Code Description Project File Line Suppression StateError

    LNK2038 mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in MapleHook.obj Client214 F:\MS project\Bellocan v214\v214-Auth-Hook-main Bellocan\Client210\discord-rpc.lib(serialization.obj) 1

    about 8 more similar errors

  8. #23
    [VIP] Bellocan is offline
    [VIP] MemberRank
    Aug 2007 Join Date
    739Posts
    Quote Originally Posted by cryionic View Post
    Hi! I'm having the following errors while compiling auth hook. Can anyone guide me on this? Thanks.

    Severity Code Description Project File Line Suppression StateError

    LNK2038 mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in MapleHook.obj Client214 F:\MS project\Bellocan v214\v214-Auth-Hook-main Bellocan\Client210\discord-rpc.lib(serialization.obj) 1

    about 8 more similar errors
    Try changing your build from debug to release and build again. See if this resolves the issue.

  9. #24
    Novice cryionic is offline
    MemberRank
    Dec 2022 Join Date
    3Posts
    Quote Originally Posted by Bellocan View Post
    Try changing your build from debug to release and build again. See if this resolves the issue.
    Thank you! That worked, I'm a dumb dumb.

  10. #25
    [VIP] Bellocan is offline
    [VIP] MemberRank
    Aug 2007 Join Date
    739Posts
    Quote Originally Posted by cryionic View Post
    Thank you! That worked, I'm a dumb dumb.
    Errors are learned through experience, then asking the community on a resolution if you can't figure it out yourself. No reason to call yourself a dumb dumb.
    Last edited by Bellocan; 03-12-22 at 06:41 PM.

  11. #26
    Novice cryionic is offline
    MemberRank
    Dec 2022 Join Date
    3Posts
    Thanks for the kind words, Bellocan! If you don't mind, I have another issue that I think is out of my league. It works fine, however I encounter these and had to dispose myself at times.
    java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at net.swordie.ms.connection.netty.ChannelHandler.channelRead0(ChannelHandler.java:139) at net.swordie.ms.connection.netty.ChannelHandler.channelRead0(ChannelHandler.java:31) at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:324) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:296) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:722) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:658) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:584) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496) at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986) at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.base/java.lang.Thread.run(Thread.java:833)Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1 at net.swordie.ms.handlers.LoginHandler.handleExceptionLog(LoginHandler.java:590)

    The channels appear to be full, I think it's related to Netty as well.

    Where should I start looking?

  12. #27
    Apprentice CRE is offline
    MemberRank
    Nov 2022 Join Date
    12Posts
    Quote Originally Posted by cryionic View Post
    Thanks for the kind words, Bellocan! If you don't mind, I have another issue that I think is out of my league. It works fine, however I encounter these and had to dispose myself at times.
    java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at net.swordie.ms.connection.netty.ChannelHandler.channelRead0(ChannelHandler.java:139) at net.swordie.ms.connection.netty.ChannelHandler.channelRead0(ChannelHandler.java:31) at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:324) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:296) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:722) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:658) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:584) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496) at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986) at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.base/java.lang.Thread.run(Thread.java:833)Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1 at net.swordie.ms.handlers.LoginHandler.handleExceptionLog(LoginHandler.java:590)

    The channels appear to be full, I think it's related to Netty as well.

    Where should I start looking?
    Seems like a message handling problem, the error code is about handling exceptions I think, you can fix it by checking the actual log message and change the code to fit it. Or, if it works fine, you can just block those code, I think it won't influnce much, or you can try change that line to "String packet = str;" should solve this specific exception (although with some consequences).

  13. #28
    Novice Zero9293 is offline
    MemberRank
    Dec 2022 Join Date
    1Posts
    It unclear why am i getting this error

    "C:\Program Files\Java\jdk-19\bin\java.exe" --enable-preview "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.3\lib\idea_rt.jar=50361:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.3\bin" -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath "C:\Users\Administrator\Desktop\Maple Sever\gms214server-main (1)\gms214server-main\bin\classes;C:\Users\Administrator\.m2\repository\mysql\mysql-connector-java\5.1.39\mysql-connector-java-5.1.39.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-all\4.1.72.Final\netty-all-4.1.72.Final.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-buffer\4.1.72.Final\netty-buffer-4.1.72.Final.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-codec\4.1.72.Final\netty-codec-4.1.72.Final.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-codec-dns\4.1.72.Final\netty-codec-dns-4.1.72.Final.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-codec-haproxy\4.1.72.Final\netty-codec-haproxy-4.1.72.Final.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-codec-http\4.1.72.Final\netty-codec-http-4.1.72.Final.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-codec-http2\4.1.72.Final\netty-codec-http2-4.1.72.Final.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-codec-memcache\4.1.72.Final\netty-codec-memcache-4.1.72.Final.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-codec-mqtt\4.1.72.Final\netty-codec-mqtt-4.1.72.Final.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-codec-redis\4.1.72.Final\netty-codec-redis-4.1.72.Final.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-codec-smtp\4.1.72.Final\netty-codec-smtp-4.1.72.Final.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-codec-socks\4.1.72.Final\netty-codec-socks-4.1.72.Final.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-codec-stomp\4.1.72.Final\netty-codec-stomp-4.1.72.Final.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-codec-xml\4.1.72.Final\netty-codec-xml-4.1.72.Final.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-common\4.1.72.Final\netty-common-4.1.72.Final.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-handler\4.1.72.Final\netty-handler-4.1.72.Final.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-tcnative-classes\2.0.46.Final\netty-tcnative-classes-2.0.46.Final.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-handler-proxy\4.1.72.Final\netty-handler-proxy-4.1.72.Final.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-resolver\4.1.72.Final\netty-resolver-4.1.72.Final.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-resolver-dns\4.1.72.Final\netty-resolver-dns-4.1.72.Final.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-transport\4.1.72.Final\netty-transport-4.1.72.Final.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-transport-rxtx\4.1.72.Final\netty-transport-rxtx-4.1.72.Final.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-transport-sctp\4.1.72.Final\netty-transport-sctp-4.1.72.Final.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-transport-udt\4.1.72.Final\netty-transport-udt-4.1.72.Final.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-transport-classes-epoll\4.1.72.Final\netty-transport-classes-epoll-4.1.72.Final.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-transport-native-unix-common\4.1.72.Final\netty-transport-native-unix-common-4.1.72.Final.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-transport-classes-kqueue\4.1.72.Final\netty-transport-classes-kqueue-4.1.72.Final.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-resolver-dns-classes-macos\4.1.72.Final\netty-resolver-dns-classes-macos-4.1.72.Final.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-transport-native-epoll\4.1.72.Final\netty-transport-native-epoll-4.1.72.Final-linux-x86_64.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-transport-native-epoll\4.1.72.Final\netty-transport-native-epoll-4.1.72.Final-linux-aarch_64.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-transport-native-kqueue\4.1.72.Final\netty-transport-native-kqueue-4.1.72.Final-osx-x86_64.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-transport-native-kqueue\4.1.72.Final\netty-transport-native-kqueue-4.1.72.Final-osx-aarch_64.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-resolver-dns-native-macos\4.1.72.Final\netty-resolver-dns-native-macos-4.1.72.Final-osx-x86_64.jar;C:\Users\Administrator\.m2\repository\io\netty\netty-resolver-dns-native-macos\4.1.72.Final\netty-resolver-dns-native-macos-4.1.72.Final-osx-aarch_64.jar;C:\Users\Administrator\.m2\repository\javax\xml\bind\jaxb-api\2.3.1\jaxb-api-2.3.1.jar;C:\Users\Administrator\.m2\repository\javax\activation\javax.activation-api\1.2.0\javax.activation-api-1.2.0.jar;C:\Users\Administrator\.m2\repository\com\sun\xml\bind\jaxb-impl\3.0.2\jaxb-impl-3.0.2.jar;C:\Users\Administrator\.m2\repository\com\sun\xml\bind\jaxb-core\3.0.2\jaxb-core-3.0.2.jar;C:\Users\Administrator\.m2\repository\com\sun\activation\jakarta.activation\2.0.1\jakarta.activation-2.0.1.jar;C:\Users\Administrator\.m2\repository\org\glassfish\jaxb\jaxb-runtime\2.3.2\jaxb-runtime-2.3.2.jar;C:\Users\Administrator\.m2\repository\jakarta\xml\bind\jakarta.xml.bind-api\2.3.2\jakarta.xml.bind-api-2.3.2.jar;C:\Users\Administrator\.m2\repository\org\glassfish\jaxb\txw2\2.3.2\txw2-2.3.2.jar;C:\Users\Administrator\.m2\repository\com\sun\istack\istack-commons-runtime\3.0.8\istack-commons-runtime-3.0.8.jar;C:\Users\Administrator\.m2\repository\org\jvnet\staxex\stax-ex\1.8.1\stax-ex-1.8.1.jar;C:\Users\Administrator\.m2\repository\com\sun\xml\fastinfoset\FastInfoset\1.2.16\FastInfoset-1.2.16.jar;C:\Users\Administrator\.m2\repository\jakarta\activation\jakarta.activation-api\1.2.1\jakarta.activation-api-1.2.1.jar;C:\Users\Administrator\.m2\repository\javax\activation\activation\1.1.1\activation-1.1.1.jar;C:\Users\Administrator\.m2\repository\org\hibernate\hibernate-core\5.6.3.Final\hibernate-core-5.6.3.Final.jar;C:\Users\Administrator\.m2\repository\org\jboss\logging\jboss-logging\3.4.2.Final\jboss-logging-3.4.2.Final.jar;C:\Users\Administrator\.m2\repository\javax\persistence\javax.persistence-api\2.2\javax.persistence-api-2.2.jar;C:\Users\Administrator\.m2\repository\net\bytebuddy\byte-buddy\1.11.20\byte-buddy-1.11.20.jar;C:\Users\Administrator\.m2\repository\antlr\antlr\2.7.7\antlr-2.7.7.jar;C:\Users\Administrator\.m2\repository\org\jboss\spec\javax\transaction\jboss-transaction-api_1.2_spec\1.1.1.Final\jboss-transaction-api_1.2_spec-1.1.1.Final.jar;C:\Users\Administrator\.m2\repository\org\jboss\jandex\2.2.3.Final\jandex-2.2.3.Final.jar;C:\Users\Administrator\.m2\repository\com\fasterxml\classmate\1.5.1\classmate-1.5.1.jar;C:\Users\Administrator\.m2\repository\org\hibernate\common\hibernate-commons-annotations\5.1.2.Final\hibernate-commons-annotations-5.1.2.Final.jar;C:\Users\Administrator\.m2\repository\org\python\jython-standalone\2.7.2\jython-standalone-2.7.2.jar;C:\Users\Administrator\.m2\repository\log4j\log4j\1.2.17\log4j-1.2.17.jar;C:\Users\Administrator\.m2\repository\org\mindrot\jbcrypt\0.4\jbcrypt-0.4.jar;C:\Users\Administrator\.m2\repository\com\google\guava\guava\26.0-jre\guava-26.0-jre.jar;C:\Users\Administrator\.m2\repository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;C:\Users\Administrator\.m2\repository\org\checkerframework\checker-qual\2.5.2\checker-qual-2.5.2.jar;C:\Users\Administrator\.m2\repository\com\google\errorprone\error_prone_annotations\2.1.3\error_prone_annotations-2.1.3.jar;C:\Users\Administrator\.m2\repository\com\google\j2objc\j2objc-annotations\1.1\j2objc-annotations-1.1.jar;C:\Users\Administrator\.m2\repository\org\codehaus\mojo\animal-sniffer-annotations\1.14\animal-sniffer-annotations-1.14.jar;C:\Users\Administrator\.m2\repository\org\openjdk\nashorn\nashorn-core\15.3\nashorn-core-15.3.jar;C:\Users\Administrator\.m2\repository\org\ow2\asm\asm\7.3.1\asm-7.3.1.jar;C:\Users\Administrator\.m2\repository\org\ow2\asm\asm-commons\7.3.1\asm-commons-7.3.1.jar;C:\Users\Administrator\.m2\repository\org\ow2\asm\asm-analysis\7.3.1\asm-analysis-7.3.1.jar;C:\Users\Administrator\.m2\repository\org\ow2\asm\asm-tree\7.3.1\asm-tree-7.3.1.jar;C:\Users\Administrator\.m2\repository\org\ow2\asm\asm-util\7.3.1\asm-util-7.3.1.jar" net.swordie.ms.Server[INFO] Starting server.[DEBUG] Logging Provider: org.jboss.logging.Log4jLoggerProvider[ERROR] Could not create connection to database server. Attempted reconnect 3 times. Giving up.Exception in thread "main" org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment] at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:275) at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237) at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) at org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.injectServices(DefaultIdentifierGeneratorFactory.java:175) at org.hibernate.service.internal.AbstractServiceRegistryImpl.injectDependencies(AbstractServiceRegistryImpl.java:286) at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:243) at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.<init>(InFlightMetadataCollectorImpl.java:173) at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:127) at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.build(MetadataBuildingProcess.java:86) at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:479) at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:85) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:709) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:746) at net.swordie.ms.connection.db.DatabaseManager.init(DatabaseManager.java:147) at net.swordie.ms.Server.init(Server.java:85) at net.swordie.ms.Server.main(Server.java:349)Caused by: org.hibernate.exception.JDBCConnectionException: Error calling Driver#connect at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:48) at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:37) at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:113) at org.hibernate.engine.jdbc.connections.internal.BasicConnectionCreator.convertSqlException(BasicConnectionCreator.java:118) at org.hibernate.engine.jdbc.connections.internal.DriverConnectionCreator.makeConnection(DriverConnectionCreator.java:41) at org.hibernate.engine.jdbc.connections.internal.BasicConnectionCreator.createConnection(BasicConnectionCreator.java:58) at org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl$PooledConnections.addConnections(DriverManagerConnectionProviderImpl.java:409) at org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl$PooledConnections.<init>(DriverManagerConnectionProviderImpl.java:275) at org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl$PooledConnections.<init>(DriverManagerConnectionProviderImpl.java:249) at org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl$PooledConnections$Builder.build(DriverManagerConnectionProviderImpl.java:453) at org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl.buildPool(DriverManagerConnectionProviderImpl.java:98) at org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl.configure(DriverManagerConnectionProviderImpl.java:73) at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:107) at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:246) at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.buildJdbcConnectionAccess(JdbcEnvironmentInitiator.java:146) at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:66) at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35) at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:101) at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263) ... 16 moreCaused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up. at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:67) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:484) at com.mysql.jdbc.Util.handleNewInstance(Util.java:404) at com.mysql.jdbc.Util.getInstance(Util.java:387) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:917) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:896) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:885) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:860) at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2163) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2088) at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:806) at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47) at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:67) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:484) at com.mysql.jdbc.Util.handleNewInstance(Util.java:404) at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:410) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:328) at org.hibernate.engine.jdbc.connections.internal.DriverConnectionCreator.makeConnection(DriverConnectionCreator.java:38) ... 31 moreCaused by: java.lang.NullPointerException: Cannot invoke "java.util.Map.get(Object)" because "this.serverVariables" is null at com.mysql.jdbc.ConnectionImpl.getServerCharset(ConnectionImpl.java:2997) at com.mysql.jdbc.MysqlIO.sendConnectionAttributes(MysqlIO.java:1936) at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1865) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1228) at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2253) at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2104) ... 41 moreProcess finished with exit code 1

    If anyone can help that would be great

  14. #29



Page 2 of 2 FirstFirst 12

Advertisement