Exception trying to connect via ConnectionPool

Hello, i'm trying to connect to an Oracle Database through the ConnectionPool and PooledConnection objects but i get an Exception with the following message:
org.apache.tomcat.dbcp.dbcp.BasicDataSource
There's nothing more in the message. What does it mean? I don't use BasicDataSource, but ConnectionPoolDataSource
Thank you

I dont think you have configured the dbcp pool of tomcat properly. Kindly post the xml and the code used to fetch the connection.

Similar Messages

  • Error trying to connect via jdbc

    I'm trying to connect via jdbc driver from a java application to a remote db. The code is quite simple
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection
    ("jdbc:oracle:thin:@dbhost:orcl", "user", "password");
    in my CLASSPATH I have the ojdbc14.jar file
    When I run this program I get the following error:
    Exception in thread "main" java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)
    at oracle.jdbc.ttc7.TTC7Protocol.handleIOException(TTC7Protocol.java:366
    8)
    at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:353)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:371)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:551)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:351)
    at java.sql.DriverManager.getConnection(DriverManager.java:525)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at Test.main(Test.java:12)
    Please be aware of the following facts:
    1) sqlplus from the same machine has no problem connecting to the db
    2) there is no firewall or router between the client and the server
    3) As host name I've tried the fqdn (resolved by the DNS), a name I've set up in /etc/hosts, the mere IP address
    4) Checking with tcpdump, I've verified that NO network packet actually leaves the client, so the problem completely lies there.
    Has anyone some good idea why this happens?

    Make sure you are providing correct hostname and listener port number

  • I'm having trouble with back to my MAC.  I had everything working on my home wifi network but now I am at my daughter's house and trying to connect via a verizon hotspot wifi connection.  I'm wondering if the Verizon hookup is a problem.

    I'm having trouble with back to my MAC.  I had everything working on my home wifi network but now I am at my daughter's house and trying to connect via a verizon hotspot wifi connection.  I'm wondering if the Verizon hookup is a problem.

    I finally figured it out.  Needed to update her Airport firmware and allow guest access, and also changed Sharing preferences to Allow Access for All Users.

  • HT1212 IPAD is Disabled, tried to connect via itunes but get error "iTunes could not connect to the [device] because it is locked with a passcode. You must enter your passcode on the [device] before it can be used with iTunes."

    IPAD is Disabled, tried to connect via itunes but get error "iTunes could not connect to the [device] because it is locked with a passcode. You must enter your passcode on the [device] before it can be used with iTunes."

    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    Saw this solution on another post about an iPad in a school enviroment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just cancelling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • How to prevert 2 computers from always trying to connect via bluetooth, how to prevert 2 computers from always trying to connect via bluetooth

    I just bought my wife a iMac. Now her iMac and my Macbook Air are always trying to connect via bluethooth. I use a bluetooth mouse and she has the bluethooth keyboard and trackpad, so turning bluetooth off is not the best answer.
    Thanks

    What's the problem?  In theory a BT device can only pair with one machine at a time.

  • JNDI naming exception: Naming exception trying to connect to:help !!!!!!!!!

    Hi,
    Iam getting this exception and i have no clue what is this exception means.....and how to resolve this Naming Exceptions problem.
    what iam doing is.....Iam trying to deploy a war file from my unix system to a win2000 machine(amasdqyt095).
    This is where and how my script(myscript.sh) looks like:
    java -classpath /xyz/bea/wlserver6.1/lib/weblogic.jar weblogic.deploy -port 7001 -host amasdqyt095 -component myWebApp:myserver update weblogic myWebApp /export/home/applications/xyz.war
    i have created this script at: /xyz/bea/wlserver6.1/config/scripts/myscript.sh
    then i did chmod +x myscript.sh
    and the i did:
    ./myscript.sh
    and then iam getting this exception:
    JNDI naming exception: Naming exception trying to connect to: t3://amasdqyt095:7001 as: system: weblogic
    please help ????
    -sangita

    I had the same problem because the weblogic.jar's version in the server was diferent from my machine (SP2 and SP4). I stops when I updated the server to SP4.
    But now I'm having the same problem in another server, and the versions are ok. If anybody knows something else, please let me know.
    I'm using Weblogic 6.1
    []s
    Leonardo

  • Nokia E5 Ovi Mail keeps trying to connect via pack...

    My Nokia E5 Ovi Mail keeps trying to connect via packet data rather than wifi.. I have tried to go into the Mailbox setting and into Advanced malib.setting and changed it to user-defined with one wifi but when I quit the mailbox and go back again, I find that it aotomaticly recovered the setting. Can any body help me to fix it? I also tried to set it to the point I defined by Smartconnect but it doesn't help ether... Thanks!

    @mana_g
    Welcome to the forum!
    Is your E5 network branded variant or generic SIM free version?
    Happy to have helped forum with a Support Ratio = 42.5

  • PBG4 tries to connect via airport express, but I want it to use ethernet!

    Hey y'all, and thanks in advance for your help!
    I use airport express to connect itunes to my stereo, and for nothing else. My computer, however, keeps trying to connect to the internet through the airport express, and I end up having to turn the airport off until I'm on a website, then turn airport back on.
    How do I tell my computer to NEVER attempt to connect to the internet via airport, and to ONLY use ethernet to connect???
    Thanks again!

    Click here and follow the instructions.
    (41434)

  • Connect Exception trying to connect to rmi registry on a Linux box

    I have prepared the Sun tutroial for RMI, implementing the remote method on a Linux box, and a client on the XP box. Try as I may though, the XP client always comes back with a Connect exception indicating it cannot connect to 127.0.0.1. I am though trying to connect to 192.168.0.4
    The firewalls on both machines are open on port 1099, and if I connect from the client with telnet to port 1099 on the server something happens, (well the CMD box screen goes blank, and I get a cursor).
    I'm struggling here, being both a Java RMI newbie, and likewise for Linux. I have seen suggestions that the hosts files may need modifying on both machines, but I am not sure what I might need to do.
    Any guidance would be appreciated. Thanks in anticipation
    P.S. I have posted this previously, but it seems to have expired. So, sorry for repitition, but I don't seem to be alone with this kind of problem.

    I have made some progress if you can call it that. Doing what you (ejp) suggested with regards to the hostname, and the following helped.
    Elsewhere on these forums I read of a problem where the rmiregistry was not being invoked by the JDK version. I forced this to happen by using an explicit path, then tested my client.
    My client now starts, and does not crash with an exception immediately, instead it runs slowly, and then stops with a NoRouteToHostException, and now it is referncing the correct IP address. I am not sure how to resolve the cause of this exception. Again I have read elsewhere about IPTABLES being the cause of this exception, but I don't know what these are, or how to configure them.
    Can someone guide me a bit more please.
    Thanks

  • Trying to connect via tablet's tethering hotspot, firefox says proxy server refused connection

    Hi there, today I tried to connect my laptop to my tablet using the lattering as tethering hotspot. Laptop connected itself to tablet, signal was excellent, password OK, no apparent problems.
    When I try to load the home page I got this answer: connection refused by proxy server.
    What shall I do, check or change to make things work?
    When a use my internet key or any other wi-fi I don't get the same problem, it only happened today with the tethering hotspot of the Tablet.
    Thanks in advance for any help you guys might be able to give me!
    Happy new year,
    Ira

    Hey Ira,
    Does your computer use a proxy server to connect to the internet?
    1.You can hold your window key and press r at the same time to open a dialog box. 2.in the dialog box type ncpa.cpl and press enter. 3.Your networks will open 4.right click the network named wifi or the network you connect through and select properties. 5.this will again open a dialog. in this dialog scroll and go to internet protocol version4 6.double click on it. do you see obtain an ip address automatically checked or use the following ip checked.
    if obtain ip automatically then your connection doesn't use proxy.
    now go to firefox>option>advanced>network>setting and see if your connecion is automatic,no proxy etc. If your computer use proxy you can use system proxy or manually configure proxy.
    You have two scenarios.
    1. When you use internet key or any other wi-fi. Keep the setting as it is. remember in this case "use system proxy settings"
    2. Now when you use tethering from your table, you will have to make only a tiny change. Go to firefox setting, dont make any change to windows setting and click on no proxy or automatically detect proxy (1 of the first two). One of them should work for you Either no proxy or automatically detect proxy
    hope it helps. :-)

  • Connection hange while trying to connect via ssh.

    Hi all,
    I have this problem and i fixed it, just wanted to understand the logic behiend it.
    I tried to login to a machine via ssh.
    After providing the username and password, the connection hang until you press CTRL -C.
    I checked DNS configuration, and some other stuff.
    The problem was a NFS entry in the vfstab that was unreachable.
    When i removed it, the connection went smoothlly.
    My question is, why that entry caused that problem ?
    Thanks!

    At login, the shell runs 'quota -v' to display any over-quota conditions that might exist.
    If the NFS mount was not mounted with "noquta", then it will send an RPC request to the server. If the server is down, that request will take 60 seconds to time out. If you have multiple mounts to the server, they might run sequentially.
    The login should complete after a minute or so, but most users won't wait that long.
    Darren

  • EMac - trying to connect via ethernet

    I was given this eMac - it works really well, and thought that I'd try and connect it via ethernet.
    I've found out the IP and router addresses and have changed them in the settings menu, as explained in the apple support guide.
    The ethernet cable works and it says that the ethernet card in the mac is working fine, router works too. But, still can't connect - I've tried via internet explorer and through safari - still nothing!
    Have restarted mac and router, several times, still nothing. Any ideas - HELP?
    amie

    Welcome to Apple Discussions amez.
    The settings for ethernet are received fairly automatically by the Mac. You don't actually have to set any IP or router addresses in the network section.
    Just make sure the Configure IPv4 has *Using DHCP*
    Location Automatic.
    Show *Built in Ethernet.*
    select Show, then *Network Port Configurations*,
    and make sure the *Built-in Ethernet* is selected in that box. It should also be dragged to the top of the list if there is more than one device.
    What you need to set up are your ISP details in the router itself.
    I think that is where you are failing to make the connection.

  • Updating to 9.0.4.3 throws Exception 7108 while connecting via ServerSessio

    I've recently updated the toplink.jar to version 9.0.4.3. When I perform try to login using the ServerSession :
    ((ServerSession)SessionManager.getManager().getSession(<session-name>).login();
    I get the following Exception :
    Exception [TOPLINK-7108] (OracleAS TopLink - 10g (9.0.4.3) (Build 040412)):
    oracle.toplink.exceptions.ValidationException
    Exception Description: Session [mudev] is already logged in.
    at oracle.toplink.exceptions.ValidationException.alreadyLoggedIn(ValidationExcepti
    o
    n.java:872)
    at
    oracle.toplink.publicinterface.DatabaseSession.login(DatabaseSession.java:527)
    at tochna.common.utils.ConnectionHandler.<init>(Unknown Source)
    at tochna.common.utils.ConnectionHandler.getConnectionHandler(Unknown Source)

    You don't need to login, the getSession() method automatically logs in (unless you've set the property in the sessions.xml to not automatically login). I think this error is fairly new, and is meant as a warning that you're trying to login twice (there are other situations where doing this indicates a more sinister problem). In this case, I think the exception can be safely ignored, but ideally just remove the login from your code :)
    - Don

  • I tried to connect via to dvi to hdmi and it did not wrk

    if I have vga and dvi on my monitor but only vga on my computer does this mean I dont have compatable computer to run hdmi for my display?
    This question was solved.
    View Solution.

    Hi lastace,
    If your vga port is blue, that means it's a D-Sub connection.
    With D-Sub, you can purchase a connector that can convert D-Sub output to DVI but unfortunately, not HDMI.
    So in your case, you can connect your monitor via D-Sub (VGA) or DVI but not HDMI unless you have a HDMI port on your
    laptop. Sorry I couldn't give you good news.
    Hope this helps!
    **Click the KUDOS star on the left to say 'Thanks'**
    Please mark a reply "ACCEPTED AS SOLUTION" if it solved your problem, so others can find it.
    I work for HP, supporting the HP Experts who volunteer their time and technical knowledge to help others.

  • Password field grayed out when trying to connect via BeX

    Business Explorer SAP Logon screen password is grayed out and user can not type in.  We've ruled out the possibility of SNC being turned on for this BI QA system connection.
    User gets the following error message:
    Missing SNC_LIB=... in connect_param in RfcOpenEx
    Any ideas how to activate the Password field or what this error message means?
    Any help is greatly appreciated!
    Thanks in advance.
    Edited by: Ivan Colakovic on Jan 28, 2008 12:19 PM

    Hello,
    I got the same problem when I tried to use BEx Analyzer to connect a BW system and I also tried to solve the problem followed your guide, but failed. I am wondering what is SNC Library and how and where I can find it's content, after this I can put it to SNC_LIB=.
    Thanks in advance

