List Info

Thread: Proxy troubles on service start




Proxy troubles on service start
user name
2006-05-02 06:12:34
Hi All

I have been using Hivemind for a few months mostly without
issue. But at the
moment I have a very strange situation. When first calling a
service an
exception is thrown saying that 

the declared service interface doesnt match the requested
one

But it does, at least it appears so. The error message also
lists the
interface name twice eg The service X doesnt implement the
requested
interface (X). The declared interface is X.

After tracking it down in the debugger it appears that the
call to
getService in ServicePoint returns a proxy on first call -
as would be
expected. Then at the comparison in getService(Class), the
isAssignableFrom() test fails and the exception is thrown.

The strange thing is it is only one particular service - we
have about 15
altogether and this (recently added) one is the only one
which generates the
problem. 

I really have no idea of the internal proxy mechanics of
HiveMind and am
hoping it may be my XML files or something. 

Anyone had any similar issues??

Cheers 

Michael
--
View this message in context: http://www.nabble.com/Proxy-troubles
-on-service-start-t1535673.html#a4172314
Sent from the Hivemind - User forum at Nabble.com.


------------------------------------------------------------
---------
To unsubscribe, e-mail: hivemind-user-unsubscribejakarta.apache.org
For additional commands, e-mail: hivemind-user-helpjakarta.apache.org

Proxy troubles on service start
user name
2006-05-02 10:43:56
This can be a classloader issue (classloader A loads one
version of the
interface and classloader B loads another version of the
exact same
interface).  In what environment are you running HiveMind?  

-----Original Message-----
From: Michael D [mailto:infotechknowledgeaustralia.com]

Sent: Tuesday, May 02, 2006 2:13 AM
To: hivemind-userjakarta.apache.org
Subject: Proxy troubles on service start


Hi All

I have been using Hivemind for a few months mostly without
issue. But at the
moment I have a very strange situation. When first calling a
service an
exception is thrown saying that 

the declared service interface doesnt match the requested
one

But it does, at least it appears so. The error message also
lists the
interface name twice eg The service X doesnt implement the
requested
interface (X). The declared interface is X.

After tracking it down in the debugger it appears that the
call to
getService in ServicePoint returns a proxy on first call -
as would be
expected. Then at the comparison in getService(Class), the
isAssignableFrom() test fails and the exception is thrown.

The strange thing is it is only one particular service - we
have about 15
altogether and this (recently added) one is the only one
which generates the
problem. 

I really have no idea of the internal proxy mechanics of
HiveMind and am
hoping it may be my XML files or something. 

Anyone had any similar issues??

Cheers 

Michael
--
View this message in context:
http://www.nabble.com/Proxy-troubles
-on-service-start-t1535673.html#a4172314
Sent from the Hivemind - User forum at Nabble.com.


------------------------------------------------------------
---------
To unsubscribe, e-mail: hivemind-user-unsubscribejakarta.apache.org
For additional commands, e-mail: hivemind-user-helpjakarta.apache.org



------------------------------------------------------------
---------
To unsubscribe, e-mail: hivemind-user-unsubscribejakarta.apache.org
For additional commands, e-mail: hivemind-user-helpjakarta.apache.org

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )