Dependency convergence error

After updating Firefox I changed versions of libraries to higher ones. Following errors appeard: [ERROR] Dependency convergence error for commons-collections:commons-collections:3.2.2 paths to dependency are: [ERROR] +-net:serenity.pom.gradle:0.0.1-SNAPSHOT [ERROR] +-net.serenity-bdd:serenity-core:1.1.29-rc.3 [ERROR] +-org.seleniumhq.selenium:htmlunit-driver:2.20 [ERROR] +-commons-collections:commons-collections:3.2.2 [ERROR] and [ERROR] +-net:serenity.pom.gradle:0.0.1-SNAPSHOT [ERROR] +-net.serenity-bdd:serenity-core:1.1.29-rc.3 [ERROR] +-io.appium:java-client:3.3.0 [ERROR] +-commons-validator:commons-validator:1.4.1 [ERROR] +-commons-collections:commons-collections:3.2.1 [ERROR] and [ERROR] +-net:serenity.pom.gradle:0.0.1-SNAPSHOT [ERROR] +-net.serenity-bdd:serenity-core:1.1.29-rc.3 [ERROR] +-commons-collections:commons-collections:3.2.2 [ERROR] ] [ERROR] … Read more

Error creating bean with name ‘requestMappingHandlerAdapter’

Am creating a simple REST service using Springframework with Tomcat. The response should have to be in json like {“id”:”101″,”name”:”Ram”} .When ever I run, am getting the following error org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘requestMappingHandlerAdapter’ defined in class org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport.requestMappingHandlerAdapter()] threw exception; … Read more

Could not instantiate bean : Constructor threw exception; nested exception is java.lang.NullPointerException

package baseDao; public interface BaseDao { public void create(Object obj); public void delete(Object obj); public void update(Object obj); public void get(Object obj); } package baseDao; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.springframework.beans.factory.annotation.Autowired; public abstract class BaseDaoImpl implements BaseDao { @Autowired private SessionFactory usermanagementSessionFactory; private Session session = usermanagementSessionFactory.getCurrentSession(); /*—————–To save an object————–*/ public void create(Object obj){ … Read more

Maven Jaxb2 xjc plugin error No schemas have been found

These days I’ve spent some time on JAXB for converting XSD to Java Class and vice versa. Here’s a very good tutorial for beginners, http://www.journaldev.com/1312/how-to-generate-java-classes-from-xsd-using-xjc-maven-plugin. I follow the steps strictly, but always get error when mvn clean install Here’s my pom.xml file. <project xmlns=”http://maven.apache.org/POM/4.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd”> <modelVersion>4.0.0</modelVersion> <groupId>jd</groupId> <artifactId>jd</artifactId> <version>0.0.1-SNAPSHOT</version> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> … Read more

SVN authentication failure when running a Sonar analysis in Jenkins 1.620 SonarQube 5.1.1

I have a java maven web project, I have also Jenkins 1.620 and SonarQube 5.1.1. I have added in jenkins a maven post action with SonarQube setting the jdk as 7u79, the same used by the project. When I run the jenkins task, I get on the console next error: [ERROR] Failed to execute goal … Read more

Intellij Maven Repository self signed certificate, ssl error

In intellij (15.0.4) under settings->Maven->Repositories I get an error when clicking update on the companies repositories. org.apache.maven.wagon.TransferFailedException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target I can understand, since it is a self-signed untrusted certificate, however, I have added this certificate to settings->Tools->Server Certificates->Accepted Certificates. I also added … Read more

Build failure run “mvn clean install”. I just upgraded Big Sur

mvn clean install building failure [INFO] Total time: 1.911 s [INFO] Finished at: 2020-11-14T19:07:37+08:00 [INFO] ———————————————————————— [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project es-starter: Compilation failure [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? [ERROR] [ERROR] -> [Help 1] [ERROR] [ERROR] To … Read more

Spring boot maven plugin class not found

I have three maven project one is pom package and other 2 are jar packaging here is the admin-aggreagator pom <project xmlns=”http://maven.apache.org/POM/4.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd”> <modelVersion>4.0.0</modelVersion> <groupId>com.sounds.bvs</groupId> <artifactId>admin-aggregator</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>pom</packaging> <modules> <module>../admin-lib</module> <module>../admin-rest</module> </modules> <properties> <project.build.SourceEncoding>UTF-8</project.build.SourceEncoding> <spring-boot-version>2.0.4.RELEASE</spring-boot-version> <spring-version>2.0.4.RELEASE</spring-version> <maven.compiler.source>8</maven.compiler.source> <maven.compiler.target>8</maven.compiler.target> <start-class>com.sounds.bvs.AdminRestApp</start-class> </properties> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.4.RELEASE</version> </parent> <dependencyManagement> <dependencies> <dependency> <groupId>com.sounds.bvs</groupId> <artifactId>admin-lib</artifactId> <version>${project.version}</version> </dependency> <dependency> … Read more

How to remove outdated Maven artifacts from Jenkins Maven2/3 job?

Over the last couple of months I have restructured (renamed) my Maven modules of my project. I discovered some unexpected behavior with respect to how Jenkins treats outdated Maven modules (i.e., they no longer exist in pom.xml files) produced by the build job. This is depicted in the following screenshot: As can be seen several … Read more