JDBC with CLOB abnomally - shows on one server, not the other

Hi have a problem.
I recently moved a web application to another server. I copied over all the same java libraries I had on the first server.
The web application queries an Oracle table - the table contains one CLOB field.
When I query the table on the first server, I can see the contents of the CLOB.
When I query the table with the other server, the query is empty for the CLOB field.
This is the code I use to query the table. I have connection pooling set up within Sun Web Server. If it works on the one server, why would it not work with the other server? This is driving me crazy!!
Any suggestions?
try{
            // Get connection from configured pool
            initContext = new InitialContext();
            source = (DataSource) initContext.lookup("java:comp/env/jdbc/myDB");
            conn = source.getConnection();
            if(conn != null){
                stmt = conn.createStatement();
                result = stmt.executeQuery(sql);
                rsmd = result.getMetaData();
                while(result.next()){
                    Hashtable hash = new Hashtable();
                    for(int i = 1; i <= rsmd.getColumnCount(); i++){
                        if(result.getString(i) != null){
                            hash.put(rsmd.getColumnName(i),result.getString(i));
                        }else{
                            hash.put(rsmd.getColumnName(i),"");
                    returnValue.addElement(hash);
        }catch (Exception e){
            setErrors(e.toString());
            Email.sendMail("[email protected],"subject","Exception: " + e.toString() + "\nWith: " + sql,"fromname");
        }

I tried that with this code:
<body>
          <h1>
               JSP Example
          </h1>
          <%
          Connection dbconn=null;
          ResultSet results=null;
          PreparedStatement sql=null;
          try{
               Class.forName("oracle.jdbc.OracleDriver");
               try{
                    boolean     doneheading = false;
                    dbconn = DriverManager.getConnection("jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=host.com) (PORT=1521))(CONNECT_DATA=(SERVICE_NAME=theserver.com)))","username", "password");
                    sql = dbconn.prepareStatement("SELECT * FROM BE_STATUS_EMAILS WHERE ID='42575'");
                    results = sql.executeQuery();
                    while(results.next()){
                         if(!doneheading){
                              out.println("<table border=2>");
                              doneheading = true;
                         out.println("<tr><td>" + results.getString("ID"));
                         out.println("<td>" + results.getString("RECEIVED"));
                         out.println("<td>" + results.getString("TYPE1"));
                         out.println("<td>" + results.getString("FROM1"));
                         out.println("<td>" + results.getString("TO1"));
                         out.println("<td>" + results.getString("CC"));
                         out.println("<td>" + results.getString("SUBJECT"));
                         out.println("<td>" + results.getString("MESSAGE"));
                         out.println("<td>" + results.getString("STATUS"));
                    if(doneheading){
                         out.println("</table>");
                    }else{
                         out.println("No results");
               }catch (SQLException s){
                    out.println("SQL Error<br>");
               }finally{
                    if(dbconn!=null)dbconn.close();
          }catch (ClassNotFoundException err){
               out.println("Class loading error");
          %>
     </body>It produced the output, but again, the CLOB field was null. But when I query the database with that SQL using a database query tool, like Aquastudio, I can see the output. And if I run the stub on the other server, it works! This is nuts!!
Any suggestions?

Similar Messages

  • Trying to manually sync 2 phones, songs show on one, but not the other

    Hi all,
    I recently upgraded my daughters cell phone to my wife's old iphone.  I successfully imaged my wifes old phone (4) to her new one (4s).  I then restored that phone to factory settings create my daughters.  I was adding music from iTunes, which I also sync to my iphone (4).  Some of the songs are showing as greyed out on her device.  They show up fine, and can be played on mine. It seems to be somewhat random - sometimes, track 01 is there and the others aren't, sometimes the whole album is not there, sometimes a single song that's on a playlist is greyed, sometimes they are there.  I did another factory reset and reinstall on her phone with the same results.
    Thanks

    hi catfish197621,
    Welcome to the Lenovo Forums.
    You can try to:
    1. Download the latest updates Over The Air (OTA) to get the latest patches and bug fixes on the OS (go to settings > about tablet > check for system update).
    2. Download a camera app utility like Camera Zoom FX to see if you can zoom in and out and switch to the front facing camera.
    Hope this helps.
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • I have email on 2 pc's why is new emails showing on one but not the other

    I have one email account, but have it set up on 2 computers, new ones are coming through on one computer, not not on the other one,

    Are you using POP or IMAP?
    '''[http://kb.mozillazine.org/Menu_differences_in_Windows,_Linux,_and_Mac Tools|Account Settings]|{select the account}|Server Settings→Server Type''' will tell you.
    No menu? Press the <alt> key on your keyboard.
    If POP, you must set it to leave a copy of the messages on the server, otherwise the first computer to see them gobbles them up leaving the server empty.
    '''[http://kb.mozillazine.org/Menu_differences_in_Windows,_Linux,_and_Mac Tools|Account Settings]|{select the account}|Server Settings→Server Settings→Leave messages on server.
    If it's IMAP, then bear in mind that if you delete a message on any one computer/phone/tablet, it vanishes on the other computers/phones/tablets.

  • MAXDB copy log file from one server to the other server.

    Hi All,
    I want to copy a log file from one server to the other server , the database is Maxdb and i don't know how to do it. I want to do it through command prompt, (set of commands required) the front end tool which we are using is DBM ( database manager). Please help.
    Regards
    M.A

    Hi,
    Basically, the process is of log shipping. Transferring logs from DC to DR system.
    For that, you can check HowTo - Standby DB log shipping - MaxDB - SCN Wiki
    This is script based. I have not done it but the idea remains the same.
    Regards,
    Divyanshu

  • Two email accounts, one password for both. will check one but not the other. Have had no problems before

    I have 2 email accounts for 2 people. TB will download mail for one but not the other. It can't authenticate the password. Passwords are both the same. Worked fine until today.

    The amount of information makes it somewhat hard to give a specific answer. I could only recommend:
    * Can you log into the account using the webmail service from your provider?
    * Have you verified the settings for the account to be correct (protocol, port number, password encoding)?
    The following page gives you a good start with resolving this issue:
    https://support.mozilla.org/en-US/products/thunderbird/fix-slowness-crashing-error-messages-and-other-problems/fix-problems-email-providers-gmail-yahoo-etc
    Hope this helps!

  • I have CS6 and CC installed on my mac when I'm using CS6 and use bridge CC activates how can I set this to only work on one and not the other

    I have CS6 and CC installed on my mac when I'm using CS6 and use bridge CC activates how can I set this to only work on one and not the other

    If you want Bridge CS6 to open when using Photoshop CS6, you must quit Bridge CC.
    Then File menu > Browse in Bridge will bring up Bridge CS6.
    If Bridge CC is already open, The File > Browse in Bridge for Photoshop CS6 will use Bridge CC and Bridge CS6 will not open.
    I hope that's the answer you were looking for.
    Gene

  • I have 2 iPod touchs and 1 computer. It will reconize one but not the other. How do I get it to sync music on both

    I have 2 older iPod touches and 1 computer. It will reconize one but not the other. How do I sync music on both?

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Look at the dock connector on the iPod. Look for abnormalities like bent or corroded contacts, cracked or broken plastic.
    - Make an appointment at the Genus Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • HT5622 How do I set icloud on 2 ipads.It recognises one,but not the other one?

    How do I set up icloud on 2 ipads? It recognises one but not the other one.

    Hi Leora Beisly,
    Thanks for visiting Apple Support Communities.
    Before setting up iCloud on your devices, I recommend updating to the latest iOS software version. This will ensure that you can use all of the iCloud features on your devices. See this article for information on updating your iPads:
    Update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/ht4623
    Next, see this page for iCloud setup instructions:
    iCloud: Set up iCloud on your devices
    http://support.apple.com/kb/PH2609
    Before you can use iCloud on each of your devices, you need to sign in to iCloud using your existing Apple ID or a new one, then turn on the iCloud features you want to use.
    You may have set up iCloud on your iOS device or Mac when you first used it. To make sure it’s set up correctly, or to set up your iCloud account on another iOS device, computer, or Apple TV, go to the set up iCloud website listed below.
    Important: Be sure to use the same Apple ID when you set up iCloud on each device.
    Best Regards,
    Jeremy

  • I have 2 iPads, I can only download some apps to one device not the other one?

    I have 2 iPads, but can only download some apps to one and not the other?. How can I get the same app on both iPads?
    Thanks

    1. Make sure iPad is using the latest software
    2. Settings>General>Date and Time>Set Automatically>On
    3. Make sure Time Zone is correct
    4. Reset iPad. Hold the Sleep and Home button down until you see the Apple Logo.

  • Script works on one site, not the other... why?

    Could someone tell me why this prototype-based lightbox seems
    to work on one
    site but not on the other?
    I literally took the exact same .js & css files, copied
    them over from one
    site to the other, but it's only partially working on the new
    site.
    http://www.vilverset.com/sample.html
    And the original fully-functional one :
    http://www.roxanacampagiorni.com/
    Been troubleshooting this one for days, and I'm stumped.
    Script wants
    nothing to do with lightboxing HTML files on the new site.
    Only straight
    JPGs.

    "Michael Fesser" <[email protected]> wrote in message
    news:[email protected]..
    > .oO(Mark A. Boyd)
    >
    >>Strange. I don't think I've ever seen these headers
    before:
    >>
    >>
    http://www.vilverset.com/tn_posters.html
    >>POST /tn_posters.html HTTP/1.1
    >>HTTP/1.x 405 Method Not Allowed
    >>Allow: GET, HEAD, POST, PUT, DELETE, CONNECT,
    OPTIONS, PATCH, PROPFIND,
    >>PROPPATCH, MKCOL, COPY, MOVE, LOCK, UNLOCK
    >>
    >>I suspect a server configuration - or version.
    >
    > I consider it a script problem. Why does it send a POST
    request instead
    > of GET? IMHO the server's response is correct, because
    it doesn't make
    > much sense to POST something to a static .html page.
    That's what I told a helper friend of mine, but he told me
    the POST is done
    by the server, not the JS files. That's why, according to
    him, he couldn't
    tell me what code to change in the .js files.
    But here they are, if you would be so kind as to tell me WHAT
    to replace
    with WHAT so the call is made properly. :-)
    http://www.vilverset.com/scripts/control.modal.2.2.3.js
    http://www.vilverset.com/scripts/effects.js
    http://www.vilverset.com/scripts/prototype.js
    Those are the 3 files needed for the script.
    Should I be banging on Dreamhost's door to fix something, or
    not? Because
    the exact same 3 files will render an HTML page just fine
    over on
    roxanacampagiorni.com.
    Which is the guilty party? The script, or the server config?

  • 2 Apple TV's; Mirroring to one but not the other

    Help me Apple Communities you're my only hope.*
    I have 2 Apple TV's on the local network, bothe with Airplay enabled. One labelled AppleTV, the other labelled TV Upstairs.While I can happily stream music and video to both devices from iOS or the MacBook Pro, Mirroring is another matter.
    On my iPad 2 when I select Airplay to the Apple TV it comes up with the option for Mirroring. However selecting the TV Upstairs Apple TV does not provide this option, and only  sound output only, with quite a delay. The iPad 2 is iOS5, and both Apple TV's are latest stable release. The Time Capsule is upstair with the Upstairs AppleTV.
    Any ideas for this?
    * guess what I was testing video streaming with.

    I think you may be suffering from the same issue as many others in that case.
    The situation over the current update seems a little unsure at the present time.
    4.4 was released, it was then replaced by 4.4.1, which itself was removed and then made available again, it seems from the number of related post that it may have been removed again.
    Some posters are still reporting success by updating via iTunes but I can't confirm that these posts weren't simply referring to other times when the updates were available.
    I'd be inclined to sit tight and try again at a later time.

  • I bought a 5th Gen Touch. I use iTunes 12 on two computers. One computer allows me to drag and drop. The other does not.The one that allows it has problems. Any idea as to why I can drag and drop on one and not the other. Both are authorized.

    I bought a 5th Gen Touch. I use iTunes 12 on my two computers. I first connected the Touch to my desktop and it allows me to drag and drop mp3 files from my old Classic, which is backed up to a directory. Unfortunately, that computer has gone down before I got a chance to fill the Touch. I have the files on another computer but when I connect the Touch to it, it doesn't allow me to drag and drop the files. I have iCloud set on both systems and I have manual management check marked. I'm not understanding why it allows drag and drop on one PC and not the other when they are both set the same way. My question? What do I need to do to be able to drag and drop in iTunes 12? I didn't do anything special on the computer that allows it so I am at a loss.
    Thank you!

    Oh, also want to add that the PC I'm currently using is:
    Windows Vista Home Premium Service Pack 2
    My other PC was:
    Windows 7 Ultimate
    My MacBook is:
    Max OSX 10.5.something (the last update available for it. .8 maybe? haha)
    Not sure if this stuff is important, but I thought I'd add it.

  • 2 identical iPhones-Airprint works one, but not the other?!

    My husband and I both have iPhone 4S 32GB.  We're using an HP Photosmart 6510 which is both ePrint & Airprint ready.  Here's the problem:
    I can print via ePrint or Airprint, but my husband's phone will ONLY do ePrint.  I don't get it!  We have the printer and both iPhones on the same wireless network.  He even gets a message that his print job is sending/printing, but nothing prints.  I can Airprint the same file from the same e-mail and it works fine.  HP is useless...they just keep telling me to reboot the phone and/or reboot the printer.  This fixes the problem initially, but a day or two later, the same thing happens.  it's very frustrating and I'd really like a permanent fix for this.
    Can anyone help?!  Please?!
    Thank you!!

    Thanks for the feedback.  It's worth a try.  What's making me crazy is why would one phone work and not the other?  Rhetorical question, but still making me crazy. 

  • Email sends on one but not the other laptop

    I have both a MBP and a MB with the same work email address set up identically on both. Both have been used to send and receive email with no problem until last night. Suddenly I cannot send email on the MB.
    Here's details:
    I'm using my work email - for here let's call it "[email protected]". This email is set up with it's incoming server as mail.xyz.net and outgoing server as smtp.comcast.net. The selected port is 110.
    So I can send and receive all the emails I like on my MBP using the above settings. The MBP is running Mail 5.1. One the MB, when I send any email using the exact same settings, preferences, everything - I get an error message saying the server - smtp.comcast.net has rejected the sender address of "[email protected]"
    I checked the "Connection Doctor" in Mail 4.5 and it says "[email protected] is connected and logged in" to the server. But soon as I send an email, BAM, the address is rejected?
    I talked with Comcast and they confirm their server is fine, IT IS NOT REJECTING my sender address "[email protected]" and they have no clue what's going on.
    Nor do I and before I pay APPLE $50 for support I thought I'd try here.
    Any ideas???
    Thanks

    Try changing the port to 995. I have no idea why that works but it helped when I had the same problem.

  • Handoff works one way, not the other

    between my iOS devices and my Macs, handoff works consistently in the MacOS to iOS handoff direction, but almost never works the other way around.  For example, if I open Safari on the Mac, the lock screen on my iOS devices shows a Safari icon, sliding that takes me to the same webpage I was viewing on the Mac.  However, if I view a webpage on Safari, I almost never get the extra handoff Safari icon on the Mac dock.  What gives?  I believed this was supposed to be working properly in iOS 8 already...

    Thanks, Jonathan157.
    If it can help, I post the same message I posted in a similar thread, as I have 2 iOS devices, iPhone and iPad, an iMac and a MBP Retina 13" that's the one that gives problems but ONLY with official Yosemite. If I use the beta I've installed on a USB disk, everything goes well.
    Here's my experience:
    I've the same problem as fxdr, on my MacBookPro Retina 13" early 2013.
    Main problem is that Continuity works from iOS devices  (iPad Air & iPhone 5s) to MBP but not in opposite way.
    I already tried to log off and back on in iCloud on all devices, as suggested here by Chris (this topic was one of the first resources I found) without definitive results. On the contrary, it seemed to give me some problems (now vanished) between iOS devices, as they stopped working too. doing it again fixed it
    Some more details:
    1) both iOS devices work like a charm with my iMac late 2012: first tests were with MBP because I had the chance to update it first.
    2) both iOS devices work like a charm with the MBP IF I USE Yosemite BETA that I've installed on an external USB disk. It worked before official release and still works (again tested few hours ago)
    3) sometimes, on "normal" MBP, on its own, it starts work or stops without any advice, or works with iPhone but not with iPad or viceversa.
    4) It seemed to work when I deactivated FileVault on MBP (Yosemite setup asked for it to activate on first start, while it didn't on iMac, and so I did) but, after some time, it started again to give problems.
    5) when I power on MBP with "normal" disk and Yosemite official, if it works, it's not immediate. It starts working after 10-15 minutes. With USB disk and Beta, it's immediate
    6) for example, now, with battery at 14% it works from iOS device to MBP only with both devices in both ways, but 30 minutes ago, it didn't in both ways. Powered up iMac and everything works in a flash.
    Now, I'm waiting for a call from Apple support. Then, if I can't find a solution, I'll try a recovery. Any suggestions?

Maybe you are looking for

  • Outlook 2013 Signatures not showing up at all after transferring signatures from Outlook 2010

    Hello,  first time on here asking a question needing help.  I recently bought a new machine, windows 7 Pro and Outlook 2013. I successfully brought over my .pst files from my old machine running Outlook 2010, Windows 7. This was great and easy, got t

  • Creative MediaSource 5 Err

    Ok. I've used Creative for a long time now, but I have no idea how to cope with this issue--I'm not particularly 'puter literate. I bought this laptop, a Toshiba, at the end of summer and installed an older MediaSource on it (from a previous Creative

  • After installing Hyper-V on Windows 8.1 Pro, my computer won't boot

    I have a somewhat new (June 2013) HP laptop originally running Windows 8 Pro. I installed the Hyper-V component right away and it was running great. After testing Windows 8.1 Pro on another computer a couple months ago, I decided to upgrade my HP lap

  • Print report through application server

    we are running our application through 9ias .we are unable to print the report through printer attached to machine other then machine having application server installed on it .

  • WDA application problem

    Hi, i hav created a WDA Application and configured in portal. from outside i can able to acces portal, but the iview which is WDA application is not working from outside. do we need SAP GUI to access WDA Application through portal? Can some one put s