I know what this error means, the unusual thing it whats throwing it.
EntitySave(arguments.entity);
gives me a
java.lang.OutOfMemoryError: Java heap space
why?
note: there are no dumps nor anything else throwing this error.
Right, found the answer. Sorry I did not give a lot of information still new to ORM and did not know how to view logs.
Anyhow what I found is that 'out of memory' only happened on 'insert'. looking at my entity I included a preInsert() function, in this function I had...
if(structKeyExists(this,"SETCREATEDBY")){
local.accountuser = getService("accountService").getAccountLoggedIn();
writeDump(this);
this.setcreatedBy(local.accountuser);
}
So yes my bad I did have a dump!!!! So sorry for wasting your time a lesson learned I promise! :)