commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (DAEMON-187) (0) An instance of '..' application is already running
Date Tue, 04 Jan 2011 19:19:45 GMT

    [ https://issues.apache.org/jira/browse/DAEMON-187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12977417#action_12977417
] 

Sebb edited comment on DAEMON-187 at 1/4/11 2:19 PM:
-----------------------------------------------------

This appears to be a bug in apxDisplayError() - if the file and line-number is not supplied,
it ought not to print either.

I suspect 
line 401:         f = "";
is the cause, as it is not false, so it fails the test at 
line 424:         if (f) {
and thus generates a line with just ' (0)' in it

      was (Author: sebb@apache.org):
    This appears to be a bug in apxDisplayError() - if the file and line-number is not supplied,
it ought not to print either.

I suspect line 401:         f = "";
is the cause, as it is not false.

  
> (0) An instance of '..' application is already running
> ------------------------------------------------------
>
>                 Key: DAEMON-187
>                 URL: https://issues.apache.org/jira/browse/DAEMON-187
>             Project: Commons Daemon
>          Issue Type: Bug
>          Components: Procrun
>    Affects Versions: 1.0.4
>         Environment: WinXP 32-bit, Oracle JRE 6u22 32-bit, Tomcat 7.0.5-dev
>            Reporter: Konstantin Kolinko
>            Priority: Minor
>         Attachments: screenshot-1.jpg
>
>
> To reproduce:
> 1. Build Tomcat7 Windows installer from the current trunk, as of rev.1035132 (7.0.5-dev)
> It includes common-daemon 1.0.4.
>   -   svn co https://svn.apache.org/repos/asf/tomcat/trunk
>   -   Create build.properties file and set "base.path" property there
>   -   Call "ant installer"
> 2. Install it.
> 3. If Tomcat Monitor is not running, go to the programs menu and call "Monitor Tomcat"
shortcut there.
> 4. Now every attempt to call "Monitor Tomcat" or "Configure Tomcat" shortcuts results
in an ugly message box:
> " (0)
> An instance of 'Tomcat7' application is already running"
> Note the "(0)" in the first line.
> Expected result: Display the window of that running application, or provide more pretty
error message.
> Additional information:
> - The "Monitor Tomcat" shortcut calls
> "C:\Program Files\Apache Software Foundation\Tomcat 7.0\bin\tomcat7w.exe" //MS//Tomcat7
> - The "Configure Tomcat" shortcut calls
> "C:\Program Files\Apache Software Foundation\Tomcat 7.0\bin\tomcat7w.exe" //ES//Tomcat7
> - The service was configured to use a PidFile. I do not know whether that is relevant.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message