Skip to content
Advertisement

Tag: intellij-idea

Gradle build ignores Jetbrains annotations

Let’s say we have the following test code: The test will pass when running gradle test directly or if IDEA delegates the action to gradle. But it will fail with IllegalArgumentException: Argument for @NotNull parameter ‘value’ must not be null exception if it runs using IDEA runner (not delegated to gradle). The question is: how to fail the test running

How to run single class ignoring compilation error in other class

I am using IntelliJ IDEA 2017.3. I have a project called “test”, which has two classes under the src folder: Main, has main method to print out “Hello World” CompileErrorClass, has one method with compile errors Those two class have no dependencies. I was trying to run the main() in the Main class, and set the before launch to “build,

“NoClassDefFoundError: javax/xml/bind/DatatypeConverter” with SQL Server JDBC

I recently switched to intellij but I’m finding it hard to connect to my localDB. The same code worked on eclipse fine. Also I have already added the sqljdbc42.jar as a module dependency. Error produced: Any help would be greatly appreciated. I’ve also tried the overloaded DriverManager.getConnection(url, user, pass) method and same error. Answer For Java 9+ compatibility, you need

How to display auto-configuration report when running a Spring Boot application

Error starting ApplicationContext. To display the auto-configuration report re-run your application with ‘debug’ enabled I am getting the above message when I try to run my Spring Boot application. Does anyone know how I can re-run the application with ‘debug’ enabled? I am running the application in Intellij (version 2016.1.2) My runner class looks like the following, In response to

Advertisement