Glauber Andrade wrote:
My system doesn't work anymore. I got this error when I try to get the object Prestador (+- 600 registers).
What should I do ?
Without knowing more about your system this is hard to answer.
If there are no problems with your repository.xml it could be that you simply should start your server with more heap memory.
But if there are problems in the mapping, this won't help. So you should start by checking your repository.
what can be problematic? Loading 1 root object with 600 dependend objects shoul not be a problem (we are loading 10000 objects and more in our testcases).
But if the registers objects have references to objects, and those objects to yet another layer of objects, you are in trouble as OJB must load a very large Object graph in one go.
The solution can be to set proxy="true" for those reference- and collection-descriptors. In that way you avoid loading in one go and defer the loading of dependend objects.
Thomas
[org.apache.ojb.broker.accesslayer.JdbcAccessImpl] ERROR: SQLException during the execution of the query (for a com.maximas.sinret.data.Prestador): Memory allocation failure, message from server: "Out of memory. Restart daemon and try again (needed 65528 bytes)"
Memory allocation failure, message from server: "Out of memory. Restart daemon and try again (needed 65528 bytes)"
java.sql.SQLException: Memory allocation failure, message from server: "Out of memory. Restart daemon and try again (needed 65528 bytes)"
____________________________________________________
<http://www.incredimail.com/redir.asp?ad_id=322&lang=22> /IncrediMail/ - *O mundo do correio eletr�nico finalmente desenvolveu-se* - *_Clique aqui_* <http://www.incredimail.com/redir.asp?ad_id=322&lang=22>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
