• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

javaspace transaction error

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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]
 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"harikrishnan vs " please check your private messages for an important administrative matter. You can check them by clicking the My Private Messages link above.
 
This tiny ad is wafer thin:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic