Error conecting to MySQL DB

Hi all,
I'm trying to connect to a MySQL db using:
Class.forName("com.mysql.jdbc.Driver");and I get the error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/aspectj/lang/Signature
I've searched the forums (and web) and its a problem others have had to with classpaths not being set correctly - however the mysql-connector-java-5.0.4-bin.jar I downloaded does not include the path:
org/aspect/lang/Signature
I've download 4 different versions of it and they all have the path:
org\gjt\mm\mysql\
and in that directory is Driver.java.
I'm very new to Java (you may have already guessed that... ) - can anyone shed any light on the matter???
big thanks for any advice,
Des

Hi all,
I'm trying to connect to a MySQL db using:
Class.forName("com.mysql.jdbc.Driver");
/code]
and I get the error:
Exception in thread "main"
java.lang.NoClassDefFoundError:
org/aspectj/lang/Signature
I've searched the forums (and web) and its a problem
others have had to with classpaths not being set
correctly - however the
mysql-connector-java-5.0.4-bin.jar I downloaded does
not include the path:
org/aspect/lang/Signature
I've download 4 different versions of it and they all
have the path:
org\gjt\mm\mysql\
and in that directory is Driver.java.
I'm very new to Java (you may have already guessed
that... ) - can anyone shed any light on the
matter???
big thanks for any advice,
DesI italicized a part of your post. According to your post this seems to be a problem regarding AspectJ not MySQL. It seems you wish to use AspectJ but have not included its jarfile(s) on your classpath.
I'm only guessing that you are trying to use AspectJ, but as far as I know, the MySQL drivers themselves do not require it. I believe it would be a violation of the JDBC driver standards for the Driver to require it, but I may be mistaken.

