Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 17740 invoked from network); 8 Jun 2005 00:47:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Jun 2005 00:47:32 -0000 Received: (qmail 3601 invoked by uid 500); 8 Jun 2005 00:47:30 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 3492 invoked by uid 500); 8 Jun 2005 00:47:30 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 3435 invoked by uid 99); 8 Jun 2005 00:47:29 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 07 Jun 2005 17:47:28 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 052032B8 for ; Wed, 8 Jun 2005 02:22:41 +0200 (CEST) Message-ID: <2042177261.1118190161019.JavaMail.jira@ajax.apache.org> Date: Wed, 8 Jun 2005 02:22:41 +0200 (CEST) From: "Susan Cline (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-314) eclipse plugin needs improved network server process handling In-Reply-To: <1415006040.1117042851976.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-314?page=comments#action_12312971 ] Susan Cline commented on DERBY-314: ----------------------------------- Attached is a patch to resolve the problem with the Derby UI plugin where the network server can be started on multiple ports for the same Eclipse project and not being able to stop a running network server for a project. I'd appreciate it is someone could review it, and if it looks okay, commit it. The fix changes the behaviour to the following: 1) Only one network server can be started per project. 2) Once a network server is started for a project it must be stopped before any of it's settings (port, host and derby.system.home) can be changed. 3) If a user tries to change these settings when the network server is running they will be notified that they cannot change them, and the text fields become uneditable. Testing: Manually tested this scenario: Started a network server for a project Attempted to change the port for the project This fails - the textfields are uneditable and a Pop-up box states the server must be stopped Stopped the network server Changed the port number Restarted the network server on the new port number Stopped the network server on this port number Created a second project and modified the port number to be the same as the server running on the first project. The console window explains this fails because a server is already running on this port. Output from svn stat: M plugins\eclipse\org.apache.derby.ui\src\org\apache\derby\ui\common\Messages.java M plugins\eclipse\org.apache.derby.ui\src\org\apache\derby\ui\properties\DerbyPropertiesPage.java Susan Patch attached. > eclipse plugin needs improved network server process handling > ------------------------------------------------------------- > > Key: DERBY-314 > URL: http://issues.apache.org/jira/browse/DERBY-314 > Project: Derby > Type: Bug > Components: Tools > Versions: 10.0.2.0 > Environment: windows, eclipse 301, jdk142 > Reporter: Myrna van Lunteren > Assignee: Susan Cline > Priority: Minor > Attachments: plugins_networkserver.diff > > The eclipse plugin allows you to create multiple network server processes within the same project through a gap in the checking mechanism, but you can't close all those you create that way from within eclipse. > To duplicate do the following: > - setup the plugin and apply the eclipse nature to a project > - start network server on the default port. > - switch the port number using the derby preferences e.g. to 1528 > - go to the derby task - you see that the networkserver start/stop is a toggle, and because last time you started a networkserver process, it is now on 'stop'. Run the 'stop Networkserver. This will fail, because network server is not running on port 1528, so cannot be stopped. > The toggle will now go back to 'start'. > - start networkserver on port 1528. > - trying this 'trick' in reverse - i.e. for the start - does not work, if the start fails, the toggle remains on 'start'. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira