Spring 4 and fasterxml Jackson are incompatible

Spring 4 and Jackson dependency related issue. Trace: HTTP Status 500 – Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.ObjectWriter.forType(Lcom/fasterxml/jackson/databind/JavaType;)Lcom/fasterxml/jackson/databind/ObjectWriter; type Exception report message Handler dispatch failed; nested exception is…

Read More

Intellij : Fatal error compiling: invalid target release: X

Problem while project is pointing to old JVM. Trace: [INFO] BUILD FAILURE [INFO] ———————————————————————— [INFO] Total time: 1.238 s [INFO] Finished at: 2017-01-26T08:56:44+05:30 [INFO] Final Memory: 8M/183M [INFO] ———————————————————————— [ERROR]…

Read More
Spring MVC file upload using servlet 3.0

Spring MVC file upload using servlet 3.0

pom.xml <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/maven-v4_0_0.xsd”> <modelVersion>4.0.0</modelVersion> <groupId>com.springapp</groupId> <artifactId>spring-upload-file-servlet-3.0</artifactId> <packaging>war</packaging> <version>1.0-SNAPSHOT</version> <name>spring-upload-file-servlet-3.0</name> <properties> <spring.version>4.3.0.RELEASE</spring.version> </properties> <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.5</version>…

Read More