You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Anders Wallgren (JIRA)" <ji...@apache.org> on 2007/03/06 09:35:24 UTC

[jira] Commented: (HTTPCORE-54) NPE during DefaultConnectingIOReactor.shutdown

    [ https://issues.apache.org/jira/browse/HTTPCORE-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478312 ] 

Anders Wallgren commented on HTTPCORE-54:
-----------------------------------------

Any chance this is a visibility issue?  Naturally, I call shutdown() from a different thread than execute().  While the threads member is final and allocate in the constructor, the threads are not allocated until execute() is called.

Is there any synchronization that guarantees that the contents of the threads member will be visible?

> NPE during DefaultConnectingIOReactor.shutdown
> ----------------------------------------------
>
>                 Key: HTTPCORE-54
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-54
>             Project: HttpComponents Core
>          Issue Type: Bug
>          Components: HttpCore NIO
>            Reporter: Anders Wallgren
>
> java.lang.NullPointerException 
> at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.stopWorkers(AbstractMultiworkerIOReactor.java:91)
> at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.shutdown(DefaultConnectingIOReactor.java:279)
> at com.electriccloud.commander.agent.AgentManager.onStop(AgentManager.java:203)
> at com.electriccloud.util.FailsafeRunnable.stop(FailsafeRunnable.java:154)
> at com.electriccloud.commander.agent.AgentManagerTest.tearDown(AgentManagerTest.java:329)
> It's possible that shutdown was called twice.

-- 
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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org