MySQL connection and Arithmetic operation resulted in an overflow

Hi
I installed MySQL connector and created a user DSN. In SSIS, a data source connection using ADO Net Source created and I was able to run a simple select statement in preview. But when I run a test transferring data from MYSQL to SQL, I got the following
error.
Error: 0xC0047062 at Data Flow Task, ADO NET Source [59]: System.OverflowException: Arithmetic operation resulted in an overflow.
   at System.Data.Odbc.SQLLEN.op_Implicit(SQLLEN value)
   at System.Data.Odbc.OdbcDataReader.BuildMetaDataInfo()
   at System.Data.Odbc.OdbcDataReader.GetSchemaTable()
   at Microsoft.SqlServer.Dts.Pipeline.DataReaderSourceAdapter.PreExecute()
I tested by limiting only 100 records of a single column and it worked. when I changed it to 1000 limits, I get an error.
I am wondering if this has to do with the size of the records. What is going on here?

This means you chose a too limiting datatype.
You need to enlarge the one in question, or use a different one that can accommodate greater values.
Arthur My Blog

Similar Messages

  • Power query from ODBC :"DataSource.Error: Arithmetic operation resulted in an overflow"

    Good day
    Everytime I want to pull data into a query from our servers it gives the error "DataSource.Error: Arithmetic operation resulted in an overflow". What is the reason for this error, and how do I get past this bump.
    Thanks in advance
    Arnoux

    Hey Tristan. Thanks I did that yes.
    For some reason my direct MySQL connection does not want to work.
    I get the following error
    DataSource.Error: MySQL: Unable to find a database provider with invariant name 'MySql.Data.MySqlClient'.
    This error may have been the result of provider-specific client software being required but missing on this computer.  To download client software for this provider, visit the following site and choose at minimum 'MySQL Connector/Net':

  • ODBC BI Server Bug - arithmetic operation resulted in an overflow

    I am trying to write some really simple .NET code access the Oracle BI Server ODBC driver and it's not working at all.  I've connected fine, however it seems like anything I try to do related to getting database information spits up an error "arithmetic operation resulted in an overflow".
    Here is the code:
    Dim ConnectString As String
    Dim FactoryType As String
    Dim Factory As System.Data.Common.DbProviderFactory
    Dim Connection As System.Data.Common.DbConnection = Nothing
    Dim TablesData As System.Data.DataTable = Nothing
    Dim err As String = ""
    Dim nl As String = Chr(13) + Chr(10)
    Try
        ' Connect to the database via ODBC
        ConnectString = "DSN=BSODBC_7;uid=TheUser10;pwd=************"
        FactoryType = "System.Data.Odbc"
        Factory = System.Data.Common.DbProviderFactories.GetFactory(FactoryType)
        Connection = Factory.CreateConnection
        Connection.ConnectionString = ConnectString
        Connection.Open()
        ' Request a list of tables from the database
        ' ** Tried both with restrictions and without
        ' ERROR on this line:
        ' “Arithmetic operation resulted in an overflow.”
        TablesData = Connection.GetSchema("Tables")
        ' Show the list of tables on the screen in a grid
        ' If it was successful.
        OnScreenGrid.AutoGenerateColumns = True
        OnScreenGrid.DataSource = TablesData
    Catch ex As Exception
        ' Report the error
        err = ex.Message
        If Not (ex.InnerException Is Nothing) Then
            If Not (ex.InnerException.Message Is Nothing) Then
                err = err + nl + nl + ex.InnerException.Message
            End If
        End If
        MsgBox(err, MsgBoxStyle.OkOnly + MsgBoxStyle.Exclamation, "Error")
    Finally
        ' Clean up and Close the DB Connection
        If Not (Connection Is Nothing) Then
            Connection.Close()
            Connection.Dispose()
            Connection = Nothing
        End If
    End Try
    Any Thoughts?  Is this a known bug?  Is there a fix?

    I doubt on line
    OnScreenGrid.DataSource = TablesData
    instead of array as TablesData try to take List object and assign it to OnScreenGrid.DataSource
    just in case check this
    DataGridView.AutoGenerateColumns Property (System.Windows.Forms)
    I might be wrong but just check it

  • Arithmetic operation resulted in an overflow - The remote server returned an error: (407) Proxy Authentication Required

    Hello I read and tried the previous forum suggestions. I have deleted the role and readded it. I use a domain account that is able to get through the proxy. Each time a variant of the Proxy error is returned. The site is on server 2008 R2.
    The AI certificate is valid and specified in the console. I am not sure what could be missing. Everything used to work as specified on Server 2003. This configuration is the same, but it is no longer able to sync. Thanks.   

    Would recommend that you elaborate on what issue you are facing so that the community can help.
    Blog: http://theinfraguys.com
    Follow me at Facebook
    The Infra Guys Facebook Page
    Join the Singapore System Center Admin Group
    SG System Center Admin Group
    Please remember to click Mark as Answer on the answer if it helps you in anyway

  • Need arithmetic operation result in Fixed point arithmetic disabled prg

    Hi,
    I am writing an enhancement which is in standard SAP program which is not enabled for 'Fixed arithmetic' calculations.
    I need to do some actual arithmetic operation involving packed numbers in my enhancement.
    Say 
    p1 = '2.00'
    p2 = '12.00'.
    result = p1 * p2.
    result coming is 2400.00. This is because Fixed point arithmetic is disabled in standard program.
    I need a result of 24.00 . Is there any solution to this apart from dividing it with 100?
    Regards,
    Dhana

    based on P1 and P2 values you need to divide the value with 100 or 1000 as per the number of decimals on P1 and P2

  • PleaseHelp on jsp and Mysql connectivity and a lot of exception errors

    Hi,
    I am Trying to connect a JSP page with Mysql database. I am having a lot of probelms. After having a lot of problems in connecting the JSp with Mysql. Intilally it was giving me the exception error that " NO appropriate driver was found. After modifying the URl it was fine. Now It is giving the Following errors.
    servlet.ServletException: Communication link failure: java.io.IOException, underlying cause: Unexpected end of input stream ** BEGIN NESTED EXCEPTION ** java.io.IOException MESSAGE: Unexpected end of input stream
    In a window before loading the Explorer page it is giving the following error that The port 8081 is already in use and i should expand to other ports. Noraml JSP Files which used to work before are also not working .
    Internal Tomcat JWSDP is alos not working. If i try to start the server it says that port 8081 is already in USe . A java.net.connection exception is also occuring. The normal JSP files are also not working. What is Happening. I am also giving the code i have writted. PLease tellme why so many exception errors are occuring.
    Connection con = DriverManager.getConnection("jdbc:mysql://localhost:8081/mis_project", "root", " ");
    Statement stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery("Select study_semester FROM Semester");
    while(rs.next()) {
    %>
    <option value="<%= rs.getString("Study_Semester") %>">
    </option>
    <% }
    if(rs!=null) rs.close();
    if(stmt!=null) stmt.close();
    if(con!=null) con.close();
    I am trying to connect to Mysql and automatocally populate a field in a Form in later JSp pages i intend to record the data entered in these fields into other tables.

    <%
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    Connection conn = DriverManager.getConnection("jdbc:mysql://localhost/myDB?user=username&password=mypass");
    Statement stmt = conn.createStatement(java.sql.ResultSet.TYPE_FORWARD_ONLY, java.sql.ResultSet.CONCUR_READ_ONLY);
    String cat = "";
              try{
              cat = request.getParameter("category");
              }catch(NullPointerException npe){}
              ResultSet rs = stmt.executeQuery("SELECT id,fullname FROM users WHERE category LIKE '%motor%' AND subcategory like '%"+cat+"%'");
         %>
    This piece gets a category parameter from a form post and uses it to search for a specific category in a database table. I think maybe u need to download JConnector from mysql site and unzip it to the classes folder of your WEB-INF in Tomcat server...... i hope this helps a bit

  • MySQL connection with OWB 11gR2 results in "access denied for user"

    Hello,
    I just try to establish a connection to a MySQL database with OWB 11gR2, but I always get the error "access denied for user...". I did the things written on [http://blogs.oracle.com/warehousebuilder/2010/01/owb_11gr2_mysql_open_connectivity.html] and I also used the platform configuration from this description. Newest JDBC driver was downloaded and I put the jar-file into the folder OWB_HOME/owb/lib/ext. The definition of the MySQL platform worked and the entry "MySQL" was created in OWB, but no connection can be established. I also tried other tools like MySQL Administrator in order to find out whether the problem is caused by network configuration or sth. like that, but with this tool the connection works.
    OWB is installed on OpenSuse 11.1 64bit. Does anyone know why this error occurs? Perhaps I missed some configuration tasks, which I don't know so far?
    I'm looking forward to your answers.
    Greetings
    Joerg

    Hi David,
    thank you for your reply. The corresponding user has already got this host setting. Anyway he got the wildcard '%' and with other tools I can connect.
    I solved the problem now due to just trying around with usernames. The error was quite funny: OWB changes the username always into upper case and MySQL cannot handle this username. The username must match 100% to be able to login.
    Now I just changed the user in MySQL and wrote the username in upper case. But in fact I would like to know if it is possible to avoid that OWB changes the username, with quotes it didn't work ;-)
    Greetings
    Joerg
    UPDATE:
    Now I'm facing another problem: the connection works, but I cannot import any metadata. When I click on "Browse" to select the correct schema in MySQL DB, no result is displayed. The user anyway has go the privileges to select data from this schema. I also tried to provide the user with every possible privileges for this schema, but I still cannot select any schema. When I write the schema manually and then try to import database objects iin OWB the error message "definitions of userdefined metadata interface are invalid" is displayed (translated from german, so the wording could be different). Does anybody have an idea what the problem could be?
    Edited by: Scantid on 15.01.2010 00:41

  • Drag and drop operation resulted in files gone missing

    I would really appreciate some help as I have lost about 80 files. Here's what happened: I had a big folder of several hundred files and I was moving those files– photographs – into subfolders.I selected the photo in bridge and then used a drag and drop method to move it. It all went well except in two instances. One group of photos I dragged it to the wrong folder but when I searched I found them. Another group has gone missing. I have searched the whole computer for names of some of the photos in the missing group.it is as if they vanished into thin air. What could have possibly happened?
    Thanks in advance!

    I selected the photo in bridge and then used a drag and drop method to move it. It all went well except in two instances.
    I always use the drag and drop method and if it goes wrong I usually are to fast and don't wait for Bridge to have completed or I did not point to the correct folder.
    Without knowing what system you are on and what version of bridge you are using I agree with Curt that the files must be somewhere on your system (also check the Bin) and you better use a dedicated system search for it.
    And what is "group.it"? If I do a google search it stops without result and group.it also has not understandable  or related results?

  • IPhone Application - MySQL Connection

    Hello!
    I have been searching for the past week for a way to connect to a MySQL database from xCode.
    My goal is to develop a simple iPhone Application that connects to a MySQL DB and performs CRUD operations (Create, Replace, Update, Delete).
    It would be great if some of you can direct me to the proper documentation, or if this is actually impossible for the moment, I would like to know what would be the most suitable solution for an application that interacts with a server with PHP and MySQL.
    Thanks in advance,
    HT

    Ok... Firstly, I would like to thank you for the prompt answer.
    Let me know if I understood properly, please!
    So, I am unable to connect directly to the MySQL database on my server from the iPhone application, but I can send messages/variables through POST (and my PHP server does it all - MySQL connection and parsing of the $_POST() array).
    You are suggesting that every edit/update/replace... task should be sent through our very common two methods -> GET and POST.
    Easy as it may seem, it is still unsafe. One can sniff the packages, and catch the data I transfer. And, besides, I might overload the server with this transmitted data and other operations back and forth.
    At first, I was thinking of a much more efficient approach of the problem, and I was actually looking for something like a "MySQL Connect CONTROLLER", very similar to the well known PHP function/method mysqlconnect(server_variable,passwordvariable, ... ).
    I am looking forward for your reply,
    Thank you!
    HT
    Message was edited by: horatiu.taina

  • MySQL Error 2002 when attempting to make a MySQL Connection

    I'm trying to make a MySQL Connection and I've got my Staging/Testing Server setup as FTP with the proper host, username and password for FTP, root directory set to '/' (without the quotation marks) and Web URL set to http://www.mysite.com/
    Tested the FTP and it connects.
    For mySQL connection in my bindings, I'm using:
    Connection Name; connRecords
    MySQL Server: localhost
    Username and then my Password for my DB which obviously I won't list here.
    I click Select Database and that's when I get the prompt:
    MySQL Error: #2002
    Can't connect to local MySQL Server through socket '/tmp/mysql.sock' (2)
    What does that mean and how do I get this to work?

    ladobeugm wrote:
    I click Select Database and that's when I get the prompt:
    MySQL Error: #2002
    Can't connect to local MySQL Server through socket '/tmp/mysql.sock' (2)
    What does that mean and how do I get this to work?
    On a Mac, connection to MySQL is done through a socket (mysql.sock). The fact that there's a (2) after mysql.sock indicates there's something wrong with the socket. Usually, you can clear the problem by powering down your computer and then restarting. Don't just do a restart. Make sure the computer switches off completely to clear the socket.

  • PHP and MySQL Connection problem

    I am trying to make a PHP MySQL on a remote server connection in Dreamwesaver CS3.
    When I enter the information (host, user, password, etc.) and hit TEST, I get the following error message.
    "Access Denied. The file may not exist, or there could be a permission problem. Make sure you have proper authorization on the server and the server is properly configured."
    I know the user, password, etc. work, as I can access the MySQL database with other software.
    I checked with my host and they say there are no permission problems on their end.
    I have checked the settings on the Test Server page in Site Setup and everything looks correct and works there.
    I have not seen this particular problem described in other forum postings (although there are a LOT of postings on this topic!).
    Any help would be appreciated.

    I thought my testing server was the remote server and is always on as far as I know. I don't know how to turn it on or off.
    Is there some other testing server that I should be aware of?
    Frank
    Date: Wed, 3 Jun 2009 15:43:02 -0600
    From: [email protected]
    To: [email protected]
    Subject: PHP and MySQL Connection problem
    I know you are using remote, but is your testing server on? if not turn that on and see if that does it. it just happened to me working on remote server and could not get mysql conn to work, until I turn on my testing (developer server), then I was able to connect to mysql and the tables that I created in phpmyadmin remotly was downloaded.
    >

  • My iphone 4S only start whit cable plug in and then show battery very low (with red line end) then try to turn on but show searching in operator name command and not connecting and no work properly and when I plug out it turn off!!! what should I do?

    My iphone 4S only start whit cable plug in and then show battery very low (with red line end) then try to turn on but show searching in operator name command and not connecting and no work properly and when I plug out it turn off!!! what should I do?

    I'm afraid you'll have to get the phone serviced, dropping the phone must have damaged additional parts inside the phone.
    But Apple will not service the phone anymore, opening the phone and replacing the battery should only be done by authorized personal, not by users.
    You'll have to look for a 3rd party repair shop and see if they can fix this, sorry.

  • Auto mySQL connectivity(Username and Password)

    Hey guys!
    Good Day!
    I have something to ask if possible to java and mySQL connectivity.
    I have project that connects to mysql but im using this:
    "+con1 = DriverManager.getConnection("jdbc:mysql://localhost/POS_Database","root", "12345");+"
    Now, how to auto config the mysql connection not setting the username and password in the project? It configure whatever the settings of mySQL (username and password).

    you will have to have the user name and password someware. If not in the code. You casn put them in a file and read it in the code.
    Another thing that you can do is to make every user account of your software a valid user in the database. So when the user logs in to software users user name and the password is what you have to use to connect to database. But that will create a bit of a administrative overhead and also it will make it deficult to use connection pooling.

  • Sessions/connections gets hang during update and select operations.

    A table with 3 million records, which has customer details data.
    Everyday application is executing select and update queries on that table.
    Sessions/connections gets hang during update and select operations.
    After checking ADDM report, following are the findings:
    Please suggest the solutions
    Findings and Recommendations
    Finding 1: Row Lock Waits
    Impact is 145.22 active sessions, 99.77% of total activity.
    SQL statements were found waiting for row lock waits.
    Recommendation 1: Application Analysis
    Estimated benefit is 145.22 active sessions, 99.77% of total activity.
    Action
    Significant row contention was detected in the TABLE
    "AVAYA.AIRTEL_CUSTOMER_MASTER" with object ID 82155. Trace the cause of
    row contention in the application logic using the given blocked SQL.
    Related Object
    Database object with ID 82155.
    Rationale
    The SQL statement with SQL_ID "974vg65j29pmv" was blocked on row locks.
    Related Object
    SQL statement with SQL_ID 974vg65j29pmv.
    UPDATE AVAYA.AIRTEL_CUSTOMER_MASTER SET PREFERRED_LANGUAGE = :1
    WHERE ( AIRTEL_CUSTOMER_MASTER.MSISDN = :2 )
    Rationale
    The session with ID 50 and serial number 34525 in instance number 1 was
    the blocking session responsible for 100% of this recommendation's
    benefit.
    Symptoms That Led to the Finding:
    Wait class "Application" was consuming significant database time.
    Impact is 145.22 active sessions, 99.77% of total activity.
    Finding 2: Top SQL Statements
    Impact is 46.39 active sessions, 31.87% of total activity.
    SQL statements consuming significant database time were found. These
    statements offer a good opportunity for performance improvement.
    Recommendation 1: SQL Tuning
    Estimated benefit is 46.39 active sessions, 31.87% of total activity.
    Action
    Investigate the UPDATE statement with SQL_ID "974vg65j29pmv" for
    possible performance improvements. You can supplement the information
    given here with an ASH report for this SQL_ID.
    Related Object
    SQL statement with SQL_ID 974vg65j29pmv.
    UPDATE AVAYA.AIRTEL_CUSTOMER_MASTER SET PREFERRED_LANGUAGE = :1
    WHERE ( AIRTEL_CUSTOMER_MASTER.MSISDN = :2 )
    Rationale
    The SQL spent only 0% of its database time on CPU, I/O and Cluster
    waits. Therefore, the SQL Tuning Advisor is not applicable in this case.
    Look at performance data for the SQL to find potential improvements.
    Rationale
    Database time for this SQL was divided as follows: 100% for SQL
    execution, 0% for parsing, 0% for PL/SQL execution and 0% for Java
    execution.
    Rationale
    SQL statement with SQL_ID "974vg65j29pmv" was executed 212 times and had
    an average elapsed time of 2494 seconds.
    Rationale
    Waiting for event "enq: TX - row lock contention" in wait class
    "Application" accounted for 100% of the database time spent in
    processing the SQL statement with SQL_ID "974vg65j29pmv".

    **addm report **
              ADDM Report for Task 'TASK_7526'
    Analysis Period
    AWR snapshot range from 5003 to 5004.
    Time period starts at 08-JUL-13 11.00.27 AM
    Time period ends at 08-JUL-13 12.00.45 PM
    Analysis Target
    Database 'AVAYADB' with DB ID 2878789264.
    Database version 11.2.0.1.0.
    ADDM performed an analysis of instance avayadb, numbered 1 and hosted at
    NG-LA04AVAYA01.
    Activity During the Analysis Period
    Total database time was 563062 seconds.
    The average number of active sessions was 155.63.
    Summary of Findings
       Description         Active Sessions      Recommendations
                           Percent of Activity
    1  Row Lock Waits      155.44 | 99.88       1
    2  Top SQL Statements  26.67 | 17.14        1
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              Findings and Recommendations
    Finding 1: Row Lock Waits
    Impact is 155.4 active sessions, 99.88% of total activity.
    SQL statements were found waiting for row lock waits.
       Recommendation 1: Application Analysis
       Estimated benefit is 155.44 active sessions, 99.88% of total activity.
       Action
          Significant row contention was detected in the TABLE
          "AVAYA.AIRTEL_CUSTOMER_MASTER" with object ID 82155. Trace the cause of
          row contention in the application logic using the given blocked SQL.
          Related Object
             Database object with ID 82155.
       Rationale
          The SQL statement with SQL_ID "974vg65j29pmv" was blocked on row locks.
          Related Object
             SQL statement with SQL_ID 974vg65j29pmv.
             UPDATE AVAYA.AIRTEL_CUSTOMER_MASTER SET PREFERRED_LANGUAGE = :1
             WHERE  ( AIRTEL_CUSTOMER_MASTER.MSISDN = :2 )
       Rationale
          The session with ID 167 and serial number 6084 in instance number 1 was
          the blocking session responsible for 100% of this recommendation's
          benefit.
       Symptoms That Led to the Finding:
          Wait class "Application" was consuming significant database time.
          Impact is 155.45 active sessions, 99.88% of total activity.
    Finding 2: Top SQL Statements
    Impact is 26.66 active sessions, 17.14% of total activity.
    SQL statements consuming significant database time were found. These
    statements offer a good opportunity for performance improvement.
       Recommendation 1: SQL Tuning
       Estimated benefit is 26.67 active sessions, 17.14% of total activity.
       Action
          Investigate the UPDATE statement with SQL_ID "974vg65j29pmv" for
          possible performance improvements. You can supplement the information
          given here with an ASH report for this SQL_ID.
          Related Object
             SQL statement with SQL_ID 974vg65j29pmv.
             UPDATE AVAYA.AIRTEL_CUSTOMER_MASTER SET PREFERRED_LANGUAGE = :1
             WHERE  ( AIRTEL_CUSTOMER_MASTER.MSISDN = :2 )
       Rationale
          The SQL spent only 0% of its database time on CPU, I/O and Cluster
          waits. Therefore, the SQL Tuning Advisor is not applicable in this case.
          Look at performance data for the SQL to find potential improvements.
       Rationale
          Database time for this SQL was divided as follows: 100% for SQL
          execution, 0% for parsing, 0% for PL/SQL execution and 0% for Java
          execution.
       Rationale
          SQL statement with SQL_ID "974vg65j29pmv" was executed 707 times and had
          an average elapsed time of 794 seconds.
       Rationale
          Waiting for event "enq: TX - row lock contention" in wait class
          "Application" accounted for 100% of the database time spent in
          processing the SQL statement with SQL_ID "974vg65j29pmv".
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              Additional Information
    Miscellaneous Information
    Wait class "Commit" was not consuming significant database time.
    Wait class "Concurrency" was not consuming significant database time.
    Wait class "Configuration" was not consuming significant database time.
    Wait class "Network" was not consuming significant database time.
    Wait class "User I/O" was not consuming significant database time.
    Session connect and disconnect calls were not consuming significant database
    time.
    Hard parsing of SQL statements was not consuming significant database time.

  • Weblogic8.1 and mysql connection failure, please help

    Pardon me for repeating this topic. I have spent 2 days on this but still ended
    up with failure.
    The similar configuration works very well under wls7.0.
    It should not be a problem of jdbc driver or its classpath setting, since the
    system console say "successful..."
    But when I try to access jsp and servlets, it always throws execeptions. All projects
    run successfully under wls7.0 don't work.
    Please give me some advice, thanks in advance.
    The following is my connection pool setting found in config.xml:
    <JDBCConnectionPool DriverName="com.mysql.jdbc.Driver"
    Name="MySQLConnectionPool" Password="{3DES}aMsyd4ZSbSg="
    Properties="user=root" Targets="cgServer" URL="jdbc:mysql://localhost/userdb"/>
    <JDBCTxDataSource EnableTwoPhaseCommit="true"
    JNDIName="MySQLDataSource" Name="MySQLDataSource"
    PoolName="MySQLConnectionPool" Targets="cgServer"/>
    The screen shot of the exceptions is as below:
    <2003-8-21 ÏÂÎç17ʱ14·Ö08Ãë EST> <Notice> <WebLogicServer> <BEA-000355> <Thread
    "ListenThread.Default" listening on port 7001, ip address *.*>
    java.lang.NoClassDefFoundError: weblogic/jdbc/wrapper/PoolConnection
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
    3)
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic
    ClassLoader.java:476)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClass
    Loader.java:181)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
    Loader.java:223)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:217)
    at weblogic.utils.classfile.utils.CodeGenerator.generateClass(CodeGenera
    tor.java:71)
    at weblogic.utils.wrapper.WrapperFactory.generateWrapperClass(WrapperFac
    tory.java:331)
    at weblogic.utils.wrapper.WrapperFactory.getWrapperClass(WrapperFactory.
    java:167)
    at weblogic.jdbc.wrapper.JDBCWrapperFactory.getWrapper(JDBCWrapperFactor
    y.java:66)
    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(RmiDataSour
    ce.java:298)
    at jsp_servlet.__testmysql._jspService(__testmysql.java:129)
    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(ServletStubIm
    pl.java:387)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:431)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:305)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:6310)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:3622)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2569)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    <2003-8-21 ÏÂÎç17ʱ14·Ö42Ãë EST> <Error> <HTTP> <BEA-101017> <[ServletContext(id
    =2960804,name=forum,context-path=/forum)] Root cause of ServletException.
    java.sql.SQLException: Cannot obtain connection: driverURL = jdbc:weblogic:pool:
    MySQLConnectionPool, props = {enableTwoPhaseCommit=false, jdbcTxDataSource=true,
    connectionPoolID=MySQLConnectionPool, dataSourceName=MySQLDataSource}.
    Nested Exception: java.lang.RuntimeException: Failed to Generate Wrapper Class
    at weblogic.utils.wrapper.WrapperFactory.createWrapper(WrapperFactory.ja
    va:141)
    at weblogic.jdbc.wrapper.JDBCWrapperFactory.getWrapper(JDBCWrapperFactor
    y.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(RmiDataSour
    ce.java:298)
    at jsp_servlet.__testmysql._jspService(__testmysql.java:129)
    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(ServletStubIm
    pl.java:387)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:431)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:305)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:6310)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:3622)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.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(RmiDataSour
    ce.java:298)
    at jsp_servlet.__testmysql._jspService(__testmysql.java:129)
    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(ServletStubIm
    pl.java:387)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:431)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:305)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:6310)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:3622)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2569)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    >

    1. This assumes that you have downloaded the mysql database and configured it and started
    it by running mysqld. In my case, I installed it in d:/mysql.
    2. It also assumes that you have configured a user on the database.
    I configured a user "test" with password "test" on the database "mysql" on "localhost" using
    mysql --user=root mysql
    grant all privileges on *.* to test@localhost identified by 'test' with grant option;
    3. It assumes that you have downloaded the Connector/J zip file and pulled out the jar file.
    In my case, I renamed it and copied it to d:/mysql/lib/jdbc.jar.
    4. It is absolutely necessary that you put the jar file in your server classpath. It won't
    work without doing that. Then I booted the server.
    5. I used the WLS 8.1 console to configure the connection pool and associated data source.
    In my case, they look like the following:
    <JDBCConnectionPool DriverName="org.gjt.mm.mysql.Driver"
    Name="mysql" Password="test"
    Properties="user=test"
    Targets="myserver"
    TestTableName="SQL SELECT 1"
    URL="jdbc:mysql://localhost:3306/mysql"/>
    <JDBCTxDataSource
    JNDIName="myDataSource"
    Name="myDataSource"
    PoolName="mysql"
    Targets="myserver"/>
    Note that the console uses the old class name for the driver. There is a new class name but
    the old name still exists and we figured it would cover folks using the old and new classes.
    6. I'll attach a client program that looks up the datasource associated with the connection pool,
    gets a connection, and does some stuff with the connection.
    The user/password combination must have security priviledges in WLS to reserve a connection
    on the pool.
    The code for this program is taken almost entirely from the WLS JDBC documentation.
    This is all pretty standard stuff.
    "Roland" <[email protected]> wrote in message news:[email protected]...
    >
    Pardon me for repeating this topic. I have spent 2 days on this but still ended
    up with failure.
    The similar configuration works very well under wls7.0.
    It should not be a problem of jdbc driver or its classpath setting, since the
    system console say "successful..."
    But when I try to access jsp and servlets, it always throws execeptions. All projects
    run successfully under wls7.0 don't work.
    Please give me some advice, thanks in advance.
    The following is my connection pool setting found in config.xml:
    <JDBCConnectionPool DriverName="com.mysql.jdbc.Driver"
    Name="MySQLConnectionPool" Password="{3DES}aMsyd4ZSbSg="
    Properties="user=root" Targets="cgServer" URL="jdbc:mysql://localhost/userdb"/>
    <JDBCTxDataSource EnableTwoPhaseCommit="true"
    JNDIName="MySQLDataSource" Name="MySQLDataSource"
    PoolName="MySQLConnectionPool" Targets="cgServer"/>
    The screen shot of the exceptions is as below:
    <2003-8-21 ÏÂÎç17ʱ14·Ö08Ãë EST> <Notice> <WebLogicServer> <BEA-000355> <Thread
    "ListenThread.Default" listening on port 7001, ip address *.*>
    java.lang.NoClassDefFoundError: weblogic/jdbc/wrapper/PoolConnection
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
    3)
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic
    ClassLoader.java:476)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClass
    Loader.java:181)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
    Loader.java:223)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:217)
    at weblogic.utils.classfile.utils.CodeGenerator.generateClass(CodeGenera
    tor.java:71)
    at weblogic.utils.wrapper.WrapperFactory.generateWrapperClass(WrapperFac
    tory.java:331)
    at weblogic.utils.wrapper.WrapperFactory.getWrapperClass(WrapperFactory.
    java:167)
    at weblogic.jdbc.wrapper.JDBCWrapperFactory.getWrapper(JDBCWrapperFactor
    y.java:66)
    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(RmiDataSour
    ce.java:298)
    at jsp_servlet.__testmysql._jspService(__testmysql.java:129)
    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(ServletStubIm
    pl.java:387)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:431)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:305)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:6310)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:3622)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2569)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    <2003-8-21 ÏÂÎç17ʱ14·Ö42Ãë EST> <Error> <HTTP> <BEA-101017> <[ServletContext(id
    =2960804,name=forum,context-path=/forum)] Root cause of ServletException.
    java.sql.SQLException: Cannot obtain connection: driverURL = jdbc:weblogic:pool:
    MySQLConnectionPool, props = {enableTwoPhaseCommit=false, jdbcTxDataSource=true,
    connectionPoolID=MySQLConnectionPool, dataSourceName=MySQLDataSource}.
    Nested Exception: java.lang.RuntimeException: Failed to Generate Wrapper Class
    at weblogic.utils.wrapper.WrapperFactory.createWrapper(WrapperFactory.ja
    va:141)
    at weblogic.jdbc.wrapper.JDBCWrapperFactory.getWrapper(JDBCWrapperFactor
    y.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(RmiDataSour
    ce.java:298)
    at jsp_servlet.__testmysql._jspService(__testmysql.java:129)
    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(ServletStubIm
    pl.java:387)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:431)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:305)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:6310)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:3622)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.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(RmiDataSour
    ce.java:298)
    at jsp_servlet.__testmysql._jspService(__testmysql.java:129)
    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(ServletStubIm
    pl.java:387)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:431)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:305)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:6310)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:3622)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2569)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    >[mysql.java]

Maybe you are looking for

  • No Video With Google Talk on Droid 3

    Just got my wife the new Droid 3 that's running Android 2.3.4. This is the version of Android that is supposed to support video with Google Talk. Tried starting Talk and only thing I can do is messaging with Talk. No video option like on my Thrive ta

  • What is the FCCID on Toshiba Encore mini WT7-C16

    as title... I can't find it on manual...

  • Link for text page on Flash site

    How do I create a text page for my Flash site to enable "crawlers" to find it? Because my site is all Flash (ctmgroupinc.com) web browsers can't find it. I was told a text page can be created and linked to the site. This will allow crawlers to find t

  • Ipad 4 black screen won't boot itunes does recognize and tried to restore

    A friend of mine brought me an ipad that she was given. The owner didn't know what happened and just went and bought another one. Must be nice! Anyway, my friend wants to get this fixed and brought it to me because she is no kind of geek. I'm running

  • How do I keep the dock on my main monitor?

    Hi, I'm running OS X 10.9 on my MacBook Pro which is connected to a larger Multisync LCD monitor 90% of the time. I like to have the monitors set up so the larger one is the main one that has the menu bar and dock. When I upgraded to Maveric I cannot