JDev10.1.3.1.0 and MySql5.0.27

My development environment is
OS: Fedora Core 5 64 bit
JDev base: 10.1.3.10 + jdk1.5.0_10
DB Server: MySql 5.0.27
JDBC: mysql-connector-java-3.1.12.jar
Driver Class: com.mysql.jdbc.Driver
Connection between JDev and MySql is a success.
Running the example HrServiceFacade.java (Create a JPA application in the JDev Start Page)
is not a success:-(
Main tema in a long list of exceptions is that the com.mysql.jdbc.Driver Class is not found.
Are there any configuration settings I've missed? /dan
The running log is below:
/usr/local/jdk1.5.0_10/bin/java -server -classpath /home/dan/mydocs/jdevfiles/mywork/Application4/Project1/classes:
/home/dan/jdev_home/j2ee/home/lib/ejb30.jar:/home/dan/jdev_home/toplink/jlib/toplink-essentials.jar:
/home/dan/jdev_home/j2ee/home/lib/activation.jar:/home/dan/jdev_home/j2ee/home/lib/ejb.jar:
/home/dan/jdev_home/j2ee/home/lib/jms.jar:/home/dan/jdev_home/j2ee/home/lib/jta.jar:
/home/dan/jdev_home/j2ee/home/lib/mail.jar:/home/dan/jdev_home/j2ee/home/lib/servlet.jar:
/home/dan/jdev_home/jdbc/lib/ojdbc14dms.jar:/home/dan/jdev_home/jdbc/lib/orai18n.jar:
/home/dan/jdev_home/jdbc/lib/ocrs12.jar:/home/dan/jdev_home/diagnostics/lib/ojdl.jar:
/home/dan/jdev_home/lib/dms.jar HrServiceFacade
[TopLink Config]: 2007.01.20 09:13:15.401--ServerSession(714994516)--Thread(Thread[main,5,main])--The alias name for the entity class [class project1.Client] is being defaulted to: Client.
[TopLink Config]: 2007.01.20 09:13:15.479--ServerSession(714994516)--Thread(Thread[main,5,main])--The column name for element [private java.lang.String project1.Client.address] is being defaulted to: ADDRESS.
[TopLink Config]: 2007.01.20 09:13:15.493--ServerSession(714994516)--Thread(Thread[main,5,main])--The column name for element [private java.lang.String project1.Client.cell] is being defaulted to: CELL.
[TopLink Config]: 2007.01.20 09:13:15.494--ServerSession(714994516)--Thread(Thread[main,5,main])--The column name for element [private java.lang.Integer project1.Client.clientID] is being defaulted to: CLIENTID.
[TopLink Config]: 2007.01.20 09:13:15.496--ServerSession(714994516)--Thread(Thread[main,5,main])--The column name for element [private java.lang.String project1.Client.email] is being defaulted to: EMAIL.
[TopLink Config]: 2007.01.20 09:13:15.496--ServerSession(714994516)--Thread(Thread[main,5,main])--The column name for element [private java.lang.String project1.Client.name] is being defaulted to: NAME.
[TopLink Config]: 2007.01.20 09:13:15.497--ServerSession(714994516)--Thread(Thread[main,5,main])--The column name for element [private java.lang.String project1.Client.phone] is being defaulted to: PHONE.
[TopLink Config]: 2007.01.20 09:13:15.499--ServerSession(714994516)--Thread(Thread[main,5,main])--The alias name for the entity class [class project1.User] is being defaulted to: User.
[TopLink Config]: 2007.01.20 09:13:15.500--ServerSession(714994516)--Thread(Thread[main,5,main])--The column name for element [private java.lang.Integer project1.User.clientID] is being defaulted to: CLIENTID.
[TopLink Config]: 2007.01.20 09:13:15.501--ServerSession(714994516)--Thread(Thread[main,5,main])--The column name for element [private java.lang.String project1.User.password] is being defaulted to: PASSWORD.
[TopLink Config]: 2007.01.20 09:13:15.502--ServerSession(714994516)--Thread(Thread[main,5,main])--The column name for element [private java.lang.Integer project1.User.userID] is being defaulted to: USERID.
[TopLink Config]: 2007.01.20 09:13:15.503--ServerSession(714994516)--Thread(Thread[main,5,main])--The column name for element [private java.lang.String project1.User.userName] is being defaulted to: USERNAME.
[TopLink Finer]: 2007.01.20 09:13:15.504--Thread(Thread[main,5,main])--cmp_init_transformer_is_null
[TopLink Info]: 2007.01.20 09:13:16.551--ServerSession(714994516)--Thread(Thread[main,5,main])--TopLink, version: Oracle TopLink Essentials - 2006.8 (Build 060829)
[TopLink Config]: 2007.01.20 09:13:16.564--ServerSession(714994516)--Connection(46675819)--Thread(Thread[main,5,main])--connecting(DatabaseLogin(
     platform=>OraclePlatform
     user name=> "dan"
     datasource URL=> "jdbc:mysql://localhost/login"
[TopLink Severe]: 2007.01.20 09:13:16.573--ServerSession(714994516)--Thread(Thread[main,5,main])--Local Exception Stack:
Exception [TOPLINK-4003] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.DatabaseException
Exception Description: Configuration error. Class [com.mysql.jdbc.Driver] not found.
     at oracle.toplink.essentials.exceptions.DatabaseException.configurationErrorClassNotFound(DatabaseException.java:86)
     at oracle.toplink.essentials.sessions.DefaultConnector.loadDriver(DefaultConnector.java:168)
     at oracle.toplink.essentials.sessions.DefaultConnector.connect(DefaultConnector.java:83)
     at oracle.toplink.essentials.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:170)
     at oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:218)
     at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.connect(DatabaseAccessor.java:227)
     at oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:294)
     at oracle.toplink.essentials.threetier.ConnectionPool.buildConnection(ConnectionPool.java:102)
     at oracle.toplink.essentials.threetier.ConnectionPool.startUp(ConnectionPool.java:324)
     at oracle.toplink.essentials.threetier.ServerSession.connect(ServerSession.java:443)
     at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:571)
     at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:182)
     at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:230)
     at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:84)
     at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:127)
     at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:121)
     at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:76)
     at HrServiceFacade.getEntityManager(HrServiceFacade.java:27)
     at HrServiceFacade.queryClientFindAll(HrServiceFacade.java:76)
     at HrServiceFacade.main(HrServiceFacade.java:20)
