Problems With PL/SQL Exceptions and OracleExceptions

Our users require that all errors in our .net web forms be displayed in a floating window. This can be done using javascripting but we get an "unterminated string constant" error from the application when the exception sent back from an Oracle function or stored procedure contains multiple lines. The OracleException class concats multiple messages and ends each with a carriage return.
A work around used in other stored procedures used in the application is to send a return value or out parm instead of raising an exception, but our DBA (who manages this particular function) states this is not a standard PL/SQL coding practice.
Other suggestions?

Our users require that all errors in our .net web
forms be displayed in a floating window. This can be
done using javascripting but we get an "unterminated
string constant" error from the application when the
exception sent back from an Oracle function or stored
procedure contains multiple lines. The
OracleException class concats multiple messages and
ends each with a carriage return.
A work around used in other stored procedures used in
the application is to send a return value or out parm
instead of raising an exception, but our DBA (who
manages this particular function) states this is not
a standard PL/SQL coding practice.He's quite right. And anyway you don't want to change a back-end procedure to fix a front-end display problem.
If you are having trouble displaying the error message, then you may have to massage it. For instance you could replace all carrage returns with '<br>', or strip them entirely.
David

Similar Messages

  • Problem with java.sql.Clob and oracle.sql.CLOB

    Hi,
    I am using oracle9i and SAP web application server. I am getClob method and storing that in java.sql.Clob and using the getClass().getName() I am getting the class name as oracle.sql.CLOB. But when I am trying to cast this to oracle.sql.CLOB i am getting ClassCastException. The code is given below
    java.sql.Clob lOracleClob = lResultSet.getClob(lColIndex + 1);
    lPrintWriter = new PrintWriter(new BufferedWriter (((oracle.sql.CLOB) lOracleClob).getCharacterOutputStream()));
    lResourceStatus = true;
    can anybody please tell me the what is the problem with this and solution.
    thanks,
    Ashok.

    Hi Ashok
    You can get a "ClassCastException" when the JVM doesn't have access to the specific class (in your case, "oracle.sql.CLOB").
    Just check your classpath and see if you are referring to the correct jar files.
    cheers
    Sameer
    PS: Please award points if you find the answer useful

  • Problems with PL/SQL packages

    Hello,
    I face the following problem with PL/SQL stored procedures. The Oracle
    version is 8.0.5 on Windows NT 4. The PL/SQL package has a set of procedures and functions.
    The main procedure of the PL/SQL package is triggered from VC++ executable. If for some reason,
    an exception is caught in the stored procedure (like no_data_found
    exception), then the following problem occurs.
    If we try to trigger the stored procedure again through the VC++ executable,
    the variables in the stored procedures have the values as in the previous
    execution. They are not getting initialised. (The same database connection
    is used in VC++ executable).
    Currently, only if a new connection to the database is used , the problem is
    solved.
    Also, change in the input parameters of the procedure is not reflected, once the procedure fails because of any exception. Only the input which was given during the time of execution when the procedure failed,is considered.
    What could be the reason for this problem and how can this be corrected?
    Please send in your suggestions.
    Thanks and Regards,
    Ramya Priya
    null

    Hi Keith,
    I am connecting to the database as the package owner..
    I have noticed earlier that I have problems when capturing triggers also.. The content of one large trigger contains 36371 characters and when capturing it from DB, the content was truncated to 28020 characters in Designer.
    Our ideas with capturing the DB packages/procedures were to use the Designer as version control system.
    We wanted to have all objects used in a project in Designer.. entities, tables, triggers, packages, procedures, Forms files, etc. in order to make a configuration for a project release.
    Thank you,
    Claudia

  • Problem with java swing button and loop

    Problem with java swing button and loop
    I�m using VAJ 4.0. and I�m doing normal GUI application. I have next problem.
    I have in the same class two jswing buttons named start (ivjGStart) and stop (ivjGStop) and private static int field named Status where initial value is 0. This buttons should work something like this:
    When I click on start button it must do next:
    Start button must set disenabled and Stop button must set enabled and selected. Field status is set to 1, because this is a condition in next procedure in some loop. And then procedure named IzvajajNeprekinjeno() is invoked.
    And when I click on stop button it must do next:
    Start button must set enabled and selected and Stop button must set disenabled.
    Field status is set to 0.
    This works everything fine without loop �do .. while� inside the procedure IzvajajNeprekinjeno(). But when used this loop the start button all the time stay (like) pressed. And this means that a can�t stop my loop.
    There is java code, so you can get better picture:
    /** start button */
    public void gStart_ActionEvents() {
    try {
    ivjGStart.setEnabled(false);
    ivjGStop.setEnabled(true);
    ivjGStop.setSelected(true);
    getJTextPane1().setText("Program is running ...");
    Status = 1;
    } catch (Exception e) {}
    /** stop button */
    public void gStop_ActionEvents() {
    try {
    ivjGStart.setEnabled(true);
    ivjGStart.setSelected(true);
    ivjGStop.setEnabled(false);
    getJTextPane1().setText("Program is NOT running ...");
    Status = 0;
    } catch (Exception e) {
    /** procedure IzvajajNeprekinjeno() */
    public void IzvajajNeprekinjeno() {  //RunLoop
    try {
    int zamik = 2000; //delay
    do {
    Thread.sleep(zamik);
    PreberiDat(); //procedure
    } while (Status == 1);
    } catch (Exception e) {
    So, I'm asking what I have to do, that start button will not all the time stay pressed? Or some other aspect of solving this problem.
    Any help will be appreciated.
    Best regards,
    Tomi

    This is a multi thread problem. When you start the gui, it is running in one thread. Lets call that GUI_Thread so we know what we are talking about.
    Since java is task-based this will happen if you do like this:
    1. Button "Start" is pressed. Thread running: GUI_Thread
    2. Event gStart_ActionEvents() called. Thread running: GUI_Thread
    3. Method IzvajajNeprekinjeno() called. Thread running: GUI_Thread
    4. Sleep in method IzvajajNeprekinjeno() on thread GUI_Thread
    5. Call PreberiDat(). Thread running: GUI_Thread
    6. Check status. If == 1, go tho 4. Thread running: GUI_Thread.
    Since the method IzvajajNeprekinjeno() (what does that mean?) and the GUI is running in the same thread and the event that the Start button has thrown isn't done yet, the program will go on in the IzvajajNeprekinjeno() method forever and never let you press the Stop-button.
    What you have to do is do put either the GUI in a thread of its own or start a new thread that will do the task of the IzvajajNeprekinjeno() method.
    http://java.sun.com/docs/books/tutorial/uiswing/index.html
    This tutorial explains how to build a multi threaded gui.
    /Lime

  • IE11 Problem with Windows 8.1 and IIS 8.5

    I have upgraded my computer from Windows 8 to Windows 8.1, 64bit and IIS 8.5 is installed on the upgraded machine. I am unable to view with IE11 the default page of the default website  hosted on the local machine. The problem occurs with both
    the desktop version of IE11 and the Windows 8 metro style version.
    When Chrome is installed on the machine the page is visible but when using IE11 a "This page can't be displayed" message appears. The IIS Log Files reveal that it is receiving nothing from IE11. Other machines I have that have also been upgraded
    to Windows 8.1 exhibit the same fault.
    The strange thing is that when viewing pages on other networked machines exhibiting the same problem, you can see the pages on the remote machines but in all instances the local page cannot be viewed.
    It appears that there is a problem with IE11. Uninstalling and reinstalling IE11 does not fix the problem.
    Can anyone help me? Assitance with this problem would be most appreciated. 

    Description
    <dir>
    </dir><dir></dir><dir></dir><dir>
    Faulting Application Path: C:\Program Files (x86)\Internet Explorer\iexplore.exe
    </dir>
    Problem signature
    <dir>
    </dir><dir></dir><dir></dir><dir>
    Problem Event Name: APPCRASH
    Application Name: IEXPLORE.EXE
    Application Version: 11.0.9600.16384
    Application Timestamp: 52157231
    Fault Module Name: MSHTML.dll
    Fault Module Version: 11.0.9600.16432
    Fault Module Timestamp: 52620354
    Exception Code: c0000005
    Exception Offset: 002964a7
    OS Version: 6.3.9600.2.0.0.256.48
    Locale ID: 2057
    Additional Information 1: ab90
    Additional Information 2: ab9026eb5cad8b25f882a373e2d752b2
    Additional Information 3: d486
    Additional Information 4: d48664e52db6f0b0676e13c96e422192
    </dir>
    Extra information about the problem
    <dir>
    </dir><dir></dir><dir></dir><dir>
    Bucket ID: 45b7b98d077be82c89ec9142c2213a5f (-374769956)
    </dir>

  • Timestamp problem with Toplink9.0.3 and OC4J 9.0.3,9.0.4

    Hello,
    we use Toplink 9.0.3 as OR tool in our application deployed in OC4J 9.0.3 or 9.0.4. In both containers we have a problem with java.sql.Timestamp attributes of objects - when an object is fetched from DB (Oracle 9i) the time portion is always cleared. So we see only the date portion of timestamp. Timestamps are correct in database.
    We tried one workaround in 9.0.3: we replaced oc4j\jdbc\lib\classes12dms.jar with ojdbc14.jar taken from Oracle9i DB. This worked for us but we had deadlock problems (I've already posted it here some days ago) - I actually don't know if the problems were caused by this workaround or not...
    Thanks for replies.
    Marcel

    Marcel,
    Like I said, OC4J supports JDK 1.3 only (by default). Therefore, the "classes12dms.jar" driver is also only compatible with JDK 1.3. As far as I know, there is no problem associated with replacing "classes12dms.jar" with "ojdbc14.jar", but I think you also need to configure OC4J to work with JDK 1.4 -- and it's not clear to me from your postings, whether you have done that (or not).
    There was a recent post in these forums that referred to the product compatibility matrix that is available from Oracle's MetaLink Web site. Have you checked your Oracle product combination against it?
    Good Luck,
    Avi.

  • I'm having problems with Flash Videos (Youtube and ESPN)

    I have been having this problem for the last couple of days now and it is really annoying. Whenever I watch a flash video like on youtube or espn my computer freezes up and the audio will make a loud buzzing sound. I have attached a video with the post so you can see what happens. I don't have problems with anything else except this. I also get this error no matter what browser I use. I have system restored my PC as far as I can go, and I've ran a ton of scans and driver update checks and nothing seems to work.

    merci a tous pour les nombreuses réponse. j'ai dû mal a les lire vue que je ne lit que le français. je vous remercié encore une fois amicalement. Blanchette 2.
    Date: Mon, 25 Jul 2011 19:50:19 -0600
    From: [email protected]
    To: [email protected]
    Subject: Re: I'm having problems with Flash Videos (Youtube and ESPN)
    What I meant is Hardware Acceleration off (disabled).
    >

  • I downloaded a new version of firefox. It said it had problems with my norton toolbar and now it doesn't feature it in the window. I'm not that comp savvy. How do I either get the Norton toolbar up or go back to the old firefox? Thank you.

    I downloaded a new version of firefox. It said it had problems with my norton toolbar and now it doesn't feature it in the window. I'm not that comp savvy. How do I either get the Norton toolbar up or go back to the old firefox? Thank you.

    Please authorize ADE 3 with same credentials that you used with older version of ADE

  • After having yet another problem with my MacBook Pro and having to wipe the drive, I am now unable to sync my iPhones etc without erasing all the music on them. Is there a way around this? I have no other library!

    After having yet another problem with my MacBook Pro and having to wipe the drive, I am now unable to sync my iPhones etc without erasing all the music on them. Is there a way around this? I have no other library!
    iTunes is a mess! It couldn't find it's own libraries and I was forced to create a new one. Now I don't know where my music is or if any's missing.

    columbus new boy wrote:
    How crap is that?
    It's not crap at all.
    It's not that simple. For example, I've 3500 songs on my MacBook but don't want them all on my phone, so I have to manually select each song again???
    There has to be a solution.
    Why not simply make a playlist with the songs you want on the iPhone?
    and maintain a current backup of your computer.

  • I tried downloading a free app and it asked for my billing information and when i entered it, it says that there was a billing problem with a previoud purchase and i have to update it. I keep updating it and it wont let me verify it and i cant get apps

    I tried downloading a free app and it asked for my billing information and when I entered it, it said that there was a billing problem with a previous purchase and I have to update it. I keep updating it and it wont let me verify it and I cant get any apps even if they are free, and I just Deleted some apps to make room for my new upate!

    The message says: "The payment method has been denied, try another method"
    I'm living in the same country and city since I was born, so I don't think the location is the problem.
    And yes, I paid with the card a meal in Burguer King today. And nothing more.

  • HT3552 I have been trying to download apps from the app store and every time it tells me there is a problem with my previous billing and direct me to put in new billing information and every time i do that it still will not let me download any apps.

    I have been trying to download apps from the app store and every time it tells me there is a problem with my previous billing and direct me to put in new billing information and every time i do that it still will not let me download any apps.

    Have a look here >  http://support.apple.com/kb/TS1646

  • Communication problem with Adobe 9.0 and HP Printer when I scan

    I'm having a problem getting a .pdf file to come up when I scan from a HP 5610 All-in-one printer. Have uninstalled and reinstalled HP software three times but when I scan and want a pdf file it won't communicate with Adobe 9.0 reader for some reason. Is there a setting in Adobe reader that's a problem?
    Thanks.

    Thanks...found out that an HP5610xi All-in-One will not completely communicate with Adobe 9.0   Had to go to Adobe 6.0
    Date: Thu, 17 Dec 2009 03:19:49 -0700
    From: [email protected]
    To: [email protected]
    Subject: Communication problem with Adobe 9.0 and HP Printer when I scan
    May be that the HP software doesn't support Adobe Reader 9.
    >

  • Memory Problem With 4gb Crucial Ballistix and Asus M4A785TD-V EVO

    motherBoard: ASUS M4A785TD-V EVO
    bios Version :2005
    Video: amd hd5750
    Processor: AMD PHENON II X2 550 3.100MHZ
    Memory: Crucial
    Modele Memory: blt4g3d1608dt1tx0
    Capacity: 4GB
    greetings to all
    i have asus m4a785td-v evo mobo. i ve bought 4 gb crucial ballistix ram today. it says on product its 1600 mhz and cl8 but it shows on my pc 1333 mhz and cl9.  when i was searching for this problem i came across this topic: http://forum.crucial.com/t5/Crucial-Ballistix-gaming-memory/Memory-Probleme-With-8GO-Crucial-Ballistix-and-Asus-M4A785TD-V/td-p/9464 can i apply the same settings? how can i fix that?  is it possible via bios settings? thx in advance and sry for my bad english. here is some screenshots: 

    I am not good at RAM setting but the 'Timings Table' shows there is XMP-1600 profile available so I believe it would be enough to turn on that memory profile in BIOS.

  • I have problem with syncing in itunes and it stared since i installed new version of itunes.it stuck in backup step for houres.what shud i do?

    I have problem with syncing in itunes and it stared since i installed new version of itunes.it stuck in backup step for houres.what shud i do?

    So, in iTunes, when you look at the shuffle's content (in the sidebar) and click on the playlist under the shuffle, over to the right, the songs are in your desired order, correct?  Where do you look, or what do you do, that indicates the playlists are in alphabetical order?  Are you saying that when you play the songs while using the shuffle, they play in alphabetical order?
    If so, when you listen to the songs on the shuffle, are you using the playlist, or are you using the All Songs list? If you are in the default All Songs list, with the shuffle's power switch set to play-in-order (the middle position), the songs play alphabetically, I believe. 
    The 3rd gen shuffle uses VoiceOver.  If you are in the All Songs list, you need to use VoiceOver to switch to the playlist (see manual linked below for details).  When you are in the playlist (with the shuffle's power switch set to play-in-order), then the songs should play in playlist order.
    There are more details in the manual for the 3rd gen shuffle, which is online here
    http://manuals.info.apple.com/en_US/iPod_shuffle_3rdGen_UG.pdf
    See page 22 for the section about setting up and using VoiceOver.  The part about switching playlists starts on page 23 (Using the Playlist Menu).

  • TS1646 hello  I have problem with regist my visa and I cannot buy from store the message came in the end of form is says the phone number must be a 7-digit number and I have writed but not accepted iam from saudi arabia my mobile is 966504850992 pls answe

    hello 
    I have problem with regist my visa and I cannot buy from store
    the message came in the end of form is says
    the phone number must be a 7-digit number
    and I have writed but not accepted
    iam from saudi arabia
    my mobile is 966504850992
    pls answer
    thanks
    dfr aldossary

    Wow, Karan Taneja, you've just embarrassed yourself on a worldwide support forum.  Not only is your post ridiculous and completely inappropriate for a technical support forum, but it also shows your ignorance as to whom you think the audience is.  Apple is not here.  It's users, like you. 
    If you would have spent half the time actually reading the Terms of Use of this forum that YOU agreed to by signing up to post, as you did composing that usesless, inappropriate post, you (and the rest of us on this forum) would have been much better off.

Maybe you are looking for

  • My HP Pavillion w/Windows XP will not recognize my new External HDD

     HP Pavillion w/Windows XP Media Center   m7267c Desktop PC Is it necessary to pay a outside Driver manager to restor the ability of my PC to instal Driver Software for devices that the specific Mfg states should already have present on my OS? I purc

  • Monitoring 2k footage via SDI, Premiere CC, Decklink Studio

    Hello all, System specs: MacPro 4,1 2.26Ghz 8 core, 32 GB RAM, OSX 10.8.4 Adobe CC Resolve 9.1.5 FSI LM-2461W BM Decklink Studio 2 BM Desktop Video 9.7.7 After searching the forums, I'm here seeking the collective wisdom of the Adobe CC user base. I'

  • Why are Navigation Tabs visually different in IE than in Firefox? - Fix?

    I have an Apex 3.2 app that is using Theme 15. I have chosen to use standard tabs for navigation between pages. In Firefox the tabs look very good. Lined up and spaced nicely with titles. Problem.....when I go to IE and check out the application, the

  • Itunes can't connect

    I have a MacBook running 10.5.8 with latest version of itunes.  I am trying to log into my itunes account, but it is saying there is a problem connecting to the internet and that I should check my connection or check back later.  My internet connecti

  • Process Chains Always Hangs at the second step waiting for an event

    Gents; all BI process chains created in Production system are always hanging in the second step waiting for an event RSPROCESS with a certain parameter. This issue is happening for all process chains in Production system and it is not happening for t