Return-Path: X-Original-To: apmail-brooklyn-dev-archive@minotaur.apache.org Delivered-To: apmail-brooklyn-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 92E7F10400 for ; Mon, 15 Dec 2014 16:35:38 +0000 (UTC) Received: (qmail 56635 invoked by uid 500); 15 Dec 2014 16:35:38 -0000 Delivered-To: apmail-brooklyn-dev-archive@brooklyn.apache.org Received: (qmail 56601 invoked by uid 500); 15 Dec 2014 16:35:38 -0000 Mailing-List: contact dev-help@brooklyn.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.incubator.apache.org Delivered-To: mailing list dev@brooklyn.incubator.apache.org Received: (qmail 56590 invoked by uid 99); 15 Dec 2014 16:35:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Dec 2014 16:35:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 15 Dec 2014 16:35:15 +0000 Received: (qmail 55409 invoked by uid 99); 15 Dec 2014 16:35:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Dec 2014 16:35:13 +0000 Date: Mon, 15 Dec 2014 16:35:13 +0000 (UTC) From: "Andrew Kennedy (JIRA)" To: dev@brooklyn.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (BROOKLYN-102) Rebind fails for MongoDB MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/BROOKLYN-102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Kennedy updated BROOKLYN-102: ------------------------------------ Description: I deployed an app with a single MongoDB server, running with `brooklyn launch --persist auto`. I then stopped Brooklyn, and restarted it. It failed to rebind to the MongoDB entity's persisted state with the error shown below: {noformat} 2014-12-09 21:37:36,835 WARN Error deserializing memento (attempt 1 of 5): com.thoughtworks.xstream.converters.ConversionException: No field 'loadFactor' found in class 'com.mongodb.CommandResult' : No field 'loadFactor' found in class 'com.mongodb.CommandResult' ---- Debugging information ---- message : No field 'loadFactor' found in class 'com.mongodb.CommandResult' cause-exception : com.thoughtworks.xstream.converters.reflection.MissingFieldException cause-message : No field 'loadFactor' found in class 'com.mongodb.CommandResult' class : com.mongodb.CommandResult required-type : com.mongodb.CommandResult converter-type : com.thoughtworks.xstream.converters.reflection.SerializableConverter path : /entity/attributes/mongodb.server.status.bson/com.mongodb.CommandResult/map/default/loadFactor line number : 71 class[1] : java.util.LinkedHashMap converter-type[1] : brooklyn.util.xstream.StringKeyMapConverter class[2] : brooklyn.entity.rebind.dto.BasicEntityMemento converter-type[2] : com.thoughtworks.xstream.converters.reflection.ReflectionConverter version : 0.7.0-SNAPSHOT {noformat} This is easily reproduced in an integration test - just wait for the sensor `MongoDBServer.STATUS_BSON` to be populated before rebinding. was: I deployed an app with a single MongoDB server, running with `brooklyn launch --persist auto`. I then stopped Brooklyn, and restarted it. It failed to rebind to the MongoDB entity's persisted state with the error shown below: ``` 2014-12-09 21:37:36,835 WARN Error deserializing memento (attempt 1 of 5): com.thoughtworks.xstream.converters.ConversionException: No field 'loadFactor' found in class 'com.mongodb.CommandResult' : No field 'loadFactor' found in class 'com.mongodb.CommandResult' ---- Debugging information ---- message : No field 'loadFactor' found in class 'com.mongodb.CommandResult' cause-exception : com.thoughtworks.xstream.converters.reflection.MissingFieldException cause-message : No field 'loadFactor' found in class 'com.mongodb.CommandResult' class : com.mongodb.CommandResult required-type : com.mongodb.CommandResult converter-type : com.thoughtworks.xstream.converters.reflection.SerializableConverter path : /entity/attributes/mongodb.server.status.bson/com.mongodb.CommandResult/map/default/loadFactor line number : 71 class[1] : java.util.LinkedHashMap converter-type[1] : brooklyn.util.xstream.StringKeyMapConverter class[2] : brooklyn.entity.rebind.dto.BasicEntityMemento converter-type[2] : com.thoughtworks.xstream.converters.reflection.ReflectionConverter version : 0.7.0-SNAPSHOT ``` This is easily reproduced in an integration test - just wait for the sensor `MongoDBServer.STATUS_BSON` to be populated before rebinding. > Rebind fails for MongoDB > ------------------------ > > Key: BROOKLYN-102 > URL: https://issues.apache.org/jira/browse/BROOKLYN-102 > Project: Brooklyn > Issue Type: Bug > Affects Versions: 0.7.0-SNAPSHOT > Reporter: Aled Sage > > I deployed an app with a single MongoDB server, running with `brooklyn launch --persist auto`. I then stopped Brooklyn, and restarted it. It failed to rebind to the MongoDB entity's persisted state with the error shown below: > {noformat} > 2014-12-09 21:37:36,835 WARN Error deserializing memento (attempt 1 of 5): com.thoughtworks.xstream.converters.ConversionException: No field 'loadFactor' found in class 'com.mongodb.CommandResult' : No field 'loadFactor' found in class 'com.mongodb.CommandResult' > ---- Debugging information ---- > message : No field 'loadFactor' found in class 'com.mongodb.CommandResult' > cause-exception : com.thoughtworks.xstream.converters.reflection.MissingFieldException > cause-message : No field 'loadFactor' found in class 'com.mongodb.CommandResult' > class : com.mongodb.CommandResult > required-type : com.mongodb.CommandResult > converter-type : com.thoughtworks.xstream.converters.reflection.SerializableConverter > path : /entity/attributes/mongodb.server.status.bson/com.mongodb.CommandResult/map/default/loadFactor > line number : 71 > class[1] : java.util.LinkedHashMap > converter-type[1] : brooklyn.util.xstream.StringKeyMapConverter > class[2] : brooklyn.entity.rebind.dto.BasicEntityMemento > converter-type[2] : com.thoughtworks.xstream.converters.reflection.ReflectionConverter > version : 0.7.0-SNAPSHOT > {noformat} > This is easily reproduced in an integration test - just wait for the sensor `MongoDBServer.STATUS_BSON` to be populated before rebinding. -- This message was sent by Atlassian JIRA (v6.3.4#6332)