Exception in thread "main" Local Exception Stack:
Exception [TOPLINK-4003] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.DatabaseException
Exception Description: Configuration error. Class [com.mysql.jdbc.Driver] not found.
     at oracle.toplink.essentials.exceptions.DatabaseException.configurationErrorClassNotFound(DatabaseException.java:86)
     at oracle.toplink.essentials.sessions.DefaultConnector.loadDriver(DefaultConnector.java:168)
     at oracle.toplink.essentials.sessions.DefaultConnector.connect(DefaultConnector.java:83)
     at oracle.toplink.essentials.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:170)
     at oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:218)
     at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.connect(DatabaseAccessor.java:227)
     at oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:294)
     at oracle.toplink.essentials.threetier.ConnectionPool.buildConnection(ConnectionPool.java:102)
     at oracle.toplink.essentials.threetier.ConnectionPool.startUp(ConnectionPool.java:324)
     at oracle.toplink.essentials.threetier.ServerSession.connect(ServerSession.java:443)
     at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:571)
     at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:182)
     at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:230)
     at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:84)
     at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:127)
     at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:121)
     at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:76)
     at HrServiceFacade.getEntityManager(HrServiceFacade.java:27)
     at HrServiceFacade.queryClientFindAll(HrServiceFacade.java:76)
     at HrServiceFacade.main(HrServiceFacade.java:20)
Process exited with exit code 1.

