Wednesday, 18 March 2015

Jasper Reports : detecting last page

There always a time that we would want to display something different on the last page of the report , but there is no existing parameter could be used as expression, then how ?

Monday, 26 January 2015

OWASP : Resource Injection

Recently  we have a code scan for one of our projects and "Resource Injection" is reported, below is an explanation from Open Web Application Security Project (OWASP) for this vulnerability:

Wednesday, 14 January 2015

Oracle Certified Associate/Professional Java SE 8 Programmer

If you are like me holding SCJP 5 (EXAM 310-055) and wish to upgrade to OCA (EXAM 1Z0-808)/OCP Java SE8 Programmer , then you can come to this post often.

Monday, 12 January 2015

JBoss Fuse : Spring managed Quartz


Let's assume you have some basic knowledge of osgi ,and want to deploy your Spring powered batch job into JBoss Fuse.


Step 1 : connecting to the right maven repository

    com.springsource.repository.bundles.release
    EBR Spring Release Repository
    http:// repository.springsource.com/maven/bundles/release


    com.springsource.repository.bundles.external
    EBR External Release Repository
    http:// repository.springsource.com/maven/bundles/external

Sunday, 11 January 2015

JBoss WildFly 8 : log4j not logging


For a newly installed JBoss WildFly 8 if your application is using log4j , there would not be any log in the file or console.

Wednesday, 10 December 2014

Spring MVC : Preventing Duplicate Form Submission without Spring Security



Spring MVC so far has no out of box solution to prevent duplicate form submission yet , while below are the possible solutions :

Option 1 , javascript : disable submit button 


Option 2 , Post-Redirect-Get pattern : send a redirect after submit 


Option 3 , tokening : unique token between client and server 


Both option 1 and option 2 have drawbacks , let's see how to implement option 3.

Friday, 21 November 2014

JBoss : ClassNotFoundException org.bouncycastle.jce.provider.BouncyCastleProvider


1. WHAT happened 

I downloaded jboss EAP 6.3.0.GA (AS 7.4.0.Final)  and when launching the server in standalone mode with jdk 1.7.0_25, below error is shown in the console :



 [The provider BC could not be added: org.bouncycastle.jce.provider.BouncyCastleProvider from [Module "org.apache.ws.security:main" from local module loader ......
java.lang.ClassNotFoundException: org.bouncycastle.jce.provider.BouncyCastleProvider from [Module "org.apache.ws.security:main" from local module loader ......
Flag Counter