Skip to content
This repository has been archived by the owner on Oct 30, 2020. It is now read-only.

ClassCastException when error is a String #2

Closed
ypujante opened this issue May 23, 2011 · 1 comment
Closed

ClassCastException when error is a String #2

ypujante opened this issue May 23, 2011 · 1 comment
Labels

Comments

@ypujante
Copy link
Contributor

StateMachineImpl allow for an error to be a String but when it is the case, it does not handle it properly (calling waitForState will throw an exception)

2011/05/23 03:45:22.330 WARN [/CrawlerSpawn/i001] Exception while running monitor: Can't get http://ofl9.crawl.outbrain.com:8080/CrawlerSpawn//selftest?format=text to /outbrain/glu/org.linkedin.glu.packaging-all-1.5.1/org.linkedin.glu.agent-server-1.5.1/data/tmp/CrawlerSpawn/i001/__tmp1708500738Dir/selftest
2011/05/23 03:45:22.331 WARN [/CrawlerSpawn/i001] Self test failed => forcing new state stopped
2011/05/23 03:45:23.886 WARN [BaseResource] unexpected error while processing request
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Throwable
at org.linkedin.groovy.util.state.StateMachineImpl$_waitForState_closure13.doCall(StateMachineImpl.groovy:308)
at sun.reflect.GeneratedMethodAccessor15011.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:273)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:39)

@ypujante
Copy link
Contributor Author

Fixed with 1.6.1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant