Tag: java


Different ways to configure spring data in xml conf:

Spring data mongo conf using factory <!-- Spring data mongo conf using factory --> <mongo:mongo id="mongo" replica-set="${mongo.database.url}" /> <mongo:db-factory id="mongoDbFactory" mongo-ref="mongo" dbname="${mongo.database.name}" username="$

Continue Reading

com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of * out of START_ARRAY token

I encounter this exception after a (massive) maven dependencies update which included CXF and Spring. The project was supposed to be updated with Jackson 2.3 but the stack shows that vesion 2.2.3 of jackson-databind is used. com.fasterxml.jackson.databind.JsonMappingException: Can

Continue Reading

Calling REST services with AngluarJS

We have seen the server side part of REST with Spring MVC. Now its time of getting to the frontend side with AngularJS. I will try to do it simple and accurate. ;) Goal: How to request REST service and handle response with AngularJS. Introduction Let’

Continue Reading

REST with Spring MVC

[underline] Goal Introduction to REST, JSON and Spring MVC. To do so, let’s implement a REST service with Spring MVC. [underline] RESTFul principles Uniform interface Stateless Cacheable Client Server mode Where SOAP services are based on verbs (like methods exposed by an interface) , REST

Continue Reading

Java.lang.OutOfMemoryError

There are three possible causes for an OutOfMemoryError. The first is that the JVM has a real memory leak, caused by a bug in the internal implementation of the JVM heap management. This is extremely unlikely. All JVMs are tested very strenuously for this, and

Continue Reading

Java Unparseable date

If using SimpleDateFormat to parse a string into a Date object, it may fail if the Locale sets in SimpleDateFormat differ from the string format. java.text.ParseException: Unparseable date: "02NOV2004" at java.text.DateFormat.parse(DateFormat.java:335) The above example shows an exception

Continue Reading
Yann's blog