Problem in JDBC connection to database

Hi,
I m new to JDBC. I want to retrive some data from the database in my JSP page. How do i do it ??? I written a following code,
String custid = null;
String custname = null;
String custref = null;
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@<server>:1521:yoda","scott","tiger");
Statement stmt = conn.createStatement();
String strCustomer = "select customer_id from fmm_user_access where login_id = '" + username + "';";
ResultSet rset = stmt.executeQuery(strCustomer);
while (rset.next())
custid = rset.getString(1);
custref = "1."+custid;
strCustomer = "select full_name from fmm_ofin_customers where customer_ref ='"+ custref + "'";
ResultSet rset1 = stmt.executeQuery(strCustomer);
while (rset1.next())
custname = rset1.getString(1);
conn.close();
} //try
catch (Exception e) {e.getMessage();}
Are there any setup issues which i m missing, like setting some paths. Please advise.
Thanks in advance
Unmesh

Hi Unmesh,
I did not see any code in your JSP page which is printing the output of your query.
You may want to modify your JSP to display the results like this
<%@ page import="java.sql.*" %>
<HTML><BODY>
<%
strCustomer = "select full_name from fmm_ofin_customers where customer_ref ='"+ custref + "'";
ResultSet rset1 = stmt.executeQuery(strCustomer);
while (rset1.next())
custname = rset1.getString(1); %>
Customer Name is <%=custname%>
<BR>
<% }
conn.close();
........... %>
</BODY></HTML>
And you will need to ensure that the JDBC drivers( classes12.jar or ojdbc14.jar) are in your classpath.
A couple of other observations I have about your code is
1. You must explicitly close the ResultSet and Statement objects after you finish using them: rset.close();stmt.close()
2. Try using PreparedStatements for your insert statements which allows you to define bind parameters. In your case -
PreparedStatement pstmt =
conn.prepareStatement ("select customer_id from fmm_user_access where login_id = ?");
pstmt.setString (1, userName);
You can refer to JDBC samples on OTN for more information : http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/content.html
Hope this helps.
Sujatha.

