How to access google data using spring-social Introduction Spring social do have a spring-social-google project but it doesn’t have autoconfiguration for Google. So google authorization doesn’t work with spring boot autoconfigure straight away. I had created a pull request and merged the code to spring repository but got the following reply Thanks for the PR. […]
Spring Social Facebook Authentication Example for multiple users
How to Fix Spring-Social Facebook one user per application problem. Problem I was working on this Accessing FaceBook Data tutorial and it was easy peasy to get it up and running. However, when I tested it for some time I realised that it only supports one user. So when the first users log in to […]
Spring Boot and Spring Security OAuth2 tutorial for Authorization through Facebook, Google, LinkedIn and Twitter
Spring Boot oauth2 tutorial for accessing Facebook, Google, LinkedIn and Twitter In this tutorial we will extend the Spring Boot OAuth2 tutorial, to provide support for Google, Twitter and LinkedIn along with Facebook. The above tutorial implements a Single sign-on with facebook. If you have not gone through the above tutorial, please have a look before […]
How to resolve – org.springframework.social.UncategorizedApiException: bio field is deprecated for versions v2.8 and higher
How to fix – org.springframework.social.UncategorizedApiException: (#12) bio field is deprecated for versions v2.8 and higher I encountered this error when using spring-social-facebook API. I did git clone of Spring tutorial for accessing facebook data I was hoping for it to work straightaway but got blocked by this error. Following steps helped me fix this problem, hope it helps. […]
How to List and Delete Docker Images
Introduction Docker image is an immutable file composed of layers of other images.In this tutorial, I will list out various useful commands to list, delete or remove docker images and also fix some common errors with below commands. Listing the images To list all Docker Images
1 2 3 | docker images |
To list Docker Images including composition of layers […]
6 Reasons To Join Big Data Analytics Now
Why you should learn BIG DATA Analytics now Introduction Big data is probably one of the most happening buzz words in tech space. Let’s see why it is being called the Sexiest job of 21st Century. Believe it or not, you have been contributing a lot to Big Data space every day by the digital traces […]
How to Enable Docker Remote REST API on Docker Host
Enable Docker Remote REST API on Docker Host in Ubuntu Introduction Docker provides remote REST API which is beneficial if you want to connect to a remote docker host. Few of the functions which you can achieve using Docker REST API over a simple browser are Create and Manage Containers Get low-level information about a […]
How To Push Docker Images To Docker Hub Repository Using Docker Maven plugin
Push a Docker image to DockerHub using docker maven plugin fabric8.io Introduction If you want to push a docker image to Docker Hub repository, it can be achieved using docker maven plugin from fabric8.io. This plugin lets you build images, start and stop containers and push it to Docker repositories In case you are wondering […]
Exception – How to resolve com.sun.xml.internal.ws.client.sei.SEIStub cannot be cast to org.apache.cxf.frontend.ClientProxy
Exception I got this exception while using Apache CXF service. I was trying to use cxf endpoint to add some interceptors as shown on apache page.
1 2 3 4 5 | org.apache.cxf.endpoint.Client client = org.apache.cxf.frontend.ClientProxy.getClient(port); org.apache.cxf.endpoint.Endpoint cxfEndpoint = client.getEndpoint(); |
But I was getting this exception continously
1 2 3 4 | Caused by: java.lang.ClassCastException: com.sun.xml.internal.ws.client.sei.SEIStub cannot be cast to org.apache.cxf.frontend.ClientProxy |
I had added the following dependencies in my POM
1 2 3 4 5 6 7 8 9 10 11 | <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-frontend-simple</artifactId> <version>${cxf.version}</version> </dependency> |
The error got resolved when I changed it to
1 2 3 4 5 6 7 8 9 10 11 | <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-frontend-jaxws</artifactId> <version>${cxf.version}</version> </dependency> |
[…]
How to Learn Scala easily and quickly for beginners
7 steps to learn Scala easily and quickly for beginners Scala is in vogue and is here to stay. It is a typesafe JVM language which imbibes both functional and object oriented paradigms nicely. Scala is also a functional language which encourages immutable collections by default. In my experience, I have found Scala to be Concise […]