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.

NoSuchField IGNORE_UNDEFINED

See original GitHub issue

Every time I try to run a junit test with @Rule annotation I’ve got java.lang.NoSuchFieldError: IGNORE_UNDEFINED Exception, I’ve also copied into my workspace your JUnit Example JUnitManaged.java as is and I’ve got the same problem. Wiremock version imported via maven is 2.5.1

             <groupId>com.github.tomakehurst</groupId>
	     <artifactId>wiremock</artifactId>
	     <version>2.5.1</version>
	</dependency>

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9

github_iconTop GitHub Comments

3reactions
andyklimczakcommented, Jul 31, 2017

To solve this, I changed my pom to use the standalone instead:

        <dependency>
            <groupId>com.github.tomakehurst</groupId>
            <artifactId>wiremock-standalone</artifactId>
            <version>2.7.0</version>
            <scope>test</scope>
        </dependency>
2reactions
tomakehurstcommented, Feb 13, 2017

I suggest you check what else is on your classpath as this is almost certainly a clashing dependency. Using the standalone artifact is a good workaround for this type of problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NoSuchField IGNORE_UNDEFINED · Issue #605 · wiremock ...
Every time I try to run a junit test with @rule annotation I've got java.lang.NoSuchFieldError: IGNORE_UNDEFINED Exception, I've also copied ...
Read more >
graalvm/native-image - Gitter
Any plan for making it possible to at least compile master without having to go through the whole process of getting a new...
Read more >
NoSuchFieldError in Java - Baeldung
NoSuchFieldError extends the IncompatibleClassChangeError class and is thrown when the application tries to access or modify a field of an ...
Read more >
java.lang.NoSuchFieldError exception while the field is defined
I'm working on a web application for Apache Tomcat. I'm using a class called Location in which i defined a field called ipAddresses....
Read more >
Ansible Playbook - Task Was Never Completed ,No Results And Still ...
The ignoreerrors directive only works when the task is able to run and returns a value of 'failed'. It does not make Ansible...
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