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

wiremock 3.x and webhook error #2341

Closed
defnngj opened this issue Aug 30, 2023 · 5 comments
Closed

wiremock 3.x and webhook error #2341

defnngj opened this issue Aug 30, 2023 · 5 comments
Labels

Comments

@defnngj
Copy link

defnngj commented Aug 30, 2023

Proposal

  • run error :
Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.github.tomakehurst.wiremock.extension.Extensions.load(Extensions.java:180)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining(Unknown Source)
at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Unknown Source)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.base/java.util.stream.ReferencePipeline.forEach(Unknown Source)
at com.github.tomakehurst.wiremock.extension.Extensions.load(Extensions.java:70)
at com.github.tomakehurst.wiremock.core.WireMockApp.(WireMockApp.java:92)
at com.github.tomakehurst.wiremock.WireMockServer.(WireMockServer.java:70)
at com.github.tomakehurst.wiremock.standalone.WireMockServerRunner.run(WireMockServerRunner.java:69)
at wiremock.Run.main(Run.java:23)
Caused by: java.lang.NoSuchMethodError: 'void com.github.tomakehurst.wiremock.extension.responsetemplating.TemplateEngine.(java.util.Map, java.lang.Long, java.util.Set)'
at org.wiremock.webhooks.Webhooks.(Webhooks.java:62)
at org.wiremock.webhooks.Webhooks.(Webhooks.java:67)

Reproduction steps

  • dockerfile
FROM wiremock/wiremock:latest

ENV WEBHOOKS_VERSION 3.0.0

COPY stubs /home/wiremock

ADD https://repo1.maven.org/maven2/org/wiremock/wiremock-webhooks-extension/$WEBHOOKS_VERSION/wiremock-webhooks-extension-$WEBHOOKS_VERSION.jar /var/wiremock/extensions/

CMD ["--global-response-templating", "--print-all-network-traffic", "--extensions", "org.wiremock.webhooks.Webhooks"]

latest == 3.0.0 ?

https://github.com/wiremock/wiremock-docker

References

No response

@defnngj defnngj added the bug label Aug 30, 2023
@defnngj defnngj closed this as completed Aug 30, 2023
@defnngj defnngj reopened this Aug 30, 2023
@oleg-nenashev
Copy link
Member

@defnngj Please see https://wiremock-community.slack.com/archives/C04HHJ7F20G/p1693395284006469 . The extension from 2.35 is not compatible with WireMock 3, and there is also a glitch for the 3.0.0 build. We are looking into it, please rollback to 2.35.0 for now

@oleg-nenashev
Copy link
Member

Also raised #2342 for the 3.0.0 artifact

@defnngj
Copy link
Author

defnngj commented Aug 31, 2023

ok, back to version 2.35 for the time being, running normally.

@oleg-nenashev
Copy link
Member

oleg-nenashev commented Aug 31, 2023 via email

@tomakehurst
Copy link
Member

Fixed in 3.0.1

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

No branches or pull requests

3 participants