question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to pactVerify in docker against Spring Boot

See original GitHub issue

See docker_*.sh in project on github.

I have a Spring Boot project in Kotlin, and (in the same repo) a test consumer to verify pacts against (in Groovy, but in a separate project).

In docker: I can build test the provider, and build check pactPublish the consumer, uploading the Pactfile to the SaaS broker.

But when I try to run pactVerify I get a JVM SIGSEGV. This happens in every JDK flavour I’ve tried so far, including: openjdk:8, cogniteev/oracle-java:java8, and frolvlad/alpine-oraclejdk8.

These are the last few console lines before the fault:

:compileTestKotlin UP-TO-DATE
:compileTestJava NO-SOURCE
:copyTestKotlinClasses UP-TO-DATE
:processTestResources NO-SOURCE
:testClasses UP-TO-DATE
:pactVerify_Coffee Ordering Provider

And attached are a couple of dumps, maybe they’ll help 😃

hs_err_pid5.txt hs_err_pid8.txt

This is using gradle 3.4.1, from app/gradle/wrapper/gradle-wrapper.properties.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
uglyogcommented, Apr 27, 2017

Yeah, you need a -Dpact.colors.enabled=false that does just that

0reactions
abubicscommented, Apr 27, 2017

Great workaround \o/ My build is green now 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to pactVerify in docker against Spring Boot #414
See docker_*.sh in project on github. I have a Spring Boot project in Kotlin, and (in the same repo) a test consumer to...
Read more >
Not able to connect to docker image with a spring boot ...
Your application seems fine, and it seems you can access it from within the container with localhost as per your comment:
Read more >
Any example of gradle task to startApp(spring boot app) in ...
An issue I am facing is with gradle task startApp using bootRun{} it starts the app and waits/hangs and doesn't come to pactVerify...
Read more >
Contract Test Using Dockerized Pact Broker - Automationcalling
View Diff for failure results between Consumer and Provider test. In this blog, we are going to take a look at how to...
Read more >
Topical Guide | Spring Boot Docker
There is also a Getting Started Guide on Docker, which would also be a good starting point, ... This fails because the ${}...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found