| Author |
javaspace transaction error
|
hari vijayadharan
Greenhorn
Joined: Dec 29, 2008
Posts: 3
|
|
Hi all,
I have the following exception in my program...
I am using jini2_1 service and eclipse to run the javaspace program. I have already added the jar files like mahalo,reggie .. in Java Build path of my program. But still I am getting CLASS NOT FOUND EXCEPTION... com.sun.jini.mahalo.TxnMgrProxy$ConstrainableTxnMgrProxy
I tried to debug the program, the thing which I felt suspicious is following:
In my program the JAVASPACE service is running properly. I am using lookupdiscovery mechanism in jini. The lookup discovery mechanism is having a class Listener that implements DiscoveryListener and proxy generated by lookup() method inside discovered() method
_proxy=lus.lookup(_template);
template = >ServiceTemplate object
lus = >ServiceRegistrar object
After
JavaSpace space=SpaceLocator.getSpace();
JAVASPACE PROXY(space) = com.sun.jini.outrigger.ConstrainableSpaceProxy2 for 909c299b-f355-4aca-aa7d-dd61f76c75bf (through Proxy[OutriggerServer,BasicInvocationHandler[BasicObjectEndpoint[12d482de-3914-4217-b607-6c67f796081b,TcpEndpoint[192.168.38.202:2257]]]])
After
Transaction txn=TxnManager.createTxn(60000);
txn has value(TRANSACTION PROXY)=net.jini.core.transaction.server.ServerTransaction [manager=com.sun.jini.mahalo.TxnMgrProxy$ConstrainableTxnMgrProxy@619dbfcc, id=-706526335749167748]
Here when I compared the returned values------ txn proxy does'nt have a tcpendpoint specified, may be this is the reason why the class not found EXCEPTION occuring..
How I can solve this problem...?
[NK: Removed hard to read orange color and put it in code tags]
|
 |
Amit Ghorpade
Bartender
Joined: Jun 06, 2007
Posts: 2552
|
|
|
"harikrishnan vs " please check your private messages for an important administrative matter. You can check them by clicking the My Private Messages link above.
|
SCJP, SCWCD.
|Asking Good Questions|
|
 |
 |
|
|
subject: javaspace transaction error
|
|
|