Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8BB4E109E5 for ; Wed, 11 Sep 2013 16:58:33 +0000 (UTC) Received: (qmail 84509 invoked by uid 500); 11 Sep 2013 16:58:31 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 84467 invoked by uid 500); 11 Sep 2013 16:58:31 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 84458 invoked by uid 99); 11 Sep 2013 16:58:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Sep 2013 16:58:30 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of darren.s.shepherd@gmail.com designates 209.85.160.45 as permitted sender) Received: from [209.85.160.45] (HELO mail-pb0-f45.google.com) (209.85.160.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Sep 2013 16:58:23 +0000 Received: by mail-pb0-f45.google.com with SMTP id mc17so9313842pbc.4 for ; Wed, 11 Sep 2013 09:58:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=oeIUKeWgFLc5KAfn2v/Y4cAS2k/YyMXN0yjBpP5vPXw=; b=zcHUxl5IaLXDMFa1YTUziV3gdJHCKY/JQe1dtO9eUC0MzDj8ZEVRcgcYeBdJWbASex NYF5/ZRF4StK+Z+DDGiICXVCL6MCRluwr1bBLg7j7XMU4nq+Yyt0xIiqLvO82VjZmIud CLK3p1+aJ1232O+txUc38xM/EzZ29PosenjrUUHYXe1lw+cUL2C0kMUklaj1fUBp8O4o AT0jEh+W0GGUFcp7d0WgllQ/Djzl+Lk6Khmkj42lT/DepZVZbI9LGsXF5sfVEmt/ULj8 6R8hZvfuM/MI1zfgBdz5B4+DZaOTwWZSrNIeK3sGvj9UGNqmvgWvws/vu8kBbSlQzHOZ ADUQ== X-Received: by 10.66.158.196 with SMTP id ww4mr4814937pab.57.1378918682033; Wed, 11 Sep 2013 09:58:02 -0700 (PDT) Received: from [192.168.3.143] (ip68-109-132-233.ph.ph.cox.net. [68.109.132.233]) by mx.google.com with ESMTPSA id fl3sm4751879pad.10.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 11 Sep 2013 09:58:01 -0700 (PDT) Message-ID: <5230A145.7080204@gmail.com> Date: Wed, 11 Sep 2013 09:58:45 -0700 From: Darren Shepherd User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 MIME-Version: 1.0 To: "dev@cloudstack.apache.org" Subject: DatabaseUpgradeChecker and running from eclipse Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org So I run ACS from eclipse for development, but DatabaseUpgradeChecker does the following String currentVersion = this.getClass().getPackage().getImplementationVersion(); if (currentVersion == null) { currentVersion = this.getClass().getSuperclass().getPackage().getImplementationVersion(); } Which results in currentVersion = "1.6.0_45" which is the package version of java because the super class is java.lang.Object. So upgrade fails. So I always comment out the DatabaseUpgradeChecker. Changing the super class to ManagerBase also works around the problem sorta (currentVersion == null, so it just does nothing). What are others doing? In general I want to get rid of any use of getImplementationVersion() as it makes development annoying. Darren