Similar Messages

  • Problem with JDBC Connection for HDB hanadb 02

    Hi folks,
    Ok I have an instance based on the 7.4 SP5 HANA CAL solution.
    But when I suspend and restart the R3 system doesn't start again.
    I've followed the instructions in the user guide and can access the backend instance and see that for HDB GetProcessList everything is GREEN, running
    while for A4H GetProcessList everything is GREY, stopped
    When I try to start the A4H instance I get
    Checking HDB database
    Database is not available via R3trans
    Database must be started first
    The messages I found on SCN suggested this might be a license problem with the HANA database, so I tried to follow the install license instructions for the HANA database via the HANA studio, but when I try to open the HDB(SYSTEM) > Properties > Licence, I then get the messages
    Error while reading the licence information from system HDB hanadb 02
    Reason:
    Cannot retrieve JDBC Connection for HDB hanadb 02
    So what do I try now? 
    Any suggestions?
    Rgds,
    Jocelyn

    Thanks Ivanka! That sorted it.
    For the benefit of others...the error message was found in the server log files
    /var/log/applianceagent.log 
    /var/log/appliancedeploy.log

  • JDBC  - Connecting Multiple Databases

    Hi JDBC's
    I would like to know if it is possible to retrive a data from different tables and from different databases using a single query, which mean can I retrive data from multiple tables multiple databases in a single JDBC connection?
    If not, How do I implement it?
    Any Ideas or please point me to any related solution if you have.
    Thanks.

    Although theoretically possible in fact a single JDBC connection cannot work with several databases. To implement this feature somebody has to write another aggregating JDBC driver which parse SQL statement and work with other databases in background. I like this idea, but currently there is no such driver available.
    Scriptella ETL (http://scriptella.javaforge.com) offers an interesting solutions for cross-database operations. See example on how -to copy a table from oracle to hsqldb: http://snippets.dzone.com/posts/show/3511
    If you want to join 2 tables from different databases and copy the result to a third database use the following code:
    <query connection-id="db1">
    SELECT * FROM Table1
    <query connection-id="db2">
    SELECT * FROM Table2 WHERE Table2_ID=?Table1_ID
    <script connection-id="db3">
    INSERT INTO Table3 VALUES (?rownum, ?Table1_Field, ?Table2_Field);
    </script>
    </query>
    </query>
    Message was edited by:
    ejboy

  • Problem regarding to connection with database

    while opening the SQL server 2008,it is unable to connect with database, showing as error 2

    1. Make sure SQL Server Service is running
    2. If a named instance, make sure SQL Server browser service is running
    3. Make sure SQL Server is configured to allow remote connections
    4. Examine the SQL Server error log for messages confirming that SQL is listening on the expected network interfaces and ports
    5. Test server connectivity with PING from the client machine
    6. Test port connectivity using TELNET or PowerShell to the server and port (from step 4) from the client machine.  For example
    a. TELNET <server-name> 1433
    b. PowerShell: 1433 | % { echo ((new-object Net.Sockets.TcpClient).Connect("YourServerName",$_)) "server listening on TCP port $_" }
    7. Check firewall settings if step 5 or 6 connectivity test fails
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Problem in JDBC connection through tugladad

    During run time, i am getting this problem
    Exception in thread "main" java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    My program is
    import java.sql.*;
    public class DBOpp
      public static void main(String args []) throws Exception{
    class.forName("oracle.jdbc.driver.OracleDriver");
    Connection con=DriverManager.getConnection
       ("jdbc"oracle:thin:@localhost:1251:myoracle", "scott","tiger");
      System.out.println("Connection established ");
      Statement stmt=con.createStatement();
    String str1="insert into abc values ( 145,'wersd','GHTYR');
    stmt.executeUpdate(str1);
    con.close();
    I am using JDK 1.5.0.2 and oracle 9i ( server ).
    JDK1.5.0.2 is in c drive and oracle is in E drive.
    I would like to know how i can solve this problem.
      Thanks & Regards
       Dipak

    4948ec00-1a38-46d9-bb14-0faf6b9c4a49 wrote:
    During run time, i am getting this problem
    Exception in thread "main" java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    My program is
    import java.sql.*;
    public class DBOpp
      public static void main(String args []) throws Exception{
    class.forName("oracle.jdbc.driver.OracleDriver");
    Connection con=DriverManager.getConnection
       ("jdbc"oracle:thin:@localhost:1251:myoracle", "scott","tiger");
      System.out.println("Connection established ");
      Statement stmt=con.createStatement();
    String str1="insert into abc values ( 145,'wersd','GHTYR');
    stmt.executeUpdate(str1);
    con.close();
    I am using JDK 1.5.0.2 and oracle 9i ( server ).
    JDK1.5.0.2 is in c drive and oracle is in E drive.
    I would like to know how i can solve this problem.
      Thanks & Regards
       Dipak
    Put the JDBC jar file in your classpath. Don't know if the new 12c driver still supports 9i but the 11.2 driver does.
    You can download the Oracle JDBC jar files here:
    http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html
    Also see the JDBC FAQ for info about the various combinations of database, JDK and JDBC drivers supported
    http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-faq-090281.html#02_06
    Why are you still using such an ancient and unsupported database?

  • Problem in jdbc connecting as sysdba

    Dear ORACians,
    i am using database 8.1.5 and jdbc 8.1.5 and jdk 1.5.
    my problem: i want to connect to the database as sysdba through jdbc.
    oracle is telling that to connect to the db as sysdba we have to use properties file. i did the same. It is connecting to the db as normal mode not as sysdba mode why???
    Actual code is:
    Properties conProp = new Properties();
              conProp.put("user", tf[2].getText());
              conProp.put("password", String.valueOf(cpwd.getPassword()));
              conProp.put("internal_logon", "SYSDBA");
    try{
                   DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
                   String conUrl ="jdbc:oracle:thin:@"+tf[0].getText()+":"+tf[1].getText()+":"+tf[3].getText();
                   conn=DriverManager.getConnection(conUrl,conProp);
                   stat=conn.createStatement();
                   JOptionPane.showMessageDialog(f,"Connection Estblished...");
                   jdcn.dispose();
              }catch(Exception w){
                   JOptionPane.showMessageDialog(f,String.valueOf(w));
    i hope ORACians will guide me to develop my apps in proper direction.
    urs
    selvan

    Thanks for ur reply but when i add "as sydba" with password property it gives error:
    Properties conProp = new Properties();
    conProp.put("user", tf[2].getText());
    conProp.put("password", String.valueOf(cpwd.getPassword())+"AS SYSDBA");
    the error is :
    java.sql.SQLException: ORA-01017 invalid username/password; logon denied
    selvan

  • Servlets/JDBC - Connect to database ONCE and not in every servlet - How?

    Hello, I'm using servlets and JDBC.
    In every servlet , i connect to the database and then i close the connection, but this is not ptactical.
    I would like to connect to the database once (at the beginning) when container starts and then close the connection.
    How am i supposed to do that?
    Thanks, in advance!

    Bad idea. Don't do that. The connection will timeout sooner or later (depends on DB used, it's usually around 30 mins) and your application will crash.
    You should always acquire and close the connection (and statement and resultset!) in the shortest possible scope. To improve connecting performance just use connection pooling.
    Create a DAO class which does all the task and just instantiate and assign it as Servlet class variable during Servlet's init() method. For more insights and code samples start here: [http://balusc.blogspot.com/2008/07/dao-tutorial-data-layer.html].
    To go back to your fundamental question, doing some stuff during startup and shutdown of webapp, you could use the ServletContextListener for this. But again, do NOT do this to get hold of an external resource such as a connection! It's receipt for trouble.

  • Problem in jdbc connection to sql server

    I hv some problem in connection. i am not sure hv to use this line of code. My server name is YC\YC and i m using window autentic usr name and passwd. How to i solve the problem? Thanks!
    Connection connection = DriverManager.getConnection(
    "jdbc:microsoft:sqlserver://<Host>:1433",<"UID>","<PWD>");

    Is it means that add a new user?
    Now i add a new user name "boon" passwd "abc123"
    SQL service manager there state my server running is YC\YC, is it that one my server name and instance?
    Connection connection = DriverManager.getConnection(
    "jdbc:microsoft:sqlserver://YC\\YC:1433", "boon", "abc123");

  • Problem in - JDBC Connection for  MS-Access in JSP

    Hi,
    I am using Three tier Architecture. that is MS-Access as a Database, JAva Web Server as a server and HTML as a frontend.
    I always getting error during the execution of JSP code.
    Coding in JSP:
    <%@ page import="java.sql.*"%>
    <%
    java.sql.Connection con;
    java.sql.PreparedStatement pstmt;
    java.sql.ResultSet rst;
    String sDBQ= application.getRealPath("dem.mdb");
    try
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         con=DriverManager.getConnection("jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ="+sDBQ);
         pstmt = con.prepareStatement("select * from employee");
         rst = pstmt.executeQuery();
         if (rst.next())
              String s1=rst.getString("EmployeeId");
              String s2=rst.getString("EmployeeName");
              out.println(s1);
              out.println(s2);
    catch(Exception e)
              out.println("Error "+e);
    %>
    I'm getting this error
    java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name too long
    Please anyone rectify it

    hi
    [Microsoft][ODBC Driver Manager] Data source name(dsn)
    con=DriverManager.getConnection("jdbc:odbc:dsn);
    first you open the control panel --open ODBCdatasource--user dsn--click add--and select MS-Access--click finish--one window is come --type "dsn"--then click ok --ok .then try it it will come.(before you doing program you can set this)

  • Problem in Jdbc connectivity with Oracle8i!!

    can you tell me,
    how can i connect jdbc with oracle 8i.
    i written a connectivity code with oci8.
    here is that two lines.
    Class.forName("oracle.jdbc.driver.OracleDriver");
    m_conn = DriverManager.getConnection("jdbc:oracle:oci8:@qit-uq-cbiw_orcl","scott","tiger");
    i was able to compile the script.But when i try to run this with jsp,then it was showing me an error saying "no driver specified".
    pls help me to sort out this problem.
    thanx
    SR-
    shiju.dreamcenter.net
    null

    Shiju,
    You need to include the port and SID in your connect string. So if your port is 1521 and your SID is ORCL, your connect string becomes
    "jdbc:oracle:oci8:@qit-uq-cbiw_orcl:1521:ORCL"
    Blaise
    null

  • Problem in jdbc connect thru oracle

    hi all
    i hv installed oracle 8i on win2k
    i wanna connect thru jdbc
    but i am getting error below
    i donno whr i got struck?
    plz help me
    thnx in advance
    bye
    ////////// details ///////////////////////
    import java.sql.*;
    ///win2000,oracle 8i
    /// try to fix whr i hv done mistake
    import java.io.*;
    class JDBC1
    public static void main(String[] args)
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver ");
    //// i tried all below connections
    Connection cn=DriverManager.getConnection("jdbc:odbc:santhu:PLSExtProc","scott","tiger"); /// oracle_sid=santhu hv given
    //Connection cn= DriverManager.getConnection("jdbc:odbc:PLSExtProc","scott","tiger"); /// PLSExtProc it is given in tnsnames.ora file
    //Connection cn=DriverManager.getConnection("jdbc:odbc:oracle:PLSExtProc","scott","tiger"); /// driver name i hv given as oracle and one more as santhu--both for oracle driver
    Statement st=cn.createStatement();
    ResultSet rs=st.executeQuery("select * from dept");
    int dno;
    String dname;
    while(rs.next())
    dno=rs.getInt("deptno");
    dname=rs.getString("dname");
    System.out.println(dno+dname);
    catch(Exception e)
    System.out.println(e);
    /// compiled successfully
    /// but runtime error::SQLException---data source name not found no default driver specified
    //// saying tns-12538 error
    /// tnsping-----error is coming.........
    /// lsnrctl start --------is not working
    //// lsnrctl status ------is also not working
    /// in services i hv set oraclelistener to auotmatic start
    /// in net8 configuration assistent everything is ok
    /// try to do it today...ok na
    // i put classpath to home dir of oracle
    ///////////listener.ora file //////////////////////////////
    # LISTENER.ORA Network Configuration File: D:\Oracle\Ora81\NETWORK\ADMIN\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Vaman)(PORT = 1521))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = vaman)(PORT = 2481))
    (PROTOCOL_STACK =
    (PRESENTATION = GIOP)
    (SESSION = RAW)
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\Oracle\Ora81)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = santhu)
    (ORACLE_HOME = D:\Oracle\Ora81)
    (SID_NAME = santhu)
    /////////////////tnsnames.ora file///////////////////
    # LISTENER.ORA Network Configuration File: D:\Oracle\Ora81\NETWORK\ADMIN\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Vaman)(PORT = 1521))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = vaman)(PORT = 2481))
    (PROTOCOL_STACK =
    (PRESENTATION = GIOP)
    (SESSION = RAW)
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\Oracle\Ora81)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = santhu)
    (ORACLE_HOME = D:\Oracle\Ora81)
    (SID_NAME = santhu)
    ////////////////////////////////////////////////

    Class.forName("oracle.jdbc.OracleDriver");
    Connection con = DriverManager.getConnection("jdbc:oracle:thin:@<hostname>:1521:<database name>", "scott", "tiger");
    You can find OracleDriver in classes12.jar (<ORA_HOME>/jdbc).
    Check your tnsnames.ora file for <hostname> and <database name>. For example, if you had a following entry in tnsnames.ora file:
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = SOMEHOST)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    you would write:
    Connection con = DriverManager.getConnection("jdbc:oracle:thin:@SOMEHOST:1521:XE", "scott", "tiger");

  • Problem wtih JDBC Connecting in jsf program.

    Hey guys. I have a web app setup thanks to some of you guys on here. I'm using mysql jdbc access for login. I'm using the connection pool and resource for connectivity.
    Basically what I'm asking is can I use to DataSource variables on the same page. The reason I'm asking that is. I can connect fine with the login code.
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package beans;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import javax.annotation.Resource;
    import javax.faces.context.FacesContext;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpSession;
    import javax.sql.DataSource;
    * @author Drew
    public class Login {
        @Resource(name = "jdbc/must2")
        private DataSource ds;
        private String email;
        private String password;
         * @return the email
        public String getEmail() {
            return email;
         * @param email the email to set
        public void setEmail(String email) {
            this.email = email;
         * @return the password
        public String getPassword() {
            return password;
         * @param password the password to set
        public void setPassword(String password) {
            this.password = password;
        public String VerifyUser() throws SQLException {
            if (this.email.equals("") || this.password.equals("")) {
                return "fail";
            } else {
                if (ds == null) {
                    throw new SQLException("No data source");
                Connection conn = ds.getConnection();
                if (conn == null) {
                    throw new SQLException("No connection");
                try {
                    PreparedStatement passwordQuery = conn.prepareStatement("SELECT password from user WHERE email = ?");
                    passwordQuery.setString(1, this.email);
                    ResultSet result = passwordQuery.executeQuery();
                    result.next();
                    String storedPassword = result.getString("password");
                    System.out.println(storedPassword);
                    if (this.password.equals(storedPassword)) {
                        FacesContext context = FacesContext.getCurrentInstance();
                        HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();
                        HttpSession httpSession = request.getSession();
                        httpSession.setAttribute("login", "Login");
                        System.out.println("Success");
                        return "success";
                    } else {
                        return "fail";
                } finally {
                    conn.close();
                    System.out.println("Login connection closed");
    }Ok now I have some separate code that access the same database but fills a table on the same login.jspx page.
    package page;
    import java.util.ArrayList;
    import classes.Line;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.annotation.Resource;
    import javax.sql.DataSource;
    public class LineStatus {
        @Resource(name = "jdbc/must2")
        private DataSource ds;
        private ArrayList line = new ArrayList();
        public LineStatus() {
            try {
                GetLineStatus();
            } catch (SQLException ex) {
                Logger.getLogger(LineStatus.class.getName()).log(Level.SEVERE, null, ex);
        public void GetLineStatus() throws SQLException {
            if (ds == null) {
                throw new SQLException("No data source");
            Connection conn = ds.getConnection();
            if (conn == null) {
                throw new SQLException("No connection");
            try {
                PreparedStatement passwordQuery = conn.prepareStatement("SELECT DISTINCT pkg_line_id,shortname, " +
                        "line_status FROM pkg_line_tree LEFT JOIN pkg_line using (pkg_line_id) " +
                        "WHERE tree_id = ? ORDER by shortname");
                passwordQuery.setInt(1, 3075);
                System.out.println(passwordQuery);
                ResultSet result = passwordQuery.executeQuery();
                while (result.next()) {
                    line.add(new Line(58285, "Line 1", "Test", 43500, 21695));
            } finally {
                conn.close();
        public ArrayList getLine() {
            return line;
    }There is nothing wrong with the code. I checked it over and over. Even replaced this code with my same login code that works. Every time I run the page I get "no data source". Obviously becasue Datasource is null. I have setup to catch the error. I'm guessing that the two backing beans can't access the same data base on the same page. I'm not sure though. I need to figure out how to get around this. Thanks for any help guys.
    Edited by: dothedru22 on Oct 16, 2009 7:44 AM

    Anybody know? I've tried everything I can think of.

  • ODT v11 Beta Installation Problem - Can't connect to Database

    Hi, I'm having difficulties setting up the ODT 11.1.0.5.10 beta. I'm fairly new to Oracle so I apologise if I've missed something obvious!
    First of all I tried installing ODT 10.2.0.2.21 and that worked fine (after I copies tnsnames into the appropriate folder).
    However, after installing v11 I can't connect to any of our databases anymore, either through VS2005 of PL/SQL developer, which we normally use. When I try to set up a data connection (in VS Server Explorer) using ODP.Net, I get 'ORA-12154: TNS: Could not resolve the connect identifier specified'.
    If I try to make a connection using the .Net Framework data Provider for Oracle, I get 'ORA-12541: TNS: no listener'.
    Testing the connection using Oracle Net Manager, however, succeeds without a problem.
    i put the tnsnames file in there, so that's not the problem. I'm not sure if the installation worked properly, as there are a lot less files & folders in the new Home added for the beta than in the one added for v10.2
    Any thoughts?
    Thanks,
    Grant

    Yeah, you could be onto something with the path, thanks - it seems like the installer for the v11 Beta misses \bin off the end of the new Oracle home path, which causes problems. Since fixing that, I can now connect with PL/SQL developer.
    however, I am still facing one problem which my colleague also seems to have. We have an 8.1 client installed, and when we try to set up a connection with VS2005, it uses the tnsnames from the 8.1 client.
    There is also a strange issue whereby if you go into the advanced settings, the database name is only set to the first couple of characters of the actual name, which is probably why it isn't working. However, if I set the correct name in the advanced settings, when you come out of that dialogue into the standard connection dialogue, the database has reverted back to the first one in the list, putting me in a most annoying vicious circle..
    Even this problem has now taken a back seat as I am now unable to load the connection screen at all' getting a 'Package Load failure' message (it seems to think the package is using a GUID which isn't on the system). This remains even if i reinstall the v11 Beta. I'm not sure how I got into this situation, but it seems that there is some DLL registered in VS2005 which is now incorrect and doesn't get reset on uninstall/installation.
    If anyone has any thoughts on my myriad problems please share them with me!
    Thanks,
    Grant

  • Problem using JDBC connection

    I'am using 9iAS R2 and I have a entity bean using a DataSource with out any problem, but I also have a client program using the same datasource. I can lookup the datasource without any problems, I get a connection, but when I try to createStatement() on the connection I get an Exception see below.
    I hope some one can help me!
    Regards
    Morten
    java.lang.NullPointerException
         at com.evermind.sql.OrionPooledDataSource.addUsedConnection(OrionPooledDataSource.java:539)
         at com.evermind.sql.OrionPooledDataSource.getPooledInstance(OrionPooledDataSource.java:290)
         at com.evermind.sql.OrionCMTConnection.setConnection(OrionCMTConnection.java:189)
         at com.evermind.sql.OrionCMTConnection.intercept(OrionCMTConnection.java:127)
         at com.evermind.sql.FilterConnection.getMetaData(FilterConnection.java:75)
         at com.evermind.sql.FilterConnection.getMetaData(FilterConnection.java:76)
         at dk.modulus.regelmaskine.RegelParamDAO.getRegelParametre(RegelParamDAO.java:33)

    Hi Morten,
    Have you tried running OC4J in "debug" mode? This web page has more details:
    http://kb.atlassian.com/content/atlassian/howto/orionproperties.jsp
    You may also like to try "P6Spy"
    http://www.theserverside.com/home/thread.jsp?thread_id=8337
    And here is a web page from Oracle's "Technet" site regarding debugging
    OC4J:
    http://otn.oracle.com/tech/java/oc4j/htdocs/oc4j-logging-debugging-technote.html
    Hope this helps you.
    Good Luck,
    Avi.

  • Problems with JDBC Connection, invalid Oracle-URL

    H,
    i can't use a JBDC Connection. Maybee i tried a wrong oracle url syntac
    This Url jdbc:oracle:thin@bilent:1521:bilent throws an error
    java.sql.SQLException: invalid Oracle-URL
    The following parameter worked
    Driver :thin
    hostname:bilent
    JDBC Port:1521
    SID:bilent
    What is wrong in the oracle url?
    THANKS

    Hi,
    You are missing ":" after thin and host name. Your URL should be
    jdbc:oracle:thin:@bilent:1521:bilent-Arun

Maybe you are looking for

  • Need help with languages issue in iOS app created in Flash Pro CS5.5

    Hello all, I'm using Flash Pro CS5.5 on a Mac running Snow Leopard to create an iOS app by publishing with 'AIR for iOS' from inside Flash Pro. Everything works great except after I submit my app to the Apple App Store and it is approved, the App Sto

  • Parallel Accounting - Inventory Valuation

    Hi Masters, My leading ledger is IGGAP and non leading ledger IFRS. As per SAP whenver a posting is made to leading ledger, the same data will flow automatically to non leading ledger. As per IGGAP, freight cost incurred in procuring the inventory sh

  • How to export iMovie to desktop?

    I created a video on iMovie and I'm trying to export it to my desktop so I can share/upload it to other places. How do I do that? I have a MacBook Air and just updated iMovie. I'm pretty sure it's IOS 7.1.2. P.s. I'm extremely new to iMovie

  • Cannot Sync All Songs (Unknown Error (-50))

    For some reason, when I try to sync my iPod Touch (1st gen) I get a message that it cannot sync a song. However, no other song below it in alphabetical order will sync either. It claims there's an unknown error, -50. What could this be caused by? Scr

  • JAX-RPC screen does not appear when generating a WS proxy

    I'm using JDev 11.1.1.2. When I tried to generate a Web Service proxy, this screen does NOT appear most of the time. I only saw it appear one time. Do you know why? It's step 2 of the wizard. Client Style + JAX-RPC Web Logic Style + JAX-WS Style