[
http://issues.apache.org/jira/browse/HIVEMIND-118?page=comments#action_65871 ]
Richard Sang commented on HIVEMIND-118:
---------------------------------------
I downloaded the source code of beta2, and did a modify on Class
org.apache.hivemind.impl.servicemodel.ThreadedServiceModel, in mothed
constructServiceForCurrentThread()
just move
activeService.set(core)
behind
if (!_serviceInterface.isInstance(core))
core = constructBridgeProxy(core);
it seems that solved the problem, but I don't know if it has side-affects.
by the way it passed most of test, only failed on:
assertEquals(
"<OuterProxy for
hivemind.test.services.StringHolder(hivemind.test.services.StringHolder)>",
h.toString());
Thanks.
> Threaded service bean ClassCastException
> ----------------------------------------
>
> Key: HIVEMIND-118
> URL: http://issues.apache.org/jira/browse/HIVEMIND-118
> Project: HiveMind
> Type: Bug
> Components: framework
> Versions: 1.1
> Environment: jdk1.5, linux 2.6.11
> Reporter: Richard Sang
> Attachments: Hivemind-118.jar
>
> I want to put Webwork action as threaded services (quick-and-dirty mode), and
> I could set action beans property,
> but when I try to get property of the action, I got exception:
> java.lang.ClassCastException: genet.action.FormTest
> at
> $$FormTest_103b31fee7c_103b31fee7f._service($$FormTest_103b31fee7c_103b31fee7f.java)
> at
> $$FormTest_103b31fee7c_103b31fee7f.getUser($$FormTest_103b31fee7c_103b31fee7f.java)
> at
> $$FormTest_103b31fee7c_103b31fee80.getUser($$FormTest_103b31fee7c_103b31fee80.java)
> at genet.main.ActionMain.main(ActionMain.java:51)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]