Defect: Compiler wrongly complains about unreachable code.

Here is a packaged procedure body for a procedure that is listed in the package spec:
PROCEDURE RunReportPreRunCustomCode
(in_report_oid IN NUMBER
,in_pageSize_nr IN INTEGER
,in_parameterList_tt IN parameterKeyValuePair_TT
,inout_reportRun_oid IN OUT NOCOPY NUMBER
,inout_error_yn IN OUT NOCOPY VARCHAR2
,inout_outputOption IN OUT NOCOPY VARCHAR2
,inout_reportOutPut_cl IN OUT NOCOPY NCLOB
IS
BEGIN
NULL; -- Compiler shows this warning for this line: Warning(667,7): PLW-06002: Unreachable code
-- dbms_output.put_line('x');
END;
It gets better! I removed the comment line and the warning stopped showing up. I put the comment line back in, and it hasn't come back (yet). I've seen this before.
Removing the comment in this procedure also caused the same warning for another procedure to go away!
The code in that procedure looked like this:
BEGIN
IF in_some_param IS NULL THEN
NULL;-- Compiler shows this warning for this line: Warning(667,7): PLW-06002: Unreachable code
ELSE
...

Does compiling in SQL*Plus also produce the same behaviour? It should, since they both use the same compiler.
I've just tested this in SQL*PLus. After setting the plsql_warnings to "enable:all" to match the default settings in sqldeveloper, the same warning is produced so it is a dbms issue, not sqldeveloper issue.
Edited by: Jim Smith on Oct 11, 2008 4:01 PM

Similar Messages

  • [solved] cpanp wrongly complains about missing ExtUtils::MakeMaker

    (This appears to be the most suited subforum for the following matter. Please excuse and correct me if I am wrong.)
    As there is no AUR package for the CPAN module Image::Magick, which I need, I am trying to install it with cpanplus and cpanplus-dist-arch (and yes, I ran setupdistarch). Unsuccessfully, though:
    $ sudo cpanp i Image::Magick
    Installing Image::Magick (6.72)
    Running [/usr/bin/perl /usr/bin/core_perl/cpanp-run-perl /root/.cpanplus/5.14.2/build/PerlMagick-6.72/Makefile.PL INSTALLDIRS=site]...
    Writing Makefile for Image::Magick
    Writing MYMETA.yml and MYMETA.json
    [MSG] Module 'Image::Magick' depends on 'ExtUtils::MakeMaker', may need to build a 'CPANPLUS::Dist::Arch' package for it as well
    [ERROR] Use of uninitialized value $pkgver in substitution (s///) at /usr/share/perl5/vendor_perl/CPANPLUS/Dist/Arch.pm line 1591.
    So cpanp complains about ExtUtils::MakeMaker not being installed, which is wrong:
    $ pacman -Qs makemaker
    local/perl 5.14.2-2 (base)
    A highly capable, feature-rich programming language
    local/perl-extutils-makemaker 6.59-1
    Create a module Makefile
    Re-installing ExtUtils-MakeMaker with cpanp does not help. Any ideas what could be wrong and how to fix it? (Also I am open to suggestions for other means of installing CPAN modules.)
    EDIT:
    Just retried with latest git version of cpanplus-dist-arch. No change.
    Last edited by Franek (2011-10-23 21:16:06)

    Long story short is that Image::Magick is bundled with ImageMagick! Install the imagemagick package and you should be just fine. The PerlMagick distribution which contains the Image::Magick module on CPAN is simply a copy of what comes with ImageMagick.
    The warning about ExtUtils::MakeMaker is just something that cpanp does for every dependency of a module that you build. It is very annoying and other than convincing the CPANPLUS maintainer to remove it, there is nothing I can do about it. But it is a warning and not an error. I've just gotten used to it I suppose.
    The error about an uninitialized value which stops things for you is a bug. I'll try to figure out why it happens and fix it. Thanks for reporting it. I am having a tough time reproducing it, though. Which version of pacman are you using?

  • Compiler not reporting unreachable code

    I had obvious bug code after return, but compiler did not
    even reported an error should not it flag it as unreachable code?)
    is that normal?

    It works as long as I delete all the class files each time, but that still doesn't explain why it's not recognizing the fact that it ought to recompile these classes every time. I've tried this on two different machines with two different operating systems, so it's not the environment. I've moved them, one file at a time, to brand new directories and the problem persists, so it's not any hidden files mucking things up. I don't even have a defined classpath. It has to be something intrinsic in these classes, and I'll be damned if I can figure out what.

  • Apple Support ignores me completely, there is no way I can complain about lack of feed back and I even have paid for a protection plan!

    I have paid for an extended support through the Apple protection plan. Frankly I do not understand what I´ve paid for as there is no support and no plan, except ignorance and waiting time.
    I have had and still have serious problem with my Mac Book Pro, and spent loads of money on phone charges with mainly negative results. All I have "achieved" is wasted time. I just wonder if it is only me who feel totally helpless as the Support People are not really helping. I´ve spent approsmimately 200 USD in phonecharges on their support phone, so far. But that is nothing compared to the hours spent waiting for answer and listening no absolute nonsense. Finally I went to an Apple store who sent the machine in for repair, and one fault was the motherboard. However I could still not connect with my Time Capsule and Aperture seemed to have lost all my photos. This all happende after upgrading to Mountail Lion. Also the cable network isn´t working. I can easily see on the net that I am not the only one with problems. I´ve ended up with solving most of this myself, except the network connection. It is still not working.
    I am actually deeply dissapointed with Apple and I cannot find any way to even forward a complaint. Not that I believe it would help, but at least I´ve tried. I also think it would be fair to to get my money back for a product I´ve paid for which obviously isn´t working, namely the Apple Care Protection Plan.

    Hi, so you suggest I should be grateful for getting what I have paid for? Sorry but that's only getting what I paid for. Add to that, that this has been against the phone support I've used a lot of time and money for! I don't feel anything but hopelessness for the total lack of customer support. An expensive Mac Book Pro shouldn't fail after 2 years in the first place! But failure may of course happen with the best products, and Apple as well. The real fault however is Apple's arrogance and failure to fix it! Instead of getting help and guidance to a solution, I used hours and lost days of work, and was made to pay a lot for total unusable "assistance". I was even adviced to hold back on taking the Mac Book Pro to a store, as I was told the support person a senior, would figure it out. Well Apple definiately squezzed the lemon! Since the Time Capsule/Time Machine system didn't fuction I was also in a stale mate as I needed assurance that My files wasn't lost when delivering the machine for repair. I was adviced that could happen. Quite a deadlock wasn't it! As an expert on Quality Assurance I was also suffering lost revenue in my work for clients. I finally had to buy a Samsung Ultrabook as working machine and backup, a neccesity as Apple obviously cannot be trusted when needed. Bill Gates and Windows has one advantage over Apple, they know things can go wrong and hence have much better support. Apple support is a maze were only the strongest and most persistent get through. I am one as I didn't accept being treated like that. That's the only reason I finally got a repair. However the machine is still not functioning as mentioned. I have a case number, a phone number and mail address to a senior support person, whom I've been trying to contact for more than a week, He has still not responded to my mails or phone calls. I cannot even figure out how to contact Apple to complain about such ignorance. Note by the way that here in Norway I must pay to call support and more often than not there is more than half an hour waiting time. I might spend hundred of dollars in that "game" without even knowing that I will get the support I've paid for and only keep paying even more for wasting my time! This is simply not good enough, it is no less than arrogant and wrong! I frankly think Apple is doing a big mistake with such por treatmen of their customers.

  • ISE 1.2.1 Complaining about High latency - can´t figure out why.

    Hello! 
    my 2 node (16 core, 32 GB Ram, SAN) ISE installation on VMWARE is, complaining about High latency. I have about 250 Test clients connected, and the VMWARE guys can´t seem to find anything wrong. Is there anyway to get a more detailed test WHAT actually is causing this high latency? CPU´s are idling, ram is at 2% and disk I/O is almost not messurable.. but the software is still complaining. (the Dashboard shows latency at 100+ ms) I think this might be the external CA, againt which the client certificates are run. but I don´t know if I can test this theorie! 
    I have 2 Hardware Appliances coming, but I thought my Test enviroment should be more then enough to handel 250 clients.. I am abit concerned about the going live with 5000 clients in the future.. if it is already complaining with 250 active clients. 
    and yes, I will be splitting the tasks up between the 2 Physical Boxes (Profiling and such) and the 2 VM Boxes (Management) but at the moment, for 250 clients the 2 VM´s should be enough. 

    I have a couple of my customers complaining about this as well. I believe it is cosmetic and it is due to this bug CSCup97285
    The suggested action for this alarm in ISE is:
    Check if the system has sufficient resources, Check the actual amount of work on the system for example, no of authentications, profiler activity etc.., Add additional server to distribute the load
    I have confirmed with both clients that the appropriate resources were allocated and reserved in VM. In addition, neither client is reporting any issues so this leads me to believe that it is just a cosmetic bug.
    Thank you for rating helpful posts!

  • Warning(3806,7): PLW-06002: Unreachable code

    Why do I got this warning:
    Warning(3806,7): PLW-06002: Unreachable code
    for this code:
    if p_ws = 'D' then
    raise_application_error(-20020, 'My Error');
    else -- <--Here
    return;
    end if;
    Thank you in advance.
    P.S. p_ws is of varchar2 type.

    user504063 wrote:
    Why do I got this warning:
    Warning(3806,7): PLW-06002: Unreachable code
    for this code:
    if p_ws = 'D' then
    raise_application_error(-20020, 'My Error');
    else -- <--Here
    return;
    end if;
    Thank you in advance.
    P.S. p_ws is of varchar2 type.Why return? This really seems to do nothing to me.
    Your code is identical to
    if p_ws = 'D' then
         raise_application_error(-20020, 'My Error');
    end if;So the compiler warning might be a good hint. The else part is not needed (although it is reachable...).
    Some warnings can be ignored, but in general I would try to look careful and understand what seems to disturb the compiler.
    Edited by: Sven W. on Mar 26, 2009 11:45 AM

  • What is wrong in this java code?

    Can someone please tell me what is wrong in this java code?
    /* The program is intended to start animating text at the click of a button, pause it at another click and resume at the next click. It should continue like this */
    import javax.swing.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    public class TextAnime implements Runnable
    JFrame frame;
    boolean flag;
    Thread animeThread;
    JLabel label;
    String[] textArray;
    public TextAnime()
    flag = false;
    animeThread = new Thread(this);
    frame = new JFrame("Animate Text");
    GridBagLayout gbl = new GridBagLayout();
    GridBagConstraints gbc = new GridBagConstraints();
    frame.setLayout(gbl);
    JButton button = new JButton("Start");
    label = new JLabel("Stopped");
    textArray = new String[5];
    String textArray1[] = {"Programmer", "SportsMan", "Genius", "Friend", "Knowledgable"};
    for(int ctr = 0; ctr<5 ; ctr++)
    textArray[ctr] = textArray1[ctr];
    gbc.weightx = 1;
    gbc.gridx = 0;
    gbl.setConstraints(button,gbc);
    frame.getContentPane().add(button);
    ButList bl = new ButList();
    button.addActionListener(bl);
    gbc.gridx = 1;
    gbl.setConstraints(label,gbc);
    frame.getContentPane().add(label);
    frame.setSize(200,150);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOS E);
    frame.setVisible(true);
    public class ButList implements ActionListener
    public void actionPerformed(ActionEvent evt)
    if(flag == false)
    flag = true;
    animeStart();
    else
    flag = false;
    //animeStop();
    public synchronized void animeStart()
    animeThread.start();
    Thread newThread;
    newThread = Thread.currentThread();
    newThread.notify();
    public void animeStop()
    animeThread.interrupt();
    public void run()
    int i = 0;
    try
    while(i == i)
    if(i==5)
    i=0;
    label.setText(textArray);
    animeThread.sleep(1000);
    i++;
    if (flag == false)
    animeThread.wait();
    catch(InterruptedException ie)
    label.setText("Stopped");
    public static void main(String args[])
    TextAnime ta = new TextAnime();
    Please tell me if this can be written in a more simpler manner. Also please correct this code. I am tired after trying many times.

    When I fix your error, compile and run it, I get this exception:
    Exception in thread "AWT-EventQueue-0" java.lang.IllegalMonitorStateException
         at java.lang.Object.notify(Native Method)
         at cruft.TextAnime.animeStart(TextAnime.java:81)
         at cruft.TextAnime$ButList.actionPerformed(TextAnime.java:63)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.Component.processMouseEvent(Component.java:6038)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
         at java.awt.Component.processEvent(Component.java:5803)
         at java.awt.Container.processEvent(Container.java:2058)
         at java.awt.Component.dispatchEventImpl(Component.java:4410)
         at java.awt.Container.dispatchEventImpl(Container.java:2116)
         at java.awt.Component.dispatchEvent(Component.java:4240)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
         at java.awt.Container.dispatchEventImpl(Container.java:2102)
         at java.awt.Window.dispatchEventImpl(Window.java:2429)
         at java.awt.Component.dispatchEvent(Component.java:4240)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    %

  • Where do you get the meial address to complain about really poor service

    Where do i get the email address to complain about very very poor service in Bristol uk

    I found the address and phone numbers! 
    I called 408-996-1010.  You'll have to add the country code if you want to call this number.  They told me to write to:
    Apple, Inc.
    Attn: Corporate Relations
    1 Infinity Loop
    Cupertino, CA 95014
    I did at the begining of March.   I receved a call from an Apple rep at the end of March, the  caller left me a voice mail.  I called returned the call withn 5 min left him a voice mail and never heard back from them.
    Best of luck!

  • Pwck Complaining about homeless users, causing shadow.service to fail

    I was looking through my journal and noticed the following error:
    Jul 08 00:00:00 raspberry_pi systemd[1]: Failed to start Verify integrity of password and group files.
    Checking the status of shadow.service produces this output:
    ~ $ sudo systemctl status -l shadow
    ● shadow.service - Verify integrity of password and group files
    Loaded: loaded (/usr/lib/systemd/system/shadow.service; static)
    Active: failed (Result: exit-code) since Tue 2014-07-08 00:00:00 PDT; 5min ago
    Process: 11736 ExecStart=/usr/bin/pwck -r (code=exited, status=2)
    Main PID: 11736 (code=exited, status=2)
    Jul 08 00:00:00 raspberry_pi systemd[1]: Starting Verify integrity of password and group files...
    Jul 08 00:00:00 raspberry_pi pwck[11736]: user 'remote': directory '/home/remote' does not exist
    Jul 08 00:00:00 raspberry_pi systemd[1]: shadow.service: main process exited, code=exited, status=2/INVALIDARGUMENT
    Jul 08 00:00:00 raspberry_pi systemd[1]: Failed to start Verify integrity of password and group files.
    Jul 08 00:00:00 raspberry_pi systemd[1]: Unit shadow.service entered failed state.
    Jul 08 00:00:01 raspberry_pi pwck[11736]: pwck: no changes
    The passwd entry for this user is
    ~ $ cat /etc/passwd
    remote:x:1001:100::/home/remote:/bin/nologin
    I guess this explains why pwck is complaining and causing shadow.service to fail. However, this user was created a long time ago, explicitly without a home directory, so I am not sure why a home path is specified in the passwd file. I also feel certain that this error is relatively new.
    So, using the following command I created a test user without a home directory so that I could at least see what a passwd line for a user without a home directory is supposed to look like, but to my surprise a home path was specified in the passwd file and pwck complained about the new user in the same way.
    ~ $ sudo useradd -M -g users -s /bin/bash testuser
    ~ $ cat /etc/passwd
    testuser:x:1002:100::/home/testuser:/bin/bash
    ~ $ sudo pwck -r
    user 'remote': directory '/home/remote' does not exist
    user 'testuser': directory '/home/testuser' does not exist
    pwck: no changes
    I also created a throwaway user on my x86 notebook to see if this happens, and it does, so this does not appear to be related to the architecture.
    Is there anything I could do short of creating a home directory for this user, or does this look like a bug?

    Hope it's not too late to answer this.
    Changing the home directory to /dev/null seems to have solved the issue for me.
    Still don't know what negative effects that might have for me, but shadow.service runs normally as far as I can tell.
    Edit:
    Performing
    userdel -r <user>
    throws
    userdel: /dev/null not owned by <user>, not removing
    , so setting /dev/null as the home directory is relatively "safe"
    Last edited by zomernifalt (2014-11-05 15:55:36)

  • Validator complaining about & in URL parameters?

    I got an inscrutable fault in one of my pages this morning,
    and eventually, in
    desperation, I threw it at the Validator page. The page was
    an Index page for
    my photo album, with a link attached to each item. The links
    are of the form
    http://www.corybas.com/New_page.php?path=Holidays&item=RPHols_007,
    and (among other things) the Validator produced a torrent of
    complaints to the
    effect that the & ought to have been encoded. I tried
    replacing the & with %36,
    and the page promptly failed to load.
    Am I overlooking something, or is the Validator complaining
    when it shouldn't?
    (It did also complain about another error, which did enable
    me to find my
    problem.)
    Clancy

    On Tue, 19 Aug 2008 14:42:32 +1000, Clancy
    <[email protected]>
    wrote:
    >I got an inscrutable fault in one of my pages this
    morning, and eventually, in
    >desperation, I threw it at the Validator page. The page
    was an Index page for
    >my photo album, with a link attached to each item. The
    links are of the form
    >
    >
    http://www.corybas.com/New_page.php?path=Holidays&item=RPHols_007,
    >
    This displays "Unkown item; this page cannot be displayed." -
    do you
    really mean this page ?
    >and (among other things) the Validator produced a torrent
    of complaints to the
    >effect that the & ought to have been encoded. I tried
    replacing the & with %36,
    >and the page promptly failed to load.
    Are you loading text in design or code mode, as Dw does code
    & as
    here:
    <p>The &amp; character
    put in design mode</p>
    but if you put in code view it does this - which may be what
    the
    validator is complaining about.
    <p>The & character put in code mode</p>
    >
    >Am I overlooking something, or is the Validator
    complaining when it shouldn't?
    >
    But the validator on the page you gave errors about this
    which may
    effect character encoding:
    Character Encoding mismatch!
    The character encoding specified in the HTTP header (utf-8)
    is
    different from the value in the <meta> element
    (iso-8859-1). I will
    use the value from the HTTP header (utf-8) for this
    validation. "
    ~Malcolm~*...
    ~*

  • What is not right about this code??

    Can anyone tell me what is not right about this code??? Ive have been trying to work it out for myself for the past 2hrs but cant seem to get it right. I think i must have a bracket or something in the wrong place or missing but whatever i do it either flags up as an alert or wont calculate once uploaded. Sooooo frustrating!!
    total_funeral = 1640.00 + Number(GetSelectedItem(document.catwebformform22057.CAT_Custom_76922)) + Number(GetSelectedItem(document.catwebformform22057.CAT_Custom_00015.value) + Number(GetSelectedItem(document.catwebformform22057.CAT_Custom_76926)) + Number(GetSelectedItem(document.catwebformform22057.CAT_Custom_00010)) + Number(document.catwebformform22057.CAT_Custom_76927.value) + (document.getElementById('CAT_Custom_76926_0').checked ? Number(document.catwebformform22057.CAT_Custom_00010.value) : 0);

    This is all of javascript for caculation (http://www.milesmemorials.com/estimator.html) -
    function GetSelectedItem(frname) {
    chosen = ""
    len = frname.length
    for (i = 0; i <len; i++) {
    if (frname[i].checked) {
    chosen = frname[i].value
    return chosen
    function Recalculate() {
    total_funeral = ""
    crem_disbursements = ""
    burial_disbursements = ""
    total_disbursements = ""
    doctors_fees = ""
    crem_fee = ""
    cemetery_fee = ""
    minister_fee_crem = ""
    minister_fee_burial = ""
    civil_fee_crem = ""
    civil_fee_burial = ""
    carry_fee_burial = ""
    total_funeral = 1640.00 + Number(GetSelectedItem(document.catwebformform22057.CAT_Custom_76922) ) + Number(GetSelectedItem(document.catwebformform22057.CAT_Custom_00005)) + Number(GetSelectedItem(document.catwebformform22057.CAT_Custom_00015.value)) + Number(GetSelectedItem(document.catwebformform22057.CAT_Custom_76926) ) + Number(GetSelectedItem(document.catwebformform22057.CAT_Custom_00010.value)) +
    Number(GetSelectedItem(document.catwebformform22057.CAT_Custom_76927.value))  +
    (document.getElementById('CAT_Custom_76926_0').checked ? Number(document.catwebformform22057.CAT_Custom_00010.value) : 0);
    minister_fee_crem = Number(document.catwebformform22057.CAT_Custom_00003.value)
    minister_fee_burial = Number(document.catwebformform22057.CAT_Custom_00004.value)
    civil_fee_crem = Number(document.catwebformform22057.CAT_Custom_00006.value)
    civil_fee_burial = Number(document.catwebformform22057.CAT_Custom_00001.value)
    carry_fee_burial = Number(GetSelectedItem(document.catwebformform22057.CAT_Custom_00005))
    doctors_fees = Number(GetSelectedItem(document.catwebformform22057.CAT_Custom_76929))
    crem_fee = Number(document.catwebformform22057.CAT_Custom_76930.value)
    cemetery_fee = Number(document.catwebformform22057.CAT_Custom_76931.value)
    zz=document.getElementById('CAT_Custom_76926_0').checked==true;if(zz) { document.getElementById('basicServices').style.display='block'; } else { document.getElementById('basicServices').style.display='none'; };
    crem_disbursements = civil_fee_crem + doctors_fees + crem_fee + minister_fee_crem
    burial_disbursements = minister_fee_burial + cemetery_fee + civil_fee_burial
    if(Number(GetSelectedItem(document.catwebformform22057.CAT_Custom_76928)) == 0){
              total_disbursements = crem_disbursements;
    }else{
              total_disbursements = burial_disbursements;
    if(Number(GetSelectedItem(document.catwebformform22057.CAT_Custom_76926)) == 0){
              CAT_Custom_00010.value=0
    document.catwebformform22057.total.value = total_funeral.toFixed(2);
    document.catwebformform22057.doctors_fees.value = doctors_fees.toFixed(2);
    document.catwebformform22057.civil_fee_crem.value = civil_fee_crem.toFixed(2);
    document.catwebformform22057.civil_fee_burial.value = civil_fee_burial.toFixed(2);
    document.catwebformform22057.minister_fee_crem.value = minister_fee_crem.toFixed(2);
    document.catwebformform22057.minister_fee_burial.value = minister_fee_burial.toFixed(2);
    document.catwebformform22057.carry_fee_burial.value = carry_fee_burial.toFixed(2);
    document.catwebformform22057.crem_fee.value = crem_fee.toFixed(2);
    document.catwebformform22057.cemetery_fee.value = cemetery_fee.toFixed(2);
    document.catwebformform22057.total_crem_disbursements.value = crem_disbursements.toFixed(2);
    document.catwebformform22057.total_burial_disbursements.value = burial_disbursements.toFixed(2);
    document.catwebformform22057.grand_total.value = (total_funeral + total_disbursements).toFixed(2);

  • Unreachable code PLW 06002

    Hi All,
    Found this error unreachable code and the package did not add the data into test.
    Anything wrong here, My logic is a bit amateur, I apologize.
    IF (lv_countnew = 0)
          THEN
             RAISE lvexp_newrecords_notfound_err;
          IF (lv_countnew <> 0)
          THEN
             select count(*)
             into lv_countcsns
             from TEST;
          IF(lv_countcsns = 0)
          THEN
              send_error_report
              ('TEST is empty');
          IF(lv_countcsns <> 0)
          THEN
            insert into TEST
            (id_seq,id,sell,date)
            select id_seq,id,sell,sysdate
            from a_TEST
            where add_who ='IMPORT_test'
            and id not in (select distinct id from TEST);
          END IF;
    END IF;
    END IF;
      END IF;Thank you.

    IF (lv_countnew = 0)
    THEN
        RAISE lvexp_newrecords_notfound_err;
        IF (lv_countnew <> 0) THEN
            select count(*)
              into lv_countcsns
              from TEST;
            IF(lv_countcsns = 0) THEN
                send_error_report ('TEST is empty');
                IF(lv_countcsns <> 0) THEN
                    insert into TEST (id_seq,id,sell,date)
                    select id_seq,id,sell,sysdate
                    from a_TEST
                    where add_who ='IMPORT_test'
                    and id not in (select distinct id from TEST);
                END IF;
            END IF;
        END IF;
    END IF;As Dan pointed out:
    - if the topmost IF branch is true, the next line will raise an exception (lvexp_newrecords_notfound_err), due to which nothing will be inserted.
    - if the topmost IF branch is false, then the control will not reach that INSERT statement anyway.
    So, either way, you will never be able to insert your data.
    >
    What want irt to happen is...
    To ad dteh previous data if teh current data do not have it...
    Fro example:
    If the count of the table_A is not empty then proceed
    inserting data from table_B which are not in
    table_A.
    table A is present data
    table B is last week's dataSomething like this should help; customize it for your table structures.
    declare
      n_temp  number;
    begin
      select 1
      into n_temp
      from table_a
      where rownum = 1;
      -- table_a is not empty
      -- so proceed with the insert
      insert into table_a
      select * from table_b tb
      where tb.id not in (select ta.id
                            from table_a ta);
    end;
    /HTH
    isotope

  • 6230I OWNERS PLEASE COMPLAIN ABOUT LACK OF NSU HEL...

    HI ALL
    IT SEEMS THAT THERE HAS BEEN AN EXTREME LACK OF BACKBONE FROM 6230I USERS ON THIS FORUM..
    INFORMATION RECEIVED RECENTLY STATES QUITE CLEARLY THAT THERE ARE MORE TOO MANY PEOPLE ON THIS FORUM WHO ONLY TALK A GOOG FIGHT..
    THEY COME HERE LEAVE THIER COMPLAINT AND HOPE IT RESOLVES ITSELF..
    NO CHANCE OF THAT WE ARE DEALING WITH NOKIA HERE..
    SO INSTEAD OF JUST CROWING ABOUT YOUR PROBLEMS GET PHONING NOKIA AND LEAVE YOUR COMPLAINTS NOW REMINDING THEM THAT YOU WILL NOT BE GETTING ANOTHER NOKIA PHONE..
    I PHONED THEM
    I GOT MY MATES ALL WITH 6230I HANDSETS TO PHONE THEM
    I WROTE TO THEM
    I SENT THEM TWO SEPERATE PETITIONS
    IT SEEMS I AM THE ONLY ONE DOING THE LEGWORK
    HELP ME OUT PEOPLE (CUMMON)
    MY NEWEST PHONES ARE
    SAMSUNG C300 (BLACK)
    SAMSUNG C300 (GREEN)
    SAMSUNG E250 (SILVER)
    SONY ERICSSON K610I (WHITE)
    NOTICE NO NOKIA (HMMMM I WONDER WHY )
    ALSO WAITING TO RECEIVE A NEW MOTOROLA (NOT NOKIA AGAIN)
    MADMICK69
    STILL WAITING FOR MY NOKIA TO BITE THE BULLET IT LOOKS VERY ILL NOW NEEDS A LEAD INJECTION

    hi psychomania
    I dont know how to put this to you so i will make it simple incase you dont understand...
    THE 6230I CAN AND ALWAYS HAS BEEN ABLE TO BE UPDATED USING NSU NOKIA JUST HASNT ADDED IT YET..
    It seems you may be one of the very few out there who dont fully understand mobile phone technology or maybe you are just out to sook up to nokia i dont know but you are wrong..
    many have tried stating very stupid things on this forum before about series and ds type as being the barrier for nokia releasing an update but these fruitcakes found out the hard way and were outed as little lonley people with nothing better to do than to re-state others non proven facts..(HEARSAY)
    SO GET IT RIGHT CHECK OUT YOUR FACTS READ THE POSTS BACKED UP BY NOKIA WHICH I HAVE POSTED SINCE AUGUST OF LAST YEAR AND GET THIS I DO KNOW WHAT I AM TALKING ABOUT AND DONT TYPE UNSUBSTANTIATED DRIVVEL THAT SEEMS TO BE MAKING THE ROUNDS BY ALL THE DIE-HARD NOKIA SOOKS OUT THERE WHO SEEM TO ROLL OVER AND PLAY DEAD WHEN NOKIA TURNS THIER BACKS ON THEM..
    MAYBE YOU MIGHT ONE DAY HAVE SOMETHING TO COMPLAIN ABOUT TO NOKIA AND YOU WILL SEE HOW IT FEELS NOT TO BE PROPERLY HEARD..
    DONT FORGET TO CHECK OUT MY PREVIOUS POSTS .
    YOU WILL SEE I KNOW WHAT I STATE WITH CONCRETE EVIDENCE FROM THE PROPER NON FRUITCAKE SOURCES SUCH AS THOSE OH SO GREAT NOKIA SOFTWARE ENGINEERS TO WHOME I HAVE BEEN FRIENDS WITH FOR SEVEN YEARS AND TO DATE THEY EVEN THOUGH THEY WORK FOR NOKIA HAVE THEMSELVES NOT BEEN WRONG..
    I WILL BELIEVE THEM BEFORE I BELIEVE ANYONE ELSE ON THIS FORUM
    EXTREMELY MAD MICK
    (P.S CAN MEMBERS OF THE FORUM GET IT RIGHT AND NOT TYPE A SINGLE WORD IN FUTURE UNTILL THEY HAVE THIER FACTS COMPLETELY 100%)

  • Does anybody know what is wrong with my java code?

    Does anybody know what is wrong with my java code?
    --------------------Configuration: <Default>--------------------
    stockApplet.java:47: cannot find symbol
    symbol : variable M_pointThread
    location: class StockApplet
    if (M_pointThread==null)
    ^
    stockApplet.java:49: cannot find symbol
    symbol : variable M_pointThread
    location: class StockApplet
    M_pointThread=new Thread(this);
    ^
    stockApplet.java:50: cannot find symbol
    symbol : variable M_pointThread
    location: class StockApplet
    THE CODE:
    import java.applet.*;
    import java.awt.*;
    import java.io.*;
    import java.net.*;
    public class StockApplet extends java.applet.Applet implements Runnable
    int Move_Length=0,Move_Sum=0;
    String FileName,Name_Str,Content_Date;
    int SP[]=new int[2000];
    int KP[]=new int[2000];
    int JD[]=new int[2000];
    int JG[]=new int[2000];
    int Mid_Worth[]=new int[2000];
    String myDate[]=new String[2000];
    double CJL[]=new double[2000];
    double MaxCJL,MidCJL;
    Label label[]=new Label[10];
    int MaxWorth,MinWorth;
    int x_move0,x_move1,MaxLength=0;
    int x0,y0,X,Y,Record_Num;
    boolean Mouse_Move,Name_Change=true;
    int JX_Five1,JX_Five2,JX_Ten1,JX_Ten2;
    public void init()
    TextField text1=new TextField();
    Thread M_pointThread=null;
    setLayout(null);
    this.setBackground(Color.white);
    this.setForeground(Color.black);
    for(int i=1;i< 10;i++)
    label=new Label();
    this.add(label[i]);
    label[i].reshape(i*80-65,10,50,15);
    if(i==2){label[i].reshape(80,10,70,15);}
    if(i==7){label[i].reshape(510,10,80,15);}
    if(i >7){label[i].reshape((i-8)*490+45,380,70,15);}
    FileName="six";
    Name_Str="six";
    this.add(text1);
    text1.reshape(150,385,70,20);
    text1.getText();
    public void start()
    if (M_pointThread==null)
    M_pointThread=new Thread(this);
    M_pointThread.start();

    Welcome to the forum. I think that George123 has your problem and its solution well in hand. Follow his good advice and you will have solved this problem. One other thing though just for future reference. If you post your code, here, you are going to want someone to be able to read it easily. Please use code tags when posting next time and your code will be much easier on the eye. You can find out about them here:
    http://forum.java.sun.com/help.jspa?sec=formatting

  • To whom do I complain about the calendar on the iPad 2 with iOS 7? I can no longer read my appointments. Is there an adjustment I can make? Larger text size doesn't help.

    To whom do I complain about the OS 7 calendar on the iPad 2? I used to be able to read my appointments. The new small font is horrible. Text size doesn't seem to change it. Can I change it?

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased. http://support.apple.com/kb/ht1430http://support.apple.com/kb/ht1430
     Cheers, Tom

Maybe you are looking for

  • Safari 5 won't open on Snow Leopard; cannot upgrade to Safari 6 since it requires Lion.

    I can use Firefox and Chrome with no problem but like the Apple format better.  This is the first time I have ever had issues with products that are partners with Apple.  Please someone fix it.  "Oh well" is not acceptable:-)

  • Unable to extend table ONT.MLOG$_OE_ORDER_LINES_ALL

    Can someone help me on this one? I had the below error, and most of the references I've looked up suggests that I drop and recreate the table... Are there any impacts if I drop the log? thanks ORA-12096: error in materialized view log on "ONT"."OE_OR

  • Writing Errors to File

    I want to use the dump the output from printStackTrace to a file rather than output it to the screen, any clues as to how I would go about this? File outFile = new File("errorlog.txt"); FileWriter out = new FileWriter(outFile); catch(IOException e) e

  • Error in testing an idoc -Trans. XK01 : CoCde not entered; company code are

    Hi I am getting the following error when i am trying to test a idoc thru we 19. The message type is CREMAS and it is an inbound idoc ,I am testing the function module idoc_input_creditor . Trans. XK01 : CoCde not entered; company code area not being

  • Private, or rather non-public, package?

    For better code organization I would like to split a certain package into two packages. One of them, say 'package abcimpl' would contain implementation code that should not have any 'public' accessor declarations. The other, say 'package abc' provide