Thank U Shay & dvhora:-)
With your help many if not all steps towards Success! are taken.
However the message box a.o.t. tells me that
Internal Exception: java.sql.SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"client"' at line 1Error Code: 1064
Call:SELECT CLIENTID, EMAIL, CELL, NAME, ADDRESS, PHONE FROM "client"
I have not written any SQL in any of the three java files (HrServiceFacade, Client, User) in this example. And I cannot find any place to write SQL. Anyway what's wrong in the SQL syntax above? /dan
Please see below the whole log message:
/usr/local/jdk1.5.0_10/bin/java -server -classpath /home/dan/mydocs/jdevfiles/mywork/Application4/Project1/classes:/home/dan/jdev_home/j2ee/home/lib/ejb30.jar:/home/dan/jdev_home/toplink/jlib/toplink-essentials.jar:/home/dan/jdev_home/j2ee/home/lib/activation.jar:/home/dan/jdev_home/j2ee/home/lib/ejb.jar:/home/dan/jdev_home/j2ee/home/lib/jms.jar:/home/dan/jdev_home/j2ee/home/lib/jta.jar:/home/dan/jdev_home/j2ee/home/lib/mail.jar:/home/dan/jdev_home/j2ee/home/lib/servlet.jar:/home/dan/jdev_home/jdbc/lib/ojdbc14dms.jar:/home/dan/jdev_home/jdbc/lib/orai18n.jar:/home/dan/jdev_home/jdbc/lib/ocrs12.jar:/home/dan/jdev_home/diagnostics/lib/ojdl.jar:/home/dan/jdev_home/lib/dms.jar:/usr/share/java/mysql-connector-java-3.1.12.jar HrServiceFacade
[TopLink Config]: 2007.01.21 01:10:10.706--ServerSession(116331389)--Thread(Thread[main,5,main])--The alias name for the entity class [class project1.Client] is being defaulted to: Client.
[TopLink Config]: 2007.01.21 01:10:10.824--ServerSession(116331389)--Thread(Thread[main,5,main])--The column name for element [private java.lang.String project1.Client.address] is being defaulted to: ADDRESS.
[TopLink Config]: 2007.01.21 01:10:10.852--ServerSession(116331389)--Thread(Thread[main,5,main])--The column name for element [private java.lang.String project1.Client.cell] is being defaulted to: CELL.
[TopLink Config]: 2007.01.21 01:10:10.854--ServerSession(116331389)--Thread(Thread[main,5,main])--The column name for element [private java.lang.Integer project1.Client.clientID] is being defaulted to: CLIENTID.
[TopLink Config]: 2007.01.21 01:10:10.856--ServerSession(116331389)--Thread(Thread[main,5,main])--The column name for element [private java.lang.String project1.Client.email] is being defaulted to: EMAIL.
[TopLink Config]: 2007.01.21 01:10:10.857--ServerSession(116331389)--Thread(Thread[main,5,main])--The column name for element [private java.lang.String project1.Client.name] is being defaulted to: NAME.
[TopLink Config]: 2007.01.21 01:10:10.857--ServerSession(116331389)--Thread(Thread[main,5,main])--The column name for element [private java.lang.String project1.Client.phone] is being defaulted to: PHONE.
[TopLink Config]: 2007.01.21 01:10:10.860--ServerSession(116331389)--Thread(Thread[main,5,main])--The alias name for the entity class [class project1.User] is being defaulted to: User.
[TopLink Config]: 2007.01.21 01:10:10.862--ServerSession(116331389)--Thread(Thread[main,5,main])--The column name for element [private java.lang.Integer project1.User.clientID] is being defaulted to: CLIENTID.
[TopLink Config]: 2007.01.21 01:10:10.863--ServerSession(116331389)--Thread(Thread[main,5,main])--The column name for element [private java.lang.String project1.User.password] is being defaulted to: PASSWORD.
[TopLink Config]: 2007.01.21 01:10:10.865--ServerSession(116331389)--Thread(Thread[main,5,main])--The column name for element [private java.lang.Integer project1.User.userID] is being defaulted to: USERID.
[TopLink Config]: 2007.01.21 01:10:10.866--ServerSession(116331389)--Thread(Thread[main,5,main])--The column name for element [private java.lang.String project1.User.userName] is being defaulted to: USERNAME.
[TopLink Finer]: 2007.01.21 01:10:10.867--Thread(Thread[main,5,main])--cmp_init_transformer_is_null
[TopLink Info]: 2007.01.21 01:10:12.417--ServerSession(116331389)--Thread(Thread[main,5,main])--TopLink, version: Oracle TopLink Essentials - 2006.8 (Build 060829)
[TopLink Config]: 2007.01.21 01:10:12.434--ServerSession(116331389)--Connection(185070685)--Thread(Thread[main,5,main])--connecting(DatabaseLogin(
     platform=>OraclePlatform
     user name=> "dan"
     datasource URL=> "jdbc:mysql://localhost/login"
[TopLink Config]: 2007.01.21 01:10:12.837--ServerSession(116331389)--Connection(1301078346)--Thread(Thread[main,5,main])--Connected: jdbc:mysql://localhost/login
     User: dan@localhost
     Database: MySQL Version: 5.0.27
     Driver: MySQL-AB JDBC Driver Version: mysql-connector-java-3.1.12 ( $Date: 2005-11-17 15:53:48 +0100 (Thu, 17 Nov 2005) $, $Revision$ )
[TopLink Config]: 2007.01.21 01:10:12.838--ServerSession(116331389)--Connection(1545267468)--Thread(Thread[main,5,main])--connecting(DatabaseLogin(
     platform=>OraclePlatform
     user name=> "dan"
     datasource URL=> "jdbc:mysql://localhost/login"
[TopLink Config]: 2007.01.21 01:10:12.881--ServerSession(116331389)--Connection(118572128)--Thread(Thread[main,5,main])--Connected: jdbc:mysql://localhost/login
     User: dan@localhost
     Database: MySQL Version: 5.0.27
     Driver: MySQL-AB JDBC Driver Version: mysql-connector-java-3.1.12 ( $Date: 2005-11-17 15:53:48 +0100 (Thu, 17 Nov 2005) $, $Revision$ )
[TopLink Config]: 2007.01.21 01:10:12.882--ServerSession(116331389)--Connection(2124414527)--Thread(Thread[main,5,main])--connecting(DatabaseLogin(
     platform=>OraclePlatform
     user name=> "dan"
     datasource URL=> "jdbc:mysql://localhost/login"
[TopLink Config]: 2007.01.21 01:10:12.926--ServerSession(116331389)--Connection(147407825)--Thread(Thread[main,5,main])--Connected: jdbc:mysql://localhost/login
     User: dan@localhost
     Database: MySQL Version: 5.0.27
     Driver: MySQL-AB JDBC Driver Version: mysql-connector-java-3.1.12 ( $Date: 2005-11-17 15:53:48 +0100 (Thu, 17 Nov 2005) $, $Revision$ )
[TopLink Config]: 2007.01.21 01:10:12.927--ServerSession(116331389)--Connection(1434669784)--Thread(Thread[main,5,main])--connecting(DatabaseLogin(
     platform=>OraclePlatform
     user name=> "dan"
     datasource URL=> "jdbc:mysql://localhost/login"
[TopLink Config]: 2007.01.21 01:10:12.971--ServerSession(116331389)--Connection(1499344077)--Thread(Thread[main,5,main])--Connected: jdbc:mysql://localhost/login
     User: dan@localhost
     Database: MySQL Version: 5.0.27
     Driver: MySQL-AB JDBC Driver Version: mysql-connector-java-3.1.12 ( $Date: 2005-11-17 15:53:48 +0100 (Thu, 17 Nov 2005) $, $Revision$ )
[TopLink Config]: 2007.01.21 01:10:12.972--ServerSession(116331389)--Connection(902788241)--Thread(Thread[main,5,main])--connecting(DatabaseLogin(
     platform=>OraclePlatform
     user name=> "dan"
     datasource URL=> "jdbc:mysql://localhost/login"
[TopLink Config]: 2007.01.21 01:10:13.015--ServerSession(116331389)--Connection(270071071)--Thread(Thread[main,5,main])--Connected: jdbc:mysql://localhost/login
     User: dan@localhost
     Database: MySQL Version: 5.0.27
     Driver: MySQL-AB JDBC Driver Version: mysql-connector-java-3.1.12 ( $Date: 2005-11-17 15:53:48 +0100 (Thu, 17 Nov 2005) $, $Revision$ )
[TopLink Config]: 2007.01.21 01:10:13.016--ServerSession(116331389)--Connection(1451544186)--Thread(Thread[main,5,main])--connecting(DatabaseLogin(
     platform=>OraclePlatform
     user name=> "dan"
     datasource URL=> "jdbc:mysql://localhost/login"
[TopLink Config]: 2007.01.21 01:10:13.082--ServerSession(116331389)--Connection(319413851)--Thread(Thread[main,5,main])--Connected: jdbc:mysql://localhost/login
     User: dan@localhost
     Database: MySQL Version: 5.0.27
     Driver: MySQL-AB JDBC Driver Version: mysql-connector-java-3.1.12 ( $Date: 2005-11-17 15:53:48 +0100 (Thu, 17 Nov 2005) $, $Revision$ )
[TopLink Config]: 2007.01.21 01:10:13.083--ServerSession(116331389)--Connection(1826959904)--Thread(Thread[main,5,main])--connecting(DatabaseLogin(
     platform=>OraclePlatform
     user name=> "dan"
     datasource URL=> "jdbc:mysql://localhost/login"
[TopLink Config]: 2007.01.21 01:10:13.180--ServerSession(116331389)--Connection(2122685032)--Thread(Thread[main,5,main])--Connected: jdbc:mysql://localhost/login
     User: dan@localhost
     Database: MySQL Version: 5.0.27
     Driver: MySQL-AB JDBC Driver Version: mysql-connector-java-3.1.12 ( $Date: 2005-11-17 15:53:48 +0100 (Thu, 17 Nov 2005) $, $Revision$ )
[TopLink Info]: 2007.01.21 01:10:13.697--ServerSession(116331389)--Thread(Thread[main,5,main])--file:/home/dan/mydocs/jdevfiles/mywork/Application4/Project1/classes-Project1-Outside login successful
[TopLink Finer]: 2007.01.21 01:10:13.762--ServerSession(116331389)--Thread(Thread[main,5,main])--client acquired
[TopLink Fine]: 2007.01.21 01:10:13.834--ServerSession(116331389)--Connection(118572128)--Thread(Thread[main,5,main])--SELECT CLIENTID, EMAIL, CELL, NAME, ADDRESS, PHONE FROM "client"
[TopLink Warning]: 2007.01.21 01:10:13.926--UnitOfWork(896607825)--Thread(Thread[main,5,main])--Local Exception Stack:
Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"client"' at line 1Error Code: 1064
Call:SELECT CLIENTID, EMAIL, CELL, NAME, ADDRESS, PHONE FROM "client"
Query:ReportQuery(project1.Client)
     at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:303)
     at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:551)
     at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:437)
     at oracle.toplink.essentials.threetier.ServerSession.executeCall(ServerSession.java:465)
     at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:213)
     at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:199)
     at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:270)
     at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.selectAllRows(DatasourceCallQueryMechanism.java:600)
     at oracle.toplink.essentials.internal.queryframework.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:2115)
     at oracle.toplink.essentials.internal.queryframework.ExpressionQueryMechanism.selectAllReportQueryRows(ExpressionQueryMechanism.java:2081)
     at oracle.toplink.essentials.queryframework.ReportQuery.executeDatabaseQuery(ReportQuery.java:774)
     at oracle.toplink.essentials.queryframework.DatabaseQuery.execute(DatabaseQuery.java:609)
     at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:677)
     at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:731)
     at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2218)
     at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:937)
     at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:909)
     at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.executeReadQuery(EJBQueryImpl.java:346)
     at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.getResultList(EJBQueryImpl.java:447)
     at HrServiceFacade.queryClientFindAll(HrServiceFacade.java:76)
     at HrServiceFacade.main(HrServiceFacade.java:20)
Caused by: java.sql.SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"client"' at line 1
     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2928)
     at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1571)
     at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1666)
     at com.mysql.jdbc.Connection.execSQL(Connection.java:2994)
     at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:936)
     at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1032)
     at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeSelect(DatabaseAccessor.java:711)
     at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:486)
     ... 19 more
Exception in thread "main" Local Exception Stack:
Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"client"' at line 1Error Code: 1064
Call:SELECT CLIENTID, EMAIL, CELL, NAME, ADDRESS, PHONE FROM "client"
Query:ReportQuery(project1.Client)
     at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:303)
     at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:551)
     at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:437)
     at oracle.toplink.essentials.threetier.ServerSession.executeCall(ServerSession.java:465)
     at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:213)
     at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:199)
     at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:270)
     at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.selectAllRows(DatasourceCallQueryMechanism.java:600)
     at oracle.toplink.essentials.internal.queryframework.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:2115)
     at oracle.toplink.essentials.internal.queryframework.ExpressionQueryMechanism.selectAllReportQueryRows(ExpressionQueryMechanism.java:2081)
     at oracle.toplink.essentials.queryframework.ReportQuery.executeDatabaseQuery(ReportQuery.java:774)
     at oracle.toplink.essentials.queryframework.DatabaseQuery.execute(DatabaseQuery.java:609)
     at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:677)
     at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:731)
     at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2218)
     at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:937)
     at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:909)
     at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.executeReadQuery(EJBQueryImpl.java:346)
     at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.getResultList(EJBQueryImpl.java:447)
     at HrServiceFacade.queryClientFindAll(HrServiceFacade.java:76)
     at HrServiceFacade.main(HrServiceFacade.java:20)
Caused by: java.sql.SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"client"' at line 1
     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2928)
     at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1571)
     at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1666)
     at com.mysql.jdbc.Connection.execSQL(Connection.java:2994)
     at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:936)
     at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1032)
     at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeSelect(DatabaseAccessor.java:711)
     at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:486)
     ... 19 more
Process exited with exit code 1.

