Error in using Array in pro*C

My test pro*C code is as follows:
long empIdArray[50];
EXEC ORACLE OPTION (SELECT_ERROR=NO);
EXEC SQL
SELECT emp_id INTO :empIdArray
FROM emp ;
/* check error*/
if ((sqlca.sqlcode != 0) && (sqlca.sqlcode != 1403) && (sqlca.sqlcode != -1405))
printf("The sqlca.sqlcode <%d>(%s) occured when retrieving data from the emp.", sqlca.sqlcode, sqlca.sqlerrm.sqlerrmc);
}else if (sqlca.sqlcode == 1403){ /*check no_data_found error*/
printf("NO Data found error (%s) occured when retrieving data from the emp.", sqlca.sqlerrm.sqlerrmc);
}else{
printf("Select successful");
When running the above code, the error code checking falls in the no_data_found section irrespective of the number of rows in the emp table. As per the documentation, if the number of rows in the emp table is more than 50, then the select statement should bring the first 50 rows. If emp table contains less than 50 rows, the select statement will fetch that much rows.
Any idea why I'm getting the no_data_found error?

thanks for reply but,
I got it, It was a silly error ....the tutorial i referred was old jakarta lib jstl 1.0 based so the URI was http://java.sun.com/jstl/core given into it .but, i was using jstl 1.1 for which URI is http://java.sun.com/jsp/jstl/core. just changed in <tablib> at jsp made the error go away. :)

Similar Messages

  • How do I fix the Database Organizer Error when using Acrobat 9 Pro on desktop PC with Windows 8.1 and 64-bit OS?

    After loading Acrobat 9 Pro on my desktop PC (Windows 8.1; 64-bit OS), opening and closing a previously saved pdf file, I constantly get a message pop-up that indicates a "database organizer" error.
    How do I fix this?
    I have read multiple responses at various forums and they do not seem to apply, or have not worked for others, with regard to the details of my version of Acrobat and Windows OS.
    I'm beginning to think that the only solution is to purchase the latest version of Acrobat Pro and install it on my PC, which, of course, I would prefer not to do, unless this is my only viable option.
    Can this problem, specific to my version of Acrobat and Windows OS, be fixed or is the simple answer:  purchase the latest version of Acrobat Pro, because there is no fix for my version of Acrobat/Windows OS?
    Any help would be greatly appreciated.
    FHW

    Hi Frank ,
    Please refer to the following link and see if this helps.
    https://helpx.adobe.com/acrobat/kb/error-organizer-database-damaged-reset-1.html
    Regards
    Sukrit Dhingra

  • Error 29 using final cut pro X ?

    How to burn a DVD in Final Cut Pro X ? I keep getting error code -29 .

    This has been reported here a few times.
    The solution in this thread may (or may not) apply to your project.
    Russ

  • Error in generating HTML output using Central Output Pro Server 5.5

    I am getting the following error while generating HTML output using the Output Pro Server. A new printer was created with the Physical Device as "HTML Template Generation - [html]" and added to the Job.<br /><br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [400](1801) The printer name is invalid.<br /><br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [3015]Error, unable to open printer.<br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [3008]Error, unable to get info about device 'PAYMENTADVICEHTM.html' attached to port '<nil>'.<br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [400](183) Cannot create a file when that file already exists.<br /><br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [2]Error opening output device/file 'PAYMENTADVICEHTM.html'.<br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [400](6) The handle is invalid.<br /><br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [3018]Error ending page on printer.<br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [210]Nothing was printed.<br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfserver.exe: [314]Agent exit message: [3018]Error ending page on printer.

    If I were to guess, I'd guess that your filename is invalid. How about removing all special characters (spaces, brackets, etc.) from the device name. Also, make sure your form was compiled for HTML.
    I haven't actually used the HTML driver, but these are general things you should do if you have trouble with any Central driver.
    Regards,
    Rob McDougall
    Indigo Pacific

  • I am using Acrobat XI Pro and tried to install the current update. I got this error message: "Error 1328.Error applying patch to file C:\Config.Msi\pT64b3.tmp It has probably been updated by other means1 and can no longer be modified by this patch. For mo

    I am using Acrobat XI Pro and tried to install the current update. I got this error message: "Error 1328.Error applying patch to file C:\Config.Msi\pT64b3.tmp It has probably been updated by other means1 and can no longer be modified by this patch. For more information contact your patch vendor." tried uninstalling and reinstalling and still get the error. Searched for C:\Config.Msi\pT64b3.tmp and cannot find the path or the file

    For AA XI, you only need the 11.0.09 patch. Download from http://www.adobe.com/support/downloads/product.jsp?product=1&platform=Windows (Use "MAC" if a MAC is used).

  • Trying to convert a pdf to a word doc using Acrobat XI Pro. I am getting formatting errors and scrambled text, especially right below headings. Not all headings affected, just some, but all the same paragraph tag. Any ideas?

    I am trying to convert a pdf  to a word doc. The pdf was created in Framemaker. I am using Acrobat XI Pro and getting formatting errors and scrambled (or missing) text, especially below a heading. Any fixes?

    Hi pakbecker,
    Please try updating to Acrobat 11.0.7 and check.
    In case you still face issues,  i would like to have a look at th doucment.
    Send me an email at [email protected]
    Regards,
    Rave

  • Hi.  I am having issues with copying files to my shared WB 2TB HDD connected to my airport extreme.  Comes up with error 50.  I am using a Macbook Pro to copy from so not sure what I am doing wrong.  Can someone help? thanks Rory

    Hi.  I am having issues with copying files to my shared WB 2TB HDD connected to my airport extreme.  Comes up with error 50.  I am using a Macbook Pro to copy from so not sure what I am doing wrong.  Can someone help? thanks Rory

    These links might provide some information that may be of help.
    http://support.apple.com/kb/TA20831
    https://discussions.apple.com/message/2035035?messageID=2035035
    I've encountered this error myself upon occasion.  If I remember correctly, it was a permissions/ownership issue with the some of the files I was copying.

  • Error using Arrays.toString()

    Hi there,
    I am getting the following error using Arrays.toString on a String Array. 'toString() in java.lang.Object cannot be applied to (java.lang.String[]).
    The line in question is at the bottom of the below code. It starts 'rtitem.appendText.....
    import lotus.domino.*;
    //import java.util.Arrays;
    public class JavaAgent extends AgentBase {
         Database curDb;
         String[] dbList;
         public void NotesMain() {
         int dbcount = 0;
              try {
                   Session session = getSession();
                   AgentContext agentContext = session.getAgentContext();
                   //get current database
                   Database curDb = agentContext.getCurrentDatabase();
                   //build a list of servers;
                   String[] servers = {"Norwich002/Norwich/MoneyCentre","Norwich003/MoneyCentre","Norwich004/MoneyCentre","Norwich005/MoneyCentre","Norwich007/Norwich/MoneyCentre","Norwich008/Norwich/MoneyCentre","Norwich010/Norwich/MoneyCentre","Norwich020/Norwich/MoneyCentre","Norwich021/Norwich/MoneyCentre"};
                   //loop through server list
                   int arraylen = servers.length;
                   for(int i=0;i <= arraylen;i++){
                        //create a notesdbdirectory collection for the current server iteration
                        DbDirectory dbdir = session.getDbDirectory(servers);
                        //get first database
                        Database db = dbdir.getFirstDatabase(DbDirectory.DATABASE);
                        //loop through databases in dbdir
                        while (db != null){
                             //add database details to our list
                             dbList[dbcount] = db.getTitle() + " - " + db.getFilePath();
                             dbcount++;     
              } catch(Exception e) {
                   e.printStackTrace();
              private boolean sendEmail(String subject){
                   try{
                        Document mailDoc = curDb.createDocument();
                        mailDoc.replaceItemValue("SendTo","Hayleigh S Mann/Norwich/MoneyCentre");
                        mailDoc.replaceItemValue("Subject",subject);
                        RichTextItem rtitem = mailDoc.createRichTextItem("Body");
                        rtitem.appendText(java.util.Arrays.toString(dbList));
                        mailDoc.send();
                        return true;
                   }catch(Exception e){
                        e.printStackTrace();
                        return false;

    No, that doesn't make any sense. Arrays.toString can take any array as an arg: [http://java.sun.com/javase/6/docs/api/java/util/Arrays.html#toString(java.lang.Object[])]
    import java.util.*;
    public class A {
      public static void main(String[] args) {
        String str = Arrays.toString(args);
        System.out.println(str);
    :; java -cp . A abc 123 xxx
    [abc, 123, xxx]

  • Error while using "HTML Standard Editor" item in "Array VPN"

    Hi,
    The "HTML Standard Editor" item is not displayed properly when the person is trying to enter data, when he is logged in using Array VPN. An error appears in the item box "Unable to Process request. The requested URL has an unsupported encoding.". Can this be resolved? This error is appearing in Firefox, and in IE the box appears but is not editable,i.e Nothing can be entered in the box.
    Please assist me in this matter.
    Thanks,
    Vignesh

    Vignesh,
    I've worked with clients in the past that used VPN clients that attempted to cache and compress JavaScript code being sent to the browser. The problem was that the algorithms were terrible and ended up breaking the code.
    Do you know if this is happening? If so, there's probably an option to turn it off. Take a look at the source code for the problematic page using the VPN connection and compare it to the source from a page without using VPN. If the page is really busy you can create a blank test page and add the item that's not working. That should make comparing the changes easier. Consider using a code comparison utility.
    Regards,
    Dan
    http://danielmcghan.us
    http://www.skillbuilders.com

  • I'm using DVD Studio pro to burn a dvd but it won't let me cause I keep getting a "Formatting Failed" error message.  It says "Formatting was not successful. Layer 0 exceeds max layer size allowed. Choose a suitable marker location." What does this mean?

    I'm using DVD Studio pro to burn a dvd but it won't let me cause I keep getting a "Formatting Failed" error message.  It says "Formatting was not successful. Layer 0 exceeds max layer size allowed. Choose a suitable marker location that will support this condition." What does this mean?
    Kris

    It means your file is too large to fit on a single layer disk.
    Recompress to keep the overall size (audio,video and menus) below 4.5GB
    x

  • Why do I get an error page when I select Toolkit for CreateJS? I am using CS6 Flash Pro.

    Why do I get an error page when I select Toolkit for CreateJS? I am using CS6 Flash Pro.

    hello Mac.INXS, please [[Clear the cache - Delete temporary Internet files to fix common website issues|clear the cache]] & [[Delete cookies to remove the information websites have stored on your computer|cookies from mozilla.org]] and then try logging into AMO again.

  • I am using windows 8 pro in my laptop, when i try to install icloud 3.1 its giving me a error message " this app cant be run , check the version " what should i do now ?

    i am using windows 8 pro in my laptop, when i try to install icloud 3.1 its giving me a error message " this app cant be run , check the version " what should i do now ?

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • I am using DVD Studio Pro to create a DVD. The assets total about 2.4GBs using a 4.7 GB disc I still get the error " not enough space on disc" Does anyone know why?

    I am using DVD Studio Pro to create a DVD. The assets total about 2.4GBs using a 4.7 GB disc I still get the error " not enough space on disc" Does anyone know why?

    Start by using this to make sure your assets really fit on the disk:
    http://www.kenstone.net/fcp_homepage/bit_budget.html

  • Is this now where to ask DVD Studio Pro questions?  If not, please let me know where.  Here's my question:  Using DVD Studio Pro 3, when trying to burn a disc which is 4.5GB, I get error message "Not eough disk space in target folder".  What to do?

    Is this now where to ask DVD Studio Pro questions?  If not, please let me know where.  Here's my question:  Using DVD Studio Pro 3, when trying to burn a disc which is 4.5GB, I get error message "Not eough disk space in target folder".  What to do?

    Thanks.  Unfortunately, I need to make a master DVD that can then be duplicated in bulk as a single layer disc.  This surprises me because I tried burning a different DVD project that has worked in the past which is also 4.5 GB and now I could not burn that either.  I also reencoded some material to get the new project down to 4.4 GB but it still would not burn.  Any ideas are appreciated.

  • Error When Using Class :(

    Hey,
    Class:
    package
        import flash.display.MovieClip;
        import flash.events.Event;
        public class Main extends MovieClip
            public var enemyA:Array = [];
            public var birdA:Array = [];
            public var rowNum:int = 2;
            private var gap:int = 100;
            private var obj_no = 2;
            public var enemy1:mychar = new mychar();
            public var TheBird:BirdChar = new BirdChar();
            public function Main()
                // constructor code
                createEnemyF();
                createBirdF();
                this.addEventListener(Event.ENTER_FRAME,loopF);
            public function createEnemyF()
                for (var i:int = 0; i < rowNum; i++)
                    for (var j:int = 0; j < obj_no; j++)
                        enemy1.x = Math.random() * stage.stageWidth - enemy1.width;
                        enemy1.y = - i * (gap + enemy1.height) - 30.65;
                        enemyA.push(enemy1);
                        addChild(enemy1);
            public function createBirdF() {
                TheBird.x = 270.95;
                TheBird.y = 350.95;
                birdA.push(TheBird);
                addChild(TheBird);
            public function loopF(event:Event) {
                updateEnemyPositionsF();
                updateBirdPositionsF();
                hitTestF();
            public function updateEnemyPositionsF() {
                enemy1.y +=  2;
            public function updateBirdPositionsF() {
                TheBird.x = mouseX;
            public function hitTestF() {
                if(TheBird.hitTestObject(enemy1))
                    gotoAndPlay(5);
                    trace('The Bird Hit Enemy 1');
    This conflicts and causes this error:
    1046: Type was not found or was not a compile-time constant: MouseEvent
    ^ ^ Code repeats to all of my event listeners
    Thanks for your time.

    Thanks, i thought it might be this because of previous problems but i seen i already had : import flash.events.Event; so i thought that would be OK!
    Second Error:
    1180: Call to an undefined method Timer.
    I think this is the same sort of thing but what to import to fix this?
    So far these are my imports:
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.events.MouseEvent;
        import flash.events.TimerEvent;
    Thanks for helping.
    Date: Thu, 3 Nov 2011 05:36:22 -0600
    From: [email protected]
    To: [email protected]
    Subject: Error When Using Class
        Re: Error When Using Class
        created by markerline in Flash Pro - General - View the full discussion
    Looks like you imported events.Event but not events.MouseEvent (or some similar syntax) basically you must import MouseEvents separately from other Events.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4005227#4005227
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4005227#4005227. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Flash Pro - General by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

Maybe you are looking for

  • Sales order status "Being processed" due to "Not referenced" in Item level.

    Hi All, I am facing with document status issue. I have the following process, 1) Main contract (without line items )--> Yearly Contract-->Billing--> Renewal contract w.r.to First Year contract and this renewals will continue until the customer cancel

  • Firewire 800 problem

    Hi, I'm newbie to the Server side of Macs, so if anyone can help with this problem, please speak in lay-man's terms. The problem I have is with my Lacie 1Tb Bigger disk which I use to store the backup catalogues etc from Retrospect. Everything was fi

  • Info Spoke-ABAP Code Modification

    Hi,    The below code is used as a customer exit variable Which give te YEAR TO DATE value on a KF. Could you please mofify this,That output will be year to date value & to eliminate '0' values and have to use it in Infospokes OUT PUT: If i use this 

  • Guide for structure setup for jd edwards enterprise one

    Hi all I am trying to do some setup (on test environment) for jd edwards enterpriseone. I have downloaded implementation guides like financial management, general accounting, account payable, account receivable etc. I have red that I have to create a

  • Novice seeking help with PSD vs. JPEG in PSE12

    I am changing from PSE8 to PSE12 and realized upon trying 12 today that PSE12 automatically saves my edited pictures in PSD format where PSE8 saved them in JPEG.  I don't use the organizer for catalogs, instead opening up folders where I've saved my