Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointer in Hystrix.reset() #124

Closed
eduponte opened this issue Mar 6, 2013 · 3 comments
Closed

NullPointer in Hystrix.reset() #124

eduponte opened this issue Mar 6, 2013 · 3 comments

Comments

@eduponte
Copy link

eduponte commented Mar 6, 2013

We are facing a NullPointerException during undelpoy/redeploy. HystrixTimer thread seems to have been correctly removed, though.

Current Hystrix version is 1.2.11

2013-03-05 19:23:27,253 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/api]- Excepción enviando evento de contexto destruído a instancia de escuchador de clase etech.ticket.web.listener.ApiContextLoaderListener
java.lang.NullPointerException
    at com.netflix.hystrix.util.HystrixTimer.reset(HystrixTimer.java:63)
    at com.netflix.hystrix.HystrixCollapser.reset(HystrixCollapser.java:1105)
    at com.netflix.hystrix.Hystrix._reset(Hystrix.java:44)
    at com.netflix.hystrix.Hystrix.reset(Hystrix.java:19)
    at etech.ticket.web.listener.ClientContextLoaderListener.contextDestroyed(ClientContextLoaderListener.java:23)
    at etech.ticket.web.listener.ApiContextLoaderListener.contextDestroyed(ApiContextLoaderListener.java:17)
    at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4831)
    at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5478)
    at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
    at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3913)
    at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:426)
    at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1345)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519)
    at java.lang.Thread.run(Thread.java:722)
@benjchristensen
Copy link
Contributor

Well that's embarrassing. I'll push a fix as soon as I'm at a computer again.

@benjchristensen
Copy link
Contributor

I have fixed this and released 1.2.12.

@eduponte
Copy link
Author

eduponte commented Mar 7, 2013

Thanks for the quick response & release

abersnaze pushed a commit to abersnaze/Hystrix that referenced this issue Nov 7, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants