Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JVM error when using jfconfig with Dropwizard 1.3.0+ #2

Open
andreweacott opened this issue Jun 14, 2019 · 1 comment
Open

JVM error when using jfconfig with Dropwizard 1.3.0+ #2

andreweacott opened this issue Jun 14, 2019 · 1 comment

Comments

@andreweacott
Copy link

Using jfconfg 4.1.12 with a Dropwizard 1.3.0+ application causes a JVM error when the JFConfig class is loaded :

java.lang.VerifyError: Bad type on operand stack
      Exception Details:
        Location:
          com/energizedwork/justConf/JFConfig.envVarSubstitution(Lio/dropwizard/configuration/ConfigurationSourceProvider;)Lio/dropwizard/configuration/ConfigurationSourceProvider; @13: invokespecial
        Reason:
          Type 'io/dropwizard/configuration/EnvironmentVariableSubstitutor' (current frame, stack[3]) is not assignable to 'org/apache/commons/lang3/text/StrSubstitutor'
        Current Frame:
          bci: @13
          flags: { }
          locals: { 'io/dropwizard/configuration/ConfigurationSourceProvider' }
          stack: { uninitialized 0, uninitialized 0, 'io/dropwizard/configuration/ConfigurationSourceProvider', 'io/dropwizard/configuration/EnvironmentVariableSubstitutor' }
        Bytecode:
          0000000: bb00 0259 2abb 0003 5903 b700 04b7 0005
          0000010: b0
          at net.mytestorg.test.MicroServiceConfigurationTest.testConfiguration(MicroServiceConfigurationTest.java:34)

Appears to be a class incompatibility with jfconfig build dependencies.
i.e. Rebuilding jfconfig using the 1.3.0 dropwizard BOM instead of 1.1.4 produces an artifact that doesn't cause this issue.

@andreweacott
Copy link
Author

PR #1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant