• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

finder NoSuchObjectException

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, i have this problem: I look up an instance of an entity bean using the corresponding findByPrimaryKey method, It return an object; I mean, It seems to find something, but when I invoke a get method of the returned object, a NoSuchObjectException exception is thrown.
I think it's a bug because this exception should thrown when invoke the findByPrimaryKey, in this way I could catch it and not use the get method.
Has someone know something about this? Is there something I'm doing wrong or something I'm not doing?
Thanks in advance
Martin
 
Martin Amaris
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In better words, this is the problem: I do a find with a PK class on an entity bean instance on a record that don't exist, I would expect an ObjectNotFoundException, Weblogic doesn't do this. It returns an object whisch is the remote interface, but isn't properly initialized, because the object doesn't exist. Then I call a method on this returned object and I get a RMI exception: NoSuchObjectException
It's pretty weird, I seems to be a bug, If anyone knows about it, let me know how to fix it please. Thanks
Martin
 
There are 29 Knuts in one Sickle, and 17 Sickles make up a Galleon. 42 tiny ads in a knut:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic