Upgrade to 6.1 - sql SP stops working

Hi
I'm currently using weblogic 6.1, MS SQL Server 7.0,
and the weblogic sql server driver. First off this
problem does not occur on other application
servers or on Weblogic 6.0sp2!
(Apologies if the formating is messed up)
I have the following stored procedure:
create procedure spTest
     @p1 varchar(200) output,
     @p2 varchar(100) output
as
     select @p1 = 'qwerty', @p2 = 'asdfgh'
return 1000
go
and the following jsp page:
<%@page import="java.sql.*" %>
<%
Class.forName("weblogic.jdbc.mssqlserver4.Driver").newInstance();
Connection conn=
     DriverManager.getConnection("jdbc:weblogic:mssqlserver4:db@server:1433:user=u&password=");
try
     CallableStatement cstmt =
          conn.prepareCall( "{?=call spTest(?,?)}" );
     cstmt.registerOutParameter( 1, java.sql.Types.INTEGER );
     cstmt.registerOutParameter( 2, java.sql.Types.VARCHAR );
     cstmt.registerOutParameter( 3, java.sql.Types.VARCHAR );
     cstmt.executeUpdate();
     /* uncomment to cause sql exception
     int i = cstmt.getInt(1);
     out.println("success <p>");
catch ( SQLException e )
out.println("SQL exception: " + e.getMessage());
%>
As soon as I uncomment the code in the jsp page
and access the return value of the stored
procedure I get a sql exception:
"SQL exception: cannot convert 'qwerty'
to a BigDecimal"
Again this is only a problem with Weblogic 6.1.
Everything worked fine under Weblogic 6.0sp2.
Nothing else has changed between during the
"upgrade" from 6.0sp2 to 6.1

Hi Sree,
I used your code in a new page and it still fails on my machine. My setup is as
follows:
MS SQL Server 7.0 sp2
Weblogic 6.1 (running on Windows 2000 professional - same problem running on Solaris
2.8)
The latest weblogic jdbc mssqlserver driver from the download site. Older weblogic
jdbc drivers also fail.
The problem is defintely related to getting the first output paramter i.e. the
REUTRN value of the stored procedure.
What database are you using, os etc? Is yours a clean install of wls 6.1? Are
you using different drivers.
Any help would be greatly appreciated.
Regards,
Richard
"Sree Bodapati" <[email protected]> wrote:
Hi Richard,
I used your code on my install of WLS6.1 and it worked fine without any
error after I uncommented the section you have marked.
here the jsp I used,
<%@page import="java.sql.*" %>
<%
Driver myDrv = (Driver)
Class.forName("weblogic.jdbc.mssqlserver4.Driver").newInstance();
Properties props = new Properties();
props.put("db","wls");
props.put("server","server1");
props.put("user","sree");
props.put("password","****");
props.put("port","####");
Connection conn=myDrv.connect("jdbc:weblogic:mssqlserver4", props);
try
CallableStatement cstmt =
conn.prepareCall( "{?=call spTest(?,?)}" );
cstmt.registerOutParameter( 1, java.sql.Types.INTEGER );
cstmt.registerOutParameter( 2, java.sql.Types.VARCHAR );
cstmt.registerOutParameter( 3, java.sql.Types.VARCHAR );
cstmt.executeUpdate();
/* uncomment to cause sql exception */
int i = cstmt.getInt(1);
out.println("The value of i is : "+i);
out.println("success <p>");
catch ( SQLException e )
out.println("SQL exception: " + e.getMessage());
%>
sree
"Richard Human" <[email protected]> wrote in message
news:[email protected]...
Hi
I'm currently using weblogic 6.1, MS SQL Server 7.0,
and the weblogic sql server driver. First off this
problem does not occur on other application
servers or on Weblogic 6.0sp2!
(Apologies if the formating is messed up)
I have the following stored procedure:
create procedure spTest
@p1 varchar(200) output,
@p2 varchar(100) output
as
select @p1 = 'qwerty', @p2 = 'asdfgh'
return 1000
go
and the following jsp page:
<%@page import="java.sql.*" %>
<%
Class.forName("weblogic.jdbc.mssqlserver4.Driver").newInstance();
Connection conn=
DriverManager.getConnection("jdbc:weblogic:mssqlserver4:db@server:1433:user=
u&password=");
try
CallableStatement cstmt =
conn.prepareCall( "{?=call spTest(?,?)}" );
cstmt.registerOutParameter( 1, java.sql.Types.INTEGER );
cstmt.registerOutParameter( 2, java.sql.Types.VARCHAR );
cstmt.registerOutParameter( 3, java.sql.Types.VARCHAR );
cstmt.executeUpdate();
/* uncomment to cause sql exception
int i = cstmt.getInt(1);
out.println("success <p>");
catch ( SQLException e )
out.println("SQL exception: " + e.getMessage());
%>
As soon as I uncomment the code in the jsp page
and access the return value of the stored
procedure I get a sql exception:
"SQL exception: cannot convert 'qwerty'
to a BigDecimal"
Again this is only a problem with Weblogic 6.1.
Everything worked fine under Weblogic 6.0sp2.
Nothing else has changed between during the
"upgrade" from 6.0sp2 to 6.1

Similar Messages

  • After upgrading to IOS8.1 my microphone stopped working. cannot make a call, cannot record a voice memo, but Siri works !!!

    after upgrading to IOS8.1 my microphone stopped working. cannot make a call, cannot record a voice memo, but Siri works !!! Surely this must be software since I presume there are not two microphones, one for Siri and one for everything else. Tried resetting, rebooting, switching off noise cancelling. What else is there?

    Hi there hansadj,
    You may find the microphone troubleshooting steps in the article below helpful.
    If your voice is too faint or sounds unclear using iPhone, or iPod touch 
    -Griff W.  

  • Yesterday after upgrading the Cisco AnyConnect app, it stopped working; Today, the app is not available anymore from the apple store, what happened?

    Yesterday after upgrading the Cisco AnyConnect app, it stopped working; Today, the app is not available anymore from the apple store, what happened?

    There is an explanation in the following link in the section "What's new in version 3.0.09440" that there was a problem with the update. It's available again now. https://itunes.apple.com/us/app/cisco-anyconnect/id392790924?mt=8

  • Satellite A300D - Upgrading from Vista - "Setup.exe has stopped working"

    Hello,
    I am using Satellite A300D with Vista and I have been trying to upgrade to Windows 7 using the Toshiba Upgrader.
    After choosing the language and proceeding with other steps, it asks me to uninstall a bunch of programs. Some are uninstalled just fine but when it comes four other programs it says "Setup.exe has stopped working" and it does not uninstall.
    I have tried uninstalling them manually but I got the same message.
    These programs are;
    Atheros Driver Installation Program
    Toshiba Hardware Setup
    Toshiba Supervisor Password
    Realtek High Definiton Audio Driver
    As a result I cannot proceed with the upgrade.
    Anyone know what the issue might be?
    thanks in advance,
    Can - TR

    I am having the exact same problem. I have the toshiba satellite 350D. I am only stuck at the atheros driver installation program. As soon as it's supposed to be uninstalled I receive the " setup.exe. has stopped working" I tried uninstalling manually as well and get the same message.
    I think the only fix would be to reinstall vista and then try upgrading to windows 7 again. I would like to stay away from reformatting though.
    I would love an answer to this question as well!! (frustrating)

  • SCSM - R2 UR2 upgrade - Rob Ford's MP has stopped working - Parent IR or SR Affected User in Manual Activity

    Hi,
    Since we upgrade SCSM 2012 last weekend the workflows associated with Rob Ford's 'Parent IR or SR Affected User in Manual Activity' have been failing
    See here for Rob Ford's solution
    http://gallery.technet.microsoft.com/See-Parent-IR-or-SR-3b8804bf#content
    Has anyone else come across MP/workflows that have stopped working following the upgrade? My company are pretty reliant on this running. Any help you can provide woul dbe really appreciated.
    tamrep

    I already answered this offline but if anyone has this issue here is my reply:
    Did you upgrade to R2 and are you seeing “Invalid HEX Character” errors in the Operations Manager event log on your workflow server?
    If so, there is a bug in R2 that causes this. You need to request a brand new hotfix, KB2961848 to address this.
    Rob Ford scsmnz.net
    Cireson www.cireson.com
    For a free SCSM 2012 Notify Analyst app click
    here

  • After I upgrade lion to Mavericks, App Store stopped working, any idea how to fix this?

    After I upgraded OS lion to Mavericks, in app store I had some new updates, then after a system update, which require restart, then App Store, stopped working, any one can tell me what should I do to fix this problem?

    Guys just contact apple support team . They will guide you well and your problem will most probably be resolved. I contacted them and following their instructions my mac is working totally fine again. If at all the problem persist the re-install mavericks by following steps
    1). Switch of mac
    2). Hold option/alt key and then switch it on.
    3). Then choose your language and continue.
    4). Now Re-Install OS X .
    5). It will start downloading and installing.
    6). Leave it idle for the required amount of time.
    7). It will restart automatically and your problem will be definitely resolved.
    Note:
    a. If there is any problem of connection follow the same steps and the downloading will start where it stopped.

  • After upgrade exchange owa, ecp and outlook stop working

    Yesterday I installed the updates that Microsoft had released. Unfortunate as it looks like OWA, ECP and Outlook stopped working after this installation. See picture for the updates were made.
    What you are greeted by when besker OWA and ECP is a blank page. Is anyone had the same problem and knows how to fix this?
    Or is there a way to back these updates?
    Jesper B

    Hi Jesper,
    Is there any update? Have the issue been resolved?
    The updates are all for Windows server 2012 R2. What's your Exchange server version? Additionally, please check the following in IIS Manager:
    a. In IIS manager > Default Web Site, make sure Anonymous Authentication is Enabled in Authentication.
    b. Double-click SSL Settings, confirm that "Require SSL" is checked on the root of the default website.
    c. Restart IIS service by running iisreset /noforce from a command prompt window.
    If possible, please collect more event logs in Event Viewer for further analysis.
    Regards,
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Winnie Liang
    TechNet Community Support

  • My Ipad Mini Remote app worked consistently until I upgraded my iTunes. Now it stops working.

    The Remote app worked consistently until I upgraded my iTunes.  Now when I first open  on my ipad  it will work but on subsequent tries it won’t connect and tells me that I have to turn on home sharing (Which is already turned on). This is using my ipad mini to connect to iTunes on Win 8.1
    Very frustrating. I wish I hadn't downloaded the iTunes update!

    Look at this similar post https://discussions.apple.com/thread/3816868?start=15&tstart=0
    Another way. You can use a USB flash drive & the camera connection kit.
    Plug the USB flash drive (works the same with an SD card) into your computer & create a new folder titled DCIM. Then put your movie/photo files into the folder. The files must have a filename with exactly 8 characters long (no spaces) plus the file extension (i.e., my-movie.mov; DSCN0164.jpg).
    Now plug the flash drive into the iPad using the camera connection kit. Open the Photos app, the movie/photo files should appear & you can import. (You can not export using the camera connection kit.)
     Cheers, Tom

  • Upgraded to IOS6 and streaming meye stopped working

    I have cameras at my business using meye. It is now failing to connect since I upgraded software. IS there anyone that may know why the upgraded operating system would prevent me from watching my surveillance cameras? Any ideas or help would be appreciated.
    MD

    Hi
    This worked for me:
    I called Huawei and spoke to a service agent and the person I got through to was very helpful.
    I accessed the firmware update at the official site: http://consumer.huawei.com/en/support/downloads/detail/index.htm?id=31145
    The agent advised me to unpack the download with WinRar on a Windows computer and then access the unpacked files on my Mac.
    I had tried using a Mac rar file unpackers that I downloaded through the App Store but they did not work.
    My Huawei E303 works now for me.
    Thanks.

  • Upgrade to iOS5 and 3G has stopped working

    I upgraded to iOS 5 on my iphone 4 and 3G now doesn't work anyone else had this problem?

    i had this same problem with my iphone 3gs. i reset the network setting and it works for a while, then can't make make or recieve calls or sms, or log on to the internet on the 3g netork.

  • "Upgrades" make many "NEEDED" Add-ons STOP Working! (ie Kaspersky Pwd Mgr, FEBE, No-Script, Skype, and MANY More wont work!) Why is this? I fear the ppl who write the Add-Ons will become frustrated and will stop. Plz email me- Thx

    Im not sure what other details I can give you, that would be pertinent. email me and ask me what you will .. and Ill be happy to oblige you. But having suggested Firefox to many of my clients (I owned a Computer Sales and Service (STORE - not a basement operation) for over 15 yrs and even on our New Computers, FIREFOX is what we installed and recommended! Many of my old clients now (Had to close the business last year due to a number of factors) call me at home and are asking me the same question. Why wont my ADD-ONS work with Firefox. Firefox tells me to Upgrade to the new one, and suddenly we cant get .... (their add ons) to work.
    I know Kaspersky was another product we sold a lot of, so their password managers are no longer working properly. More specifically their AUTO FILL function will not load when a new web page is loaded, thus the person can not access their bank acct, etc ... as they were dependent on Kaspersky to do all the remembering for them!

    Add-ons are Disabled after Updating Firefox
    * https://support.mozilla.com/en-US/kb/Add-ons%20are%20disabled%20after%20updating%20Firefox
    Kaspersky Password Manager 5.0.0.155
    * http://forum.kaspersky.com/index.php?showtopic=215472
    FEBE 7.0.2
    * https://addons.mozilla.org/en-US/firefox/addon/febe/#detail-relnotes
    NoScript 2.1.2.8
    * https://addons.mozilla.org/en-US/firefox/addon/noscript/
    Check availability of add-ons using the following link:
    * https://addons.mozilla.org/en-US/firefox/
    It can also be because some of your add-ons might be conflicting with other add-ons. Use this link to find out if that's the problem:
    Troubleshooting extensions and themes
    * https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes
    Check and tell if its working.

  • Upgraded to iOS 7 and speakers stopped working

    They work for the phone ringing and the alarm only. No sound on videos or music. Can't hear iTunes Radio etc..

    Your phone might be on do not disturb mood... So, when it's locked, you receive no calls. If you see a crescent at the top of your screen, go to setting, do not disturb, and turn off the manual
    Hope that help

  • SQL Developer stopped working (screenshot)

    I get this error, tried redownloading the latest version, same error. Worked perfectly fine yesterday
    http://www.postimage.org/image.php?v=aVf3HFS
    Thanks

    OK solved, since I installed the wrong version of ODAC, a new key in HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE was created. I deleted it and just kept the one for 10g and it works now

  • After upgrade to 5.1.1 bluetooth stop working with handsfree

    Hi there, I have a buildin handfree in my renault scenic 2010 model.After upgrade to 5.1.1 bluetooth crash handsfree in my car.I can't use my phone during drive. I don't see any bluetooth device connected to. Interesting thing is that before upgrade device reconnect several time after connect successfully. regards

    Try performing a system repair using PC Companion as this will often fix issues - This will factory reset your phone and erase all data so best to backup before you begin
    Switch off your phone and unplug from Pc (Hold volume up and power for around 10 seconds)
    Start PC Companion and select Support zone then Update my phone/tablet then in Blue Repair my phone/tablet and follow the on screen instructions - When prompted connect your phone still switched off holding volume down or back button - This should start the repair or reformat process
    If you are using Windows 8/8.1 or a 64bit operating system then adjust the settings for PC Companion and run in compatibility mode and chose Windows 7 or XP

  • I upgraded to lion and Spotlight has stopped working.  I have added and removed volumes in Spotlight Preferences, but still no joy.

    I belive I stopped the index at the initial launch after install.  I can't find a way to restart the indexing.
    Below is an example of what happens when I search using Spotlight.
    Any help appreciated.

    I have Harman Kardon Soundsticks but they are connected via USB. They are recognised without any drivers - I have connected them to three Macs and they never needed drivers.
    If you connect via minijack, I don't see how the Mac can recongise them other than compensate according to the impedence, but I may be wrong.
    Do you get output from them when you select Line Out or Headphones from Audio System Preferences?

Maybe you are looking for

  • Youtube broken after update!

    I've updated to the latest OS (5.1) on my Apple TV 3. YouTube, WSJ, MLB all have been broken since then. I cannot login, search or watch any video on the Youtube app what-so-ever. Stragely, Vimeo is still working. I also noticed that when I go to Set

  • Ipod to computer

    can u tranfer music from your ipod to your music library and if yes, how i connect my ipod to the pc and try to drag it but will not take

  • Powerbook G4 12"

    I have a powerbook G4 12" and all i want to run on it is Final Cut Pro and maybe Livetype. It has 1.25 Gb of ram and I am wondering if the Powerbook can handle it?

  • Zero Suppression Not working in Bex Query with Formula Variable

    Hi Friends, I have a peculiar issue here. We upgraded from 3.5 to 7.0 recently. Some of our Bex queries have been behaving abnormally after this. In these queeries, we have some key figures which use formula variables (ready for input and mandatory)

  • Create class in custom.css to define one's own default colors for charts

    Hi All, I need to create a set of default colors for bar charts instead of the default ones. I dont want to change the colors in palette.xml file because there are other charts depending on the default colors. Is there a way I can create a new class