HttpMessageNotReadableException: Could not read JSON: No suitable constructor found

Published on

If you are getting this error Annotate your constructor parameter with @JsonProperty.   Example :   package com.spring.model; import java.io.Serializable; import java.util.Date; import com.fasterxml.jackson.annotation.JsonProperty; public class UserDiary implements Serializable { private static final long serialVersionUID = 201602021549001L; private int id; private String subject; private String dueDate; public UserDiary(@JsonProperty(“id”)int id, @JsonProperty(“subject”)String subject, @JsonProperty(“dueDate”)String dueDate) { super(); this.id … Continue reading HttpMessageNotReadableException: Could not read JSON: No suitable constructor found

SAP BI 4.X Customization links

Published on

 http://davidlai101.com/blog/2012/12/20/how-to-unlock-jsps-so-that-we-can-edit-them-in-bi4/  http://scn.sap.com/community/bi-platform/blog/2013/06/01/tutorial-branding-and-theming-of-bi-launch-pad  http://help.sap.com/businessobject/product_guides/sbo41/en/sbo41_bi_customization_en.pdf  http://www.ypcorp.com/infoviewbranding-changes-not-showing/  https://scn.sap.com/thread/3543324  http://dhirendrakhanka4bi.blogspot.in/2013/12/injecting-your-own-page-inside-infoview.html  https://scn.sap.com/thread/3214209  http://scn.sap.com/community/bi-platform/blog/2013/06/01/tutorial-branding-and-theming-of-bi-launch-pad  http://help.sap.com/businessobject/product_guides/boexir4/en/xi4_oem_customization_en.pdf

Java 8 launched

Published on

Java 8  was released on 18 March 2014. Below are the links where you can find it about Java 8 new features http://www.oracle.com/events/us/en/java8/index.html http://www.oracle.com/technetwork/java/javase/8-whats-new-2157071.html http://openjdk.java.net/projects/jdk8/features#126 http://www.oracle.com/technetwork/java/javase/8train-relnotes-latest-2153846.html        

Liferay sql server configuration

Published on

The below are the steps for configuring the LIferay with SQLServer Download sqljdbc4.jar and place it in  tomcat bin folder(eg: C:\Liferay\liferay_tomcat\tomcat-7.0.27\lib) Go to the path   C:\Liferay\liferay_tomcat\tomcat-7.0.27\webapps\ROOT\WEB-INF\classes Add these lines in it jdbc.default.driverClass=com.microsoft.sqlserver.jdbc.SQLServerDriver jdbc.default.url=jdbc:sqlserver://SYSTEM003\\SQLEXPRESS:1433;databaseName=Northwind jdbc.default.username=username jdbc.default.password=password Restart the server Select sqlserver in Database Fill the confuration details as specified in portal-ext properties file Once the settings … Continue reading Liferay sql server configuration

How to pass value from javascript to java?

Published on

Transferring the values between javascript and java can be done using the follow example 1)Pass value from jsp scriplet to javascript: <% String str=”Hello World”; %> <html> <head> <script language=”javascript”> function access(){ var s=”<%=str%>”; alert(s); } </script> </head> <body onload=”access()”> </body> </html> 2)Pass value from javascript to Jsp scriplet: <script> function get(){ var m=”Hello”; window.location.replace(“h.jsp?mess=”+m); … Continue reading How to pass value from javascript to java?

How to create password protected zip file using java

Published on

In java,We can create zip file but cannt set password using java.util.zip library We should use external library to create password protecting zip files. The list of available external libraries are http://www.lingala.net/zip4j/ http://www.chilkatsoft.com/java.asp http://code.google.com/p/winzipaes/ merkert.de/de/info/zipaes/src.zip