Knut Wannheden wrote:
David,
The problem is a class loader issue. You're creating your own
ClassFactory instance, which in turn uses its own Javassist ClassPool,
which can't find the PooledProxy class HiveMind created using its own
ClassPool. You'll have to use HiveMind's ClassFactory.
For this you should define a setFactory(ClassFactory) method on your
interceptor factory and then add a line like this to the <construct>
of your interceptor factory service:
<set-service property="factory" service-id="hivemind.ClassFactory"/>
Cool - now it nearly works. But I'm using a finally block with classfab
- and this doesn't seem to be supported:
BodyBuilder.toString():
com.jamonapi.Monitor mon =
com.jamonapi.MonitorFactory.start("sendAndReceive");
try {
return _delegate.sendAndReceive($$);
}
finally {
mon.stop();
};
}
(JAMonInterceptorFactory.java:155)
2005-05-25 16:03:59,696 [main] ERROR
org.apache.hivemind.schema.rules.ReadContentRule - Error at
file:/Q:/hivemodule.xml, line 62, column 14: Unable to process content
of element construct/service: Unable to add method org.dom4j.Document
sendAndReceive(MyPackage.MyType, org.dom4j.Document, java.lang.Integer)
throws TransportException to class $Interceptor_104142ab208_35: [source
error] sorry, finally has not been supported yet
(DefaultErrorHandler.java:37)
will it be supported in 1.1?
--
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]