Hi,
I am trying to connect to the registry from an applet.
I am unable to get a connection to the database, the complete stack trace is attached. The database i am using is derby with the default settings. Have included all the necessary jars in the applet.
Jun 5, 2007 4:07:05 PM org.freebxml.omar.server.persistence.rdb.SQLPersistenceManagerImpl createConnectionPool
SEVERE: Failed to create connection pool: java.lang.reflect.UndeclaredThrowableException : Cannot get an available connection from Pool: freeConnection=0 initial Connection pool size =50
java.lang.reflect.UndeclaredThrowableException: Cannot get an available connection from Pool: freeConnection=0 initial Connection pool size =50
at org.freebxml.omar.server.persistence.rdb.ConnectionPool.<init>(ConnectionPool.java:63)
at org.freebxml.omar.server.persistence.rdb.SQLPersistenceManagerImpl.createConnectionPool(SQLPersistenceManagerImpl.java:252)
at org.freebxml.omar.server.persistence.rdb.SQLPersistenceManagerImpl.<init>(SQLPersistenceManagerImpl.java:193)
at org.freebxml.omar.server.persistence.rdb.SQLPersistenceManagerImpl.getInstance(SQLPersistenceManagerImpl.java:320)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.freebxml.omar.server.persistence.PersistenceManagerFactory.createPluginInstance(PersistenceManagerFactory.java:96)
at org.freebxml.omar.server.persistence.PersistenceManagerFactory.getPersistenceManager(PersistenceManagerFactory.java:51)
at org.freebxml.omar.server.security.authentication.AuthenticationServiceImpl.<init>(AuthenticationServiceImpl.java:60)
at org.freebxml.omar.server.security.authentication.AuthenticationServiceImpl.getInstance(AuthenticationServiceImpl.java:246)
at org.freebxml.omar.server.query.QueryManagerImpl.getUser(QueryManagerImpl.java:695)
at org.freebxml.omar.common.QueryManagerLocalProxy.getUser(QueryManagerLocalProxy.java:125)
at org.freebxml.omar.common.QueryManagerLocalProxy.getCallersUser(QueryManagerLocalProxy.java:117)
at org.freebxml.omar.common.QueryManagerLocalProxy.submitAdhocQuery(QueryManagerLocalProxy.java:54)
at org.freebxml.omar.client.xml.registry.DeclarativeQueryManagerImpl.executeQuery(DeclarativeQueryManagerImpl.java:202)
at org.freebxml.omar.client.xml.registry.DeclarativeQueryManagerImpl.executeQuery(DeclarativeQueryManagerImpl.java:143)
at org.freebxml.omar.client.xml.registry.DeclarativeQueryManagerImpl.executeQuery(DeclarativeQueryManagerImpl.java:122)
at org.freebxml.omar.client.xml.registry.BusinessQueryManagerImpl.findAssociations(BusinessQueryManagerImpl.java:152)
at com.soamatrix.regrep.graph.AssociationGraphHelper.getAssociationModel(AssociationGraphHelper.java:107)
at org.freebxml.omar.client.ui.thin.SOAPluggableRenderer.start(SOAPluggableRenderer.java:97)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: SQL Exception: Failed to start database 'C:/Documents and Settings/Administrator/soastore/1.0-Beta/data/registry/soastore', see the next exception for details.
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Unknown Source)
at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.freebxml.omar.server.persistence.rdb.ConnectionPool.newConnection(ConnectionPool.java:184)
at org.freebxml.omar.server.persistence.rdb.ConnectionPool.<init>(ConnectionPool.java:60)
... 23 more
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.freebxml.omar.server.persistence.PersistenceManagerFactory.createPluginInstance(PersistenceManagerFactory.java:96)
at org.freebxml.omar.server.persistence.PersistenceManagerFactory.getPersistenceManager(PersistenceManagerFactory.java:51)
at org.freebxml.omar.server.security.authentication.AuthenticationServiceImpl.<init>(AuthenticationServiceImpl.java:60)
at org.freebxml.omar.server.security.authentication.AuthenticationServiceImpl.getInstance(AuthenticationServiceImpl.java:246)
at org.freebxml.omar.server.query.QueryManagerImpl.getUser(QueryManagerImpl.java:695)
at org.freebxml.omar.common.QueryManagerLocalProxy.getUser(QueryManagerLocalProxy.java:125)
at org.freebxml.omar.common.QueryManagerLocalProxy.getCallersUser(QueryManagerLocalProxy.java:117)
at org.freebxml.omar.common.QueryManagerLocalProxy.submitAdhocQuery(QueryManagerLocalProxy.java:54)
at org.freebxml.omar.client.xml.registry.DeclarativeQueryManagerImpl.executeQuery(DeclarativeQueryManagerImpl.java:202)
at org.freebxml.omar.client.xml.registry.DeclarativeQueryManagerImpl.executeQuery(DeclarativeQueryManagerImpl.java:143)
at org.freebxml.omar.client.xml.registry.DeclarativeQueryManagerImpl.executeQuery(DeclarativeQueryManagerImpl.java:122)
at org.freebxml.omar.client.xml.registry.BusinessQueryManagerImpl.findAssociations(BusinessQueryManagerImpl.java:152)
at com.soamatrix.regrep.graph.AssociationGraphHelper.getAssociationModel(AssociationGraphHelper.java:107)
at org.freebxml.omar.client.ui.thin.SOAPluggableRenderer.start(SOAPluggableRenderer.java:97)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.UndeclaredThrowableException: Cannot get an available connection from Pool: freeConnection=0 initial Connection pool size =50
at org.freebxml.omar.server.persistence.rdb.ConnectionPool.<init>(ConnectionPool.java:63)
at org.freebxml.omar.server.persistence.rdb.SQLPersistenceManagerImpl.createConnectionPool(SQLPersistenceManagerImpl.java:252)
at org.freebxml.omar.server.persistence.rdb.SQLPersistenceManagerImpl.<init>(SQLPersistenceManagerImpl.java:193)
at org.freebxml.omar.server.persistence.rdb.SQLPersistenceManagerImpl.getInstance(SQLPersistenceManagerImpl.java:320)
... 20 more
Caused by: SQL Exception: Failed to start database 'C:/Documents and Settings/Administrator/soastore/1.0-Beta/data/registry/soastore', see the next exception for details.
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Unknown Source)
at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.freebxml.omar.server.persistence.rdb.ConnectionPool.newConnection(ConnectionPool.java:184)
at org.freebxml.omar.server.persistence.rdb.ConnectionPool.<init>(ConnectionPool.java:60)
... 23 more
Caused by.....
java.lang.reflect.UndeclaredThrowableException: Cannot get an available connection from Pool: freeConnection=0 initial Connection pool size =50
at org.freebxml.omar.server.persistence.rdb.ConnectionPool.<init>(ConnectionPool.java:63)
at org.freebxml.omar.server.persistence.rdb.SQLPersistenceManagerImpl.createConnectionPool(SQLPersistenceManagerImpl.java:252)
at org.freebxml.omar.server.persistence.rdb.SQLPersistenceManagerImpl.<init>(SQLPersistenceManagerImpl.java:193)
at org.freebxml.omar.server.persistence.rdb.SQLPersistenceManagerImpl.getInstance(SQLPersistenceManagerImpl.java:320)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.freebxml.omar.server.persistence.PersistenceManagerFactory.createPluginInstance(PersistenceManagerFactory.java:96)
at org.freebxml.omar.server.persistence.PersistenceManagerFactory.getPersistenceManager(PersistenceManagerFactory.java:51)
at org.freebxml.omar.server.security.authentication.AuthenticationServiceImpl.<init>(AuthenticationServiceImpl.java:60)
at org.freebxml.omar.server.security.authentication.AuthenticationServiceImpl.getInstance(AuthenticationServiceImpl.java:246)
at org.freebxml.omar.server.query.QueryManagerImpl.getUser(QueryManagerImpl.java:695)
at org.freebxml.omar.common.QueryManagerLocalProxy.getUser(QueryManagerLocalProxy.java:125)
at org.freebxml.omar.common.QueryManagerLocalProxy.getCallersUser(QueryManagerLocalProxy.java:117)
at org.freebxml.omar.common.QueryManagerLocalProxy.submitAdhocQuery(QueryManagerLocalProxy.java:54)
at org.freebxml.omar.client.xml.registry.DeclarativeQueryManagerImpl.executeQuery(DeclarativeQueryManagerImpl.java:202)
at org.freebxml.omar.client.xml.registry.DeclarativeQueryManagerImpl.executeQuery(DeclarativeQueryManagerImpl.java:143)
at org.freebxml.omar.client.xml.registry.DeclarativeQueryManagerImpl.executeQuery(DeclarativeQueryManagerImpl.java:122)
at org.freebxml.omar.client.xml.registry.BusinessQueryManagerImpl.findAssociations(BusinessQueryManagerImpl.java:152)
at com.soamatrix.regrep.graph.AssociationGraphHelper.getAssociationModel(AssociationGraphHelper.java:107)
at org.freebxml.omar.client.ui.thin.SOAPluggableRenderer.start(SOAPluggableRenderer.java:97)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: SQL Exception: Failed to start database 'C:/Documents and Settings/Administrator/soastore/1.0-Beta/data/registry/soastore', see the next exception for details.
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Unknown Source)
at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.freebxml.omar.server.persistence.rdb.ConnectionPool.newConnection(ConnectionPool.java:184)
at org.freebxml.omar.server.persistence.rdb.ConnectionPool.<init>(ConnectionPool.java:60)
... 23 more
[PersistenceManager] Cannot instantiate PersistenceManager plugin. Please check that property 'omar.server.persistence.PersistenceManagerFactory.persistenceManagerClass' is correctly set in omar.properties file.
Jun 5, 2007 4:07:05 PM org.freebxml.omar.client.ui.thin.SOAPluggableRenderer start
SEVERE: Error getting associations of a registry objects for viewing
java.lang.NullPointerException
at org.freebxml.omar.server.security.authentication.AuthenticationServiceImpl.loadPredefinedUsers(AuthenticationServiceImpl.java:486)
at org.freebxml.omar.server.security.authentication.AuthenticationServiceImpl.<init>(AuthenticationServiceImpl.java:93)
at org.freebxml.omar.server.security.authentication.AuthenticationServiceImpl.getInstance(AuthenticationServiceImpl.java:246)
at org.freebxml.omar.server.query.QueryManagerImpl.getUser(QueryManagerImpl.java:695)
at org.freebxml.omar.common.QueryManagerLocalProxy.getUser(QueryManagerLocalProxy.java:125)
at org.freebxml.omar.common.QueryManagerLocalProxy.getCallersUser(QueryManagerLocalProxy.java:117)
at org.freebxml.omar.common.QueryManagerLocalProxy.submitAdhocQuery(QueryManagerLocalProxy.java:54)
at org.freebxml.omar.client.xml.registry.DeclarativeQueryManagerImpl.executeQuery(DeclarativeQueryManagerImpl.java:202)
at org.freebxml.omar.client.xml.registry.DeclarativeQueryManagerImpl.executeQuery(DeclarativeQueryManagerImpl.java:143)
at org.freebxml.omar.client.xml.registry.DeclarativeQueryManagerImpl.executeQuery(DeclarativeQueryManagerImpl.java:122)
at org.freebxml.omar.client.xml.registry.BusinessQueryManagerImpl.findAssociations(BusinessQueryManagerImpl.java:152)
at com.soamatrix.regrep.graph.AssociationGraphHelper.getAssociationModel(AssociationGraphHelper.java:107)
at org.freebxml.omar.client.ui.thin.SOAPluggableRenderer.start(SOAPluggableRenderer.java:97)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Thanks,
Tanuj.