BI Java JDBC connector problem

Hi friends,
      Our BW 3.5 system is working on win2003 with ms-sql db with sp10/J2EE 6.40 with SP8. When try to configure BI java jdbc driver it is giving following error in IE
java.lang.ClassFormatError: com/sap/ip/bi/sdk/trialarea/connector/servlet/TestJdbc630 (Bad magic number)
     at java.lang.ClassLoader.defineClass0(Native Method)
     at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
     at com.sap.engine.services.deploy.server.ApplicationLoader.defineClassWithInterception(ApplicationLoader.java:168)
     at com.sap.engine.services.deploy.server.ApplicationLoader.loadLocalClass(ApplicationLoader.java:140)
     at com.sap.engine.frame.core.load.ResourceLoader.loadClass(ResourceLoader.java:143)
     at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:303)
     at com.sap.engine.services.servlets_jsp.server.runtime.context.WebComponents.getServlet(WebComponents.java:306)
     at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:121)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
anybody could help me resolving this?
Thanks,
Krishna

Scott,
       Thanks for your prompt reply. I done the configuration based on doc u refered to me. But still getting the same error in browser. This is the link
https://qbiwd1:50200/tjdbc/servlet/testjdbc I am entering into the brower. Following error persisting
java.lang.classformaterror: com/sap/ip/bi/sdk/trialarea/connector/servlet/TestJdbc630 (Bad magic number)
For your information I upgraded J2EE engine from 6.30 sp3 to 6.40 sp8
Is error might be related with "TestJdbc630" file?
Your help would be greatly appreciated
Thanks,
Krishna

Similar Messages

  • JDBC connector problem

    Hi All,
    I installed SAP BW 3.5 by following Installation Seqence in the mySAP ERP 2004 SR1 master guide,
    there are two servers under Visual Administator -> Cluster -> sapsid: one is "Server 0 10_37758"(I think this is Central Instance), another is "Server 0 12_93726" (it maybe dialog instance). The first server is empty, and I can see JDBC Conncetor, Connector Container and etc.
    In the runtime tab of JDBC Connector, the Drivers only inculdes System_Driver, is it correct?
    and the status of the connector jdbc, odbo, smla and sapq in the Connector Container, Connector 1.0 display as sap.com/com.sap.ip.bi.sdk.dac.connector.sapq/null
    sap.com/com.sap.ip.bi.sdk.dac.connector.xmla/null
    sap.com/com.sap.ip.bi.sdk.dac.connector.odbo/null
    sap.com/com.sap.ip.bi.sdk.dac.connector.jdbc/null
    and they are not activity. what problem are these?
    I tried to add JDBC Driver in JDBC Connector, the problem can't be fixed, please help me.
    I install all ECC IDES 5.0 and java components and database on same host which is windows 2003 with Oracle9i

    Hi there,
    Do i have to to put mysql.connecto.jar to the
    j2dk\lib\ext? I have not copy the files maybe this is
    a problem with the connector. What do you think?Good God, no. Your code does not belong there.
    You have to add the MySQL Connector JAR to your CLASSPATH when you run. If you're running on the command line, that means using the -classpath option on java.exe. If you're using an IDE, that means adding the JAR to your CLASSPATH using the mechanism provided by the IDE. If you're using an app server, that means packaging the JAR with your app.
    %

  • Re: BI Java JDBC Connector configuration Error

    Hi friends,
    Our BW 3.5 system is working on win2003 with ms-sql db with sp10/J2EE 6.40 with SP8. We installed the MS-JDBC driver & Configurd based on standard documentation. When we use to test connection using the link
    https://qbiwd1:50200/tjdbc/servlet/testjdbc in the browser following error is presisting
    java.lang.ClassFormatError: com/sap/ip/bi/sdk/trialarea/connector/servlet/TestJdbc630 (Bad magic number)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
    at com.sap.engine.services.deploy.server.ApplicationLoader.defineClassWithInterception(ApplicationLoader.java:168)
    at com.sap.engine.services.deploy.server.ApplicationLoader.loadLocalClass(ApplicationLoader.java:140)
    at com.sap.engine.frame.core.load.ResourceLoader.loadClass(ResourceLoader.java:143)
    at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:303)
    at com.sap.engine.services.servlets_jsp.server.runtime.context.WebComponents.getServlet(WebComponents.java:306)
    at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:121)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    For your information I upgraded J2EE engine from 6.30 sp3 to 6.40 sp8
    Is error might be related with "TestJdbc630" file?
    Your help would be highly appreciated
    Thanks,
    Krishna

    Hi Mikhail,
          Thanks for prompt reply. I read the link. Your info is very helpful to solve the problem. If installation of the BI SDK is the problem, can I re-install the BI-SDK again? If not is there any solution for that?
    Your information would highly be helpful in solving the problem.
    Thanks,
    Krishna

  • Please Help me on BI Java SDK using BI JDBC Connector

    Hi, I'm new to sap BI Java SDK. I'm not getting how to get the primarykey columns, using BI JDBC Connector (for relational data sources). If anybody knows, please let me know. its very very urgent task to be done in my project. In the below following code.... I have written a code to connect to the database through resource bundle, reading table names, once user select table name, i need to show the primary key columns of that table to the user. here i'm not getting how to get the primary key columns . Please send me the code if there is any method to find out the primarykey columns or a logic to get them. I will be greatful to you.... if you can do this favour. Please check out the following code ........
    ManagedConnectionFactory mcf;
    IConnectionFactory cf;
    IConnectionSpec cs;
    mcf = new JdbcManagedConnectionFactory();
    cf = (IConnectionFactory) mcf.createConnectionFactory();
    cs = cf.getConnectionSpec();
    ResourceBundle rbLocal = ResourceBundle.getBundle( "xxxx");
    Enumeration propnames = rbLocal.getKeys();
    while (propnames.hasMoreElements())
    String key = (String) propnames.nextElement(); //out.print(key); //out.println("="rbLocal.getString(key)"");
    cs.setPropertyValue(key, rbLocal.getString(key));
    // Establishing the connection. // The IBIRelational interface provides an entrypoint to access // metadata and execute queries.
    IBIConnection connection = (IBIConnection) cf.getConnectionEx(cs);
    IBIRelational rel = connection.getRelational();
    IBIQuery query = rel.createQuery();
    String sqlStatement = "SELECT * FROM " + "BICQPERSON where type='pk'"; ResultSet rs = IBIDataSet dataset = query.execute();
    Thanks SreeKanth

    Well, I added two lines in OC4J.cmd
    set ORACLE_HOME=C:\OC4J\oc4j_extended_101350
    set JAVA_HOME=C:\JAVA\JDK7u7
    before
    set J2EE_HOME=%ORACLE_HOME%\j2ee\home
    and I restarted the windows. It looks try to run OC4J but failed, as I open services window, it shows OC4J is "stopping". When I try to run it manually, I got the same problem again. is there anything I missed? What is your OC4J, JDK and javaservice version?
    Sam

  • Problem using JDBC Connector

    Hi,
    I have problem connecting to MS SQL Server using the JDBC Connector. I have 2 main questions, one is on the DQE and the other is on user mapping.
    I have a created a JDBC System Landscape using the portal component com.sap.portal.systems.jdbc.
    Following are the properties I have set and also I have listed where I am finding propblems.
    - User Management
    User MApping Type : Admin, User
    - Connection Properties
    Connection Timeout: 1000
    Connection URL: jdbc:microsoft:sqlserver://10.7.1.5:1433;DatabaseName=SAPEP
    Driver Class Name: com.sap.portals.jdbc.sqlserver.SQLServerDriver
    (Here I do not know whihc driver to use. Do I have to use the above one or this one com.microsoft.jdbc.sqlserver.SQLServerDriver. Anyway, both of them Did not work)
    - Distributed Query Engine (DQE) (What is this, and what Parameters I need to pass here)
    Also, While doing the user mapping, we need to provide the username and password. What username and password is that? Is it the DB user name and Password?
    Any help will be well appriciated.
    Thanks and regards,
    Babu

    Hi Babu,
    Here's what's needed in the system (examples are from my system):
    CONNECTION PROPERTIES:
       -- Connection URL: jdbc:sap:sqlserver://p031617:1433;DatabaseName=pubs
       -- DRIVER CLASS NAME: com.sap.portals.jdbc.sqlserver.SQLServerDriver
       -- VALIDATE CONNECTION: yes
    USER MANAGEMENT:
       -- USER MAPPING TYPE: admin, user
    DQE: Put in admin user/password (DQE is for distributed queries between multiple, heterogeneous databases, but you still need to use it for simple queries)
    Create an alias
    Go to User Administration and set user mapping for the admin user
    Test connection
    Each user that access the system will need user mapping.
    Hope this helps.
    Daniel

  • JDBC Connector and pooling problems.  Should be ConnectionPoolDataSource ?

    Ciao all,
    I am testing the JDBC Connector by Sun.
    As you know, such JDBC connector is a JCA connector which can be used to
    wrap a JDBC Driver or a JDBC Data Source or a JDBC
    ConnectionPoolDataSource into a JCA connector.
    Such JDBC Connector exposes to the client component the usual DataSource
    interface, so that an application that was developed using a DataSource
    can be easily migrated to a JCA enabled application: the application in fact will use the JDBC connector as if it was a DataSource, without
    knowing that actually it is a JCA connector.
    Here is my problem: the JCA architecture provides a pool. Therefore, I'd like the JDBC Connector to appear to the client as a
    ConnectionPoolDataSource rather than a simple DataSource.
    In fact, I have an application that performs a JNDI lookup to retrieve a JDBC data source. Then, if the obtained data source is instance of ConnectionPoolDataSource then the applications will use the SQL Connection and will closes it to release it back to the pool.
    But if the data source is instance of DataSource, then the application
    will retrieve a SQL connection, will use it, and will keep it in its own pool in order to reuse the SQL connection for better performance.
    Now, if such application works with either a DataSource or a ConnectionPoolDataSource everything works properly, but when it works
    with the JDBC Connector it fails: the JDBC Connector in fact appears as
    a simple DataSource without pooling, so the application keeps the
    obtained SQL connections in its own pool. But actually, the JDBC
    Connector is a JCA connector which has a pool too, so the SQL connection
    is kept in two pools and as a consequence, the JDBC Connector pool invalidates or destroy the connection in its pool, and the application, which is unaware, keeps in its pool a reference to an invalid connection, which leads to a SQLException at runtime.
    So my question is: don't you think that the JDBC Connector should implement ConnectionPoolDataSource rather then DataSource, since it is a
    JCA connector that offers pool services ?
    And if so, is there a way to submit this question to someone working for Sun ?
    Thank you for your time.
    Gian Maria Romanato.

    You can send your comments and feedbacks to [email protected]

  • Can't connect to external Oracle DB with JDBC connector

    Hello guys,
    I had failed to connect to connect external Oracle  via JDBC connector .
    Could you please help me to resolve the problem ?
    Backgroud:
    We need to connect the external Oracle DB with JDBC connector, because BI need to connect to the target Oracle. If the JDBC connector suceed, BI will create a UD which use the datasource
    we create in Visual admin to connect to the external Oracle DB.
    Environment:
    Our EP version is NW04S SP17 , OS is AIX .
    The target Oracle DB version is 10g(10.1.0.2.0, 64bi).
    Configuration procedure :
    1. Import Oracle driver "ojdbc14.jar" and create new driver which named "Oracle "  under
    JDBC Connector ->Run time ->Driver  in Visual Admin.
    2. Create datasource "Mydatasource" under JDBC Connector ->Run time ->Data Source,
    Name : Mydatasource
    Driver Name : Oracle
    JDBC version: 2.0(with XA support)
    JDBC compliant:
    Object Factory :oracle.jdbc.pool.OracleDataSourceFactory
    DataSource Type: ConnectionPoolDataSource
    *CPDS class name :oracle.jdbc.pool.OracleConnectionPoolDataSource
    Additional:
    Additional Properties:
    DatabaseName:LPAR8TEST
    DriverName:oracle.jdbc.OracleDriver
    Password: *****
    PortNumber:1521
    ServerName: 10.1.16.208
    URL :jdbc:oracel:[email protected]:1521:LPAR8TEST
    User:IMPL
    Connectoin Pool:
    Initial Connectons: 1                                         Expiration:  (check)
    Maximum Connections: 25                                  Connection Lifetime :600
    Maximum time wait of connection : 60                  Cleanup Thread : 200
    Default Connectoin Isolaton :Default
    SQL Engine:
    Open SQL
    3.Create Connector :
       Copy the standard connector :SDK_JDBC to SDK_JDBC_Oracle,
      Resource Adopter:
      Loader References:
      Add "libray:Oracle" .
    Managed Connection Factory:
    Configuration Property:
    DriverName:oracle.jdbc.OracleDriver
    Password: ****
    User:IMPL
    URL: jdbc:oracle:[email protected]:1521:LPAR8TEST
    All fo my configuration had been listed.
    And I had created JCO RFC : JT-BIDEV_PORTAL_BD1 , and created RFC connection with SM59 in BI.
    Please give me some suggesiton.
    Thanks.
    Louis

    When I try to start datasoure "Mydatasource" , it display error, error detail:
    java.rmi.RemoteException: com.sap.engine.services.dbpool.exceptions.BaseRemoteException: Error during start of application "sap.com/Mydatasource". [id = StartupError]
         at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.startApplication(DataSourceManagerImpl.java:608)
    Caused by: java.rmi.RemoteException: Error occurred while starting application in whole cluster and wait.; nested exception is:
         com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Clusterwide exception: server ID 3128050:com.sap.engine.services.dbpool.exceptions.BaseDeploymentException: Cannot start DataSource "CGNPC".
         at com.sap.engine.services.dbpool.deploy.ContainerImpl.startDataSource(ContainerImpl.java:1549)
    Caused by: com.sap.engine.services.dbpool.exceptions.BaseResourceException: SQLException thrown by the physical connection: java.sql.SQLException: Invalid Oracle URL specified: OracleDataSource.makeURL
         at com.sap.engine.services.dbpool.spi.CPManagedConnectionFactoryImpl.createManagedConnection(CPManagedConnectionFactoryImpl.java:198)
    Caused by: java.sql.SQLException: Invalid Oracle URL specified: OracleDataSource.makeURL
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
    Caused by: com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Clusterwide exception: server ID 3128050:com.sap.engine.services.dbpool.exceptions.BaseDeploymentException: Cannot start DataSource "Mydatasource".
         at com.sap.engine.services.dbpool.deploy.ContainerImpl.startDataSource(ContainerImpl.java:1549)
    Caused by: com.sap.engine.services.dbpool.exceptions.BaseResourceException: SQLException thrown by the physical connection: java.sql.SQLException: Invalid Oracle URL specified: OracleDataSource.makeURL
         at com.sap.engine.services.dbpool.spi.CPManagedConnectionFactoryImpl.createManagedConnection(CPManagedConnectionFactoryImpl.java:198)
    Caused by: java.sql.SQLException: Invalid Oracle URL specified: OracleDataSource.makeURL
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
              u2026.
    When I try to test JDBC with URL : http://jt-pldev:50000/TestJDBC_Web/TestJDBCPage.jsp,
    First I choose connection name "SDK_JDBC_Oracle" .
    If I click "Check Connectons", it display :
    500   Internal Server Error
    SAP J2EE Engine/7.00
      Application error occurred during request processing.
      Details:
      java.lang.NoClassDefFoundError: com.sap.ip.bi.sdk.dac.connector.odbo.impl.Connection (initialization failure)
    Exception id: [001A64A86F2C006B000004C40010302A000469C74E86A096]
    If I click "Slecton Connection", it display:
    500   Internal Server Error
    SAP J2EE Engine/7.00
      Application error occurred during request processing.
      Details:
      com.sap.engine.frame.core.load.SAPNoClassDefFoundError: javax.resource.Referenceable
    Exception id: [001A64A86F2C0063000004C00010302A000469C74FA2BB59]

  • JDBC Connector in NetWeaver Dev Studio WebAS

    Hello,
    I am attempting to deploy a web module that utilizes a WebAS datasource for an external Oracle database. I expect to add a JDBC Connector leveraging the Oracle JDBC driver. I have been unable to deploy the Oracle datasource.
    I receive the stack trace below whenever I attempt to Start the datasource. I find many posts asking about this error but never have I found an answer as to the cause or resolution. OSS Note 751175 describes this as a classloader problem with connectors but it does not offer any repair method that works with this problem (in my case).
    I've had this problem with NetWeaver SP7 and it remains with SP10.
    Does anyone have explanation? Can I expect to test such applications in NetWeaver's standalone WebAS?
    Best regards,
    Gary
    ava.rmi.RemoteException: Error occurred while starting application in whole cluster and wait.; nested exception is:
         com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Clusterwide exception: server ID 4114150:com.sap.engine.services.dbpool.exceptions.BaseDeploymentException: Cannot create DataSource "CMR".
         at com.sap.engine.services.dbpool.deploy.ContainerImpl.startDataSources(ContainerImpl.java:1836)

    Hello Benny,
    One of my co-workers resolved the problem which boiled down to driver configuration confusion. Here's what we learned:
    No SDA component was required though this was a good exercise for us to go through.
    The driver (JAR or ZIP) file can be added simply using the Visual Administrator JDBC Connector Runtime tab.
    We were not able to activate more than one type of datasource at a time (feature, bug or something else?)
    The following configurations start okay:
    **Starts***
    Driver: Oracle's classes12.zip
    JDBC Version: 1.x
    Driver class: oracle.jdbc.driver.OracleDriver
    Database URL: jdbc:oracle:thin:@host:port:instance
    User&Password specified.
    **Starts***
    Driver: Oracle's 1.4 ojdbc14.jar
    JDBC Version: 2.0
    Driver class: oracle.jdbc.pool.OracleDataSourceFactory
    Datasource type: ConnectionPoolDataSource
    CPDS Classname: oracle.jdbc.pool.OracleConnectionPoolDataSource
    Additional properties:
    URL = jdbc:oracle:thin:@host:port:instance
    User = xxxx
    Password = yyyyy
    **Will not start but the failure is expected***
    Driver: Oracle's classes12.zip
    JDBC Version: 1.x
    Driver class: oracle.jdbc.pool.OracleConnectionPoolDataSource
    Database URL: jdbc:oracle:thin:@host:port:instance
    User&Password specified.
    We do need to run multiple datasources using Oracle and Sybase so I'm hoping the issue we encountered is simply configuration issues again.
    I appreciate your time and feedback Benny!
    Best regards,
    Gary

  • How To Store pdf or doc file in Oracle Database using Java Jdbc?

    can any one help me out How To Store pdf or doc file in Oracle Database using Java Jdbc in JSP/Serlet? i tried like anything. using blob also i tried. but i am able 2 store images in DB not files. please if u know or else if u have some code like this plz send that to me, and help me out plz. i need that urgent.

    Hi.. i am not getting error, But i am not getting the original contents from my file. i am getting all ASCII vales, instead of my original data. here i am including my code.
    for Adding PDF in DB i used image.jsp
    Database table structure (table name. pictures )
    Name Null? Type
    ID NOT NULL NUMBER(11)
    IMAGE BLOB
    <%@ page language="java" import="java.util.*,java.sql.*,java.io.*" pageEncoding="ISO-8859-1"%>
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%
    try{
         Class.forName("oracle.jdbc.driver.OracleDriver");
         Connection con=DriverManager.getConnection("jdbc:oracle:thin:@192.168.1.135:1521:orcl","scott","tiger");
         PreparedStatement ps,pstmt,psmnt;
         ps = con.prepareStatement("INSERT INTO pictures VALUES(?,?)");
    File file =
    new File("D:/info.pdf");
    FileInputStream fs = new FileInputStream(file);
    ps.setInt(1,4);
    ps.setBinaryStream(2,fs,fs.available());
    int i = ps.executeUpdate();
    if(i!=0){
    out.println("<h2>PDF inserted successfully");
    else{
    out.println("<h2>Problem in image insertion");
    catch(Exception e){
    out.println("<h2>Failed Due To "+e);
    %>
    O/P: PDF inserted successfully
    i tried to display that pdf using servlet. i am giving the code below.
    import java.io.IOException;
    import java.sql.*;
    import java.io.*;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class DispPDF extends HttpServlet {
         * The doGet method of the servlet. <br>
         * This method is called when a form has its tag value method equals to get.
         * @param request the request send by the client to the server
         * @param response the response send by the server to the client
         * @throws ServletException if an error occurred
         * @throws IOException if an error occurred
         public void service(HttpServletRequest request, HttpServletResponse response)
                   throws ServletException, IOException {
              //response.setContentType("text/html"); i commented. coz we cant use response two times.
              //PrintWriter out = response.getWriter();
              try{
                   InputStream sPdf;
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                        Connection con=DriverManager.getConnection("jdbc:oracle:thin:@192.168.1.135:1521:orcl","scott","tiger");
                        PreparedStatement ps,pstmt,psmnt;
                   psmnt = con.prepareStatement("SELECT image FROM pictures WHERE id = ?");
                        psmnt.setString(1, "4"); // here integer number '4' is image id from the table.
                   ResultSet rs = psmnt.executeQuery();
                        if(rs.next()) {
                   byte[] bytearray = new byte[1048576];
                        //out.println(bytearray);
                        int size=0;
                        sPdf = rs.getBinaryStream(1);
                        response.reset();
                        response.setContentType("application/pdf");
                        while((size=sPdf.read(bytearray))!= -1 ){
                        //out.println(size);
                        response.getOutputStream().write(bytearray,0,size);
                   catch(Exception e){
                   System.out.println("Failed Due To "+e);
                        //out.println("<h2>Failed Due To "+e);
              //out.close();
    OP
    PDF-1.4 %âãÏÓ 2 0 obj <>stream xœ+är á26S°00SIá2PÐ5´1ôÝ BÒ¸4Ü2‹ŠKüsSŠSŠS4C²€ê P”kø$V㙂GÒU×713CkW )(Ü endstream endobj 4 0 obj <>>>/MediaBox[0 0 595 842]>> endobj 1 0 obj <> endobj 3 0 obj <> endobj 5 0 obj <> endobj 6 0 obj <> endobj xref 0 7 0000000000 65535 f 0000000325 00000 n 0000000015 00000 n 0000000413 00000 n 0000000168 00000 n 0000000464 00000 n 0000000509 00000 n trailer <<01b2fa8b70ac262bfa939cc786f8770c>]/Root 5 0 R/Size 7/Info 6 0 R>> startxref 641 %%EOF
    plz help me out.

  • JDBC Connector error in Visual Admin

    Hi
    I am trying to create and DBlookup using the JDBC Connector service in visual admin
    folowing this blog
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9aedca11-0d01-0010-3b90-9ea04182875f
    when i try to create the data source name in the JDBC connectore service i am getting this following error
    java.rmi.RemoteException: Cannot deploy application com.sap/Oracle..
    Reason: Error while parsing file "E:usrsapCE6DVEBMGS00j2eeclusterserver0.     empdbpoolOracleDBLookup.xml".; nested exception is:
         com.sap.engine.services.dbpool.exceptions.BaseDeploymentException: Error while parsing file "E:usrsapCE6DVEBMGS00j2eeclusterserver0.     empdbpoolOracleDBLookup.xml".     at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:627)     at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.deploy(DataSourceManagerImpl.java:273)     ... 30 moreCaused by: com.sap.engine.services.dbpool.exceptions.BaseDeploymentException: Error while parsing file "E:usrsapCE6DVEBMGS00j2eeclusterserver0.     empdbpoolOracleDBLookup.xml".     at com.sap.engine.services.dbpool.deploy.ContainerImpl.checkDataSources(ContainerImpl.java:1700)     at com.sap.engine.services.dbpool.deploy.ContainerImpl.deploy(ContainerImpl.java:234)     at com.sap.engine.services.deploy.server.application.DeploymentTransaction.makeComponents(DeploymentTransaction.java:606)     at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:321)     at com.sap.engine.services.deploy.server.application.DeploymentTransaction.begin(DeploymentTransaction.java:307)     at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:292)     at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:326)     at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:3184)     at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:612)     ... 31 moreCaused by: com.sap.engine.services.dbpool.exceptions.BaseIllegalArgumentException: The value of tag <driver-class-name> is not specified
    I have do do DB Lookup to Oracle in 7 different tables in various steps of my intrerface most of them point to functonal error if any lookup is reterving any value...kindly suggest some simple approach for this.

    sloved.....

  • JDBC Resultset Problem with ORACLE 10.1.0.2

    Hello
    I have a problem with Petstore GenericCatalogDAO. java. The problem is the behaviour of the resultset object when retrieving data from the database.Below are two synareos one that
    works (when) hard coded and one that does not work when parameter values passed into the the result set.
    1. The code the WORKS.
    statement = connection.prepareStatement("select name from employee where a.name ='SMITH' order by name"
    ,ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
    resultSet = statement.executeQuery();
    resultSet.absolute(1);
    String s = resultSet.getString(1);
    The code that gives me a 'exhausted resultset' error which I think means no results
    String[] parameterValues = new String[] { "SMITH" };
    statement = connection.prepareStatement("select name from employee where a.name =? order by name ",
    ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
    for (int i = 0; i < parameterValues.length; i++) {
    statement.setString(i + 1, parameterValues);
    resultSet = statement.executeQuery();
    resultSet.absolute(1);
    String s = resultSet.getString(1);
    There is obviously a problem using these named parametevalues with these preparedstatement resultset, Does anybody know anything about this and a fix for it????
    Cheers. Roger

    Roger,
    It's probably a mistake you made when posting your code, but your query string is incorrect it should be either:
    select name from employee where name = 'SMITH' order by nameor
    select a.name from employee a where a.name = 'SMITH' order by a.nameIn other words you have prefixed a column with a table alias but have not indicated a table alias in the query.
    Also, shouldn't your code be:
    for (int i = 0; i < parameterValues.length; i++) {
        statement.setString(i + 1, parameterValues[ i ]);
    }Or was the "[ i ]" part giving you trouble? (Since "[ i ]" -- without the spaces -- is treated as a text-formatting tag.)
    While I didn't try your specific query, I have no problem using "PreparedStatment"s with parameters.
    What is your environment? Mine is:
    Oracle 10g (10.1.0.4) database on Linux (Red Hat)
    JDK 1.4.2
    ojdbc14.jar JDBC driver (latest version)
    Good Luck,
    Avi.

  • Portal Test Connection Failed for JDBC Connector

    Hi,
    We are trying to create a JDBC system in EP to connect SQL Server 2005 database. Our aim is to build a model in VC using data services from SQL Server 2005.
    We deployed the Driver file sqljdbc.jar  and connection was successful when tested by creating a data source  in Visual Administrator-> JDBC Connector
    We have created a system in EP with user mapping type (admin,user) and user mapping also done for system alias with the SQL Server administrator user id and password. UME is maintained in ABAP Stack. When we try for test connection with the system created in EP for JDBC connection, the system throws an error message like “Connection failed. Make sure user mapping is set correctly and all connection properties are correct“
    Test Details:
    The test consists of the following steps:
    1. Retrieve the default alias of the system
    2. Check the connection to the back end application using the connector defined in this system object
    Results
    Retrieval of default alias successful
    Connection failed. Make sure user mapping is set correctly and all connection properties are correct.
    The following are the URL and driver class name:
    URL: jdbc:sqlserver://<host_name>:1433;DatabaseName=”db_ name”
    Driver class name: com.microsoft.sqlserver.jdbc.SQLServerDriver
    Is there any other setting to be maintained in the Visual Administrator or in the Portal?
    Kindly let us know any clue to overcome this issue.
    Quick response highly appreciated.
    Regards
    Saravanan.r

    Hi Saravanan and Sathish,
    not sure how far you got with this. I had the same problem or at least a very similar one with access to MS SQL Server 2005 and solved it. I followed essentially very similar steps with a couple of minor twists:
    1) copied the sqljdbc.jar file to the storyboard server and  set the classpath environment variable to point to it.
    2) I did not create a data source, just created a new driver "SQLServer".
    3) Under Connector Container I cloned SDK_JDBC as "SDK_SSQL".
    4) The Visual Composer property vc.bi.sqlEditor Enabled should be set to true for you to be able the SQL Editor in the Data Service in VC.
    In the portal I created a system of type BI_JDBC from a template.
    The connection url and driver class were as in the thread:
    URL: jdbc:sqlserver:ipaddress:1433;DatabaseName=name
    Driver: com.microsoft.sqlserver.jdbc.SQLServerDriver
    ConnectionFActoryClass as above under 3.
    User rights: admin,user
    The user mapping to the system alias should be as described.
    This should allow you to use the data service in VC to access SQL Server tables. If access to stored procedures (sometimes quite useful) is required, this would need to utilise the p9sqlserver.jar file already on the server.
    Best Regards
    Felix Logemann

  • JDBC Connector : pool gets depleted

    Hi,
    we are currently working with SAP EP 6.0 SP2 and trying out some development work with the connector framework.
    We are writing a component which uses the CF to retrieve information from a Microsoft SQL Server 2000.
    The portal component works, we are able to retrieve the information from the DB, but after some time the request times out.
    We monitored the connections for a while both on the J2EE platform and on the backend database and came to this conclusion : apparently each request - even by the very same user looking at the very same component, just but pressing the refresh button in the browser window - creates a new connection in the pool managed by the connector framework.
    - result : the number of successful views of the components is equal to the number of Maximum Connections defined for the JDBC connector on the J2EE platform.
    In our code we are using the close() method on the IConnection interface as indicated in the documentation that comes with the PDK.
    Is this a known problem OR are we doing something wrong here ?
    We suspect that there is something wrong in the implementation of the JDBC connector, which isn't handling the close method correctly.

    In more general terms this issue raises the following questions :
    - how does the Connector framework manage the pool of JDBC connections ?
    - the fact that our component at each request (even after a refresh in the browser) causes  the CF to create a new connection, does that mean we are writing our code incorrectly so that each request is indeed considered to be a unique and in need of its own database connection ?
    We have tried to avoid as much reason as possible for the CF to generate a new connection : e.g. we have set up user mapping so that all users access the database with the same account. This should already eliminate the requirement to have a separate for each user. => in general : what are the different ways by which to control the generation of connections by the Connector Framework, for the JDBC Connector in particular ?
    - So far we are writing the code accessing the SQL server straight into a JSPDynpage. Am I wrong in thinking that this is allowed. Although we intend to write a portal service as a wrapper for all database interaction in a later stage, for the simple exercises now we are directly using the CF service API in the portal components.
    - by what algorithms does CF determine whether to take a connection from the pool or to create a new connection to the back-end system.
    - Am I wrong in thinking that connection pool management is no longer the task of the developer when using CF ?

  • Connection Properties for the BI JDBC Connector

    Hi
    I am trying to configure BW 3.5 java component. In the Connection Properties for the BI JDBC Connector, there are four required properties. (UserName, Password, URL and DRIVERNAME) What should I enter for the URL and DRIVERNAME? I am using Oracle920.
    Please help,
    JW

    I found this info at
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm
    Oracle is replacing the SID mechanism for identifying databases with a new services approach. This has been available in the database since 8.1.7. JDBC now supports services in the connect URL. 
    The basic format of a service URL is:
    jdbc:oracle:thin:[<user>/<password>]@//<host>[:<port>]/<service>
    jdbc:oracle:oci:[<user>/<password>]@//<host>[:<port>]/<service>
    Examples:
    jdbc:oracle:thin:@//myserver.com/customer_db
    jdbc:oracle:oci:scott/tiger@//myserver.com:5521/customer_db

  • Can I connect to Oracle server7.1  through Java-JDBC using the latest thin drivers???

    Hey Gurus,
    Please help me .
    MY Current requirement is to connect to multiple oracle 7.1( and other variants) servers running on different operating systems, through Java/JDBC.
    My FIrst question is, can i connect to older versions of database using latest drivers?
    I could connect to the server running on SCO-oracle 7.1 using SQLNet8.1.7 under windows. But the same is not happening when the client is on Linux.But I need to connect from linux
    It says ORA-03113 - End of communication channel.
    What may be th problem.
    If any one could show some pointers where I can get more information about this problem would be helpfull
    THanks
    Lokesh

    I tried the classpath suggestion above (not the one modifying the .xml file) , but it didnt work for me , I am using WLI 10.3.1 and trying to connect DB on 8.1.7 V . I downloaded the classes12.jar and the ojdbc14.jar file from the oracle and placed in lib and the even included the classpath , but i again got the same exception .
    All this while i was selecting the option Oracle Driver Thin from the DataBase Driver when creating the connection pool from console . I tried with "BEA Oracle Driver (Type 4)" and it worked for me .. Although the option "BEA Oracle Driver (Type 4)" lists only the DBs from 9.0.1 to 11 G , but in my case using this driver i am able to connect to Oracle DB 8.1.7 . So all you guys if it classpath doesnt fix the issue try out by selecting Driver , "BEA Oracle Driver (Type 4)" .
    Manoj , this will fix the Connection pool part of the ques, but for the java part Try to load the Driver class "weblogic.jdbc.oracle.OracleDriver" before connecting to DB with Class.forName.
    Thx
    Yatin Mehta

Maybe you are looking for