Giter Site home page Giter Site logo

Comments (6)

phybros avatar phybros commented on May 18, 2024 1

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.

phybros avatar phybros commented on May 18, 2024

It is a soft dependency. Let me look into this right now

from servertap.

phybros avatar phybros commented on May 18, 2024

Ahh it's a weird interaction between the OpenAPI annotations and Vault. Still digging

from servertap.

phybros avatar phybros commented on May 18, 2024

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.

phybros avatar phybros commented on May 18, 2024

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.

phybros avatar phybros commented on May 18, 2024

Fixed in v0.4.0 https://github.com/phybros/servertap/releases/tag/v0.4.0

from servertap.

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.