ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | shark List | June 2006 Index

<--  Date Index  --> <--  Thread Index  -->

Problem with postgreSQL database.


Hi,

I'm trying to make Shark engine works with a postgresSQL database as storage. I correctly filled "configure.properties", and then ran "configure.bat" script. It successfully created tables in my postgreSQL database. Then I launched "Together Workflow Server Admin Demo", which is (if I correctly got it) based on the shark engine as POJO, and the admin tool started correctly, created entries in different tables in my database, etc.

Problem : when I try to use shark engine in my application, it can't configure correctly, and throws a lot of exception. I don't understand, because the Swing Admin Client uses the same functionnalities, and it works !!!

Here is my code :

public class MainShark {

        public static void main(String[] args) {

        String confFilePath="D:/tws-community-2.0-shark/conf/Shark.conf";
        Shark.configure(confFilePath);
       }
}

As you can see, it is very very simple ! And here are the exceptions generated :

2006-06-19 14:08:25,540: SharkEngineManager -> Working with 'org.enhydra.shark.CallbackUtil' implementation of core CallbackUtilities API 2006-06-19 14:08:25,540: SharkEngineManager -> Working with 'org.enhydra.shark.CallbackUtil' implementation of core CallbackUtilities API 2006-06-19 14:08:25,540: SharkEngineManager -> Working with 'org.enhydra.shark.SharkObjectFactory' implementation of core SharkObjectFactory API 2006-06-19 14:08:25,540: SharkEngineManager -> Working with 'org.enhydra.shark.SharkObjectFactory' implementation of core SharkObjectFactory API 2006-06-19 14:08:25,540: SharkEngineManager -> Working with 'org.enhydra.shark.StandardToolActivityHandler' implementation of core ToolAgentManager API 2006-06-19 14:08:25,540: SharkEngineManager -> Working with 'org.enhydra.shark.StandardToolActivityHandler' implementation of core ToolAgentManager API 2006-06-19 14:08:25,540: SharkEngineManager -> Working with 'org.enhydra.shark.logging.StandardLoggingManager' implementation of Logging API 2006-06-19 14:08:25,540: SharkEngineManager -> Working with 'org.enhydra.shark.logging.StandardLoggingManager' implementation of Logging API 2006-06-19 14:08:25,556: StandardAssignmentManager -> Working with 'org.enhydra.shark.usergroup.DODSUserGroupManager' implementation of UserGroup API 2006-06-19 14:08:25,556: StandardAssignmentManager -> Working with 'org.enhydra.shark.usergroup.DODSUserGroupManager' implementation of UserGroup API 2006-06-19 14:08:25,556: StandardAssignmentManager -> Working with 'org.enhydra.shark.partmappersistence.DODSParticipantMappingMgr' implementation of ParticipantMapping API 2006-06-19 14:08:25,556: StandardAssignmentManager -> Working with 'org.enhydra.shark.partmappersistence.DODSParticipantMappingMgr' implementation of ParticipantMapping API 2006-06-19 14:08:25,571: SharkEngineManager -> Working with 'org.enhydra.shark.assignment.StandardAssignmentManager' implementation of Assignment API 2006-06-19 14:08:25,571: SharkEngineManager -> Working with 'org.enhydra.shark.assignment.StandardAssignmentManager' implementation of Assignment API 2006-06-19 14:08:25,571: SharkEngineManager -> Working without Caching API implementation - CacheManager is not specified. 2006-06-19 14:08:25,571: SharkEngineManager -> Working without Caching API implementation - CacheManager is not specified. 2006-06-19 14:08:26,321: Failed to make Connection Allocator :com.lutris.appserver.server.sql.datasource.DataSourceConnectionAllocator creating StandardConnectionAllocator instead 2006-06-19 14:08:26,321: Failed to make Standard Connection Allocator : com.lutris.appserver.server.sql.standard.StandardConnectionAllocator:
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at com.lutris.appserver.server.sql.standard.StandardLogicalDatabase.loadConnectionAllocator(StandardLogicalDatabase.java:520) at com.lutris.appserver.server.sql.standard.StandardLogicalDatabase.initConf(StandardLogicalDatabase.java:273) at com.lutris.appserver.server.sql.standard.StandardLogicalDatabase.init(StandardLogicalDatabase.java:185) at com.lutris.appserver.server.sql.standard.StandardLogicalDatabase.<init>(StandardLogicalDatabase.java:170) at com.lutris.appserver.server.sql.StandardDatabaseManager.loadLogicalDatabase(StandardDatabaseManager.java:553) at com.lutris.appserver.server.sql.StandardDatabaseManager.<init>(StandardDatabaseManager.java:359) at org.enhydra.shark.utilities.dods.DODSUtilities.init(DODSUtilities.java:247) at org.enhydra.shark.instancepersistence.DODSPersistentManager.configure(DODSPersistentManager.java:189)
        at 
