jd wrote:
We are trying to persist about 450 classes with the new 2.1rc1 hibernate and are running into the following error when trying to start up a new SessionFactory:
...
If we reduce our number of classes to about 100 we no longer see this error.
The code in the generated proxies should not grow with the number of classes. For the most part they are proportional to the number of methods in the class. I am guessing that there are one or two classes that have more methods than the others, or perhaps methods with longer signatures, and when you reduce the number of classes you are removing the problematic ones.
Quote:
This is both to let you know about the problem and ask for advice on getting around this... Thanks!
It would be helpful to know exactly which class it is failing for. If you could determine that somehow and get me the .class file I'm sure we can find a workaround. I'd post a bug to JIRA and attach the class file. If it is easy for you to rebuild Hibernate then you could just modify the log message in CGLIBLazyInitializer to include the name of the class it is attempting to proxy. Otherwise you may have to be creative, e.g. add classes one by one until it fails or something. In the worst case I can probably build you a special hibernate.jar to test with.
Thanks,
Chris