Maybe you are looking for

  • Trying to wirelessly connect Macbook pro to Canon MX340 printer

    I am really not computer-minded at all, which is why I love my Mac.  It just does it for me.  Back in November, somehow I wirelessly connected my Macbook pro to our Canon MX 340 printer.  We have moved and now I can't get it to work.  When I go into

  • Photoshop elements 2 print preview dialog box

    I'm running PSE 2 on a PC with Windows XP and an old Dell monitor with 800x600 resolution.  Problem: when I check the "More Options box, the box cuts off  at "Print Space"  And I can't control communication between PSE and the printer.  I've fooled w

  • Limit concurrent user logins

    Hi all, One of our customers is trying to limit the number of concurrent user logins to 1. He has deployed a 2500 WLC (v7.4) with a Dot1x SSID. Authentication against external radius server (IAS). Configured the following: Max Concurrent Logins for a

  • Sound Blaster X-Fi I/O Console Problem

    hi i purchased the xfi soundcard and the Sound Blaster X-Fi™ I/O Console came with it as a bundle package a while back. i have yeet to figure out how to install the Sound Blaster X-Fi™ I/O Console. it seems like either im missing a cord or not instal

  • OT: can anyone convert ID to QX

    I have a client that wants a QX template. It's a 4 pager. I started doing it in QX but it took me an hour to do something I can do in 20 minutes in ID so I did the job in ID. Does anyone have ID2QX to convert this over for me. Thanks.