JPAContainer warning - where is it coming from?

I have a Vaadin 7 program with several JPA Container objects. In my Tomcat log file, I see the following warning - repeated occasionally:

JPAContainer indexOfId WARNING: (JPAContainer) WARNING! Invoking indexOfId() when size > 100 is not recommended!

Which is all well and good, but it doesn’t tell me which container is calling the routine. And since I don’t call that method explicitly, I’m having trouble figuring out how to get rid of it. How do I track down the culprit? Not sure what I’ll do when I find it, but first things first… :slight_smile:

thanks,

nbc

Hi Neil,

If it is fairly easily reproducible you could put a breakpoint in the indexOfId method and wait for it to be triggered. Otherwise perhaps you could replace the JPAContainer class with your own copy where indexOfId calls Thread.dumpStack()? But I think that the best way to go is with the breakpoint and then using the application until it is triggered as the other option needs a bit of work to get right.

HTH
/Jonatan

It is 100% reproducible. However, I can’t run it within my Eclipse development environment - I need to copy the war file to a pretty much bare-bones target system. I’m not familiar with how to debug a process in that environment - particularly when it relates to library supplied code… Can you give me some pointers on how to actually set up a debugging session to do this? Or point me at a tutorial or something that might help? Thanks…

nbc

Hi Neil,

Sorry for the late answer. A tutorial on remote debugging with eclipse can be found
here
.

/Jonatan

Thanks Jonatan - I’ll look into the remote debugging…

nbc