jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniele Cherchi <dani.cher...@gmail.com>
Subject Problem when adding a new type node
Date Tue, 18 May 2010 08:26:43 GMT
Hi all, I have a problem. I use the following lines to add a new type 
node into jackrabbit:

 NodeTypeManagerImpl manager = (NodeTypeManagerImpl) 
session.getWorkspace().getNodeTypeManager();
 manager.registerNodeTypes( new FileInputStream(pathFile), 
NodeTypeManagerImpl.TEXT_X_JCR_CND);
 session.save();  
 getRepositoryImpl().shutdown();

NOTE: with or without session.save is the same

Wher I run my application, I get this log:

2010-05-18 10:14:53,265  INFO 
(org.apache.jackrabbit.core.RepositoryImpl:304) - Starting repository...
2010-05-18 09:53:22,281 ERROR 
(org.apache.jackrabbit.core.util.db.DbUtility:92) - failed to close 
Statement
2010-05-18 09:53:22,281 ERROR 
(org.apache.jackrabbit.core.util.db.DbUtility:94) -        Reason: 
Already closed
2010-05-18 09:53:22,281 ERROR 
(org.apache.jackrabbit.core.util.db.DbUtility:95) -    State/Code: null/0
2010-05-18 09:53:22,281 ERROR 
(org.apache.jackrabbit.core.util.db.DbUtility:92) - failed to close 
Connection
2010-05-18 09:53:22,296 ERROR 
(org.apache.jackrabbit.core.util.db.DbUtility:94) -        Reason: 
Connection is closed.
2010-05-18 09:53:22,296 ERROR 
(org.apache.jackrabbit.core.util.db.DbUtility:95) -    State/Code: null/0
2010-05-18 10:14:53,531  INFO 
(org.apache.jackrabbit.core.fs.local.LocalFileSystem:164) - 
LocalFileSystem initialized at path XXXXXX\testRepo\version
2010-05-18 10:14:53,562  INFO 
(org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager:218) 
- Database: MySQL / 5.1.42-enterprise-gpl-pro
2010-05-18 10:14:53,562  INFO 
(org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager:219) 
- Driver: MySQL-AB JDBC Driver / mysql-connector-java-5.1.10 ( Revision: 
${svn.Revision} )
2010-05-18 10:14:53,625  INFO 
(org.apache.jackrabbit.core.RepositoryImpl:1996) - initializing 
workspace 'test'...
2010-05-18 10:14:53,640  INFO 
(org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager:218) 
- Database: MySQL / 5.1.42-enterprise-gpl-pro
2010-05-18 10:14:53,640  INFO 
(org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager:219) 
- Driver: MySQL-AB JDBC Driver / mysql-connector-java-5.1.10 ( Revision: 
${svn.Revision} )


Why there are these errors in close Statement and close connection, when 
my application starts?

This error only occurs when add new typecode.

Thanks
Daniele

Mime
View raw message