org.enhydra.shark.SharkEngineManager.init(SharkEngineManager.java:242)
        at 
org.enhydra.shark.SharkEngineManager.init(SharkEngineManager.java:684)
at org.enhydra.shark.SharkEngineManager.configure(SharkEngineManager.java:553) at org.enhydra.shark.SharkEngineManager.configure(SharkEngineManager.java:509)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.enhydra.shark.Shark._conf(Shark.java:101)
        at org.enhydra.shark.Shark.configure(Shark.java:58)
        at MainShark.main(MainShark.java:30)
Caused by: com.lutris.util.ConfigException: Bad DatabaseManager.DB.sharkdb.Connection section defined in config file. at com.lutris.appserver.server.sql.standard.StandardConnectionAllocator.<init>(StandardConnectionAllocator.java:474)
        ... 23 more
2006-06-19 14:08:26,337: Problem with registering database manager with DODS ! java.lang.Error: Failed to make Standard Connection Allocator : com.lutris.appserver.server.sql.standard.StandardConnectionAllocator: null at com.lutris.appserver.server.sql.standard.StandardLogicalDatabase.loadConnectionAllocator(StandardLogicalDatabase.java:524) at com.lutris.appserver.server.sql.standard.StandardLogicalDatabase.initConf(StandardLogicalDatabase.java:273) at com.lutris.appserver.server.sql.standard.StandardLogicalDatabase.init(StandardLogicalDatabase.java:185) at com.lutris.appserver.server.sql.standard.StandardLogicalDatabase.<init>(StandardLogicalDatabase.java:170) at com.lutris.appserver.server.sql.StandardDatabaseManager.loadLogicalDatabase(StandardDatabaseManager.java:553) at com.lutris.appserver.server.sql.StandardDatabaseManager.<init>(StandardDatabaseManager.java:359) at org.enhydra.shark.utilities.dods.DODSUtilities.init(DODSUtilities.java:247) at org.enhydra.shark.instancepersistence.DODSPersistentManager.configure(DODSPersistentManager.java:189)
        at 
org.enhydra.shark.SharkEngineManager.init(SharkEngineManager.java:242)
        at 
org.enhydra.shark.SharkEngineManager.init(SharkEngineManager.java:684)
at org.enhydra.shark.SharkEngineManager.configure(SharkEngineManager.java:553) at org.enhydra.shark.SharkEngineManager.configure(SharkEngineManager.java:509)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.enhydra.shark.Shark._conf(Shark.java:101)
        at org.enhydra.shark.Shark.configure(Shark.java:58)
        at MainShark.main(MainShark.java:30)
org.enhydra.shark.api.RootException: Failed to make Standard Connection Allocator : com.lutris.appserver.server.sql.standard.StandardConnectionAllocator: null at org.enhydra.shark.instancepersistence.DODSPersistentManager.configure(DODSPersistentManager.java:200)
        at 
org.enhydra.shark.SharkEngineManager.init(SharkEngineManager.java:242)
        at 
org.enhydra.shark.SharkEngineManager.init(SharkEngineManager.java:684)
at org.enhydra.shark.SharkEngineManager.configure(SharkEngineManager.java:553) at org.enhydra.shark.SharkEngineManager.configure(SharkEngineManager.java:509)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.enhydra.shark.Shark._conf(Shark.java:101)
        at org.enhydra.shark.Shark.configure(Shark.java:58)
        at MainShark.main(MainShark.java:30)
Caused by: java.lang.Error: Failed to make Standard Connection Allocator : com.lutris.appserver.server.sql.standard.StandardConnectionAllocator: null at com.lutris.appserver.server.sql.standard.StandardLogicalDatabase.loadConnectionAllocator(StandardLogicalDatabase.java:524) at com.lutris.appserver.server.sql.standard.StandardLogicalDatabase.initConf(StandardLogicalDatabase.java:273) at com.lutris.appserver.server.sql.standard.StandardLogicalDatabase.init(StandardLogicalDatabase.java:185) at com.lutris.appserver.server.sql.standard.StandardLogicalDatabase.<init>(StandardLogicalDatabase.java:170) at com.lutris.appserver.server.sql.StandardDatabaseManager.loadLogicalDatabase(StandardDatabaseManager.java:553) at com.lutris.appserver.server.sql.StandardDatabaseManager.<init>(StandardDatabaseManager.java:359) at org.enhydra.shark.utilities.dods.DODSUtilities.init(DODSUtilities.java:247) at org.enhydra.shark.instancepersistence.DODSPersistentManager.configure(DODSPersistentManager.java:189)
        ... 11 more
2006-06-19 14:08:26,337: Problem with registering database manager with DODS !



My configs file seems to be correct, because the swing client works... Please help me !!!

Thank you,

David





<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.