XPlanner, Spring and JDK 1.6

Just a small article on a matter I encountered yesterday… Maybe some of you heard about the Agile project management tool XPlanner (directed toward eXtreme Programming depending on the website)
The latest release date of May 2006 and was tested only with the 1.4.2 JDK. However the JVM evolved since then… When trying to make XPlanner working on a server with a Tomcat 5.5 and especially a JDK 1.6, I got a very nice stacktrace when launching the application, which the interesting part is :
org.springframework.beans.TypeMismatchException: Failed to convert property value of type [org.apache.commons.collections.map.LinkedMap] to required type [java.util.HashMap] for property 'repositories'

The solution is to modify the following spring’s confguration file : WEB-INF/classes/spring-beans.xml replacing :
<bean id="metaRepository" class="com.technoetic.xplanner.domain.repository.MetaRepositoryImpl">
<property name="repositories">
<map>
[...]
</map>

by
<bean id="metaRepository" class="com.technoetic.xplanner.domain.repository.MetaRepositoryImpl">
<property name="repositories">
<bean class="java.util.HashMap">
<constructor-arg>
<map>
[...]
</map>
</constructor-arg>
</bean>
[...]


The bug is notified on the Jira bugtracker of the project since some time, but is still to be fixed…

6 réponses à “XPlanner, Spring and JDK 1.6”

  1. Chandra Sreeraman dit :

    Thank you very much – it saved me a lot of sleepless nights.

  2. Gary dit :

    Hey thanks for this information.

    I was trawling through the spring source when an inspired google turned up your patch.

    Excellent work.

    Gary

  3. Lennarth dit :

    Excelent, thank you very much.

  4. dfense dit :

    Wow, this was a life saver not being a spring expert.
    Thanks for taking the time to help us keep xplanner usable with newer releases!

  5. Tonte dit :

    Thanks for posting this fix. I wonder has anybody tried to use XPlanner with Mylyn for Eclipse? I am having problems logging into XPlanner from Mylyn in Eclipse.

    Thanks!

Laisser un commentaire