Skip to main content


Hibernate Tips - a must have book

Recently one of my friend Thorben Janssen started working on Hibernate Tips book. He is awesome and write wonderful blogs about Hibernate.

He is well known for his blogs about Hibernate. You can read him on
He had completed the book and soon it will be available on Amazon for buying.

Hibernate Tips: More than 70 solutions to common Hibernate problems
Share maximum. Enjoy reading the Hibernate Tips.
Congratulates to Thorben.
You can reach him @thjanssen123 on twitter.

Recent posts

Error while configuring Spring with FreeMarker

Today I got a strange problem while configuring FreeMarker with Spring. The project compiles well without any error. All seems to be fine. When I tried to run the application strangely I got following error:

Spring in Action, 4ed (Manning)
java.lang.NoSuchMethodError: freemarker.template.Configuration. Lfreemarker/template/Version;)V

Now for struggling and googling for around one hour I got the answer :)

Instant FreeMarker Starter
I am using Spring 4.3.5.RELEASE and FreeMarker 2.3.20 before I found the answer. This isstrange but the actual problem lies with the version compatibility of FreeMarker with Spring. It seems that Spring had some issues with FreeMarker.

After changing the FreeMarker version from 2.3.20 to 2.3.23all works fine.
Hope this solution help the developers out there configuring FreeMarker with Spring.

Enjoy coding!

AWS S3 processing with JetS3t library

In this post we will see how we can use the Amazon AWS S3 to store objects. We will be using the JetS3t library to process our objects. JetS3t library also known as Jet Set, is widely used for processing the AWS S3 i.e. Amazon Web Services, Simple Storage Service.

Before working on AWS S3, you need to have a valid account on AWS with S3 key and S3 password. You can register here free of cost.
Amazon Web Services in Action (MANNING)
Here we will using 4 API of jets3t i.e. Upload a documentDownload a documentListing of documentsDelete a document We will upload images of user on S3 and then process them as specified above.
Upload: to upload image to the S3 we will be using putObject() method of the S3Service class.Download: To download image we will be using getObject() method of S3Service class.List: To list images we will be using listObjects() method of S3Service class.Delete: To delete image we will be using deleteObjects() method of S3Service class. We can also delete multiple images …

IndicThreads '16 - Day 2

In my previous post I had given details about the first day of the IndicThreads conference. Today I will try to cover sessions for 2nd day.

The day was full of excitement as I have learned many new things. Sessions for today includes Go Language, HTTP/2, MicroServices, RxJava(Reactive Programming), Bitcoin and Blockchain.

Go Language with Angular
In this session Navneet Karnani, from Mandrake Technologies defines the scope of the Go language. He started with why we need a new language and how it can be used. He said that Go is a compiled language and it is also Open Sourced, so anybody can see code and change it to make it more better.
Session is full of code and I swear it takes a lot of effort for him to make a such a great session on Go. This session is break in 2 parts where in first part he explains about the nuisances of language and in second part he shows the integration with AngularJS

RxJava, Reactive Programming
Praveer Gupta, from ThoughWorks who had given session on Java 8 s…

IndicThreads '16 - Day 1

Today was the first day of IndicThreads conference held at Pune.

The day was full of excitement and learning. Topics that were covered today at conference are Augmented Reality, IoT, Functional Programming, Java 8 Streams. Also included a session of Fame, a video streaming product of India.

Augmented Reality
In this session Kishor Himani (Director, PTC Global Services) explained how AR is a happening field and how we will reach and meet demands of the future. He explained about the areas where AR is creating benchmarks. Healthcare, Services, Utilities are some of the areas where AR is changing the world. AR in collaboration IoT will make a significant change in future. We can superimpose the AR with the live video. He gives an example where doctor first takes x-ray of patient and then superimpose on his body so that he knows where actually to operate.

Building Secure Connected Devices
This was the eye opener for the people who are building or try to build the IoT devices. Kedar Sovani,…

JUnit issue with Eclipse and Maven

In this post I am trying to resolve one issue of JUnit with Eclipse and Maven. Sometimes while using JUnit with Eclipse and Maven we have to face certain issues. And one of them is whenever we try to run the independent test case it will run fine and will not give any type of error. But when we run to try to compile the whole project, the same test will not compile at all. This is an annoying issue if someone does not know about the functionality of how Eclipse works with JUnit and Maven.
JUnit in Action
Since there is such no exception seen in file, but project compilation fails due to same file it is very frustrated for developer to figure out the issue. I am facing this issue and found a solution by googling around many forums.
Problem: You have created a JUnit test case in the project and it is running fine, but fails to compile the whole project when try to build using Maven.
Solution: Check that the test case you have created exist in the src/test/java folder and not in src/…

Java Bloggers Meet Oracle IDC Hyderabad

Oracle India had organized a Java Bloggers meet on 13th Jun 2015, at their office at Hyderabad on the occasion of Java completing 20 years. I was also invited to the event which is very exciting for me. I am on cloud nine when I got invited for the event.

Oracle India had celebrated the event by organizing speeches by Sanket Atal - Group Vice President, R&D, Harshad Oak - Java Champion and Oracle ACE Director, and a live demonstration by Debraj Dutta, of a Bot-So a robot designed by Edifixio India and is based on IoT and fully developed using Java 8 features like streams for concurrency.

Event started by Vandana Shenoy - Director Corporate Communications , by giving a small introduction about the event and a formal introduction of the speakers.

Sanket Atal
The presentation by him is more like a discussion. We have discussed and have fun question answers, quiz in between it. Below are the points he discussed:
Java was started in 1991 under the name Project StealthFirst official relea…