Home » Java » Enterprise Java

Enterprise Java

Jackson JSON Parsing Error – UnrecognizedPropertyException: Unrecognized field, not marked as ignorable [Solved]

While parsing JSON string received from one of our RESTful web services, I was getting this error “Exception in thread “main” com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field “person” (class Hello$Person), not marked as ignorable”. After some research, I found that this is one of the common error while parsing JSON document using Jackson open source library in Java application. The error messages say that ...

Read More »

Secure Spring Boot REST API using Basic Authentication

spring-interview-questions-answers

This is the third post of my Spring Boot Blog post series. In the very first post, I talked about my experience with creating RESTFul Services using Spring Boot. Then I have expanded the sample to integrate with Swagger documentation. In this post, I am going to expand above sample with security aspect. What is API Security API Security is a ...

Read More »

Getting started with Spring Data Cassandra

I have recently been learning Apache Cassandra to use at work and I think it is about time I consolidated my experience within a blog post. But rather than focusing on how Cassandra works itself this post will look at how to use Spring Data Cassandra. I know I just said I wouldn’t focus on how Cassandra works, but if ...

Read More »

Integrate CloudWatch Logs with Cloudhub Mule

java-interview-questions-answers

In this blog, i will explain how to enable AWS Cloudwatch Logs for your Mule CloudHub Application. Cloudwatch Logs Services are provided by AWS so that you can better mange your logs. It is relatively cheaper than splunk. Since cloudhub automatically rolls over logs more than 100 MB, we require a mechanism to manage our logs more efficiently. For this, we ...

Read More »

Apache Camel 2.20 released – What’s new

Apache Camel 2.20 has been released today and as usual I am tasked to write a blog about this great new release and what’s the highlights.                     The release has the following highlights. 1) Java 9 technical preview support We have started our work to support Java 9 and this release ...

Read More »

Spring Batch CSV Processing

spring-interview-questions-answers

Overview Topics we will be discussing include the essential concepts of batch processing with Spring Batch and how to import the data from a CSV into a database. 0 – Spring Batch CSV Processing Example Application We are building an application that demonstrates the basics of Spring Batch for processing CSV files. Our demo application will allow us to process ...

Read More »

Setting Up Cassandra Cluster in AWS

Apache Cassandra is a NoSQL database that allows for easy horizontal scaling, using the consistent hashing mechanism. Seven years ago I tried it and decided not use it for a side-project of mine because it was too new. Things are different now, Cassandra is well established, there’s a company behind it (DataStax), there are a lot more tools, documentation and ...

Read More »

JSON Processing 1.1: 100DaysOfJavaEE8

JSON Pointer Challenge Given the JSON document in the code snippet below, what is the result of using the JSON Pointer feature from JSON-P 1.1?                 The new shape of the JSON object will be as follows: { "name": "Duke", "likes": [ "Java EE 8", "Java", "Ice Cream" ] } What is JSON ...

Read More »

Differences between @RequestParam and @PathVariable annotations in Spring MVC?

spring-interview-questions-answers

The Spring MVC framework, one of the most popular frameworks for developing a web application in Java world also provides several useful annotations to extract data from the incoming request and mapping the request to controller e.g. @RequestMapping, @RequestParam, and @PathVariable. Even though both @RequestParam and @ParthVariable is used to extract values from the HTTP request, there is a subtle ...

Read More »