qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "yinshuwei (JIRA)" <j...@apache.org>
Subject [jira] [Created] (QPID-4024) persistent message without content lead to server failed to start
Date Tue, 29 May 2012 07:40:24 GMT
yinshuwei created QPID-4024:

             Summary: persistent message without content lead to server failed to start
                 Key: QPID-4024
                 URL: https://issues.apache.org/jira/browse/QPID-4024
             Project: Qpid
          Issue Type: Bug
          Components: C++ Broker
    Affects Versions: 0.16
         Environment: win7 
            Reporter: yinshuwei

   I started server with this command:
    qpidd.exe --no-data-dir --auth=yes --load-module store/stored.dll --load-module      
   I found that if I send a message without content to the server and no consumer consume
the message,when I go to restart the server,it will fail.
   There is a bug in src\qpid\store\ms-sql\MessageMapRecordset.cpp ,line : 115 ,method:recover
        // Now, do we need the rest of the content?
        long contentLength = blobSize - headerFieldLength - headerSize;
        if (msg->loadContent(contentLength)) {
            BlobAdapter content(contentLength);
             content =

    The problem here is that the variable contentLength's value is zero now,then execute the
code :
                       content =
    will lead to throw exception。


This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org

View raw message