Similar Messages

  • Snort error since recent mysql update

    Is anybody else seeing this error message when they execute snort?  I'm not sure if this is my setup or a bug that needs to be reported.
    "snort: error while loading shared libraries: libmysqlclient.so.14: cannot open shared object file: No such file or directory"
    This error returns when executing either the snort binary in the Arch snort package or a self compiled snort binary.
    The libmysqlclient.so.14 file does exist, it is here:
    /usr/lib/mysql
    -rwxr-xr-x  1 root root  888 Oct 27 11:11 libmysqlclient.la
    lrwxrwxrwx  1 root root   24 Oct 27 12:17 libmysqlclient.so -> libmysqlclient.so.14.0.0
    lrwxrwxrwx  1 root root   24 Oct 27 12:17 libmysqlclient.so.14 -> libmysqlclient.so.14.0.0
    -rwxr-xr-x  1 root root 1.1M Oct 27 11:11 libmysqlclient.so.14.0.0
    Thanks,
    Craig

    I am seeing the same problem with my perl scripts that use DBI.
    bash> ldd /usr/lib/perl5/site_perl/current/i686-linux-thread-multi/auto/DBD/mysql/mysql.so
            linux-gate.so.1 =>  (0xffffe000)
            libmysqlclient.so.12 => not found
            libz.so.1 => /usr/lib/libz.so.1 (0x40025000)
            libcrypt.so.1 => /lib/tls/libcrypt.so.1 (0x40037000)
            libnsl.so.1 => /lib/tls/libnsl.so.1 (0x40064000)
            libm.so.6 => /lib/tls/libm.so.6 (0x40079000)
            libssl.so.0.9.7 => /usr/lib/libssl.so.0.9.7 (0x4009c000)
            libcrypto.so.0.9.7 => /usr/lib/libcrypto.so.0.9.7 (0x400cd000)
            libc.so.6 => /lib/tls/libc.so.6 (0x401d3000)
            /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
            libdl.so.2 => /lib/tls/libdl.so.2 (0x40309000)
    mysql.so is refrencing libmysqlclient.so.12 which is no longer available due to upgrade.

  • Error in using mysql in struts, help

    error log:
    2005-12-07 10:34:28 StandardContext[employees]Marking servlet action as unavailable
    2005-12-07 10:34:28 StandardContext[employees]Servlet /employees threw load() exception
    javax.servlet.UnavailableException: Initializing application data source org.apache.struts.action.DATA_SOURCE
         at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:1091)
         at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
         at javax.servlet.GenericServlet.init(GenericServlet.java:256)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:997)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:840)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3915)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4240)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
         at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:795)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)
         at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
         at org.apache.commons.digester.Rule.end(Rule.java:276)
         at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
         at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:76)
         at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at org.apache.commons.digester.Digester.parse(Digester.java:1567)
         at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:475)
         at org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
         at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:480)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:425)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:961)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:347)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
         at org.apache.catalina.core.StandardService.start(StandardService.java:476)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:2298)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:547)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:286)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:387)
    my datasource config in struts-config.xml
         <data-sources>
              <data-source type="org.apache.commons.dbcp.BasicDataSource">
                   <set-property property="driverClassName" value="org.gjt.mm.mysql.Driver" />
                   <set-property property="url" value="jdbc:mysql://localhost:3306/employees" />
                   <set-property property="maxCount" value="5" />
                   <set-property property="minCount" value="1" />
                   <set-property property="user" value="root" />
                   <set-property property="password" value="2" />
              </data-source>
         </data-sources>
    my question: i can use the database via command, but why can not connect to database in my application employees?
    and another interesting thing is that my application work correctly yesterday, but can not work today(make no change on anything)?

    error log:
    2005-12-07 10:34:28 StandardContext[employees]Marking servlet action as unavailable
    2005-12-07 10:34:28 StandardContext[employees]Servlet /employees threw load() exception
    javax.servlet.UnavailableException: Initializing application data source org.apache.struts.action.DATA_SOURCE
         at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:1091)
         at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
         at javax.servlet.GenericServlet.init(GenericServlet.java:256)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:997)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:840)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3915)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4240)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
         at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:795)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)
         at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
         at org.apache.commons.digester.Rule.end(Rule.java:276)
         at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
         at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:76)
         at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at org.apache.commons.digester.Digester.parse(Digester.java:1567)
         at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:475)
         at org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
         at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:480)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:425)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:961)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:347)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
         at org.apache.catalina.core.StandardService.start(StandardService.java:476)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:2298)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:547)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:286)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:387)
    my datasource config in struts-config.xml
         <data-sources>
              <data-source type="org.apache.commons.dbcp.BasicDataSource">
                   <set-property property="driverClassName" value="org.gjt.mm.mysql.Driver" />
                   <set-property property="url" value="jdbc:mysql://localhost:3306/employees" />
                   <set-property property="maxCount" value="5" />
                   <set-property property="minCount" value="1" />
                   <set-property property="user" value="root" />
                   <set-property property="password" value="2" />
              </data-source>
         </data-sources>
    my question: i can use the database via command, but why can not connect to database in my application employees?
    and another interesting thing is that my application work correctly yesterday, but can not work today(make no change on anything)?

  • Getting an error in JDBC mySQL Connection

    Hi,
    I am creating JDBC mySQL Connection error.
    The eror messsage is
    Incorrect name parameter jdbc:mysql://10.114.16.70:3306/kaushikb root,pass in naming operation.where root is the username and pass is the password and kaushikb is the database name.
    I am entering the tablename as: emptable.
    Regards
    Taton
    Edited by: Taton on Dec 11, 2008 3:15 PM

    Let me guess: you did
    getConnection("jdbc:mysql://10.114.16.70:3306/kaushikb root,pass");rather than
    getConnection("jdbc:mysql://10.114.16.70:3306/kaushikb", "root", "pass");

  • Error connecting to mysql via ODBC

    Hi folks,
    I set up Oracle Database Gateway for ODBC with mysql driver (I tried mysql-connector-odbc-5.1.11-1.x86_64.rpm (currently used and log output shown) and mysql-connector-odbc-5.2.2-1.x86_64.rpm). I am unable to create a connection to the mysql database.
    Here are the parameters:
    Oracle database: 11gR2, AL32UTF8 , Suse SLES11 64 Bit
    Oracle Database Gateway for ODBC: installed on Suse SLES10, 64 Bit
    ODBC DSN: ona_nb
    initona_nb.ora in /opt/oracle/product/11.2.0/gtw_odbc/hs/admin:
    # This is a sample agent init file that contains the HS parameters that are
    # needed for the Database Gateway for ODBC
    # HS init parameters
    HS_FDS_CONNECT_INFO=ona_nb
    HS_FDS_TRACE_LEVEL=255
    HS_FDS_SHAREABLE_NAME =/usr/lib64/libmyodbc5.so
    HS_LANGUAGE=AMERICAN_AMERICA.ISO8859P1
    #HS_TRANSACTION_MODEL=READ_ONLY
    #HS_FDS_SQLLEN_INTERPRETATION=32
    # ODBC specific environment variables
    set ODBCINI=/home/oracle/odbc/ona_nb-odbc.ini
    set ODBCINSTINI=/home/oracle/odbc/ona_nb-odbc.ini
    (I tried diffenet Language settings or no language setting at all, slightly different ..../hs/log trace files)
    ODBC file:
    ona_nb-odbc.ini :
    [ODBC Data Sources]
    ona_nb= MySQL ODBC Driver 5.2.2-1
    [ona_nb]
    Driver = /usr/lib64/libmyodbc5.so
    DATABASE = ona_default
    DESCRIPTION = MySQL Verbindung zur ona V11 Datenbank auf Christians Notebook
    PORT = 3306
    SERVER = cwolbert.gsi.de
    UID = oreader
    PWD = xxxxxx
    [ODBC]
    TRACEFILE = /tmp/mysql-odbc-ona_nb.trc
    TRACE = Yes
    ForceTrace = Yes
    set LD_LIBRARY_PATH=/usr/lib64:/opt/oracle/product/11.2.0/gtw_odbc/
    Listener.ora:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /opt/oracle/product/11.2.0/dbhome_3)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = gridrep.gsi.de)
    (ORACLE_HOME = /opt/oracle/product/11.2.0/dbhome_3)
    (SID_NAME = gridrep)
    (SID_DESC=
    (SID_NAME=ona_nb)
    (ORACLE_HOME=/opt/oracle/product/11.2.0/gtw_odbc)
    (PROGRAM=dg4odbc)
    (ENVS=LD_LIBRARY_PATH=/usr/lib64:/opt/oracle/product/11.2.0/gtw_odbc/lib)
    Trying
    select * from locations@ona_nb
    whre ona_nb is the dblink
    CREATE DATABASE LINK "ONA_NB.GSI.DE"
    CONNECT TO OREADER
    IDENTIFIED BY <PWD>
    USING 'ona_nb';
    I get the error
    ORA-28511: RPC-Verbindung zu heterogenem Remote Agent mit SID=ORA-28511: RPC-Verbindung zu heterogenem Remote Agent mit SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=pcora11.gsi.de)(PORT=1521))(CONNECT_DATA=(SID=ona_nb))) abgebrochen abgebrochen
    ORA-02063: vorherige line von ONA_NB
    and here is the trace file from hs/log. I am unable to create any ODBC trace file, fiddling around with differnt settings
    Oracle Corporation --- FRIDAY NOV 23 2012 15:37:21.114
    Heterogeneous Agent Release
    11.2.0.1.0
    Oracle Corporation --- FRIDAY NOV 23 2012 15:37:21.113
    Version 11.2.0.1.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "255"
    Entered hgosdip
    setting HS_OPEN_CURSORS to default of 50
    setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
    setting HS_FDS_RECOVERY_PWD to default value
    setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
    setting HS_IDLE_TIMEOUT to default of 0
    setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "AL32UTF8"
    setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
    setting HS_FDS_DATE_MAPPING to default of "DATE"
    setting HS_RPC_FETCH_REBLOCKING to default of "ON"
    setting HS_FDS_FETCH_ROWS to default of "100"
    setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
    setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
    setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
    setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
    setting HS_FDS_MAP_NCHAR to default of "TRUE"
    setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
    setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "TRUE"
    setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
    Parameter HS_FDS_QUOTE_IDENTIFIER is not set
    setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
    setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
    setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
    Default value of 64 assumed for HS_FDS_SQLLEN_INTERPRETATION
    setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
    setting HS_FDS_DELAYED_OPEN to default of "TRUE"
    setting HS_FDS_WORKAROUNDS to default of "0"
    Exiting hgosdip, rc=0
    ORACLE_SID is "ona_nb"
    Product-Info:
    Port Rls/Upd:1/0 PrdStat:0
    Agent:Oracle Database Gateway for ODBC
    Facility:hsa
    Class:ODBC, ClassVsn:11.2.0.1.0_0008, Instance:ona_nb
    Exiting hgogprd, rc=0
    hostmstr: 0: HOA After hoagprd
    hostmstr: 0: HOA Before hoainit
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=873
    HOCXU_DRV_NCHAR=873
    HOCXU_DB_CSET=873
    HOCXU_SEM_VER=112000
    Entered hgolofn at 2012/11/23-15:37:21
    HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/lib64/libmyodbc5.so"
    Entered hgolofns at 2012/11/23-15:37:21
    libname=/usr/lib64/libmyodbc5.so, funcname=SQLAllocHandle
    symbol_peflctx=0xaab3f456
    hoaerr:0
    Exiting hgolofns at 2012/11/23-15:37:21
    Entered hgolofns at 2012/11/23-15:37:21
    libname=/usr/lib64/libmyodbc5.so, funcname=SQLBindCol
    symbol_peflctx=0xaab44ce3
    hoaerr:0
    Exiting hgolofns at 2012/11/23-15:37:21
    Entered hgolofns at 2012/11/23-15:37:21
    libname=/usr/lib64/libmyodbc5.so, funcname=SQLBindParameter
    symbol_peflctx=0xaab4342c
    hoaerr:0
    Exiting hgolofns at 2012/11/23-15:37:21
    Entered hgolofns at 2012/11/23-15:37:21
    libname=/usr/lib64/libmyodbc5.so, funcname=SQLCancel
    symbol_peflctx=0xaab3e6e5
    hoaerr:0
    Exiting hgolofns at 2012/11/23-15:37:21
    Entered hgolofns at 2012/11/23-15:37:21
    libname=/usr/lib64/libmyodbc5.so, funcname=SQLDescribeParam
    symbol_peflctx=0xaab4346b
    .... many similar stuff
    Exiting hgolofns at 2012/11/23-15:37:21
    Entered hgolofns at 2012/11/23-15:37:21
    libname=/usr/lib64/libmyodbc5.so, funcname=SQLStatisticsW
    symbol_peflctx=0xaab477de
    hoaerr:0
    Exiting hgolofns at 2012/11/23-15:37:21
    Entered hgolofns at 2012/11/23-15:37:21
    libname=/usr/lib64/libmyodbc5.so, funcname=SQLTablesW
    symbol_peflctx=0xaab47a16
    hoaerr:0
    Exiting hgolofns at 2012/11/23-15:37:21
    Exiting hgolofn, rc=0 at 2012/11/23-15:37:21
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
    HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
    HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
    HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
    HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
    Invalid value of 64 given for HS_FDS_SQLLEN_INTERPRETATION
    treat_SQLLEN_as_compiled = 1
    Exiting hgoinit, rc=0 at 2012/11/23-15:37:21
    hostmstr: 0: HOA After hoainit
    hostmstr: 0: HOA Before hoalgon
    Entered hgolgon at 2012/11/23-15:37:21
    reco:0, name:OREADER, tflag:0
    Entered hgosuec at 2012/11/23-15:37:21
    Exiting hgosuec, rc=0 at 2012/11/23-15:37:21
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
    HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using OREADER as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2012/11/23-15:37:21
    HS_FDS_CONNECT_INFO = "ona_nb"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2012/11/23-15:37:21
    dsn:ona_nb, name:OREADER
    optn:
    Entered hgocip at 2012/11/23-15:37:21
    dsn:ona_nb
    Exiting hgocip, rc=0 at 2012/11/23-15:37:21
    ##>Connect Parameters (len=33)<##
    ## DSN=ona_nb;
    #! UID=OREADER;
    #! PWD=*
    Exiting hgogenconstr, rc=0 at 2012/11/23-15:37:21
    Entered hgopoer at 2012/11/23-15:37:21
    hgopoer, line 233: got native error 0 and sqlstate H; message follows...
    Exiting hgopoer, rc=0 at 2012/11/23-15:37:21
    hgocont, line 2752: calling SqlDriverConnect got sqlstate H
    Using no HS_LANGUAGE or HS_LANGUAGE=AMERICAN_AMERICA.AL32UTF8
    I still get the same error meassages and logs.
    Can you help please?
    Cheers Michael

    Hi Klaus,
    I think the unixODBC driver manager is installed
    I have:
    oracle@pcora11:/opt/oracle/product/11.2.0/gtw_odbc/hs/log> odbcinst -j
    unixODBC 2.2.11
    DRIVERS............: /etc/unixODBC/odbcinst.ini
    SYSTEM DATA SOURCES: /etc/unixODBC/odbc.ini
    USER DATA SOURCES..: /home/oracle/.odbc.ini
    and
    cat /etc/unixODBC/odbcinst.ini
    [MySQL ODBC 5.1 Driver]
    Driver = /usr/lib64/libmyodbc5.so
    UsageCount = 1
    but the two file for SYSTEM and USER DSN are empty.
    I tried now:
    HS_FDS_SHAREABLE_NAME =/usr/lib64/libodbc.so
    and
    HS_LANGUAGE=AMERICAN_AMERICA.WE8ISO8859P1
    and the result is still the same, what I posted in the prevoius answer to Mike,
    ORA-28500: Verbindung von ORACLE zu Fremdsystem gab diese Nachricht zur³ck:
    [unixODBC][MySQL][ODBC 5.1 Driver]Access denied for user
    'OREADER'@'pcora11.gsi.de' (using password: YES) {HY000,NativeErr = 1045}
    ORA-02063: vorherige 2 lines von ONA_NB
    and in the trace file:
    ##>Connect Parameters (len=33)<##
    ## DSN=ona_nb;
    #! UID=OREADER;
    #! PWD=*
    Exiting hgogenconstr, rc=0 at 2012/11/26-13:25:50
    Entered hgopoer at 2012/11/26-13:25:50
    hgopoer, line 233: got native error 1045 and sqlstate HY000; message follows...
    [unixODBC][MySQL][ODBC 5.1 Driver]Access denied for user 'OREADER'@'pcora11.gsi.de' (using password: YES) {HY000,NativeErr = 1045}
    Exiting hgopoer, rc=0 at 2012/11/26-13:25:50
    hgocont, line 2752: calling SqlDriverConnect got sqlstate HY000
    Exiting hgocont, rc=28500 at 2012/11/26-13:25:50 with error ptr FILE:hgocont.c LINE:2772 FUNCTION:hgocont() ID:Something other than invalid authorization
    Exiting hgolgon, rc=28500 at 2012/11/26-13:25:50 with error ptr FILE:hgolgon.c LINE:781 FUNCTION:hgolgon() ID:Calling hgocont
    hostmstr: 0: HOA After hoalgon
    RPC Calling nscontrol(0), rc=0
    hostmstr: 0: RPC Before Exit Agent
    hostmstr: 0: HOA Before hoaexit
    Entered hgoexit at 2012/11/26-13:25:50
    Exiting hgoexit, rc=0
    hostmstr: 0: HOA After hoaexit
    hostmstr: 0: RPC After Exit Agent
    Even if I copy the content of ona_nb-odbc.ini file to /etc/unixODBC/obc.ini
    I still get the same error.
    Any ideas?
    Michael

  • Error Connecting to MySql (character set index '49')

    I downloaded the Oracle Sql Developer extensions and went to Tools / Preferences / Third Part and set the location for the Jar file.
    When I try and test the connection to the MySql database I get this error:
    An error was encountered performing the requested operation:
    Unknown initial charater set index '49' received from the server.
    Initial client character set can be forced via the 'characterEncoding' property.
    Vendor code 0
    My dba's used Sql developer to connect to the same MySql database fine. If I use MySql Workbench, I can connect. (I prefer Sql Developer, so I was hoping to get this connection to work.)
    I even tried going to MySql to get their Connection/J JDBC jar file; but the same results.
    Any suggestions?
    Thanks,
    Mike

    Are your colleagues using the same sqldev/JDBC versions? Which?
    Did you follow the guide on setting it up, and the driver from http://dev.mysql.com/downloads/connector/j/ ?
    K.

  • Getting error when executing mysql command in powershell.

    When I run this it gives me an error and I'm not sure if I'm doing it right. Can someone look at my code please and thank you.
    It has a problem with the commandtext and is giving me this error:
    Exception calling "ExecuteNonQuery" with "0" argument(s): "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 'IF @@ROWCOUNT=0 INSERT INTO signups (email,date,offer) VALUES ('morenonancy50@ya' at line 1" 
    If i take this code out of the commandtext it works, but it doesn't update the tables, it just ads new ones.
    UPDATE signups set offer='$($fileContents[$line.ReadCount+3])' WHERE email='$line' IF @@ROWCOUNT=0
    $user = 'root'
    $pass = ''
    $database = 'table01'
    $MySQLHost = 'localhost'
    $dbconnect = New-Object MySql.Data.MySqlClient.MySqlConnection
    $dbconnect.ConnectionString = $connStr = "server=" + $MySQLHost + ";port=3306;uid=" + $user + ";pwd=" + $pass + ";database="+$database+";Pooling=FALSE"
    $dbconnect.Open()
    $datefin = get-date $($fileContents[$line.ReadCount+0]) -format 'yyyy-MM-dd'
    $sql = New-Object MySql.Data.MySqlClient.MySqlCommand
    $sql.Connection = $dbconnect
    $sql.CommandText = "UPDATE signups set offer='$($fileContents[$line.ReadCount+3])' WHERE email='$line' IF @@ROWCOUNT=0 INSERT INTO signups (email,date,offer) VALUES ('"+$line+"','"+$datefin+"','"+$($fileContents[$line.ReadCount+3])+"');"
    $sql.ExecuteNonQuery()
    $dbconnect.Close()

    Hi Joey,
    Based on my research, you have mutiple statements in sql cmd: change the "offer" value based on "email" and add a new row to the sql table.
    To work with mutiple SQL statements, you can try to use the cmdlet
    "invoke-sqlcmd" instead, and save the sql command text below as .sql file, and check if there is any error:
    UPDATE signups set offer='$($fileContents[$line.ReadCount+3])' WHERE email='$line'
    IF @@ROWCOUNT=0 INSERT INTO signups (email,date,offer) VALUES ('"+$line+"','"+$datefin+"','"+$($fileContents[$line.ReadCount+3])+"')
    Windows Powershell script running multiple SQL statements
    Best Regards,
    Anna

  • Error Message in mysql

    I tried to import my file into mysql I got the error message below.  I have no idea what this means or what to do.  Any assistance you can provide would be greatly appreciated.  Thank you.
    There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem
    ERROR: Unknown Punctuation String @ 241
    STR: />
    SQL: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>form</title>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationRadio.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationConfirm.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    <link href="table.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryValidationRadio.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryValidationConfirm.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="Container">
      <div id="header">
        <div id="Advertisment">Content for  id "Advertisment" Goes Here</div>
        <table width="325" align="right">
      <tr>
        <td class="Search">sign in</td>
        <td class="Search">Create account</td>
        <td class="Search">search</td>
      </tr>
    </table><br />
    <br />
        <table width="762">
      <tr>
        <td width="149"><img src="" alt="" name="Logo" width="136" height="92" id="Logo" /></td>
        <td width="601"><ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a href="#">Home</a>        </li>
          <li><a href="#">about us</a></li>
          <li><a class="MenuBarItemSubmenu" href="#">the racks </a>
            <ul>
              <li><a href="#">single items</a>            </li>
              <li><a href="#">Group items</a></li>
              <li><a href="#">Donations</a></li>
              <li><a href="#">Giveaways</a></li>
            </ul>
          </li>
          <li><a href="#">contact us</a></li>
          <li><a href="#">Put it on the rack</a></li>
        </ul></td>
      </tr>
    </table>
      </div>
    </div>
    <p class="Header">Put it on the rack</p>
    <p class="Header"><span class="expiration">Your posting will expire in 30 days.</span></p>
    <form action="individual.php" method="post" enctype="multipart/form-data" name="individual" class="individual" id="individual">
      <table width="594" border="0" class="test">
      <tr></tr>
      <tr>
        <td colspan="2" class="td"><span id="spryradio1">
          <label>
            <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_0" />
            Individual</label>
          <br />
          <label>
            <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_1" />
            Group</label>
          <br />
          <label>
            <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_2" />
            Giveaways</label>
          <br />
          <label>
            <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_3" />
            Shoes</label>
          <br />
          <span class="radioRequiredMsg">Required</span></span></td>
      </tr>
      <tr>
        <td width="166" class="td">Posting Title</td>
        <td><span id="sprytextfield1">
          <label>
            <input name="Posting Title" type="text" class="test" id="Posting Title" size="35" />
          </label>
          <span class="textfieldRequiredMsg">Required</span></span></td>
      </tr>
      <tr>
        <td class="td">Price</td>
        <td><span id="sprytextfield2">
          <label>
            <input name="price" type="text" class="test" id="price" size="35" />
          </label>
          <span class="textfieldInvalidFormatMsg">Invalid format.</span></span></td>
      </tr>
      <tr>
        <td class="td">Size(s)</td>
        <td><label>
          <select name="size" size="1" multiple="multiple" class="test" id="size">
    <option>0</option>
            <option>2</option>
            <option>4</option>
            <option>6</option>
            <option>8</option>
            <option>10</option>
            <option>12</option>
            <option>14</option>
            <option>16</option>
            <option>18</option>
            <option>20</option>
            <option>22</option>
            <option>24</option>
            <option>26</option>
          </select>
          <span class="Text">To select multiple sizes, hold ctrl and select each size.</span></label></td>
      </tr>
      <tr>
        <td class="td">Condition</td>
        <td><label>
          <select name="Condition" class="test" id="Condition">
    <option>New</option>
            <option>Used</option>
          </select>
        </label></td>
      </tr>
      <tr>
        <td class="td">Length</td>
        <td><label>
          <select name="Length" class="test" id="Length">
    <option>Long</option>
    <option>Short</option>
    <option>Mid-Length</option>
          </select>
        </label></td>
      </tr>
      <tr>
        <td class="td">Color(s)</td>
        <td class="td"><span id="sprytextfield5">
          <label>
            <input name="Color" type="text" class="test" id="Color" size="35" />
          </label>
          <span class="textfieldRequiredMsg">Required</span></span></td>
      </tr>
      <tr>
        <td class="td">City, State</td>
        <td class="td"><span id="sprytextfield4">
          <label>
            <input name="location" type="text" class="test" id="location" size="35" />
          </label>
          <span class="textfieldRequiredMsg">City &amp;<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>form</title>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationRadio.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationConfirm.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    <link href="table.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryValidationRadio.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryValidationConfirm.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="Container">
      <div id="header">
        <div id="Advertisment">Content for  id "Advertisment" Goes Here</div>
        <table width="325" align="right">
      <tr>
        <td class="Search">sign in</td>
        <td class="Search">Create account</td>
        <td class="Search">search</td>
      </tr>
    </table><br />
    <br />
        <table width="762">
      <tr>
        <td width="149"><img src="" alt="" name="Logo" width="136" height="92" id="Logo" /></td>
        <td width="601"><ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a href="#">Home</a>        </li>
          <li><a href="#">about us</a></li>
          <li><a class="MenuBarItemSubmenu" href="#">the racks </a>
            <ul>
              <li><a href="#">single items</a>            </li>
              <li><a href="#">Group items</a></li>
              <li><a href="#">Donations</a></li>
              <li><a href="#">Giveaways</a></li>
            </ul>
          </li>
          <li><a href="#">contact us</a></li>
          <li><a href="#">Put it on the rack</a></li>
        </ul></td>
      </tr>
    </table>
      </div>
    </div>
    <p class="Header">Put it on the rack</p>
    <p class="Header"><span class="expiration">Your posting will expire in 30 days.</span></p>
    <form action="individual.php" method="post" enctype="multipart/form-data" name="individual" class="individual" id="individual">
      <table width="594" border="0" class="test">
      <tr></tr>
      <tr>
        <td colspan="2" class="td"><span id="spryradio1">
          <label>
            <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_0" />
            Individual</label>
          <br />
          <label>
            <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_1" />
            Group</label>
          <br />
          <label>
            <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_2" />
            Giveaways</label>
          <br />
          <label>
            <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_3" />
            Shoes</label>
          <br />
          <span class="radioRequiredMsg">Required</span></span></td>
      </tr>
      <tr>
        <td width="166" class="td">Posting Title</td>
        <td><span id="sprytextfield1">
          <label>
            <input name="Posting Title" type="text" class="test" id="Posting Title" size="35" />
          </label>
          <span class="textfieldRequiredMsg">Required</span></span></td>
      </tr>
      <tr>
        <td class="td">Price</td>
        <td><span id="sprytextfield2">
          <label>
            <input name="price" type="text" class="test" id="price" size="35" />
          </label>
          <span class="textfieldInvalidFormatMsg">Invalid format.</span></span></td>
      </tr>
      <tr>
        <td class="td">Size(s)</td>
        <td><label>
          <select name="size" size="1" multiple="multiple" class="test" id="size">
    <option>0</option>
            <option>2</option>
            <option>4</option>
            <option>6</option>
            <option>8</option>
            <option>10</option>
            <option>12</option>
            <option>14</option>
            <option>16</option>
            <option>18</option>
            <option>20</option>
            <option>22</option>
            <option>24</option>
            <option>26</option>
          </select>
          <span class="Text">To select multiple sizes, hold ctrl and select each size.</span></label></td>
      </tr>
      <tr>
        <td class="td">Condition</td>
        <td><label>
          <select name="Condition" class="test" id="Condition">
    <option>New</option>
            <option>Used</option>
          </select>
        </label></td>
      </tr>
      <tr>
        <td class="td">Length</td>
        <td><label>
          <select name="Length" class="test" id="Length">
    <option>Long</option>
    <option>Short</option>
    <option>Mid-Length</option>
          </select>
        </label></td>
      </tr>
      <tr>
        <td class="td">Color(s)</td>
        <td class="td"><span id="sprytextfield5">
          <label>
            <input name="Color" type="text" class="test" id="Color" size="35" />
          </label>
          <span class="textfieldRequiredMsg">Required</span></span></td>
      </tr>
      <tr>
        <td class="td">City, State</td>
        <td class="td"><span id="sprytextfield4">
          <label>
            <input name="location" type="text" class="test" id="location" size="35" />
          </label>
          <span class="textfieldRequiredMsg">City &amp;<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>form</title>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationRadio.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationConfirm.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    <link href="table.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryValidationRadio.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryValidationConfirm.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="Container">
      <div id="header">
        <div id="Advertisment">Content for  id "Advertisment" Goes Here</div>
        <table width="325" align="right">
      <tr>
        <td class="Search">sign in</td>
        <td class="Search">Create account</td>
        <td class="Search">search</td>
      </tr>
    </table><br />
    <br />
        <table width="762">
      <tr>
        <td width="149"><img src="" alt="" name="Logo" width="136" height="92" id="Logo" /></td>
        <td width="601"><ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a href="#">Home</a>        </li>
          <li><a href="#">about us</a></li>
          <li><a class="MenuBarItemSubmenu" href="#">the racks </a>
            <ul>
              <li><a href="#">single items</a>            </li>
              <li><a href="#">Group items</a></li>
              <li><a href="#">Donations</a></li>
              <li><a href="#">Giveaways</a></li>
            </ul>
          </li>
          <li><a href="#">contact us</a></li>
          <li><a href="#">Put it on the rack</a></li>
        </ul></td>
      </tr>
    </table>
      </div>
    </div>
    <p class="Header">Put it on the rack</p>
    <p class="Header"><span class="expiration">Your posting will expire in 30 days.</span></p>
    <form action="individual.php" method="post" enctype="multipart/form-data" name="individual" class="individual" id="individual">
      <table width="594" border="0" class="test">
      <tr></tr>
      <tr>
        <td colspan="2" class="td"><span id="spryradio1">
          <label>
            <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_0" />
            Individual</label>
          <br />
          <label>
            <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_1" />
            Group</label>
          <br />
          <label>
            <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_2" />
            Giveaways</label>
          <br />
          <label>
            <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_3" />
            Shoes</label>
          <br />
          <span class="radioRequiredMsg">Required</span></span></td>
      </tr>
      <tr>
        <td width="166" class="td">Posting Title</td>
        <td><span id="sprytextfield1">
          <label>
            <input name="Posting Title" type="text" class="test" id="Posting Title" size="35" />
          </label>
          <span class="textfieldRequiredMsg">Required</span></span></td>
      </tr>
      <tr>
        <td class="td">Price</td>
        <td><span id="sprytextfield2">
          <label>
            <input name="price" type="text" class="test" id="price" size="35" />
          </label>
          <span class="textfieldInvalidFormatMsg">Invalid format.</span></span></td>
      </tr>
      <tr>
        <td class="td">Size(s)</td>
        <td><label>
          <select name="size" size="1" multiple="multiple" class="test" id="size">
    <option>0</option>
            <option>2</option>
            <option>4</option>
            <option>6</option>
            <option>8</option>
            <option>10</option>
            <option>12</option>
            <option>14</option>
            <option>16</option>
            <option>18</option>
            <option>20</option>
            <option>22</option>
            <option>24</option>
            <option>26</option>
          </select>
          <span class="Text">To select multiple sizes, hold ctrl and select each size.</span></label></td>
      </tr>
      <tr>
        <td class="td">Condition</td>
        <td><label>
          <select name="Condition" class="test" id="Condition">
    <option>New</option>
            <option>Used</option>
          </select>
        </label></td>
      </tr>
      <tr>
        <td class="td">Length</td>
        <td><label>
          <select name="Length" class="test" id="Length">
    <option>Long</option>
    <option>Short</option>
    <option>Mid-Length</option>
          </select>
        </label></td>
      </tr>
      <tr>
        <td class="td">Color(s)</td>
        <td class="td"><span id="sprytextfield5">
          <label>
            <input name="Color" type="text" class="test" id="Color" size="35" />
          </label>
          <span class="textfieldRequiredMsg">Required</span></span></td>
      </tr>
      <tr>
        <td class="td">City, State</td>
        <td class="td"><span id="sprytextfield4">
          <label>
            <input name="location" type="text" class="test" id="location" size="35" />
          </label>
          <span class="textfieldRequiredMsg">City &amp;
    SQL query:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>form</title> <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script> <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script> <script src="SpryAssets/SpryValidationRadio.js" type="text/javascript"></script> <script src="SpryAssets/SpryValidationConfirm.js" type="text/javascript"></script> <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" /> <link href="table.css" rel="stylesheet" type="text/css" /> <link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" /> <link href="SpryAssets/SpryValidationRadio.css" rel="stylesheet" type="text/css" /> <link href="SpryAssets/SpryValidationConfirm.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="Container"> <div id="header"> <div id="Advertisment">Content for id "Advertisment" Goes Here</div> <table width="325" align="right"> <tr> <td class="Search">sign in</td> <td class="Search">Create account</td> <td class="Search">search</td> </tr> </table><br /> <br /> <table width="762"> <tr> <td width="149"><img src="" alt="" name="Logo" width="136" height="92" id="Logo" /></td> <td width="601"><ul id="MenuBar1" class="MenuBarHorizontal"> <li><a href="#">Home</a> </li> <li><a href="#">about us</a></li> <li><a class="MenuBarItemSubmenu" href="#">the racks </a> <ul> <li><a href="#">single items</a> </li> <li><a href="#">Group items</a></li> <li><a href="#">Donations</a></li> <li><a href="#">Giveaways</a></li> </ul> </li> <li><a href="#">contact us</a></li> <li><a href="#">Put it on the rack</a></li> </ul></td> </tr> </table> </div> </div> <p class="Header">Put it on the rack</p> <p class="Header"><span class="expiration">Your posting will expire in 30 days.</span></p> <form action="individual.php" method="post" enctype="multipart/form-data" name="individual" class="individual" id="individual"> <table width="594" border="0" class="test"> <tr></tr> <tr> <td colspan="2" class="td"><span id="spryradio1"> <label> <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_0" /> Individual</label> <br /> <label> <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_1" /> Group</label> <br /> <label> <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_2" /> Giveaways</label> <br /> <label> <input type="radio" name="RadioGroup1" value="radio" id="RadioGroup1_3" /> Shoes</label> <br /> <span class="radioRequiredMsg">Required</span></span></td> </tr> <tr> <td width="166" class="td">Posting Title</td> <td><span id="sprytextfield1"> <label> <input name="Posting Title" type="text" class="test" id="Posting Title" size="35" /> </label> <span class="textfieldRequiredMsg">Required</span></span></td> </tr> <tr> <td class="td">Price</td> <td><span id="sprytextfield2"> <label> <input name="price" type="text" class="test" id="price" size="35" /> </label> <span class="textfieldInvalidFormatMsg">Invalid format.</span></span></td> </tr> <tr> <td class="td">Size(s)</td> <td><label> <select name="size" size="1" multiple="multiple" class="test" id="size"> <option>0</option> <option>2</option> <option>4</option> <option>6</option> <option>8</option> <option>10</option> <option>12</option> <option>14</option> <option>16</option> <option>18</option> <option>20</option> <option>22</option> <option>24</option> <option>26</option> </select> <span class="Text">To select multiple sizes, hold ctrl and select each size.</span></label></td> </tr> <tr> <td class="td">Condition</td> <td><label> <select name="Condition" class="test" id="Condition"> <option>New</option> <option>Used</option> </select> </label></td> </tr> <tr> <td class="td">Length</td> <td><label> <select name="Length" class="test" id="Length"> <option>Long</option> <option>Short</option> <option>Mid-Length</option> </select> </label></td> </tr> <tr> <td class="td">Color(s)</td> <td class="td"><span id="sprytextfield5"> <label> <input name="Color" type="text" class="test" id="Color" size="35" /> </label> <span class="textfieldRequiredMsg">Required</span></span></td> </tr> <tr> <td class="td">City, State</td> <td class="td"><span id="sprytextfield4"> <label> <input name="location" type="text" class="test" id="location" size="35" /> </label> <span class="textfieldRequiredMsg">City &amp;
    MySQL said:
    #1064 - 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 '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.or' at line 1

    In that section, you are supposed to be importing a sql file that contains the database ddl to create the structure of your database:
    In the File to import section, click the Browse button alongside the               Location of the text file text box; navigate to the Feedback folder on your               computer (Windows: C:\xampp\htdocs\Feedback, Mac OS X: Applications/MAMP/htdocs/Feedback),               select the data folder, and then the file feedback.sql.
    Click the Go button at the bottom of the page. This creates the               structure for the database used in this tutorial and adds initial data.
    Go back and make sure you have selected the feedback.sql file.

  • Error connecting to MySQL database

    Well I am a beginner trying to get the basics of JDBC. I am following a simple connection tutorial and I cannot even make this work. I receive an error when I run the program. It is a nested error that begins with "java.io.EOFException". I'm thinking it has something to do with the URL I am using to connect to the database. Any ideas?
    Here is the code I am using if that helps at all.
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    public class jdbctry {
      public static void main(String args[]) {
        Connection con = null;
        try {
          Class.forName("com.mysql.jdbc.Driver").newInstance();
          con = DriverManager.getConnection("jdbc:mysql://url:port/database",
          if(!con.isClosed())
            System.out.println("Successfully connected to " +
              "MySQL server using TCP/IP...");
        } catch(Exception e) {
          System.err.println("Exception: " + e.getMessage());
        } finally {
          try {
            if(con != null)
              con.close();
          } catch(SQLException e) {}
    } edit- I think the problem was I had a bad port number assigned to the URL. This time I got a "java.net.SocketException" error. It says my connection timed out.
    Message was edited by:
    lw22

    I'll assume that you've substituted appropriate values into that connection URL, right?
    It s
    // host = IP address or name of machine where MySQL is listening
    // port = 3306 (default)
    // database = instance you wish to connect to
    // username, password have to be GRANTed access rights.
    String url = "jdbc:mysql://host:port/database";Can you connect using the MySQL client and see the database you want in Java? If the client can't connect, neither can JDBC.
    %

  • Error connecting to MySQL database using JNDI

    Hi,
    I'm trying to do a simple connection to a MySQL database using the JNDI look-up
    method.
    Have tried this with the PointBase database that came with WebLogic and got it
    to work successfully.
    However got the attached error message when I tried it on MySQL database. I tried
    this with both the WebLogic's driver for MySQL and also the one I downloaded from
    MySQL (com.mysql.jdbc.Driver), and both failed with the same error message.
    Offhand, it doesn't look like the connection pool is failing. Tested it with WebLogic's
    "Test Pool" function and it was alright.
    Also MySQL database is working properly. Test this by doing simple connection
    and retrieval with simple JDBC connections and it works.
    Any ideas what else I can check with regards to this problem?
    Thanks!
    [att1.html]

    Hi Joe,
    Attached is the config.xml for the domain that I'm working with. There are 3 connection
    pools set-up.
    The problematic Connection Pools are "MySQLCP" and "My JDBC Connection Pool"
    Thanks for your help in this!
    Joe Weinstein <[email protected]> wrote:
    show us the pool definition, as it is in the config.xml file.
    thanks
    joe
    Everbright wrote:
    Hi,
    I'm trying to do a simple connection to a MySQL database using theJNDI look-up
    method.
    Have tried this with the PointBase database that came with WebLogicand got it
    to work successfully.
    However got the attached error message when I tried it on MySQL database.I tried
    this with both the WebLogic's driver for MySQL and also the one I downloadedfrom
    MySQL (com.mysql.jdbc.Driver), and both failed with the same errormessage.
    Offhand, it doesn't look like the connection pool is failing. Testedit with WebLogic's
    "Test Pool" function and it was alright.
    Also MySQL database is working properly. Test this by doing simpleconnection
    and retrieval with simple JDBC connections and it works.
    Any ideas what else I can check with regards to this problem?
    Thanks!
    Error 500--Internal Server Error
    java.sql.SQLException: Cannot obtain connection: driverURL = jdbc:weblogic:pool:MyJDBCConnection Pool, props = {enableTwoPhaseCommit=false, jdbcTxDataSource=true,
    connectionPoolID=MyJDBC Connection Pool, dataSourceName=MyJDBC Data
    Source}.
    Nested Exception: java.lang.RuntimeException: Failed to Generate WrapperClass
         at weblogic.utils.wrapper.WrapperFactory.createWrapper(WrapperFactory.java:141)
         at weblogic.jdbc.wrapper.JDBCWrapperFactory.getWrapper(JDBCWrapperFactory.java:73)
         at weblogic.jdbc.pool.Driver.allocateConnection(Driver.java:242)
         at weblogic.jdbc.pool.Driver.connect(Driver.java:158)
         at weblogic.jdbc.jts.Driver.getNonTxConnection(Driver.java:444)
         at weblogic.jdbc.jts.Driver.connect(Driver.java:138)
         at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:298)
         at jsp_servlet.__index._jspService(__index.java:142)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6310)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
         at weblogic.jdbc.jts.Driver.wrapAndThrowSQLException(Driver.java:395)
         at weblogic.jdbc.jts.Driver.getNonTxConnection(Driver.java:448)
         at weblogic.jdbc.jts.Driver.connect(Driver.java:138)
         at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:298)
         at jsp_servlet.__index._jspService(__index.java:142)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6310)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    [config.xml]

  • Error when using MySQL view that has name greater than 30 characters

    Hi, am loading MySQL data to an Oracle table using an ODI 11g Interface.
    The interface errors when the name of the MySQL view exceeds 30 characters. A "view not found" error is encountered.
    Is there any work around when using source datastores (MySQL views in this case) where the datastore name exceeds 30 characters, other than renaming the MySQL view to have a max 30 character name?
    Thanks,
    Kevin L.

    I believe that mySQL supports upto 64 characters in table name. You need to update the ODI 11g Topology -> Physical Architecture -> Dbl click MySQL -> Goto Advanced tab and update the "Maximum table name length". By default that is setup to 30.

  • Mysql error 2002 & missing mysql.sock

    ok, I know this issue is all over the internet, however after reading many posts I have not been able to solve my issue. I hoping someone can help me out. Lets start with the error I get when typing "mysql start" in the terminal:
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)
    I have mysql 5.0.51a x86_64 installed on my macbook pro, I used the package installer. I can tell you that the mysql.sock file is nowhere on my machine. It isn't in "private/var/mysql/ or private/tmp".
    I have the php.ini set to look for the socket like this: "mysql.default_socket = /var/mysql/mysql.sock" & "mysqli.default_socket = /var/mysql/mysql.sock"
    I have the my.cnf file set to:
    client (client is contained in square brackets)
    socket = /var/mysql/mysql.sock
    mysqld (mysqld is contained in square brackets)
    socket = /var/mysql/mysql.sock
    I cannot get mysql to start from the mysql preference panel or the terminal. How do I fix this missing socket file issue? Please help me I'm so frustrated by the fact I cannot get this worked out. Thanks in advance!

    http://discussions.apple.com/thread.jspa?messageID=5059320
    http://forums.macosxhints.com/archive/index.php/t-77067.html
    I've seen this before, on Tiger Server, personally. I think the php.ini change was what I did to resolve it. I can't recall for sure.

  • Error code 1064 mysql and crystal reports XI

    Post Author: aminski
    CA Forum: Data Connectivity and SQL
    Hello friends , I am trying to create a Crystal Report connected to a MySQL database using an ODBC (RDO) connection.  I created a DSN using the MySQL Connector/ODBC 3.51 and mysql database 3.23.51 version .  When creating a new report I can add the ODBC (RDO) connection using Add Command Option, I place my query into the Add Command Text Box then i click on Ok button and i get an error message that reads as follows: << Failed to retrieve data from database, details 2300 mysql odbc 3.51 driver mysqld 3.23.51 you have an error in your sql syntax near ;create temporary table if not exists cursa (cbod_puc varchar(14), saldo floa at line 1 database vendor code 1064.>>
    The error message doesn't display the whole SQL statement, so I can't tell if Crystal Reports is making a bad SQL statement or if it is a problem with the MySQL ODBC driver. or with the delimiter character ( ; ) interpreted by crystal or the odbc driver 
    this is my complete query:
    DROP TABLE IF EXISTS cursa; create temporary table if not exists cursa (cbod_puc varchar(14), saldo float(12,2));insert into cursa select cbod_puc,sum(if(cbod_tipo='D',cbod_valor,0))-sum(if(cbod_tipo='C',cbod_valor,0))from myacbodymovimientoswhere cbod_puc='110505003' and cbod_fecha<='2007-08-31' and cbod_estado not in ('a','A')group by cbod_puc;
    select       x.cbod_ccosto,      x.cbod_documento,      x.cbod_fecha,cbod_concepto,      x.cbod_tipo,      ccos_nombre,      x.cbod_puc,      a.puc_nombre,      x.cbod_razonconcepto,      if(x.cbod_tipo='D' and x.cbod_estado not in ('a','A'),x.cbod_valor,0) as debito,      if(x.cbod_tipo='C' and x.cbod_estado not in ('a','A'),x.cbod_valor,0) as credito,      substring(x.cbod_puc,1,1) as puc_clase,      substring(x.cbod_puc,1,2) as puc_grupo,      substring(x.cbod_puc,1,4) as puc_mayor,      substring(x.cbod_puc,1,6) as puc_submayor,      ifnull(b.puc_nombre,'') as puc_NombreClase,      ifnull(c.puc_nombre,'') as puc_NombreGrupo,      ifnull(d.puc_nombre,'') as puc_NombreMayor,      ifnull(e.puc_nombre,'') as puc_NombreSubMayor,      chea_chequeno,saldo,      x.cbod_fecha as Ffinicio,x.cbod_fecha as Fffinalfrom myacbodymovimientos as x  left join myacheadmovimientos on chea_ccosto=x.cbod_bodega and         chea_documento=x.cbod_documento and chea_concepto=x.cbod_concepto and         chea_beneficiario=x.cbod_beneficiario  left join myaccosto on ccos_codigo=x.cbod_ccosto  left join myacpuc a on a.puc_codigo=x.cbod_puc        left join myacpuc b on b.puc_codigo=substring(x.cbod_puc,1,1)  left join myacpuc c on c.puc_codigo=substring(x.cbod_puc,1,2)  left join myacpuc d on d.puc_codigo=substring(x.cbod_puc,1,4)  left join myacpuc e on e.puc_codigo=substring(x.cbod_puc,1,6)  left join cursa f on f.cbod_puc=x.cbod_pucwhere x.cbod_puc='110505003' and x.cbod_fecha BETWEEN '2007/01/01' and '2007/09/07'order by         x.cbod_puc,        x.cbod_fecha,        x.cbod_concepto,        lpad(trim(x.cbod_documento),12,'0')
    I tested this query using HeidiSQL program Version 3.0 Revision 572 and it runs perfectly without errors, please help me to know if the problem is my odbc driver version or what is the right delimiter character that i have to use in crystal reports XI in order to run perfectly
    Thanks -Aminski

    I developed a JSP page that displays a Crystal Report using NetBeans 4.1, and it works fine.
    Then I set up a project in SJSC with exactly the same libraries, context parameters, etc., and I copied over my JSP page, making it the starting page of the SJSC project, but I get the same "Unexpected error determining relative path". It's got to be a problem with the way SJSC sets up the servlet context or something, but I need help from some of you guys out there with some pretty serious knowledge of SJSC's plumbing...
    Thanks,
    Luca

  • Unidentified error connecting to MySql

    I’m almost embarrassed to post this question because
    there seems to be plenty of the same issue already here. On the
    other hand I’m not as embarrassed as the developer who
    created such a useless message as “unidentified error”
    .... but that’s another story.
    I’ve reviewed those other messages & solutions and
    still get this error.
    I’m running Dreamweaver MX version 6.1 under Windows XP
    and trying to connect to a local MySql database.
    I have no problem connecting to the local database using
    several other applications (including Navicat) so I think my set up
    is okay.
    I’ve also tested the connection with my browser (
    http://localhost/mysite_root/test-connect.php)
    and that test was successful.
    I have defined the document type (PHP of course) and testing
    server models.
    I am attempting to use the + sign in the databases tab and
    navigate to the MySql database and that is when the
    “unidentified error” occurs.
    I have tried removing the connection scripts.
    I have downloaded and applied updates from the Adobe web
    site.
    One posting mentioned modifying the php.ini file, but it is
    unclear what to change or even why that would be necessary since
    everything else works.
    I admit that establishing this MySql connection should be a
    no-brainer that takes minutes not hours. But I’m out of
    ideas.

    TheLark wrote:
    > I appreciate the reply. My URL prefix is exactly as you
    said it should be.
    > And for whatever its worth, the local root folder and
    the testing server folder
    > point to:
    > C:\Program Data\Websites Apache\htdocs\mysite_root\
    Your settings seem to be correct. Other likely causes of the
    "Unidentified error" are:
    * MySQL isn't running (since you can connect with Navicat,
    that's
    probably not applicable).
    * A software firewall is preventing connection between
    Dreamweaver and
    MySQL.
    * You have old versions of the hidden connection scripts. I'm
    not sure
    if this option is available in MX 6.1, but go to Site >
    Advanced, and
    select Remove Connection Scripts. Then create a new MySQL
    Connection in
    Dreamweaver. This replaces the contents of a hidden folder
    called
    _mmServerScripts, which controls communication between
    Dreamweaver and
    MySQL.
    The reason you get "Unidentified error" is because
    Dreamweaver cannot
    even communicate with MySQL, and therefore cannot identify
    the problem.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Java Out of memory error when accessing MySQL

    Hi all
    I've got a weird problem, I programed some code to mirror data between two databases and I was testing it with two different computers each one running MySQL. The first database has 33,000 rows across 40 columns and the second one 380,000 rows across 40 columns. When trying to transfer the data from the small database to the large one everything works fine, after a couple of minutes all 33,000 rows are successfully transfered to the large one.
    But then I tried it the other way around, transfer 380,000 rows to the small. This does not run at all it just gives me an error of Out Of Memory and stops. I tried on win2k, winxp and redhat 7.3 same error. Does anyone has any idea why this is happening? All three machines have 512MB RAM.
    Is there a limit on the size that a result set can have? I really need to know since this database is gonna grow by aprox. 136,000 rows per hour or 3,264,000 rows per data. That's about 3 GB of data per day which needs to be mirrored across the databases.
    Any suggestions would really be apreciated

    Thanks for the response guys,
    The purpose of this program is to mirror the data between two databases. The first one sits on a machine that is monitoring a system through sensors connected via a DSP card. Now the processing of the gathered data is done on the second machine. This mirroring needs to happen every day and as I said on my previous post the amount of data is aprox. 3GB per day or about 1.2m rows per day. I know this is a huge amount of data.
    In the program I've written what I do is:
    get a connection to both databases on both servers then I create a prepared statement to do the INSERT. Then I get a result set from the first database and in the while loop I update the data to the second one. So only one result set is used. Now I shouild let you know that there's never gonna be any updating of the data only new ones get added.
    I am assuming by the error I get that when I get my result set it tries to load it all in memory which I do not want to do for the obvious reasons.
    I am including my code
    import java.sql.*;
    import java.util.*;
    class Mirror {
        Connection con;
        Statement dispStmt;
        Connection con2;
        PreparedStatement updStmt2;
        public static void main( String args[] ) {
            Mirror mr = new Mirror();
            mr.process();
        public void process() {
            try {
                Class.forName( "org.gjt.mm.mysql.Driver" ).newInstance();
                con2 = DriverManager.getConnection( "jdbc:mysql://ipaddress/database2", "username", "password" );
                updStmt2 = con2.prepareStatement( "insert into Gratings (SensorSetID, Grating_1, Grating_2, Grating_3, Grating_4, Grating_5, Grating_6, Grating_7, Grating_8, Grating_9, Grating_10, Grating_11, Grating_12, Grating_13, Grating_14, Grating_15, Grating_16, Grating_17, Grating_18, Grating_19, Grating_20, Grating_21, Grating_22, Grating_23, Grating_24, Grating_25, Grating_26, Grating_27, Grating_28, Grating_29, Grating_30, Grating_31, Grating_32, Grating_33, Grating_34, Grating_35, Grating_36, Grating_37, Grating_38, Grating_39, Grating_40) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)" );
                con = DriverManager.getConnection( "jdbc:mysql://ipaddress/database1", "usernames", "password" );
                dispStmt = con.createStatement();
            catch( Exception e ) /* (ClassNotFoundException and SQLException)*/ {
                e.printStackTrace();
            try {
                synchronized( this ) {
                    ResultSet rs = dispStmt.executeQuery( "select * from Gratings" );
                    while( rs.next() ) {
                        updStmt2.setString( 1, rs.getString( "SensorSetID" ) );
                        updStmt2.setString( 2, rs.getString( "Grating_1" ) );
                        updStmt2.setString( 3, rs.getString( "Grating_2" ) );
                        updStmt2.setString( 4, rs.getString( "Grating_3" ) );
                        updStmt2.setString( 5, rs.getString( "Grating_4" ) );
                        updStmt2.setString( 6, rs.getString( "Grating_5" ) );
                        updStmt2.setString( 7, rs.getString( "Grating_6" ) );
                        updStmt2.setString( 8, rs.getString( "Grating_7" ) );
                        updStmt2.setString( 9, rs.getString( "Grating_8" ) );
                        updStmt2.setString( 10, rs.getString( "Grating_9" ) );
                        updStmt2.setString( 11, rs.getString( "Grating_10" ) );
                        updStmt2.setString( 12, rs.getString( "Grating_11" ) );
                        updStmt2.setString( 13, rs.getString( "Grating_12" ) );
                        updStmt2.setString( 14, rs.getString( "Grating_13" ) );
                        updStmt2.setString( 15, rs.getString( "Grating_14" ) );
                        updStmt2.setString( 16, rs.getString( "Grating_15" ) );
                        updStmt2.setString( 17, rs.getString( "Grating_16" ) );
                        updStmt2.setString( 18, rs.getString( "Grating_17" ) );
                        updStmt2.setString( 19, rs.getString( "Grating_18" ) );
                        updStmt2.setString( 20, rs.getString( "Grating_19" ) );
                        updStmt2.setString( 21, rs.getString( "Grating_20" ) );
                        updStmt2.setString( 22, rs.getString( "Grating_21" ) );
                        updStmt2.setString( 23, rs.getString( "Grating_22" ) );
                        updStmt2.setString( 24, rs.getString( "Grating_23" ) );
                        updStmt2.setString( 25, rs.getString( "Grating_24" ) );
                        updStmt2.setString( 26, rs.getString( "Grating_25" ) );
                        updStmt2.setString( 27, rs.getString( "Grating_26" ) );
                        updStmt2.setString( 28, rs.getString( "Grating_27" ) );
                        updStmt2.setString( 29, rs.getString( "Grating_28" ) );
                        updStmt2.setString( 30, rs.getString( "Grating_29" ) );
                        updStmt2.setString( 31, rs.getString( "Grating_30" ) );
                        updStmt2.setString( 32, rs.getString( "Grating_31" ) );
                        updStmt2.setString( 33, rs.getString( "Grating_32" ) );
                        updStmt2.setString( 34, rs.getString( "Grating_33" ) );
                        updStmt2.setString( 35, rs.getString( "Grating_34" ) );
                        updStmt2.setString( 36, rs.getString( "Grating_35" ) );
                        updStmt2.setString( 37, rs.getString( "Grating_36" ) );
                        updStmt2.setString( 38, rs.getString( "Grating_37" ) );
                        updStmt2.setString( 39, rs.getString( "Grating_38" ) );
                        updStmt2.setString( 40, rs.getString( "Grating_39" ) );
                        updStmt2.setString( 41, rs.getString( "Grating_40" ) );
                        updStmt2.executeUpdate();
                    rs.close();
                con.close();
                con2.close();
            catch( Exception ex ) {
                System.out.println( ex );
                ex.printStackTrace();
    }Does anyone have any suggestions?
    What can I do in order to prevent the whole database being loaded in memory?
    Additionally I noticed that the above operation stops when memory usage reaches 71.5 MB for the JVM

Maybe you are looking for

  • Error while download the data to an Excel sheet for ECC report from EP

    Hi experts, I had created a report program which will download the data to an Excel sheet using SAP OLE object For this report i had created a tcode too. The report which i developed is perfectly working fine in SAPGUI. But if i download the data to

  • Event handling in portal through sap netweaver.

    Hi... Please let me know..how to evoke event handling in iviews..thru sap netweaver in ep.

  • Can I use a different OS for different users?

    I have a Macbook Pro running OSX Lion and it would be easier to have two seperate user profiles (Work & Personal) with the Work profile using Windows 7 and my personal profile using OSX Lion. Is this possible? I've considered and dismissed Parallels/

  • Crazy File Sizes - Help!

    Hello, I have a multi-part question about multi-page PDFs.  Two things are happening to me quite a lot with Acrobat and PDF creation, and I need some help figuring out what's going on. Thing 1: I will receive a bunch of scanned music, each page scann

  • Doubt on badi WF_BWP_SELECT_FILTER

    Dear Experts,                     I know the badi WF_BWP_SELECT_FILTER is for filtering the work item in SAP INBOX . my doubt is that when this badi get trigger ? Pls anybody help me regarding this. Thanks Ramesh Manoharan