• 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

Getting NoSuchObjectException

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I recently changed a piece of code in my application to pass static port numbers inside method UnicastRemoteObject.exportObject and started getting java.rmi.NoSuchObjectException: no such object in table exception.

Prior to my change code was like this :


It was working fine (I guess system was dynamically assigning port no to export the object on), but it didn't work on cloud so I had to change it to:



'portNo' is static port number let say 40000.
Please help
 
Rancher
Posts: 1093
29
Netbeans IDE Oracle MySQL Database Tomcat Server C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you get any other errors?
 
Manish Rajoria
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am getting this error. Weird thing is getting this error on a particular unix box however I could see its working on another unix box.

 
Rancher
Posts: 4801
50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
StackOverflow from 2009, so may be dated.
Maybe that'll help?
 
Manish Rajoria
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have gone through that. It didn't help. Issue is not about strong reference as before my change it was working fine.
 
Les Morgan
Rancher
Posts: 1093
29
Netbeans IDE Oracle MySQL Database Tomcat Server C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Manish,

From what I can see you are getting an answer from the client saying that there is basically nothing there listening. Is this a different port than you were using before? If so is the post open on the firewall on both sides? If it is then I would suggest looking at the bug report and see if there is anything listed.

BTW: can you go back to the old model you were using and have it work? Updates on Windows happen on Thursdays, it would be nice to know if the "old way" still worked.

Les

Manish Rajoria wrote:I have gone through that. It didn't help. Issue is not about strong reference as before my change it was working fine.

 
Manish Rajoria
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the response Morgan.
Before my change in the code the port number was 0 which means that RMI runtime would assign anonymous port number for RMI calls. I had to move this code to cloud. Dynamic assigning port numbers doesn't work with cloud instances hence I changed the code to give static port number in the method.
I can not go back to old model as the same code gets deployed to cloud instances also.
I'll check if port is restricted. Forgive a naive question but How do i get the bug report ?
 
Les Morgan
Rancher
Posts: 1093
29
Netbeans IDE Oracle MySQL Database Tomcat Server C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Java Bug Database
reply
    Bookmark Topic Watch Topic
  • New Topic