Similar Messages

  • NamedQueary´s and MYSQL5

    hi all.
    I am working on building different j2ee applications connecting to different databases.
    I am using the toplink version that goes with JDeveloper 10.1.3.1.0.
    I got no problem having toplink reading tables from the DB or using NativeQuery.
    But when i want toplink to use NamedQuery´es or persist(Object); then toplink decides to throw a error 1065 which is a SQL error that it gets when trying to execute a NamedQuery SELECT ID, VALUE FROM "testtable" on my mySQL5 DB.
    Some how toplink got the idea of putting " " around the table name when executing the Query.
    I have searched the forum back and forth for several days now and found nothing on this topic.
    Anyone who got an idea how to fix this or know how i change the persistence provider to MySQL4Platform (which i think will fix it) mentioned in the api??
    I have posted the error msg Jdeveloper gives me when trying to execute further down.
    Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"testtable"' at line 1Error Code: 1064
    oracle.oc4j.rmi.OracleRemoteException: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"testtable"' at line 1Error Code: 1064
    Call:SELECT ID, VALUE FROM "testtable"
    Query:ReportQuery(entities.Testtable)
    Message was edited by:
    Gammelsmoelf

    You may check @Table in TestTable.java
    If your table name is "\"testtable\"", set to "testtable"
    Br,
    Lei

  • Migrate my aplication from JDev10.1.3 to JDev11 and use oraks.jks file

    Hi group,
    I'm having trouble jdev10.1.3 import of my project to jdev11 because not found any files equivalent to oraks.jks, archiving of privileges for me to sign a webservice, someone has had this problem, and that tag xml, as I could be replacing this file?
    <security>
    <key-store name="" store-pass=""
    path="D:\jdevstudio10133\j2ee\home\oraks.jks"/>
    <signature-key key-pass="" alias="orasign"/>
    <encryption-key key-pass="" alias="oraenc"/>
    <inbound>
    ...

    Wrong forum: JDeveloper and OC4J 11g Technology Preview
    Also. mention the JDeveloper 11 version when posting it there
    Frank

  • Problem in encryption and decryption

    hello everyone..
    I'm a new bee in this forum.I don't know weather it is the right place to put my query or some other place.I saw in this forum people putting up their problems regarding the java development.So i came up with my problem.
    I'm working on a web application using jdk1.5,struts 1.1,apache tomcat5.5 and mysql5.2.For user registering and loging i'm using a encryption /decryption code to encrypt the password to the database and decrypt it back during userid and password verification in the code.The code of the encryption/decryption is as follows...
    import java.util.Random;
    public class Crypt
         String key = "uy67jwq98JWPOI99dj9021032amiet";
         public String strencrypt(String str)
              String result="";
              int i = 0, current = 0;
              Random r = new Random();
              current = r.nextInt(30);
              if(current<10)     result = "0";
              result = result + current;
              if(((key.charAt(current)+ "").hashCode() + str.length()) < 10)
                   result = result + "0";
              result = result + (char)((key.charAt(current)+ "").hashCode() + str.length());
              while(i<str.length())
                   result = result + ( (char)( ((str.charAt(i)+"").hashCode()) + ((key.charAt(current++)+"").hashCode()) ) );
                   if(current==key.length())     current=0;
                   i++;
              while(i<key.length())
                   result = result + ( (char) ((r.nextInt(30)) + ((key.charAt(current++)+"").hashCode())) );
                   if(current==key.length())     current=0;
                   i++;
              return result;
         public String strdecrypt(String str)
              int current=0, len = 0, i = 0, header = 3;
              String result="", slen = "";
              current = Integer.parseInt(str.substring(0,2));
              slen = "" + (str.charAt(2)+"").hashCode();
              len = (Integer.parseInt(slen)) - ((key.charAt(current)+"").hashCode());
              i = header;
              while(i<(header + len))
                   result = result + ( (char) ((str.charAt(i)+ "").hashCode() - ((key.charAt(current++)+"").hashCode())) );
                   if(current == key.length())
                   current=0;
                   i++;
              return result;
    But the problem that i'm facing is regarding the the database mysql5.2 is installed in two operating system ie windows xp and windows 2000 server.When i try to connect my web application to the windows xp installed database mysql5.2 and try creating a new user and then try to login ,the loging fails.Even i have found out the reason.The above pasted code couldn't decrypt properly.Heres what i get when i System.out.println(""); the data retrived from the database...I'm pasting it also...
    s retriving from db=16l&#9574;&#9616;&#8976;?��??7pmofv??A?l?rNCdhhLAK
    password coming from welcome.jsp=gtplpune
    c.strencrypt(password)=14A��&#9560;&#9555;&#8976;��?LH7}?te???HG&#8962;??QFUkPj]
    c.strdecrypt(s)=gtp&#9788;pu&#9788;&#9792;
    encryption mismatch
    see that teh password coming from welcome/jsp is gtplpune
    and the password after decryption comingh from database is gtp&#9788;pu&#9788;&#9792;....
    where u can see some letter such as l,n,e could not be decrypted or in some other format....So the code is unable to validate teh user.....
    But teh strange thing is that when i'm using the mysql5.2 installed in windows 2000 server everything seems to work fine.There no problem in encryption or decryption and everything works fine...So anyone of you have any idea what can be the raeson for it.And what can be the probable solution to it.I'm waiting for ur replies which i guess will help me out.
    Thank you
    sabyasachi

    It's a shame nobody above gave you the correct.
    answer.
    You shouldn't encrypt passwords and store them in a
    database at all..
    You should digest them and store the digests,
    and digest whatever the user enters in the password
    field and compare the digests.
    The way you have it now is a major security
    problem.
    Hey i didn't know this..I encrypted the password in base 64 format and then store it in mysql db..then i retrive it frm db in encrypted format and then decrypt it and then match it when the user logs in..well thanks for ur approach..i will now try using the digest as u mentioned..well i'm not aware of it so i need to study this first...

  • How to: XDK10 and FOP 20.5 - this works

    Hi All
    Let me share with you all how to get XDK 10 and FOP 20.5 working. Below are all the versions of files that you require:
    XDK 10
    I use all the .jar files from the /lib directory
    FOP 20.5
    fop.jar
    avalon-framework-cvs-20020806.jar
    batik.jar
    xalan-2.4.1.jar
    xercesImpl-2.2.1.jar
    The next thing is that I rewrote the xsqlserializer.jar file and here is the code:
    package oracle.xml.xsql.serializers;
    import org.w3c.dom.Document;
    import org.apache.fop.messaging.MessageHandler;
    import oracle.xml.xsql.XSQLPageRequest;
    import oracle.xml.xsql.XSQLDocumentSerializer;
    import org.apache.fop.apps.Driver;
    import org.apache.avalon.framework.logger.Logger;
    import org.apache.avalon.framework.logger.ConsoleLogger;
    * Tested with the FOP 0.20.3RC release from 19-Jan-2002
    public class XSQLFOPSerializer implements XSQLDocumentSerializer {
    private static final String PDFMIME = "application/pdf";
    public void serialize(Document doc, XSQLPageRequest env) throws Throwable {
    try {
    // First make sure we can load the driver
    Driver FOPDriver = new Driver();
    // Tell FOP not to spit out any messages by default.
    // You can modify this code to create your own FOP Serializer
    // that logs the output to one of many different logger targets
    // using the Apache LogKit API
    Logger logger = new ConsoleLogger(ConsoleLogger.LEVEL_INFO);
    MessageHandler.setScreenLogger(logger);
    FOPDriver.setLogger(logger);
    // Some of FOP's messages appear to still use MessageHandler.
    MessageHandler.setOutputMethod(MessageHandler.NONE);
    // Then set the content type before getting the reader/
    env.setContentType(PDFMIME);
    FOPDriver.setOutputStream(env.getOutputStream());
    FOPDriver.setRenderer(FOPDriver.RENDER_PDF);
    FOPDriver.render(doc);
    catch (Exception e) {
    // Cannot write PDF output for the error anyway.
    // So maybe this stack trace will be useful info
    e.printStackTrace(System.err);
    The above defnitely works for me and should work for you too. Think of it as an early christmas present.
    Best wishes
    Richard

    Hi, richardgossow
    I used the similar code as yours and it worked in Jdev10.1.3.0.0 and ias 10.1.3.1.for FOP 0.20.5.
    WhenI upgrade my Jdev from 10.1.3.0.0. to 10.1.3.3.0.4517, it still worked in Jdeveloper.
    However, when I deployed the latter to ias 10.1.3.1 on Windows (64bit), it failed with
    Oracle XML Developers Kit 10.1.3.1.0 - Production
    XML-25022: Cannot load serializer class
    Do you and anyone know why?
    Message was edited by:
    bsmt

  • How to Connect to MySql5 from WSAD 5 ?

    Hi ,
    My JDBC connection program is working fine when I'm typing my program in a notepad .But its not even loading the driver in WSAD .What should I configure ?I have a mysql-connector-java-3.1.12-bin.jar driver on my system ,but I didnt configure WSAD in any way . Can anybody give me the steps for configuring my WSAD so it recognises my database ?
    I'm totally frustrated with this .
    Thanks a bunch,
    Kavita Rivera

    Hello Kavita,
    I also working with WSAD5 and Mysql5 and stuck at pretty much the same place. Did you get the JDBC connection?
    I would highly appreciate if you could give me the steps to do the same.
    Thanks
    Gunjan

  • Migrate my aplication from JDev10.1.3 to JDev11 oraks.jks file

    Hi group,
    I'm having trouble jdev10.1.3 import of my project to jdev11 because not found any files equivalent to oraks.jks, archiving of privileges for me to sign a webservice, someone has had this problem, and that tag xml, as I could be replacing this file?
    <security>
    <key-store name="" store-pass=""
    path="D:\jdevstudio10133\j2ee\home\oraks.jks"/>
    <signature-key key-pass="" alias="orasign"/>
    <encryption-key key-pass="" alias="oraenc"/>
    <inbound>

    Duplicate of migrate my aplication from JDev10.1.3 to JDev11 and use oraks.jks file

  • Jdev 9i and Jdev 10g

    Hello All,
    I recently downloaded Jdev10.3.3.0 (RUP4) and already had Jdev 9i. I created a new JDEV_USER_HOME for R12 as JDEVR12_USER_HOME and gave the path as follows :- C:\Jdev10g\jdevhome\jdev
    For Jdev9i, i have the following path -->JDEV_USER_HOME -- C:\Jdev\jdevhome\jdev
    I am not able to test the tutorials in Jdev10g because of the env. variables. WHat should be my approach.
    Please let me know

    Hi,
    there is no use in keeping the environment variable JDEVR12_USER_HOME.
    Set your 10g path at the env variable JDEV_USER_HOME .
    So every time you switch between different jdevs you need to change the env variable first.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • CFMX7 MySql5 Apache2.2 Ubuntu

    I'm having issues with a new Ubuntu server running CFMX7 and Mysql5, both are up and running, Apache's happy, I can get to CF admin....
    I can connect to Mysql:3306 using Mysql Admin tool from my laptop, I can't however connect Datasources from cfadmin. Using the following:
    CF data source name
    test
    Description
    Driver
    MySQL
    JDBC URL
    jdbc:mysql://127.0.0.1:3306/mysql?
    Username
    root
    Login timeout
    30 seconds
    Long text buffer size
    64000
    Timeout
    1200 seconds
    Maintain connections
    Yes
    Interval
    420 seconds
    Restricted SQL operations
    Disable connections
    No
    I get error out:
    Connection verification failed for data source: test
    java.sql.SQLException: Communication failure during handshake. Is there a server running on 127.0.0.1:3306?
    I've also tried the connection using "localhost", but get the same error........
    Not sure what to do at this piont.........

    Looks like I found the answer...
    1. Mysql connector was to new for cfmx7 had to use connector/j 3.1.10
    2. Connected as follows:
    Slect driver as "other"
    DBURL = jdbc:mysql://localhost:3306/myDatabase
    Driver class = com.mysql.jdbc.Driver
    Driver name = mysql
    name
    password
    Connected right up!

  • MySQL5 plugin not listed.

    Hi,
    I downloaded omwb-mysql5_beta.zip and exploded it. I created the repuser and when I try to run the Workbench, after it creates the repository, it only lists the plugins for Mysql3 and Mysql4. In the plugins directory I have MySQL3.jar, MySQL4.jar and MySQL5.jar. I've run a jar -tvf on the MySQL5.jar and I can view the classes, so I don't think the jar is corrupt. I'm running on Red Hat Enterprise 4. Any suggestions? Oh, I also downloaded Sun Java 1.5.0_07. When I tried to run the workbench with Java 1.4.2.0 that shipped with Red Hat, it gave me a "bad interpreter" error and wouldn't start the workbench.
    Thanks!

    Well, checkout the log, I'm using 10.1.0.4.3 (this is from the OMWB 10.1.0.4.3 and MySQL 5 that are packaged together):
    ** Oracle Migration Workbench
    ** Production
    ** ( Build 20050629 )
    ** OMWB_HOME: /opt/oracle_migration/Omwb
    ** user language: en
    ** user region: null
    ** user timezone:
    ** file encoding: ISO-8859-1
    ** java version: 1.4.2_12
    ** java vendor: Sun Microsystems Inc.
    ** o.s. arch: i386
    ** o.s. name: Linux
    ** o.s. version: 2.6.15
    ** Classpath:
    ../lib/boot.jar
    ** Started : Wed Aug 02 18:54:30 BRT 2006
    ** Workbench Repository : Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Repository Connection URL: jdbc:oracle:thin:@200.207.167.238:1521:db01
    ** The following plugins are installed:
    ** MySQL 3.22/3.23 Plugin, Production Release 10.1.0.4.1
    ** MySQL 4.X Plugin, Production Release 10.1.0.4.1
    ** Active Plugin : MySQL4
    ** Active Plugin : MySQL3
    ** Shutdown : Wed Aug 02 18:55:57 BRT 2006
    ****************************************************************************************************

  • Cant delete all from a bound text area--why??

    Hi All,
    Here's my problem. I'm using jdev10.1.2, jsp's and adf bc's.
    i have several text areas on my jsp that correspond to clob attributes on a VO. If the user edits this page by removing the entire contents of one of these text areas and submits the form, when the browse page is reloaded (which is a copy of this page except it has the commit button on it and its not editable), the text that was just removed is defaulted back in. i have noticed that if i leave a space when i remove the contents, it works perfectly fine.
    i have tried defaulting spaces in on the entity and this does not work. Any ideas would be most welcome.
    Thanks in advance,
    Newbe

    Hi,
    hard to tell from what you describe. This could be a bug or an implementation error. I suggest to file a service request with support
    Frank

  • Availability of new J2EE 1.4 SDK

    I am pleased to announce availability of new J2EE 1.4 SDK. You can download this today from http://java.sun.com/j2ee/1.4/download.html
    J2EE SDK now includes App Server Platform Edition 8.2 (SJSAS PE 8.2) delivering a rich application deployment environment that is highly available and scalable. It dramatically lowers total cost of ownership proven by the latest SPECjAppServer2004 benchmarks on Sun T2000 CoolThread Server ($86/JOPS for application tier running on SJSAS PE 8.2, Solaris 10, and MySQL5.) The new release greatly improves Web Services performance by a factor of 2 to 4 through the inclusion of FastInfoset and support for latest technologies such as AJAX clients and Java database, based on the Apache Derby to decrease the development cycle time of Web 2.0 interactive applications and maximize developer productivity.
    The Sun Java System Application Server PE 8.2 is fully integrated with NetBeans 5 by providing an out of the box environment for development, deployment and debugging of Web and enterprise applications and extends its advocacy for open source by supporting RedHat Linux 4, MySQL 5 and Apache Derby.
    Below are highlights of Sun Java System Application Server Platform Edition 8.2
    * J2EE 1.4 compatible
    * Outstanding developer experience with NetBeans 5 and improved deployment speed, runtime footprint and server start up time. NetBeans 5.0 includes App Server 8.2 as a default J2EE runtime.
    * Superior throughput performance and better scalability supporting multi core/ multi threaded architecture.
    * Fast Infoset support improves webservices performance multiple folds.
    * App Server 8.2 bundles deployment ready Derby database making it possible to develop and deploy end to end J2EE application.
    * App Server 8.2 adds support for Red Hat 4 and My SQL 5.
    * In built JMS resource adapter makes connectivity with backend systems even more easier. Application Server 8.2 adds out of box connectivity for IBM MQ Series and Sun's MQ Server.
    * Enhanced J2EE 1.4 blueprints including demonstration of using Web 2.0 technologies like AJAX with App Server 8.2
    * JavaServer Faces Support: Developers can quickly build web applications by: assembling reusable UI components in a page; connecting these components to a data source; and wiring client-generated events to server-side event handlers.
    * Improved Administration Console:
    App Server 8.x admin console adds new look and feel with capabilities like JNDI namespace browser, JDBC Connection Validation, Deployment Descriptor Viewer, Error log viewer and improved monitoring.
    * Web Services Security: Container message security mechanisms implementing message-level authentication (e.g. XML digital signature and encryption) of SOAP web services invocations using the X509 and username/password profiles of the OASIS WS-Security standard.
    * JavaServer Pages Standard Tag Library 1.1 Support: the library encapsulates core functionality common to many JSP applications.
    * Bundled J2SE 5.0_06
    Sun Java System Application Server Platform Edition is free for development and deployment. Sun support is offered at an additional cost.
    Useful Links and pointers:
    - Download bits from http://java.sun.com/j2ee/1.4/download.html
    - SPECjAppServer2004 benchmark results demonstrating Sun's price/performance strengths. http://www.spec.org/jAppServer2004/results/res2005q4/jAppServer2004-20051109-00023.html
    - Stay connected with open source development of Application Server 9 on Project Glassfish via The Acquarium
    http://java.sun.com/javaee/glassfish/
    http://blogs.sun.com/roller/page/theaquarium
    - Migrate to Sun Java System Application Server 8.2 today !
    http://java.sun.com/j2ee/tools/migration/index.html
    Fast Infoset whitepaper
    http://www.sun.com/software/whitepapers/javaenterprisesystem/web_services_performance.pdf
    More Information at http://java.sun.com/javaee
    Thanks,
    - Pratik
    Product Line Manager
    Application Platform Products
    Sun Microsystems Inc.

    I couldn't get SAS8 to install using JRE 5. I have, however, succeeded in getting an application client to run with the latest JDK. If the client and server JRE differ, you've got to assign a serialVersionUID to any custom classes that will be passed back and forth.

  • Recordsets disappear from menu when adding mysql_query ("SET NAMES 'utf8'"); below the connection in php

    I hope someone can help with this. I'm trying to create a
    dynamic site using dreamweaver CS3, with php5 and mysql5 in the
    background but I'm having difficulty with recordsets disappearing
    from the server behaviour menu when tweaking the code to allow set
    characters or set names for utf8.
    For a while, I've been having a problem getting my
    dynamically generated master list pages (eg lists of jobs) to
    display international characters like an accented french e (and
    other languages) and for these to display correctly when viewed in
    phpmyadmin also. So, I've placed headers at the top of the page for
    utf8 and created the content metatag for utf8 in the page code.
    Where needed I've added ENT_QUOTES utf etc for htmlentities and
    added accept-charset utf-8 in the <form> action area.
    (one thing I haven't done in the form action area is add
    <enctype="multipart/form-data">, but I'm not sure if this
    will make any difference)
    In the backend, the innoDB database is collated and built
    using utf8_unicode_ci. I'm on a shared host -so can't directly
    access php.ini or adjust the connection settings through
    phpmyadmin. But I can write .htaccess files (currently with the
    defaultcharset set to utf8 also).
    At this point - all list pages display the correct characters
    when retrieved from the database - indicating that the headers are
    working. But - in phpmyadmin the letters are garbled, and garbled
    on return on update forms (content management). I solved this by
    adding the &#xxxx; equivalents in insert and update forms to
    display the text correctly on the list pages - but again it's not
    convenient to see all of this in phpmyadmin, as I'd like to be able
    to read it there as it should be, and to dispense with the need to
    add &#xxxx references on the insert and update forms.
    So...a bit of searching, and I read that in order for the
    international characters to display in phpmyadmin correctly, I
    needed to amend my php page code so that for all instances where I
    see the connection to the database, before the SELECT, INSERT and
    DELETE queries, I need to add either mysql_set_charset('utf8',
    $connection) or use three lines of code referencing mysql_query SET
    NAMES, SET CHARACTER SET and SET COLLATION_CONNECTION for utf8.
    I did that, and it removed all of my recordsets in the
    sidebar menu! Not too good. I'm left with a task of rebuilding
    pages now.
    So I placed the mysql_set_charset line in the connection.php
    file in the DW Connections folder below the connection there
    instead. [I didn't precede the mysql etc line with a $ sign - I
    wonder if that's the issue?]
    With this change I could use the Insert forms to add the
    international characters directly into the database and see through
    phpmyadmin that all was hunky dory. But then the problems came with
    first loads of the master list page.
    So, I can get international characters into the database now
    (which is a step in the right direction for me), using an insert
    form on the website, but I still can't get the international
    characters to display on the returned page on first loading eg on a
    list of jobs. Note that the detail pages display fine when clicking
    the master links, and when I return from the detail page back to
    the master list - the characters are ok. They just don't seem to
    display when the master page loads for the first time which is
    really perplexing me.
    I suspect that I need to add the mysql_set_charset line below
    the $connection and before the selects, inserts etc at all
    instances on the webpage, but this just removes the recordset from
    the menu, so this doesn't seem to be a good option.
    Can anyone point me in the right direction as I'm been stuck
    on this for ages. It may be something simple like adding $ in front
    of the mysql_query, but then again maybe not.
    I've tried other forums - but people seem to be content with
    viewing but not offering assistance. I don't believe that what I'm
    doing here hasn't been done before....all I want is for my pages to
    display international characters and for these to display correctly
    in phpmyadmin so that when I insert, update and delete records
    using webforms I don't have to resort to using &#xxx inserts.
    Help please!

    .oO(08Green)
    > So...a bit of searching, and I read that in order for
    the international
    >characters to display in phpmyadmin correctly, I needed
    to amend my php page
    >code so that for all instances where I see the connection
    to the database,
    >before the SELECT, INSERT and DELETE queries, I need to
    add either
    >mysql_set_charset('utf8', $connection) or use three lines
    of code referencing
    >mysql_query SET NAMES, SET CHARACTER SET and SET
    COLLATION_CONNECTION for utf8.
    Usually you only need to send a SET NAMES 'utf8' right after
    the
    connection to the DB has been established. That way all data
    that is
    transferred between the DB and your script will be handled as
    UTF-8.
    > I did that, and it removed all of my recordsets in the
    sidebar menu! Not too
    >good. I'm left with a task of rebuilding pages now.
    >
    > So I placed the mysql_set_charset line in the
    connection.php file in the DW
    >Connections folder below the connection there instead. [I
    didn't precede the
    >mysql etc line with a $ sign - I wonder if that's the
    issue?]
    I've never used mysql_set_charset().
    Here in my applications it always works like this:
    * the default charset in my InnoDB tables is ISO-8859-1, I
    only use
    UTF-8 in the columns that really need it (text data, but not
    INT or
    DATE columns)
    * SET NAMES 'utf8' at the beginning
    * all files (HTML and PHP) are encoded as UTF-8 without BOM
    * all pages delivered as UTF-8 (my pages are
    script-generated, so I use
    an appropriate header() call to define the content-type and
    encoding)
    That's it. Oh, and I don't use phpMyAdmin ...
    > With this change I could use the Insert forms to add the
    international
    >characters directly into the database and see through
    phpmyadmin that all was
    >hunky dory. But then the problems came with first loads
    of the master list
    >page.
    In the first part of your posting it sounded as if it worked
    almost
    correctly, before you tried to fix the broken phpMyAdmin
    appearance.
    Is that correct?
    > So, I can get international characters into the database
    now (which is a step
    >in the right direction for me), using an insert form on
    the website, but I
    >still can't get the international characters to display
    on the returned page on
    >first loading eg on a list of jobs.
    They did display correctly first, didn't they? So it seems
    that you
    broke your script just in order to fix some PMA problem.
    Revert that.
    Make your script work for normal input/output from/to a
    website first
    and don't worry about PMA for now.
    What do you need PMA for BTW? It may have many other issues
    as well and
    should only be used if really necessary or if you're not
    familiar with
    the command line interface. The only thing that we are using
    it is to
    get a dump from a remote DB, where I don't have shell access
    to call
    mysqldump directly (yes, I could also write a little PHP
    script for
    that, it's already somewhere on my TODO). But here on my
    local system I
    always use the MySQL command prompt if I have to directly
    work on some
    tables or to import the dump from remote.
    Anyway, if you need PMA, your might try their group or forum.
    I'm sure
    there's an FAQ as well. Maybe it's just a configuration
    issue.
    > I've tried other forums - but people seem to be content
    with viewing but not
    >offering assistance. I don't believe that what I'm doing
    here hasn't been done
    >before....all I want is for my pages to display
    international characters and
    >for these to display correctly in phpmyadmin so that when
    I insert, update and
    >delete records using webforms I don't have to resort to
    using &#xxx inserts.
    The bug here is PMA itself. ;-)
    Micha

  • Querying an indexed database column. How?

    Hi there,
    I am pretty good at CF and okay at SQL.
    Over the years I have been informed that when using the same column in a database multiple times to do look-ups....e.g. a primary key field....that it would be best to "index" this column to improve speed.
    However, I'm not fully sure what or how to index a database column. I have a few questions:
    Is it something to do in MySQL directly? Or can it be done programmatically with CF?
    Does it really speed things up a lot?
    How is new data entered affected? Does that new data get included into the index?
    Does my cfquery syntax have to be any different than is normal?
    Any help or advice would be great.
    I'm using CF8 and MySQL5 (query browser tools etc)
    Thanks,
    Mikey.

    Indexing is a database topic.  As databases can be controled by SQL commands it would most likely be possible to do so inside of a <cfquery...> block, but I would only do that in rare circumstances.
    Indexing a table will almost always speed up frequently used database columns.  But when, how and why one would index a database column is a big topic on which entire papers, books and college classes have been developed around.  I would start with some reading of you database documentation an then branch out onto the internet.  You will find much written and should be able to educate yourself easily.

  • Foreing Key association didn't create for mysql database

    Hi,
    I Am new to adf business components. I Am using jdeveloper 11g and mysql5.1 i tried just create one master detail entry, but i can't create association entity class using adf business components. How can i create this? Please help me.
    Thanks advance...

    ํำํyes, I already delete the file. However, I try to create new blank file and named it as <SID>ALRT.LOG. After that I try to switch log file, nothing write onto this file. I also restart database after create new blank file and nothing happen. I will wait for an hour as you comment and will update the status.
    Thanks in advance.

Maybe you are looking for

  • Apple TV Mirroring issues

    I have a late 2012 MacBook Pro and a 3rd generation Apple TV, yet the Airplay/Mirroring icon is not displayed in my toolbar. I attempted to enable the airplay/mirroring feature by accessing System Preferences and going to the "Displays" settngs, only

  • Problem in CFL

    Hi, I have a problem in CFL. I am taking the GRN No in the CFL. If i choose the GRN No automatically vendor code and item code should display to the particular GRN No if i choose from the CFL its displaying correctly in the text fields. But instead o

  • Compressor experts needed

    I would post this in the compressor forum but its a ghost town. I have started a new project for a client in which I am to deliver my finished product as a program stream Mpeg2. My frame size is 1280x720 and I am being asked to keep the bit rate belo

  • Error 1326 while installing Reader 9

    I have tried numerous times to install Acrobat Reader 9 on Windows Vista Home Premium. Every time, it fails. Version 8 is installed now. When automatic updates try to upgrade version 8, that also fails. Here is the error message I receive during inst

  • ITunes 11.0.4 doesn't sync iphoto events anymore

       Since I've updated iTunes to 11.0.4, event's field on Photos tab is no longer available. Any reason ?