jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg" <stefan.guggisb...@day.com>
Subject Re: Derby errors when shutting repository down
Date Mon, 28 Apr 2008 09:56:51 GMT
hi roman

On Fri, Apr 25, 2008 at 4:28 PM, Roman Puchkovskiy
<roman.puchkovskiy@blandware.com> wrote:
>
>  Hi.
>
>  I am using jackrabbit-1.4.2, FileSystem is configured to use Derby. Derby is
>  identified as Apache Derby / 10.3.2.1 - (599110). I'm using
>  TransientRepository (but problem is same if using more complex things like
>  JCA-enabled repository).
>
>  Code is like
>
>  Repository repo = new TransientRepository(configPath.getAbsolutePath(),
>  dir.getAbsolutePath());
>  Session session = repo.login(...);
>  ... some code working on session...
>  session.logout();
>
>  After this session (which is the only one) is logged out, repository is
>  being stopped and I see following:
>
>
>  INFO: Shutting down repository...
>  25.04.2008 18:54:52 org.slf4j.impl.JCLLoggerAdapter info
>  INFO: IndexMerger terminated
>  25.04.2008 18:54:52 org.slf4j.impl.JCLLoggerAdapter info
>  INFO: Index closed: E:\svnhome\m3server\data\repository/repository/index
>  25.04.2008 18:54:52 org.slf4j.impl.JCLLoggerAdapter info
>  INFO: shutting down workspace 'default'...
>  25.04.2008 18:54:52 org.slf4j.impl.JCLLoggerAdapter info
>  INFO: Notification of EventListeners stopped.
>  25.04.2008 18:54:52 org.slf4j.impl.JCLLoggerAdapter info
>  INFO: IndexMerger terminated
>  25.04.2008 18:54:52 org.slf4j.impl.JCLLoggerAdapter info
>  INFO: Index closed:
>  E:\svnhome\m3server\data\repository\workspaces\default/index
>  25.04.2008 18:54:52 org.slf4j.impl.JCLLoggerAdapter info
>  INFO: Database 'E:\svnhome\m3server\data\repository/db' shutdown.
>  25.04.2008 18:54:52 org.slf4j.impl.JCLLoggerAdapter warn
>  WARNING: execute failed, about to reconnect...
>  25.04.2008 18:55:02 org.slf4j.impl.JCLLoggerAdapter info
>  INFO: Database 'E:\svnhome\m3server\data\repository/db' shutdown.
>  25.04.2008 18:55:02 org.slf4j.impl.JCLLoggerAdapter info
>  INFO: workspace 'default' has been shutdown
>  25.04.2008 18:55:02 org.slf4j.impl.JCLLoggerAdapter error
>  SEVERE: Error while closing Version Manager.
>  java.sql.SQLNonTransientConnectionException: No current connection.
>         at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown
>  Source)
>         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.noCurrentConnection(Unknown Source)
>         at org.apache.derby.impl.jdbc.EmbedConnection.checkIfClosed(Unknown Source)
>         at org.apache.derby.impl.jdbc.EmbedConnection.getMetaData(Unknown Source)
>         at
>  org.apache.jackrabbit.core.persistence.db.DerbyPersistenceManager.closeConnection(DerbyPersistenceManager.java:109)
>         at
>  org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager.close(DatabasePersistenceManager.java:261)
>         at
>  org.apache.jackrabbit.core.version.VersionManagerImpl.close(VersionManagerImpl.java:201)
>         at
>  org.apache.jackrabbit.core.RepositoryImpl.doShutdown(RepositoryImpl.java:1000)
>         at
>  org.apache.jackrabbit.core.RepositoryImpl.shutdown(RepositoryImpl.java:948)
>         at
>  org.apache.jackrabbit.core.TransientRepository.stopRepository(TransientRepository.java:275)
>         at
>  org.apache.jackrabbit.core.TransientRepository.loggedOut(TransientRepository.java:427)
>         at
>  org.apache.jackrabbit.core.SessionImpl.notifyLoggedOut(SessionImpl.java:574)
>         at org.apache.jackrabbit.core.SessionImpl.logout(SessionImpl.java:1247)
>         at org.apache.jackrabbit.core.XASessionImpl.logout(XASessionImpl.java:403)
>         at com.blandware.tooling.jcrplugin.ExportMojo.execute(ExportMojo.java:81)
>         at
>  org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
>         at
>  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
>         at
>  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
>         at
>  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
>         at
>  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>         at
>  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>         at
>  org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
>         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:597)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>  Caused by: java.sql.SQLException: No current connection.
>         at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown
>  Source)
>         at
>  org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown
>  Source)
>         ... 35 more
>  25.04.2008 18:55:02 org.slf4j.impl.JCLLoggerAdapter warn
>  WARNING: execute failed, about to reconnect...
>  25.04.2008 18:55:13 org.slf4j.impl.JCLLoggerAdapter info
>  INFO: Database 'E:\svnhome\m3server\data\repository/db' shutdown.
>  25.04.2008 18:55:13 org.slf4j.impl.JCLLoggerAdapter info
>  INFO: Repository has been shutdown
>  25.04.2008 18:55:13 org.slf4j.impl.JCLLoggerAdapter info
>  INFO: Transient repository shut down
>
>
>
>  repository.xml is:
>
>  http://www.nabble.com/file/p16895789/repository.xml repository.xml
>
>
>  Can someone help: is error which is logged is caused by bug or just
>  misconfiguration of repository? All persistence managers use same DB but
>  different schema prefixes - is this legal?

yes. could you please repost your repository.xml? the link's broken...

cheers
stefan

>
>  Thanks in advance.
>  --
>  View this message in context: http://www.nabble.com/Derby-errors-when-shutting-repository-down-tp16895789p16895789.html
>  Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>
>

Mime
View raw message