[
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]