Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 91847 invoked from network); 19 Nov 2009 10:25:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Nov 2009 10:25:48 -0000 Received: (qmail 653 invoked by uid 500); 19 Nov 2009 10:25:48 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 610 invoked by uid 500); 19 Nov 2009 10:25:47 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 595 invoked by uid 99); 19 Nov 2009 10:25:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Nov 2009 10:25:47 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Nov 2009 10:25:44 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B9725234C1EF for ; Thu, 19 Nov 2009 02:25:24 -0800 (PST) Message-ID: <1028419396.1258626324756.JavaMail.jira@brutus> Date: Thu, 19 Nov 2009 02:25:24 -0800 (PST) From: "Gary Tully (JIRA)" To: dev@activemq.apache.org Subject: [jira] Commented: (AMQ-2496) journaledJDBC not creating ACTIVEMQ_MSGS with MS SQL 2008 In-Reply-To: <1437027630.1258395352778.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [ https://issues.apache.org/activemq/browse/AMQ-2496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=55586#action_55586 ] Gary Tully commented on AMQ-2496: --------------------------------- Looks like image should be the preferred data type (for BLOB) for all SQLServer instances post 2000 Note: "Binary Data" section of http://technet.microsoft.com/en-us/library/bb497065.aspx and http://technet.microsoft.com/en-us/library/cc917636.aspx > journaledJDBC not creating ACTIVEMQ_MSGS with MS SQL 2008 > --------------------------------------------------------- > > Key: AMQ-2496 > URL: https://issues.apache.org/activemq/browse/AMQ-2496 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.3.0 > Environment: MS SQL 2008 > Reporter: HiSkill > Priority: Blocker > > Env: > - ActiveMQ 5.3.0 > - deployed as RAR on JBoss > - database : MS SQL 2008 > When the broker starts up for the first time, table ACTIVEMQ_MSGS is not getting created automatically which throws the below exception and the broker never comes up. > Reason: java.io.IOException: Failed to get last broker message id: com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name 'ACTIVEMQ_MSGS'. > java.io.IOException: Failed to get last broker message id: com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name 'ACTIVEMQ_MSGS'. > at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:33) > at org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.getLastMessageBrokerSequenceId(JDBCPersistenceAdapter.java:170) > at org.apache.activemq.store.journal.JournalPersistenceAdapter.getLastMessageBrokerSequenceId(JournalPersistenceAdapter.java:212) > at org.apache.activemq.broker.region.DestinationFactoryImpl.getLastMessageBrokerSequenceId(DestinationFactoryImpl.java:140) > at org.apache.activemq.broker.region.RegionBroker.(RegionBroker.java:106) > at org.apache.activemq.broker.jmx.ManagedRegionBroker.(ManagedRegionBroker.java:94) > at org.apache.activemq.broker.BrokerService.createRegionBroker(BrokerService.java:1695) > at org.apache.activemq.broker.BrokerService.createRegionBroker(BrokerService.java:1689) > at org.apache.activemq.broker.BrokerService.createBroker(BrokerService.java:1649) > at org.apache.activemq.broker.BrokerService.getBroker(BrokerService.java:667) > at org.apache.activemq.broker.BrokerService.getAdminConnectionContext(BrokerService.java:1866) > at org.apache.activemq.broker.BrokerService.startDestinations(BrokerService.java:1853) > at org.apache.activemq.broker.BrokerService.start(BrokerService.java:450) > at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:56) > at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369) > at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335) > at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473) > Only workaround is to create the table ACTIVEMQ_MSGS manually and restart the broker. > Here is my broker-config.xml : > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Note that I don't see the issue with MSSQL 2000 2005, not sure whats the problem with 2008 version. > Let me know if there is any cofiguration missing which would resolve the issue with MS SQL 2008 and any other databases which could have the sample problem. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.