I was trying to access a secure web site using Apache HttpClient API. However, it was failing giving me the following exception
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
In apache HttpClient website, it states that “HttpClient provides full support for HTTP over Secure Sockets Layer (SSL) or [...]
Archive for the ‘JAVA’ Category
Accessing SSL enabled web site using Apache HttpClient
Posted in JAVA, tagged Apache, HttpClient, JSSE, SSL on March 6, 2009 | Leave a Comment »
Transaction optimization for Read Only Transaction: Spring ReadOnly attribute
Posted in JDBC, Spring, tagged readOnly, Spring, transaction management, transaction optimization, transaction strategies on February 22, 2009 | Leave a Comment »
This article is a small POC on how the readOnly attribute used in Spring Transaction strategy improves database access in case of transactions that involve only READing data from datasources.
First a small extract from the Spring reference documentation:
The TransactionDefinition interface specifies:
• Isolation: the degree of isolation this transaction has from the work of other transactions. For [...]
Understanding Spring Transaction management with Checked and Unchecked exceptions
Posted in JAVA, Spring, tagged checked exception, Spring, transaction management, transaction strategies, tx, unchecked exception on February 17, 2009 | Leave a Comment »
I have been using Spring TX Management for quite sometime until I recently came upon an article describing the common pitfalls that occur in Transaction Strategies. Although many cases were covered, I would like to describe the common one that is seen in most code.
I am going to explain it with the help of a [...]
Easy Start with Apache Camel
Posted in Apache Camel, tagged Apache Camel, Routing Framework, Tracer on December 13, 2008 | Leave a Comment »
Few days back I have started looking at Apache Camel Framework. It is an excellent routing framework that can perform many amazing functionalities in just few lines of code.However, due to the lack of documentations more complex code might get harder to implement. And as a beginner you might get confused in to which message [...]
Sending Parameters to JasperReport
Posted in JAVA, JasperReport, tagged JasperReport, jrxml, Parameter, Query on November 9, 2008 | 21 Comments »
In many different forums, I have seen posts regarding how to send parameters to JasperReport. If you are still looking for an answer, you can definitely find it over here.
I am assuming that you are familiar with JasperReport and the JRXML template.
JasperReport allows you to pass parameters to the report during runtime. In order to [...]
Spring – Quartz scheduled job : With single Thread
Posted in JAVA, Quartz, Spring, tagged Concurrent, JAVA, Quartz, Spring, Thread on October 31, 2008 | 1 Comment »
In one of our current integration projects, where we were using Spring, we had a Spring bean which was constantly running every 20 to 30 seconds pooling the database and fetching new status of records. These statuses would be constantly sent to our client as and when new status came up. This Spring bean is [...]
Deploying Wicket Application in OC4J
Posted in Apache Wicket, Oracle AS, tagged oc4j, Oracle, security, wicket, Servlet, Filter, Context, Mapping on October 31, 2008 | Leave a Comment »
I have been working with wicket for the last one year. It is one of the best web frameworks. In our organization, we are using Oracle Application Sever (OAS) to deploy our applications. We were using OAS 9.0.4.3 and we had no issues with wicket. Recently we upgraded our OAS to 10.1.2.0.2 and then issues [...]
Thread-Safe and Concurrency
Posted in JAVA, tagged Concurrency, Iterator, JAVA, Static, Theard-Safe on September 23, 2008 | Leave a Comment »
Have you ever faced strange or unexpected problems with your application after putting it into production? Is the same code works just fine when you test it? Is the problem just too hard to even simulate?Well if the problem does not appear when you test it but its there in production and assuming you have [...]
Network Data Encryption and Integrity for Thin JDBC Clients
Posted in JAVA, JDBC, tagged data encryption, encryption, JAVA, JDBC, security on August 29, 2008 | 6 Comments »
Today we shall look into a nice feature on how to secure our JDBC connections. It’s generally a standard to make JDBC connections in java applications to connect to database. We mostly have web applications running in a web container. These web applications make JDBC connections to the databases to retrieve data for the applications. [...]