[OpenMap Users] TaskService problem

From: Tore Halset <halset_at_email.domain.hidden>
Date: Tue Apr 20 2010 - 08:30:51 EDT

Hello.

I have a junit test that issues several wms GetMap requests using OpenMap wms. After updating from OpenMap svn trunk, this test fail with the following stacktrace.

java.lang.RuntimeException: Thread pool has already been initialized.
        at com.bbn.openmap.util.TaskService.initialize(TaskService.java:30)
        at com.bbn.openmap.PropertyHandler.init(PropertyHandler.java:551)
        at com.bbn.openmap.PropertyHandler.<init>(PropertyHandler.java:264)
        at com.bbn.openmap.PropertyHandler.<init>(PropertyHandler.java:243)

For some strange reason, the constructor of PropertyHandler now initializes a singleton TaskService. Can someone please fix this? It should be possible to call the PropertyHandler constructor more than once. Attached, you will find a patch with the fix I am using to work around the problem.

Regards,
 - Tore.

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Tue Apr 20 09:13:33 2010

This archive was generated by hypermail 2.1.8 : Tue Apr 20 2010 - 09:13:34 EDT