Database Connection fails on some computers

Hi.
We've got some problems with .net application and CR viewer.
We use Visual Studio 2005 and CR XI
Connection is established with the same parameters as the application is connecting with the database:
Private Sub ConfigureCrystalReports()
        Dim crConnectionInfo As ConnectionInfo
        Dim crDatabase As Database
        Dim crTables As Tables, crTable As Table
        Dim crLogOnInfo As TableLogOnInfo
        Dim crSections As Sections, crSection As Section
        Dim crReportObjects As ReportObjects, crReportObject As ReportObject
        Dim crSubreportObject As SubreportObject, crSubreport As ReportDocument
        Using cnn1 As New SqlClient.SqlConnection(ConString)
            crConnectionInfo = New ConnectionInfo
            With crConnectionInfo
                .ServerName = cnn1.DataSource
                .DatabaseName = cnn1.Database
                .UserID = "juhi"
                .Password = "********"
            End With
        End Using
        crDatabase = crreport.Database
        crTables = crDatabase.Tables
        For Each crTable In crTables
            crLogOnInfo = crTable.LogOnInfo
            crLogOnInfo.ConnectionInfo = crConnectionInfo
            crTable.ApplyLogOnInfo(crLogOnInfo)
        Next
        crSections = crreport.ReportDefinition.Sections
        For Each crSection In crSections
            crReportObjects = crSection.ReportObjects
            For Each crReportObject In crReportObjects
                If crReportObject.Kind = ReportObjectKind.SubreportObject Then
                    crSubreportObject = CType(crReportObject, SubreportObject)
                    crSubreport = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
                    crDatabase = crSubreport.Database
                    crTables = crDatabase.Tables
                    For Each crTable In crTables
                        crLogOnInfo = crTable.LogOnInfo
                        crLogOnInfo.ConnectionInfo = crConnectionInfo
                        crTable.ApplyLogOnInfo(crLogOnInfo)
                    Next
                End If
            Next
        Next
        CrystalReportViewer1.ReportSource = crreport
    End Sub
On the Clients we have installed CRRedist2005_x86.msi
On some Clients it works perfectly ... on others there is no connection established and after minutes (felt like hours) a login msgbox appears ... with all logon info but the password. But even typing in the correct pw will not establish the connection.

OK. here is your issue:
1) You are using CR XI release 1 Professional to develop an .NET app
2) You are using CR XI release 1 in .NET 2005
CR XI release 1 Professional is not licensed for development and using it as such is breaking the license agreement. As a matter of fact, CR XI Pro does not even install the CR assemblies for .NET(!). The only way you were able to develop is that you downloaded the runtime files as a separate msm download and installed that on the dev computer - not supported - against licenses.
The most likely reason your keycode will not work with CR XI release 1 is that you are now installing the Developer version and you only have the Pro version keycode.
For you to proceed, you will have to uninstall CR XI Pro release 1. Uninstall and CR XI release 2. Clean up your registry. Obtain a valid install of CR XI release 2 Developer. Install that. Update your CR assembly references in .NET. The use the correct runtime for CR XI R2 to distribute your application.
Ludek

