Monday, 19 January 2009

[Error] Could not open Hibernate Session for transaction

[Error Message]
org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is java.lang.IllegalArgumentException: interface org.hibernate.jdbc.ConnectionWrapper is not visible from class loader

Please insert org.hibernate.jdbc pacakge in MENIFEST file

Monday, 5 January 2009

[Error] Can not Start Eclipse

* Error Message
JVM terminated. Exit code=-1 .......

- Open eclipse.ini file under eclipse installed folder

change the last line like this

[Error] can not start MS-SQL Service

* Can't start MS-SQL service
- there are some error message that ms-sql can't start

+ Please open control panel > Service
Change running logon user

Thursday, 1 January 2009

[Eclipse] (Plugin)- Java Code Coverage for Eclipse

* This plugin for Code Coverage - especially for Junit

1. Install

2. Launching (or setting) in Coverage Mode

3. Create "Test" run configuration

4. You should select what kind of project can be generate code coverage report
from "Coverage" tab. (Coverage Run > Converage configurations)

5. When "running" is over , Do not terminate manually !
Type : osgi> exit

Then you will see Coverage report

* error message "No coverage data file has been written"
check ""

Check all step from this web site

* After running code coverage you should re-compile
the project which is checked for Code Coverage

[Eclipse] - Run (Arguments- Clean)

Eclipse Run configuration option

- Arguments Tab -
* Program arguments
-os ${target.os} -ws ${} -arch ${target.arch} -nl ${} -console --clean

* VM arguements
-Declipse.ignoreApp=true -Dosgi.noShutdown=true -Dosgi.clean=true

Eclipse [Plug-In] - CheckStyle Eclipse Plugin

* CheckStyle Eclipse Plugin
- CheckStyle Eclipse Plugin help you ensure that your Java code adheres to a set of coding standards.

- Installation document

- Checkstyle file
- format file