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, I follow the steps strictly, but always get error when mvn clean install Here’s my pom.xml file. <project xmlns=”″ xmlns:xsi=”” xsi:schemaLocation=””> <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: PKIX path building failed: 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

Maven error: “You don’t have a SNAPSHOT project in the reactor projects list.”

What on earth does this mean? Cant find any help via google. > mvn release:prepare [INFO] Scanning for projects… [INFO] [INFO] ———————————————————————— [INFO] Building Base 1.0.5 [INFO] ———————————————————————— [INFO] [INFO] — maven-release-plugin:2.3.2:prepare (default-cli) @ base — [INFO] ———————————————————————— [INFO] BUILD FAILURE [INFO] ———————————————————————— [INFO] Total time: 1.386s [INFO] Finished at: Tue Oct 08 08:22:46 EST … 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=”″ xmlns:xsi=”” xsi:schemaLocation=””> <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> <>UTF-8</> <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> <>8</> <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

Spring MVC annotation based Configuration for multimodule project

I implemented two maven based independent web project implemented using Spring MVC, hibernate and Jax-RS. But my requirement changed and now I need to combine both the project as a sub project into another project which is our parent project. So I use maven multimodule configuration. Project 1: Parent project <packaging>pom</packaging> <modules> <module>../child1</module> <module>../child2</module> </modules> … Read more

Handling non-OSGi dependencies when integrating Maven, Tycho and Eclipse

I have a bunch of Eclipse-based plugins that I have been migrating to Maven/Tycho. Most of these plugins depend on separate libraries that I now manage through Maven, rather than muddle around with .jar files. The most cumbersome part of my current setup is due to the apparent inability of Tycho to process Maven-only (i.e. … Read more