You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Andreas Veithen (JIRA)" <ji...@apache.org> on 2008/08/11 22:44:44 UTC

[jira] Created: (SYNAPSE-425) Synapse immediately shuts down if only daemon threads are running

Synapse immediately shuts down if only daemon threads are running
-----------------------------------------------------------------

                 Key: SYNAPSE-425
                 URL: https://issues.apache.org/jira/browse/SYNAPSE-425
             Project: Synapse
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.2
         Environment: N/A
            Reporter: Andreas Veithen
            Assignee: Andreas Veithen


SynapseServer.main immediately returns after starting up SynapseServer. If during startup only daemon threads are created, the VM immediately shuts down. This situation arises e.g. when only the VFS transport and the JMS sender are enabled. Indeed, the JMS sender doesn't create any thread and the VFS transport uses timers configured in daemon mode (see AbstractPollingTransportListener).

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


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


[jira] Commented: (SYNAPSE-425) Synapse immediately shuts down if only daemon threads are running

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12621614#action_12621614 ] 

Andreas Veithen commented on SYNAPSE-425:
-----------------------------------------

I changed AbstractPollingTransportListener to properly manage the lifecycle of the timer, which in return is no longer configured as daemon. This solves the problem in the particular case explained above.

> Synapse immediately shuts down if only daemon threads are running
> -----------------------------------------------------------------
>
>                 Key: SYNAPSE-425
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-425
>             Project: Synapse
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2
>         Environment: N/A
>            Reporter: Andreas Veithen
>            Assignee: Andreas Veithen
>
> SynapseServer.main immediately returns after starting up SynapseServer. If during startup only daemon threads are created, the VM immediately shuts down. This situation arises e.g. when only the VFS transport and the JMS sender are enabled. Indeed, the JMS sender doesn't create any thread and the VFS transport uses timers configured in daemon mode (see AbstractPollingTransportListener).

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


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


[jira] Resolved: (SYNAPSE-425) Synapse immediately shuts down if only daemon threads are running

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-425?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen resolved SYNAPSE-425.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3

Changed SynapseServer.main to put the main thread in wait state. This makes sure that Synapse doesn't stop prematurely.

> Synapse immediately shuts down if only daemon threads are running
> -----------------------------------------------------------------
>
>                 Key: SYNAPSE-425
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-425
>             Project: Synapse
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2
>         Environment: N/A
>            Reporter: Andreas Veithen
>            Assignee: Andreas Veithen
>             Fix For: 1.3
>
>
> SynapseServer.main immediately returns after starting up SynapseServer. If during startup only daemon threads are created, the VM immediately shuts down. This situation arises e.g. when only the VFS transport and the JMS sender are enabled. Indeed, the JMS sender doesn't create any thread and the VFS transport uses timers configured in daemon mode (see AbstractPollingTransportListener).

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


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