Changeset 2407


Ignore:
Timestamp:
11/01/09 19:08:30 (2 years ago)
Author:
jvelde
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • molgenis/3.3/src/org/molgenis/framework/db/jdbc/AbstractJDBCMapper.java

    r2406 r2407  
    717717                                { 
    718718                                        // load mrefs 
    719                                         //try{ 
     719                                        System.out.println("*** mapMrefs -> BATCH"); //program will crash after this 
     720                                         
     721                                        //DOES NOT WORK -> mapMrefs is NOT ALLOWED while the resultset is ACTIVE 
    720722                                        mapMrefs(entityBatch); 
    721                                         //UPDATE 2: this PROBABLY has to do with the batch size!! 
    722                                         //single gene works fine 
    723                                         //list of genes (like Myers) export -> crash 
    724                                         // 
    725                                         //UPDATE: this only fails when running EXPORT on MYERS dataset. 
    726                                         //proposed solution: close rs before this query 
    727                                         //ie ---> per batch 2 seperated resultsets 
    728                                         // 
    729                                         //FIXME: this FAILS because rs is open!! program ends without try-catch 
    730                                         //strange: problem seems to occur in very specific cases.. 
    731                                         //reasons? speculation.. 
    732                                         // a) either the function gets usually empty values and exits (no mrefs) 
    733                                         // b) the specific data causes an error that bugs the function, rs is not closed, and errors here 
    734                                         // c) ... ? 
    735                                         //is the function that opens another rs allowed here? 
    736                                         //ie. can it be executed at all? and why would it fail if it has been tested? 
    737                                         //} 
    738                                         //catch(Exception e){ 
    739                                                 //e.printStackTrace(); 
    740                                         //} 
     723                                         
    741724                                        for (E e : entityBatch) 
    742725                                        { 
     
    748731                        // write remaining 
    749732                        // load mrefs 
     733                        System.out.println("*** mapMrefs -> LEFTOVERS"); //program does NOT crash after this 
    750734                        mapMrefs(entityBatch); 
    751735                        for (E e : entityBatch) 
Note: See TracChangeset for help on using the changeset viewer.