Hey Guys,
I am running a small application on the sun appserver 7 with Sun ONE
studio and I encounter the following problem:
When I execute my application the first time after deployment,
everything works just fine.
When I execute my application the 2nd time and all the times after, it
returns a Finderexception in the FindByPKFromProg findermethod in the
next listing???
public void removeProgEntry(
java.lang.Integer entryId) {
try{
LocalProgramme thisProg =
(LocalProgramme)this.context.getEJBLocalObject();
LocalProgEntry entry =
this.entryProgHome.findByPKFromProg(entryId,thisProg);
entry.remove();
}catch(FinderException fe){
throw new IllegalArgumentException("this programme does not
contain an entry with this entryId");
}
catch(RemoveException
re){System.out.println("ProgrammeBean.removeEntry removeException:
"+re.toString());}
}
How in the world is it possible that exactly the same code works
perfectly in the first execution, but never ever after????
Anybody got a clue?
THx a lot
Patrick
===========================================================================
To unsubscribe, send email to listserv@(protected)
of the message "signoff J2EE-INTEREST". For general help, send email to
listserv@(protected)".