(Error) Molfile cannot be loaded with java thread

User 48bff09cff

13-10-2006 09:44:39

Hi,





I develop a web application with chemaxon tools (jchemTEST_2006_08_25).





A jsp build a thread and in this thread I launch a java application (with exec) to build conformers. This java application uses





Code:
import chemaxon.struc.*;


import chemaxon.formats.*;


import chemaxon.marvin.modules.*;


import chemaxon.marvin.calculations.*;


import chemaxon.marvin.plugin.*;


import chemaxon.reaction.Standardizer;


import chemaxon.pharmacophore.*;






That's why I use jchem.jar.





This part run correctly.





But if I try to run two molecules (two java applications with two threads), an error can be occured.


If the treatment of the first molecule is long and if I launch a second molecule in the same time, I obtain this error :
Quote:
Molfile cannot be loaded because an error occured : java.lang.ThreadDeath.


#10101
Moreover, the window of this error cannot be closed.








Thanks to help me,





Cyrielle

ChemAxon 7c2d26e5cf

16-10-2006 10:05:11

Dear Cyrielle,


I do not understand why you run two separate JVM to build conformers. Is there any special reason of it?


The conformer calculation can be also called from the API.


If you use separate JVMs, you can not synchronize them. Probably, it can cause the error.


I suggest to use only one JVM with multiple threads and use the calculation API, instead of launching multiple applications.