Importer dump lots of nonsence message.

User ab70427b17

21-10-2013 05:44:40

I try to add an import function into Play Framework. And I created a short function. Which works very fine in standalone application. Here is the code:


private static int importSDF(File sdffile) throws MolFormatException, IOException, TransferException, ClassNotFoundException, SQLException
    {
        ConnectionHandler ch = get_connection();
        String structureTable = Configuration.root().getString("db.default.structure_table");
        
        Importer importer = new Importer();

        importer.setConnectionHandler(ch);
        importer.setInput(sdffile);
        importer.setTableName(structureTable);
        importer.setHaltOnError(false);
        // importer.setDuplicateImportAllowed(UpdateHandler.DUPLICATE_FILTERING_ON);

        int imported = importer.importMols();
        return imported;
    }


But when I add this code into my play framework, the importer will dump tones of message looks like:


depth = 0
idx = []
After HomologyInit:
      Target atoms
      [ 0   1   2   3   4   5   6   7   8   9   10  11  12  13  14  15  16  17
18  19  20  21  22  23  24  25  26  27  28  29  30  31  32  33  34  35  36  37
38  39  40  41  42  43  44  45  46  ]
Query atoms

  0   [ (.) .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .
.   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .
.   T   .   .   .   .   .   .   .   ]
  1   [ .   (.) .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .
.   .   .   .   .   .   T   .   .   .   .   .   .   .   .   .   .   .   .   .
.   .   .   .   .   .   .   .   .   ]
  2   [ .   .   (.) .   .   .   .   .   .   .   .   .   .   .   .   .   .   T
.   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .
.   .   .   .   .   .   .   .   .   ]
  3   [ .   .   .   (.) .   .   .   .   .   .   .   .   .   .   .   .   .   .
.   .   .   .   .   .   .   .   .   .   .   T   .   .   .   .   .   .   .   .
.   .   .   .   .   .   .   .   .   ]


It really slows down the system and I don't know how to turn it off.


Would you please help me. Thank you.

ChemAxon 4a2fc68cd1

21-10-2013 09:54:16

Hi,


This is a debug message of our internal searcher code. It should only be printed if the verbose flag is explicitly set to true in the search options or if you switch on FINEST level logging (globally or for "chemaxon.sss.search.StructureSearch.general").


As far as I see, you do not start search directly in your code, but duplicate filtering option of a structure table performs searches. Therefore, I guess that this issue is related to your logging configuration. Could you check it?


Peter

User ab70427b17

22-10-2013 02:02:11










pkovacs84 wrote:

Hi,


This is a debug message of our internal searcher code. It should only be printed if the verbose flag is explicitly set to true in the search options or if you switch on FINEST level logging (globally or for "chemaxon.sss.search.StructureSearch.general").


As far as I see, you do not start search directly in your code, but duplicate filtering option of a structure table performs searches. Therefore, I guess that this issue is related to your logging configuration. Could you check it?


Peter



Dear peter,


    I try to turn all my logger configuration to OFF. But these messages still exist.  :( I don't know how to set the global verbose flag to false. Would you please help me.


    Thank you very much.


dhl419


 

ChemAxon 4a2fc68cd1

22-10-2013 05:57:05

Hi,


Here are some questions and suggestions that might help.



  1. What JChem version do you use?

  2. Is duplicate filtering enabled for the structure table?

  3. Could you insert this code fragment right before start importing:
    Logger log = Logger.getLogger("chemaxon.sss.search.StructureSearch.general");
    System.out.println(log.isLoggable(Level.FINEST));

  4. If it prints "true", then put an additional line:
    log.setLevel(Level.INFO);
    Does this solve the problem?


Regards,
Peter




User ab70427b17

25-10-2013 01:58:01


Dear peter,


   It works. Thank you very much. :)


dhl419