Comments (6)
Ah yeah. It's due to the the OpenAPI code doing reflection on PluginEntryPoint which declares a private static field of type Economy
. I'll have to rewrite this a little bit to create a sort of wrapper around the eco stuff. Thank you for the bug report @Shuro
from servertap.
It is a soft dependency. Let me look into this right now
from servertap.
Ahh it's a weird interaction between the OpenAPI annotations and Vault. Still digging
from servertap.
OK this is because I changed the scope
of the Vault maven dependency to provided
as per its documentation. This was required to make all the RegisteredServiceProvider
parts work properly (see https://github.com/phybros/servertap/blob/main/src/main/java/io/servertap/PluginEntrypoint.java#L266).
But changing it to provided means that any time the Economy
class is accessed, it throws a NoClassDef exception if you don't "provide" the Jar. In this case the OpenAPI stuff is trying to look at the Economy API routes to find out what types are used (I think).
I think there's a solution to this, but it might take some work. Still looking
from servertap.
Looks like 3edc3f9 fixed the issue. Introduced a new wrapper around the economy instance and made it a singleton. Now only economy related functionality causes the Economy
class to be invoked/referenced.
I tested it with and without Vault and an eco plugin and swagger loads/works fine. In addition the economy routes also work fine. Seems good to me. I'll release this as a new version shortly.
from servertap.
Fixed in v0.4.0 https://github.com/phybros/servertap/releases/tag/v0.4.0
from servertap.
Related Issues (20)
- Server Tap Plugin Incompatibility with EcoSkills HOT 6
- Add new route to get all advancements for a player
- It seems that the current servertap version is not compatible with version 1.18.2 of Arclight.
- failed to find class org/conscrypt/CryptoUpcalls HOT 3
- I'm use 'POST /v1/server/exec' and some command is dont have Response HOT 3
- internal server error when executing "list" through /server/exec
- >....failed to find class org/conscrypt/CryptoUpcalls HOT 4
- 1.20.+ HOT 2
- plugin turn red when i change the port HOT 13
- Error related to Player HOT 1
- [18:45:15 WARN]: [io.javalin.Javalin] Uncaught exception HOT 1
- Support editing luckperms via ServerTap
- BungeeCord and Velocity support
- ServerTap Broken With Latest Paper Version (When Using TikFinity Minecraft Plugin) HOT 7
- Java Error when trying to download world - Server Tap 0.5.3 - Paper 1.20.1 HOT 2
- Uncaught Exception - Error occurred while executing a command HOT 2
- Request: Log IP of the requests originated from HOT 3
- Could not pass event PlayerQuitEvent to ServerTap v0.6.1 HOT 1
- unable to run plugin on server HOT 1
- ScoreboardManager is null at the start of the server
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from servertap.