Giter Site home page Giter Site logo

Comments (4)

danorris709 avatar danorris709 commented on June 15, 2024

You're compiling the API?

from api.

Lileep avatar Lileep commented on June 15, 2024

You're compiling the API?

Not just the API. When I'm compiling my mod(used API 2.4.8) via reobfShadowJar task, the gradle packs all the dependencies into itself, including the code of vanilla mc and pixelmon.
Now I've tried to change the build.gradle of my mod to fit API 2.5.4 and it finally works. Thanks for ur great work. :)

from api.

Lileep avatar Lileep commented on June 15, 2024

Now I'm facing with another issue. The hikari part in API seems to be broken when I view the source.

image

Though things can work well when starting a server, it logs error when loading database source:

[com.github.lileep.pixelmonbank.shade.slf4j.impl.SimpleLogger:write:381]: [envyware_concurrency_0] INFO com.github.lileep.pixelmonbank.shade.hikari.hikari.HikariDataSource - pixelmon-bank-pool - Starting...
java.lang.RuntimeException: Failed to get driver instance for jdbcUrl=jdbc:mysql://127.0.0.1:3306/pixelbank
 	at com.github.lileep.pixelmonbank.shade.hikari.hikari.util.DriverDataSource.<init>(DriverDataSource.java:114)
 	at com.github.lileep.pixelmonbank.shade.hikari.hikari.pool.PoolBase.initializeDataSource(PoolBase.java:331)
 	at com.github.lileep.pixelmonbank.shade.hikari.hikari.pool.PoolBase.<init>(PoolBase.java:114)
 	at com.github.lileep.pixelmonbank.shade.hikari.hikari.pool.HikariPool.<init>(HikariPool.java:108)
 	at com.github.lileep.pixelmonbank.shade.hikari.hikari.HikariDataSource.<init>(HikariDataSource.java:81)
 	at com.github.lileep.pixelmonbank.shade.envy.api.database.impl.SimpleHikariDatabase.<init>(SimpleHikariDatabase.java:65)
 	at com.github.lileep.pixelmonbank.shade.envy.api.database.impl.SimpleHikariDatabase.<init>(SimpleHikariDatabase.java:22)
	at com.github.lileep.pixelmonbank.PixelmonBank.lambda$preInit$0(PixelmonBank.java:78)
 	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 	at java.lang.Thread.run(Unknown Source)
 Caused by: java.sql.SQLException: No suitable driver
 	at java.sql.DriverManager.getDriver(Unknown Source)
 	at com.github.lileep.pixelmonbank.shade.hikari.hikari.util.DriverDataSource.<init>(DriverDataSource.java:106)
 	... 10 more

There's nothing wrong with the sql connection. Hope that there're solutions.

from api.

danorris709 avatar danorris709 commented on June 15, 2024

Make sure you've not toggled the transitive to false for commons

from api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.