Hello!
I have a Flex Spring application with many datasources (dynamically generated mysql db). I use Hibernate Search for indexing those new databases. This is how i fetch a small dataset:
the return lst send the found objects to the flex application through BlazeDs, here is the console trace after this operation (Blazeds logging = all).Code://get a dynamic session manually Session ss = DbManagerMySqlImpl.selectSessionFactory(prefix) .getCurrentSession(); //start a transaction because one of those operations is not applicable out of a transaction tx = ss.beginTransaction(); FullTextQuery ftq = Search.getFullTextSession(ss).createFullTextQuery(bq, Abnaux.class); //display the boolean query just before executing it System.out.println("BQ : "+ bq); lst = ftq.setFirstResult(offset) .setMaxResults(pageSize) .list(); return lst;
then everything is blocked, 100% of cpu is consumed for sometime and then the famous:Code:BQ : +denomination:hotel [BlazeDS]Adapter 'java-object' called 'null.rechercher(java.util.Arrays$ArrayList (Collection size:4) [0] = null hotel [1] = list_fax [2] = 0 [3] = 10 )' [BlazeDS]Result: 'java.util.ArrayList (Collection size:10) [0] = xx [1] = xx ... [9] = zz '
Actually the correct result is fetched and printed on the console, but never sent to the flex application. Can this be a serialization issue?Code:[BlazeDS]Java heap space java.lang.OutOfMemoryError: Java heap space
Can anyone tell me where this may come from?
Thanks![]()



Reply With Quote