Similar Messages

  • Creating new Data Source Error - Database connection Failed

    Successfully installed and configured 11.1.1.3.0. Planning and Essbase dev.
    Went to Workspace > Administer > Classing Planning Administration > Manage Data Sources > Create Data Source.
    Entered all info about the application database , etc. Getting error "The database connection failed" (I was able to connect with no problem during the install)
    SQL server 2005 is on the same physical server.
    The diagnostic tool shows database connection passed for planning. A new database was created for the new application.
    The server event viewer shows these errors.
    "Login failed for user 'xxx-hyperion'. The user is not associated with a trusted SQL Server connection."
    Group Policy Error "The client-side extension could not apply computer policy settings for 'Default Domain Policy {xxx}' because it failed with error code '0x80070003 The system cannot find the path specified.' See trace file for more details. "
    The Group Policy client-side extension Group Policy Services failed to execute. Please look for any errors reported earlier by that extension.
    Any help is appreciated.

    Datasource for the application.
    I have created a sql db for this planning application (my datasource). See my first message for more details.
    When you create a new planning application, you need to associate it with a data source. Since this is a new install, I don't have any data sources available yet.
    So, "To create, edit or delete data sources, click Manage Data Source."
    This page lets you validate your connection to the database and essbase server. My essbase server connection validates! The database connection does not validate after I enter all the relevant information.
    SCREEN INFO BELOW
    Fields displayed with an asterisk (*) are mandatory.
    Data Source Name *:
    Data Source Description:
    Select Database Platform
    Microsoft SQL Server
    Application Database
    Server * :
    Port * :
    Database *:
    User *:
    Password *:
    Click "Validate Database Connection"
    ERROR ---> Database connection failed.
    So it does not let me create a data source for my new planning application, so I cannot create a new planning application.
    Thanks in advance.

  • JDBC Adapter - Established database connection failed

    Hi Guys,
    we have installed the JDBC Adapter based on the How To Guide and we checked after the installation the  Libaries :Cluster --> Server --> Libraries --> com.sap.aii.af.jmsproviderlib and the box Box "JARs Contained" was filled.
    So in my point of view we have done everything right during the installation.
    Now the developer tested theJDBC Adapter and he comes back with following Error:
    Attempt to establish database connection failed with SQL error com.sap.aii.adapter.jdbc.sql.DriverManagementException: Cannot establish connection to URL "jdbc:microsoft:sqlserver://xxx.x.xx.xxx:1433; databaseName=CZZ03;":ClassNot FoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver
    Do you have any ideas?
    Regards
    Markus

    Hello Markus,
    To install JDBC driver follow the how to guide.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-how-to-guides/how%20to%20install%20and%20configure%20external%20drivers%20for%20jdbc%20and%20jms%20adapters.pdf
    Configuration of JDBC Adapter for SQL Server
    JDBC Driver = com.microsoft.jdbc.sqlserver.SQLServerDriver
    Connection = jdbc:microsoft:sqlserver://hostname:<port>;DatabaseName=<DBName>
    UserID and Password.
    If the connection is not working find the correct port number.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40b92770-db81-2a10-8e91-f747188d8033
    JDBC- X I -  R/3 Scenario
    /people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
    Thanks,
    Satya Kumar
    Reward Points If it is Useful..

  • New database connection failed with oepe

    Hi everybody,
    @http://docs.oracle.com/cd/E27086_02/help/oracle.eclipse.tools.common.doc/html/install.html#install_oepe
    Oracle Enterprise Pack for Eclipse Installation Guide says:
    "You can install OEPE using any of the following ways:
    Download, and then unzip OEPE plugins directly into the Eclipse dropins folder and restart Eclipse."
    This is what I have done,
    then when I create a new database connection, and I press the button "test connection" i got a pop up saying "Ping failed" giving details:
    java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.net.FactoryURLClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at oracle.eclipse.tools.database.connectivity.db.OracleJDBCConnection.createConn(OracleJDBCConnection.java:198)
         at oracle.eclipse.tools.database.connectivity.db.OracleJDBCConnection.createConnection(OracleJDBCConnection.java:149)
         at org.eclipse.datatools.connectivity.DriverConnectionBase.internalCreateConnection(DriverConnectionBase.java:105)
         at org.eclipse.datatools.connectivity.DriverConnectionBase.open(DriverConnectionBase.java:54)
         at org.eclipse.datatools.connectivity.drivers.jdbc.JDBCConnection.open(JDBCConnection.java:73)
         at oracle.eclipse.tools.database.connectivity.db.OracleJDBCConnectionFactory.createConnection(OracleJDBCConnectionFactory.java:26)
         at org.eclipse.datatools.connectivity.internal.ConnectionFactoryProvider.createConnection(ConnectionFactoryProvider.java:83)
         at org.eclipse.datatools.connectivity.internal.ConnectionProfile.createConnection(ConnectionProfile.java:359)
         at org.eclipse.datatools.connectivity.ui.PingJob.createTestConnection(PingJob.java:76)
         at org.eclipse.datatools.connectivity.ui.PingJob.run(PingJob.java:59)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    Did I miss something?

    The documentation is out of date. The unzip to dropins method is no longer supported. The OEPE zip you downloaded is actually an archived repository. You can follow the instruction for installing using Eclipse Update Manager and point to the downloaded zip instead of the online repository.
    I will follow up to get the docs updated.
    - Konstantin

  • Installing 11.1.2. DB: Database Connectivity FAILED

    I am doing a install on windows 2008 R2
    Oracle EPM System Diagnostics
    FAILED     DB: Database Connectivity     Checking connection to database jdbc:weblogic:sqlserver://CLBIDBDV.corp.rfpco.com:1433;databaseName=BIMeta;loadLibraryPath=C:\Oracle\Middleware\wlserver_10.3\server\lib
    Error: java.sql.SQLInvalidAuthorizationSpecException: [FMWGEN][SQLServer JDBC Driver][SQLServer]Login failed for user 'BIESSBASE'.
    Recommended Action: **PlaceHolder-do-not-translate**
    Please advise !!!

    Have you tried to log in to the SQL database directly via (e.g.) SQL Server Management Studio or any other appropriate tool using the same credentials as you configured with?

  • Installation problem with NW'04 SR1: database connection failed

    Hi all,
    while installing NW '04 SR1 on Windows Server 2003 SP1 and MS SQL Server 2000 SP4 I ran into an error related to the database connection. While performing the step "Load Java Database content" SAPinst crashes with the message
    com.sap.sql.log.OpenSQLException: Could not load class com.ddtek.jdbc.sqlserver.SQLServerDriver.
    The connection to the SLQ Server with e.g. the Query Analyzer is OK. I had a problem with this installation setup before (have a look at the corresponding <a href="https://forums.sdn.sap.com/thread.jspa?threadID=338638&tstart=0">thread</a> ), the JDBC drivers where missing on the installation master but after copying them in the right direction the installation went on with no problem up to this point...
    Has anybody an idea what could have happened here? Is this maybe a problem connected to the one I recently had
    Below I attached the sapinst.log and jload.log with more detailed messages.
    sapinst.log ###########
    INFO 2007-03-12 22:06:24
    Working directory changed to C:\PROGRA1\SAPINS1\NW04SR1\WEBAS_~1\ONE_HOST.
    INFO 2007-03-12 22:06:24
    Output of D:\Java/bin/java.exe '-classpath' './sharedlib/antlr.jar;./sharedlib/exception.jar;./sharedlib/jddi.jar;./sharedlib/jload.jar;./sharedlib/logging.jar;./sharedlib/offlineconfiguration.jar;./sharedlib/opensqlsta.jar;./sharedlib/tc_sec_secstorefs.jar;D:\usr\sap/WPT/JC10/j2ee\jdbc\base.jar;D:\usr\sap/WPT/JC10/j2ee\jdbc\util.jar;D:\usr\sap/WPT/JC10/j2ee\jdbc\sqlserver.jar;D:\usr\sap/WPT/JC10/j2ee\jdbc\spy.jar;D:/usr/sap/WPT/SYS/global/security/lib/tools/iaik_jce_export.jar;D:/usr/sap/WPT/SYS/global/security/lib/tools/iaik_jsse.jar;D:/usr/sap/WPT/SYS/global/security/lib/tools/iaik_smime.jar;D:/usr/sap/WPT/SYS/global/security/lib/tools/iaik_ssl.jar;D:/usr/sap/WPT/SYS/global/security/lib/tools/w3c_http.jar' '-showversion' '-Xmx512m' 'com.sap.inst.jload.Jload' '-sec' 'WPT,jdbc/pool/WPT,D:\usr\sap\WPT\SYS\global/security/data/SecStore.properties,D:\usr\sap\WPT\SYS\global/security/data/SecStore.key' '-dataDir' 'S:/D51030724\J2EE_OSINDEP\J2EE-ENG/JDMP' '-job' 'C:\PROGRA1\SAPINS1\NW04SR1\WEBAS_1\ONE_HOST/IMPORT.XML' '-log' 'C:\PROGRA1\SAPINS1\NW04SR1\WEBAS_1\ONE_HOST/jload.log' is written to the logfile C:\PROGRA1\SAPINS1\NW04SR1\WEBAS_~1\ONE_HOST/jload.java.log.
    WARNING 2007-03-12 22:06:26
    Execution of the command "D:\Java/bin/java.exe '-classpath' './sharedlib/antlr.jar;./sharedlib/exception.jar;./sharedlib/jddi.jar;./sharedlib/jload.jar;./sharedlib/logging.jar;./sharedlib/offlineconfiguration.jar;./sharedlib/opensqlsta.jar;./sharedlib/tc_sec_secstorefs.jar;D:\usr\sap/WPT/JC10/j2ee\jdbc\base.jar;D:\usr\sap/WPT/JC10/j2ee\jdbc\util.jar;D:\usr\sap/WPT/JC10/j2ee\jdbc\sqlserver.jar;D:\usr\sap/WPT/JC10/j2ee\jdbc\spy.jar;D:/usr/sap/WPT/SYS/global/security/lib/tools/iaik_jce_export.jar;D:/usr/sap/WPT/SYS/global/security/lib/tools/iaik_jsse.jar;D:/usr/sap/WPT/SYS/global/security/lib/tools/iaik_smime.jar;D:/usr/sap/WPT/SYS/global/security/lib/tools/iaik_ssl.jar;D:/usr/sap/WPT/SYS/global/security/lib/tools/w3c_http.jar' '-showversion' '-Xmx512m' 'com.sap.inst.jload.Jload' '-sec' 'WPT,jdbc/pool/WPT,D:\usr\sap\WPT\SYS\global/security/data/SecStore.properties,D:\usr\sap\WPT\SYS\global/security/data/SecStore.key' '-dataDir' 'S:/D51030724\J2EE_OSINDEP\J2EE-ENG/JDMP' '-job' 'C:\PROGRA1\SAPINS1\NW04SR1\WEBAS_1\ONE_HOST/IMPORT.XML' '-log' 'C:\PROGRA1\SAPINS1\NW04SR1\WEBAS_1\ONE_HOST/jload.log'" finished with return code 1. Output:
    java version "1.4.2_13"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_13-b06)
    Java HotSpot(TM) Client VM (build 1.4.2_13-b06, mixed mode)
    12.03.2007 22:06:25 com.sap.inst.jload.Jload main
    INFO: Jload -sec WPT,jdbc/pool/WPT,D:\usr\sap\WPT\SYS\global/security/data/SecStore.properties,D:\usr\sap\WPT\SYS\global/security/data/SecStore.key -dataDir S:/D51030724\J2EE_OSINDEP\J2EE-ENG/JDMP -job C:\PROGRA1\SAPINS1\NW04SR1\WEBAS_1\ONE_HOST/IMPORT.XML -log C:\PROGRA1\SAPINS1\NW04SR1\WEBAS_1\ONE_HOST/jload.log
    12.03.2007 22:06:26 com.sap.inst.jload.Jload main
    SCHWERWIEGEND: couldn't connect to DB
    com.sap.sql.log.OpenSQLException: Could not load class com.ddtek.jdbc.sqlserver.SQLServerDriver.
    ERROR 2007-03-12 22:06:26
    CJS-20065  Execution of JLoad tool 'D:\Java/bin/java.exe '-classpath' './sharedlib/antlr.jar;./sharedlib/exception.jar;./sharedlib/jddi.jar;./sharedlib/jload.jar;./sharedlib/logging.jar;./sharedlib/offlineconfiguration.jar;./sharedlib/opensqlsta.jar;./sharedlib/tc_sec_secstorefs.jar;D:\usr\sap/WPT/JC10/j2ee\jdbc\base.jar;D:\usr\sap/WPT/JC10/j2ee\jdbc\util.jar;D:\usr\sap/WPT/JC10/j2ee\jdbc\sqlserver.jar;D:\usr\sap/WPT/JC10/j2ee\jdbc\spy.jar;D:/usr/sap/WPT/SYS/global/security/lib/tools/iaik_jce_export.jar;D:/usr/sap/WPT/SYS/global/security/lib/tools/iaik_jsse.jar;D:/usr/sap/WPT/SYS/global/security/lib/tools/iaik_smime.jar;D:/usr/sap/WPT/SYS/global/security/lib/tools/iaik_ssl.jar;D:/usr/sap/WPT/SYS/global/security/lib/tools/w3c_http.jar' '-showversion' '-Xmx512m' 'com.sap.inst.jload.Jload' '-sec' 'WPT,jdbc/pool/WPT,D:\usr\sap\WPT\SYS\global/security/data/SecStore.properties,D:\usr\sap\WPT\SYS\global/security/data/SecStore.key' '-dataDir' 'S:/D51030724\J2EE_OSINDEP\J2EE-ENG/JDMP' '-job' 'C:\PROGRA1\SAPINS1\NW04SR1\WEBAS_1\ONE_HOST/IMPORT.XML' '-log' 'C:\PROGRA1\SAPINS1\NW04SR1\WEBAS_1\ONE_HOST/jload.log'' aborts with returncode 1. Check 'C:\PROGRA1\SAPINS1\NW04SR1\WEBAS_1\ONE_HOST/jload.log' and 'C:\PROGRA1\SAPINS1\NW04SR1\WEBAS_1\ONE_HOST/jload.java.log' for more information.
    jload.log ###########
    12.03.07 22:06 com.sap.inst.jload.Jload main
    INFO: Jload -sec WPT,jdbc/pool/WPT,D:\usr\sap\WPT\SYS\global/security/data/SecStore.properties,D:\usr\sap\WPT\SYS\global/security/data/SecStore.key -dataDir S:/D51030724\J2EE_OSINDEP\J2EE-ENG/JDMP -job C:\PROGRA1\SAPINS1\NW04SR1\WEBAS_1\ONE_HOST/IMPORT.XML -log C:\PROGRA1\SAPINS1\NW04SR1\WEBAS_1\ONE_HOST/jload.log
    12.03.07 22:06 com.sap.inst.jload.Jload main
    SEVERE: couldn't connect to DB
    com.sap.sql.log.OpenSQLException: Could not load class com.ddtek.jdbc.sqlserver.SQLServerDriver.
    Best regards,
    Bernd

    Hello Kairat,
    Please follow the below mentioned guide to install it.
    Check all the parameters to set and run pre requisite checker before starting installation.
    Keep in mind that before starting any SAP installation you should always run prerequisite checker.
    https://websmp205.sap-ag.de/instguides --> SAP Netweaver -->SAP Netweaver 7.0 -- > Installations --> EHP2
    Regards,
    Amit Barnawal

  • J2EE Struts - Database connection failed - help???:(

    Hello,
    I have built a little web application and it works without any problems. In the next step I tried to add a database connection but I have already worked on it for at least one day and I could not fix the problem with the database connection.
    I downloaded the MySQL Server 5.0 and installed it, furthermore I have downloaded the jdbc driver mysql-connector-java-3.1.11.zip and extracted it to the MySQL Server 5.0 directory. Furthermore I have added under system settings - system - etended - system variables the whole path to the driver -> C:\Programme\MySQL\MySQL Server 5.0\mysql-connector-java-3.1.11\mysql-connector-java-3.1.11-bin.jar to the CLASSPATH systemvariable.
    Then I have startet the SQL Server 5.0 with mysqld --console from the command line.
    Furthermore I have added under Project-Properties-Java Build Path - Libraries - Add External JARs in Eclipse the mysql-connector-java-3.1.11-bin.jar to my Struts WebProject.
    To test the whole thing I have added to the existing test-database from mysql a table named owner and wanted to test the database connection in the Action-class with the following statements - I quote the whole execute method of the OwnerAction class:
    public ActionForward execute(
                     ActionMapping mapping,
                     ActionForm form,
                     HttpServletRequest request,
                     HttpServletResponse response)
                     throws Exception {
                   OwnerForm ownerForm = (OwnerForm) form;
                   String greet = ownerForm.getGreet();
                   String name = ownerForm.getName();
                   request.setAttribute("name", name);
                   request.setAttribute("greet", greet);
                   String address = ownerForm.getAddress();
                   String email = ownerForm.getEmail();
                   int tel = ownerForm.getTel();
                   Connection conn = null;
                   Statement stmt = null;
                   ResultSet rs = null;
                   DriverManager.registerDriver(new org.gjt.mm.mysql.Driver());
                   conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/test","root","sa");
                   try {
                         //conn = dataSource.getConnection();
                         stmt = conn.createStatement();
                         int id = 0;
                         rs = stmt.executeQuery("select max(id) as counter from owner");
                         while(rs.next()){
                            id = rs.getInt("counter");
                         id += 1;
                         stmt.executeUpdate("insert into owner values("+id+", '"+greet+"', '"+name+"', '"+email+"', '"+address+"', "+tel+")");
                         rs.close();
                         stmt.close();
                         conn.close();
                      catch(SQLException e){
                         throw new SQLException("database error");
                      // Forward control to the specified success target
                      return (mapping.findForward("success"));
          }But when I execute the WebApplication and the Action will be called the following error message appears in the browser:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Servlet execution threw an exception
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
    root cause
    java.lang.NoClassDefFoundError: org/gjt/mm/mysql/Driver
         com.asprise.struts.action.OwnerAction.execute(OwnerAction.java:72)
         org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5 logs.
    It must depend with anything that the driver was not found but I have defined it in the CLASSPATH variable and added it to the Web-Project in eclispe.
    Has anybody an idea what I have else made wrong or have forgotten??:(:(:(
    thanks in advance
    lg
    pat

    One thing I have forgotten - I have also copied the mysql-connector-java-3.1.11-bin.jar in the WebRoot\WEB-INF\lib directory of my EasyStruts WebApplication.
    Can anything else be wrong??:(:((
    regards

  • J2EE - database connection failed...:(:(:(

    Hello,
    I have built a little web application and it works without any problems. In the next step I tried to add a database connection but I have already worked on it for at least one day and I could not fix the problem with the database connection.
    I downloaded the MySQL Server 5.0 and installed it, furthermore I have downloaded the jdbc driver mysql-connector-java-3.1.11.zip and extracted it to the MySQL Server 5.0 directory. Furthermore I have added under system settings - system - etended - system variables the whole path to the driver -> C:\Programme\MySQL\MySQL Server 5.0\mysql-connector-java-3.1.11\mysql-connector-java-3.1.11-bin.jar to the CLASSPATH systemvariable.
    Then I have startet the SQL Server 5.0 with mysqld --console from the command line.
    Furthermore I have added under Project-Properties-Java Build Path - Libraries - Add External JARs in Eclipse the mysql-connector-java-3.1.11-bin.jar to my Struts WebProject.
    To test the whole thing I have added to the existing test-database from mysql a table named owner and wanted to test the database connection in the Action-class with the following statements - I quote the whole execute method of the OwnerAction class:
    public ActionForward execute(
                     ActionMapping mapping,
                     ActionForm form,
                     HttpServletRequest request,
                     HttpServletResponse response)
                     throws Exception {
                   OwnerForm ownerForm = (OwnerForm) form;
                   String greet = ownerForm.getGreet();
                   String name = ownerForm.getName();
                   request.setAttribute("name", name);
                   request.setAttribute("greet", greet);
                   String address = ownerForm.getAddress();
                   String email = ownerForm.getEmail();
                   int tel = ownerForm.getTel();
                   Connection conn = null;
                   Statement stmt = null;
                   ResultSet rs = null;
                   DriverManager.registerDriver(new org.gjt.mm.mysql.Driver());
                   conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/test","root","sa");
                   try {
                         //conn = dataSource.getConnection();
                         stmt = conn.createStatement();
                         int id = 0;
                         rs = stmt.executeQuery("select max(id) as counter from owner");
                         while(rs.next()){
                            id = rs.getInt("counter");
                         id += 1;
                         stmt.executeUpdate("insert into owner values("+id+", '"+greet+"', '"+name+"', '"+email+"', '"+address+"', "+tel+")");
                         rs.close();
                         stmt.close();
                         conn.close();
                      catch(SQLException e){
                         throw new SQLException("database error");
                      // Forward control to the specified success target
                      return (mapping.findForward("success"));
          }But when I execute the WebApplication and the Action will be called the following error message appears in the browser:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Servlet execution threw an exception
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
    root cause
    java.lang.NoClassDefFoundError: org/gjt/mm/mysql/Driver
         com.asprise.struts.action.OwnerAction.execute(OwnerAction.java:72)
         org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5 logs.
    It must depend with anything that the driver was not found but I have defined it in the CLASSPATH variable and added it to the Web-Project in eclispe.
    Has anybody an idea what I have else made wrong or have forgotten??:(:(:(
    thanks in advance
    lg
    pat

    One thing I have forgotten - I have also copied the mysql-connector-java-3.1.11-bin.jar in the WebRoot\WEB-INF\lib directory of my EasyStruts WebApplication.
    Can anything else be wrong??:(:((
    regards

  • Database connection failed

    Dir Sirs,
    I have installed JDeleoper 9.0.5.1 with JHEADSTART 9.0.5.1 and I tried to run the oil.demo application. The database connection was tested successful. If I start the application , the is this message in the browser:
    Application Error
    Internal error occurred. Please contact your system administrator
    Click here to continue
    To continue working with the system, you must first log out and log in again.
    JBO-25200: Application module is not connected to a database
    oracle.jbo.NotConnectedException: JBO-25200: Application module is not connected to a database at oracle.jbo.server.DBTransactionImpl.checkConnected(DBTransactionImpl.java:5689) at oracle.jbo.server.DBTransactionImpl2.createPreparedStatement(DBTransactionImpl2.java:417) at oracle.jbo.server.DBTransactionImpl.createReUsePreparedStatement(DBTransactionImpl.java:4081) at oracle.jbo.server.ViewObjectImpl.getPreparedStatement(ViewObjectImpl.java:7421) at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:561) at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:521) at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3200) at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:597) at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:700) at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:638) at
    Do you know this problem?
    Thank you.
    Stefan Pukallus from Germany

    Dear Sir,
    u solve the problem?
    if u solve this problem plz send me the solution of it.
    I have installed JDeleoper 9.0.5.1 with JHEADSTART 9.0.5.1 and I tried to run the oil.demo application. The database connection was tested successful. If I start the application , the is this message in the browser:
    Application Error
    Internal error occurred. Please contact your system administrator
    Click here to continue
    To continue working with the system, you must first log out and log in again.
    JBO-25200: Application module is not connected to a database
    oracle.jbo.NotConnectedException: JBO-25200: Application module is not connected to a database at oracle.jbo.server.DBTransactionImpl.checkConnected(DBTransactionImpl.java:5689) at oracle.jbo.server.DBTransactionImpl2.createPreparedStatement(DBTransactionImpl2.java:417) at oracle.jbo.server.DBTransactionImpl.createReUsePreparedStatement(DBTransactionImpl.java:4081) at oracle.jbo.server.ViewObjectImpl.getPreparedStatement(ViewObjectImpl.java:7421) at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:561) at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:521) at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3200) at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:597) at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:700) at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:638) at
    Do you know this problem?
    Thank you.
    Jay Patel
    Message was edited by:
    user509928

  • Installed Oracle Workflow Client but database connection fails,why?

    Hi
    I have installed Oracle Workflow Client (windows) but database connection using apps user (EBS R12 database) is not establishing.Getting the following error '1300:Could not load'. How can i make succesfull connection & use it?
    Regards
    Ariz

    Hi,
    Please see these documents.
    Note: 389432.1 - 2.6.x: Access the Builder errors with 1300, 1114, 1101, 333, 332, 306 & 203: Value contains leading or trailing spaces
    Note: 747485.1 - Oracle Workflow Builder: Could not load from database Error
    Note: 179987.1 - Workflow Builder Cannot Load Objects From Applications when the NLS_LANG is Non-American
    Regards,
    Hussein

  • 64 bit SAP to 32 bit External Oracle Database connectivity failing

    Dear All,
    We are trying to connect to an external Oracle database thru DBCON method. We are able to connect to Oracle server from our IDES server which is a 32 bit server, but when we are trying to connect our development server which is a 64 bit server, the connectivity is failing.
    we copied the correct 64 bit *.lib file to the SAP server but still same result. We are getting the error message - Work Process restarted. Session terminated.
    the Oracle server we are trying to connect is 32 bit, can this create some problem ?
    kindly any one help us in this reagrd.
    thanks in advance,
    Saurabh.

    Hi Eric,
    thanks for the advice but I am a bit confused as where to execute that sqlplus command/query ?
    in the Oracle server or from SAP and what does system/password@DEV means ??
    can you elaborate on this please.
    here i would like to add that we have connected to the external Oracle server using linked server approach of MS SQL (our SAP default database) and so our connectivity is happening till SQL level i.e. I am able to connect to the Oracle and query it using OpenQuery syntax. the problem is appearing when I am trying to connect from the ABAP level.
    kindly suggest as to what can be the solution of this issue.
    thanks
    Saurabh.

  • Ping test returns "test failed" on some computers on Ethernet network

    When I test for connectivity ( 192.168.1.1 / My Network / device information / ping  test / test connectivity ) "test failed" is returned from some, but not all, computers on my wired Ethernet network. Having worked with computers for many years I have tried all fixes that I know of  without any success. Please help!!!!

    #1 What software firewall is on your comptuer(s)?
    Since you may have more than one computer, please tell me all of the software firewalls that are installed on your different computers.
    #2 What is the brand and model of your router?
    If you are the original poster (OP) and your issue is solved, please remember to click the "Solution?" button so that others can more easily find it. If anyone has been helpful to you, please show your appreciation by clicking the "Kudos" button.

  • Printer GPOs fail on some computers but work on others - error code 0x80070034

    Hello, I have a couple of GPOs that roll our printers. They have been running smoothly for quite some time, then suddenly started giving our errors on our newer machines. Meaning, the GPOs will work fine on some clients but will not work on others. Also
    all other GPOs work fine on all clients. The clients are similar Lenovo Windows 7 64-bit machines.
    This is the error: Event ID: 4098, Group Policy Printers. The computer '123.123.123.123' preference item in the 'Deploy printers - {3F6DE6D0-86DC-4D1F-AB99-81BC07F23F3C}' Group Policy object did not apply because it failed with error code '0x80070034 You
    were not connected because a duplicate name exists on the network. If joining a domain, go to System in Control Panel to change the computer name and try again. If joining a workgroup, choose another workgroup name.' This error was suppressed.
    I turned every stone I could think of on the problematic machines but cannot find out a reason. I disabled anti-virus/firewall, I logged in as domain admin and I tried both user & computer GPOs. No luck. Notice that I can successfully connect manually
    to the Printer shares (the ones used to distribute the drivers).
    Domain is Win2008 R2. The printers "live" on a Win2012 machine and the drivers come from there. I am using Group Policy Preferences. Ideas are welcome.
    Thanks
    Christos

    Hello and thanks for the suggestion. Yes the drivers are okay, all clients (working and not) run the same Win 7 x64. Let me summarize the situation:
    - The GPO runs because the printer IP ports are created
    - The Printer Shares (that distribute the drivers) are accessible because the printer is installed without any problems/warnings if I manually double click on them (the shares)
    - Security prompts for driver installs are disabled
    I also noticed the following. The error says "The computer '123.123.123.123' preference item in the Group Policy object ... etc" The IP mentioned in that error is NOT the computer/client running the GPO but the IP address of the target printer.
    So the client thinks the Printer already exists or the IP is already taken (or something of that sort).
    Here is the GPresult XML for this
    <GPO>
      <Name>Printers - deploy - user</Name>
      <Path>
        <Identifier xmlns="http://www.microsoft.com/GroupPolicy/Types">{5C21
    1010-F5E0-445C-99F3-0B8A9D9CB680}</Identifier>
        <Domain xmlns="http://www.microsoft.com/GroupPolicy/Types">mydomain.com</Domain>
      </Path>
      <VersionDirectory>34</VersionDirectory>
      <VersionSysvol>34</VersionSysvol>
      <Enabled>true</Enabled>
      <FilterId>MSFT_SomFilter.ID="{6272C5C1-9C4E-40B7-BD5A-277ED70B337D}",Domain="mydomain.com"</FilterId>
      <FilterName>Any Win Desktop OS</FilterName>
      <IsValid>true</IsValid>
      <FilterAllowed>true</FilterAllowed>
      <AccessDenied>false</AccessDenied>
      <Link>
        <SOMPath>mydomain.com/Configuration/Sites/MainOffice</SOMPath>
        <SOMOrder>3</SOMOrder>
        <AppliedOrder>1</AppliedOrder>
        <LinkOrder>4</LinkOrder>
        <Enabled>true</Enabled>
        <NoOverride>false</NoOverride>
      </Link>
    </GPO>

  • Applet - Oracle 8.0 database connectivity failing in Netscape Browser

    I have written a Java Applet to connect to the Oracle (8.0) database. My Applet is residing in a remote server. The Applet connected to the database when run in Internet Explorer, but failed to connect to the database using Netscape Navigator (4.08) and resulted in the following error
    java.lang.NullPointerException
    at oracle.jdbc.driver.OracleStatement.get_column_index(Compiled Code)
    at oracle.jdbc.driver.OracleResultSet.findColumn(Compiled Code)
    at oracle.jdbc.driver.OracleResultSet.getInt(Compiled Code)
    at EmpActivityApplet.getActivityData(Compiled Code)
    at EmpActivityApplet.paint(Compiled Code)
    at java.awt.Component.dispatchEventImpl(Compiled Code)
    at java.awt.Container.dispatchEventImpl(Compiled Code)
    * at java.awt.Component.dispatchEvent(Compiled Code)
    at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)
    at java.awt.EventDispatchThread.run(Compiled Code)
    at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled Code)
    I have zipped the my Java Applet program with the Oracle Thin Driver classes (EmpActivityApplet.zip) and coded the following HTML page to load the Applet:
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=iso-8859-1">
    <TITLE>untitled</TITLE>
    </head>
    <body>
    <applet code="EmpActivityApplet" CODEBASE="." ARCHIVE="EmpActivityApplet.zip"
    WIDTH = 1000
    HEIGHT = 300>
    </applet>
    </body>
    </html>
    Please somebody help me in resolving this problem. This is urgent.
    Please reply to [email protected]
    Regards,
    Raju.

    Hi,
    If ur Applet Needs to Access the System Resouces(JDBC API calls) u have to Make ur Applet trusted.U can Use the Keytool utility Bundled with JDK to Achecive this.The Actual Problem u may get is a Security Exception Due to which u cannot create a Connection Object which results in a Null Pointer Exception
    thankx,
    A.Md Abubacker

  • SAPLICENSE expired and database connectivity failed.

    hello,
    I am working in a system on solaris10 and Oracle 10.2.0.2 on CRM4.0, whose license is expired.
    due to which I am not able to logon to the system and showing that
    SAPLICENSE (Release 640) ERROR ***
        ERROR:   Connect to database failed
        DETAILS: DbSlConnect failed with return code 99
    SQL-ERROR 12705 (check DB manual for explanation)
    Please do the needful.
    Regards
    M Kumar

    ORA-12705 is "Cannot access NLS data files or invalid environment specified".
    - check the environment variables
    - are you calling saplicense as user <sid>adm?
    Markus

Maybe you are looking for

  • No internet in Jersey CIty, NJ

    I haven't had internet service since last night @ Morris Street, Jersey City. Anyone else experiencing this?

  • Podcasts in itunes but not showing up in ipod

    Have recently moved my music to an external drive. When I open itunes now, it shows that my podcasts are there, and I can play them in itunes, but they are not syncing into my ipod, which is blank when I navigate to the podcasts submenu in the ipod i

  • Growl & Notification Center conflict on Firefox: how do I remove growl ghost files?

    Hi everyone, I'm exeperiecing un unpleasent issue with Firefox. Not working appearing in Notification Center!!!!! - I have the latest version of Firefox, so I'm sure it's supported. - I had Growl 1.2, which is the most updated version of the "non-App

  • Which external drive for backups?

    My brand new 21.5" iMac is on its way here today, and I've been told to buy an external drive for backups. Which I think is a great idea. However, my head's starting to hurt from all the info I'm reading here on the forum about WHICH one, Firewire ca

  • Saving Data Objects in INDX-Type Database

    Hi, I am using the EXPORT statement to store data in a table into INDx table. EXPORT gt_update TO DATABASE indx(tt) ID index. And then I am using IMPORT statement to get that data. IMPORT gt_update to tb_update FROM DATABASE indx(tt) ID 'TTUPDATE'. T