<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Error: relation "jbm_dual" already exists
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/tim%40nwresearch.com">tim@nwresearch.com</a> in <i>JBoss Messaging</i> - <a href="http://community.jboss.org/message/581729#581729">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>I've set up jboss messaging in a 2 node Jboss 4.2.3 cluster with a postgresql database for shared jboss messaging datastore.&#160; When the second node is started, I see errors in the log like the second node is trying to recreate the messaging database tables.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>2011-01-18 18:04:55,891 DEBUG [org.jboss.messaging.core.impl.JDBCSupport] Failed to execute: CREATE TABLE JBM</p><p>_DUAL (DUMMY INTEGER, PRIMARY KEY (DUMMY))</p><p>org.postgresql.util.PSQLException: ERROR: relation "jbm_dual" already exists</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2062)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1795)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:479)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:353)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:299)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.resource.adapter.jdbc.WrappedStatement.executeUpdate(WrappedStatement.java:249)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.messaging.core.impl.JDBCSupport.createSchema(JDBCSupport.java:301)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.messaging.core.impl.JDBCSupport.start(JDBCSupport.java:167)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.messaging.core.impl.JDBCPersistenceManager.start(JDBCPersistenceManager.java:149)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.messaging.core.jmx.JDBCPersistenceManagerService.startService(JDBCPersistenceManagerServ</p><p>ice.java:100)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.lang.reflect.Method.invoke(Method.java:597)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java</p><p>:142)</p><p>....</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Similar errors are repeated for all the tables and user inserts.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>This seems to me like a problem, but as near as I can tell things seem to be working dispite the errors.&#160; Is this error something to worry about?&#160; Is there a configuration which will prevent the second node from trying to recreate the tables which already exist?</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/581729#581729">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Messaging at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2042">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>