Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Distributed Java and the fly likes javaspace transaction error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "javaspace transaction error" Watch "javaspace transaction error" New topic

javaspace transaction error

hari vijayadharan

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


template = >ServiceTemplate object
lus = >ServiceRegistrar object

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[]]]])

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

Joined: Jun 06, 2007
Posts: 2846

"harikrishnan vs " please check your private messages for an important administrative matter. You can check them by clicking the My Private Messages link above.

|Asking Good Questions|
I agree. Here's the link:
subject: javaspace transaction error
It's not a secret anymore!