New Problem with Exception in query substructure

User 7fc1506f44

12-12-2012 12:33:45

Still having the problem exception, being below the exeção to be appearing now:


 


Help me!!!!!


 


 


/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sistematxsubconsulta;

import org.mentawai.core.ApplicationManager;
import org.mentawai.db.*;
import chemaxon.formats.MolFormatException;
import chemaxon.jchem.db.DatabaseSearchException;
import chemaxon.jchem.db.*;
import chemaxon.jchem.db.PropertyNotSetException;
import chemaxon.sss.SearchConstants;
import chemaxon.sss.search.JChemSearchOptions;
import chemaxon.util.ConnectionHandler;
import java.io.IOException;
import java.sql.*;
import java.sql.DriverManager;
import java.sql.SQLException;
import org.mentawai.db.DBCPConnectionHandler;
import sun.jdbc.odbc.ee.ConnectionPool;

/**
 *
 * @author KAYAMEN
 */
public class SistematXSubConsulta {

    
    public static void main(String[] args) throws ClassNotFoundException, SQLException, MolFormatException, IOException, DatabaseSearchException, PropertyNotSetException, InstantiationException, IllegalAccessException {




       

        String driverName = "org.gjt.mm.mysql.Driver"; //MySQL MM JDBC drive
        String serverName = "localhost";
        String mydatabase = "sistemat";
        String url = "jdbc:mysql://" + serverName + "/" + mydatabase; // a JDBC url
        String username = "root";
        String password = "";
        String propertyTableName = "BCOMP";

        ConnectionHandler ch;


        //In case of a new login
        ch = new ConnectionHandler();
        ch.setDriver(driverName);
        ch.setUrl(url);
        ch.setLoginName(username);
        ch.setPassword(password);
        ch.setPropertyTable(propertyTableName);
        ch.connectToDatabase();


        String mol = "

ChemAxon abe887c64e

12-12-2012 12:38:37

Hi,


Didn't help our advice in this forum topic: https://www.chemaxon.com/forum/ftopic9978.html ?


Best regards,


Krisztina

ChemAxon 9c0afc9aaf

12-12-2012 15:30:29

Hi,


It seems you have set the same table for the property table and for the structure table.


The default property table name is "JChemProperties", it is very rare that you need to use a different table for this.


I suggest not to set anything for the property table if you have used the default in JChem Manager when you have created the table.


Please see:


http://www.chemaxon.com/jchem/doc/admin/#connect


http://www.chemaxon.com/jchem/doc/dev/dbconcepts/index.html#JChemProperties


Reading the Developer's Guide, especially the first sections "Database Concepts" is highly recommended before developing:


http://www.chemaxon.com/jchem/doc/dev/


Szilard