You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Gary Tully (JIRA)" <ji...@apache.org> on 2010/05/18 16:30:20 UTC

[jira] Created: (AMQ-2737) NPE in WriteoutTimer with nio - add support for soWriteTimeout to nio transport

NPE in WriteoutTimer with nio - add support for soWriteTimeout to nio transport
-------------------------------------------------------------------------------

                 Key: AMQ-2737
                 URL: https://issues.apache.org/activemq/browse/AMQ-2737
             Project: ActiveMQ
          Issue Type: Improvement
          Components: Transport
    Affects Versions: 5.3.2
            Reporter: Gary Tully
            Assignee: Gary Tully
             Fix For: 5.4.0


>From the logs:

2010-04-12 18:17:03,159 ERROR org.apache.activemq.transport.WriteTimeoutFilter$TimeoutThread.run(WriteTimeoutFilter.java:177) [WriteTimeoutFilter-Timeout-1] - WriteTimeout thread unable validate existing sockets.
java.lang.NullPointerException: null

Issue is nio transport doe not support narrow to a TcpBufferedOutputStream.class, a little refactor and implementation is needed.

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


[jira] Updated: (AMQ-2737) NPE in WriteTimeoutFilter with nio - add support for soWriteTimeout to nio transport

Posted by "Gary Tully (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-2737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Tully updated AMQ-2737:
----------------------------

        Summary: NPE in WriteTimeoutFilter with nio - add support for soWriteTimeout to nio transport  (was: NPE in WriteoutTimer with nio - add support for soWriteTimeout to nio transport)
    Description: 
config that shows the problem:{code}
<amq:transportConnectors>
 <amq:transportConnector name="openwire" uri="nio://0.0.0.0:61616?transport.soWriteTimeout=5000&transport.soTimeout=5000"/>
 <amq:transportConnector name="stomp" uri="stomp+nio://0.0.0.0:61618?transport.soWriteTimeout=5000&transport.soTimeout=5000"/>
</amq:transportConnectors>
{code}

In the event that a write times out with nio the npe appears in the log:

2010-04-12 18:17:03,159 ERROR org.apache.activemq.transport.WriteTimeoutFilter$TimeoutThread.run(WriteTimeoutFilter.java:177) [WriteTimeoutFilter-Timeout-1] - WriteTimeout thread unable validate existing sockets.
java.lang.NullPointerException: null

Issue is nio transport doe not support narrow to a TcpBufferedOutputStream.class, a little refactor and implementation is needed.

  was:
>From the logs:

2010-04-12 18:17:03,159 ERROR org.apache.activemq.transport.WriteTimeoutFilter$TimeoutThread.run(WriteTimeoutFilter.java:177) [WriteTimeoutFilter-Timeout-1] - WriteTimeout thread unable validate existing sockets.
java.lang.NullPointerException: null

Issue is nio transport doe not support narrow to a TcpBufferedOutputStream.class, a little refactor and implementation is needed.


> NPE in WriteTimeoutFilter with nio - add support for soWriteTimeout to nio transport
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-2737
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2737
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Transport
>    Affects Versions: 5.3.2
>            Reporter: Gary Tully
>            Assignee: Gary Tully
>             Fix For: 5.4.0
>
>
> config that shows the problem:{code}
> <amq:transportConnectors>
>  <amq:transportConnector name="openwire" uri="nio://0.0.0.0:61616?transport.soWriteTimeout=5000&transport.soTimeout=5000"/>
>  <amq:transportConnector name="stomp" uri="stomp+nio://0.0.0.0:61618?transport.soWriteTimeout=5000&transport.soTimeout=5000"/>
> </amq:transportConnectors>
> {code}
> In the event that a write times out with nio the npe appears in the log:
> 2010-04-12 18:17:03,159 ERROR org.apache.activemq.transport.WriteTimeoutFilter$TimeoutThread.run(WriteTimeoutFilter.java:177) [WriteTimeoutFilter-Timeout-1] - WriteTimeout thread unable validate existing sockets.
> java.lang.NullPointerException: null
> Issue is nio transport doe not support narrow to a TcpBufferedOutputStream.class, a little refactor and implementation is needed.

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


[jira] Resolved: (AMQ-2737) NPE in WriteTimeoutFilter with nio - add support for soWriteTimeout to nio transport

Posted by "Gary Tully (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-2737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Tully resolved AMQ-2737.
-----------------------------

    Resolution: Fixed

fixed in r945692

the writeTimeoutFilter can now abort an nio broker connection that is blocked on a write.

> NPE in WriteTimeoutFilter with nio - add support for soWriteTimeout to nio transport
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-2737
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2737
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Transport
>    Affects Versions: 5.3.2
>            Reporter: Gary Tully
>            Assignee: Gary Tully
>             Fix For: 5.4.0
>
>
> config that shows the problem:{code}
> <amq:transportConnectors>
>  <amq:transportConnector name="openwire" uri="nio://0.0.0.0:61616?transport.soWriteTimeout=5000&transport.soTimeout=5000"/>
>  <amq:transportConnector name="stomp" uri="stomp+nio://0.0.0.0:61618?transport.soWriteTimeout=5000&transport.soTimeout=5000"/>
> </amq:transportConnectors>
> {code}
> In the event that a write times out with nio the npe appears in the log:
> 2010-04-12 18:17:03,159 ERROR org.apache.activemq.transport.WriteTimeoutFilter$TimeoutThread.run(WriteTimeoutFilter.java:177) [WriteTimeoutFilter-Timeout-1] - WriteTimeout thread unable validate existing sockets.
> java.lang.NullPointerException: null
> Issue is nio transport doe not support narrow to a TcpBufferedOutputStream.class, a little refactor and implementation is needed.

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