• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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
 
To get a wish, you need a genie. To get a genie, you need a lamp. To get a lamp, you need a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic