Bug report : Navigator display wrong messages in package body

Just run some code , you can see the Navigator display wrong messages in the package body,but the package work fine in sqlplus / toad or other tools.
create or replace package SIMPLE AS
Procedure simple_proc ;
END;
create or replace package body SIMPLE AS
Procedure simple_proc
IS
v_tname varchar2(100);
begin
SELECT PERCENTILE_disc(0.5) WITHIN GROUP (ORDER BY tabtype DESC)
          INTO v_tname
          FROM tab;
END simple_proc;
END;
Then open the package body in the Navigator (Connection Pane==> Connection Name ==> Packages ==> Simple Body ) , and show the error message:
Unexpected token
Missing Expression
But if I just create the procedure out of the package , it work fine.
CREATE OR REPLACE
Procedure simple_proc
IS
v_tname varchar2(100);
begin
SELECT PERCENTILE_disc(0.5) WITHIN GROUP (ORDER BY tabtype DESC)
          INTO v_tname
          FROM tab;
END simple_proc;
/

This has already been discussed a number of times (see http://forums.oracle.com/forums/search.jspa?objID=f260&q=Unexpected+token).
As I understand it, it is related to the parser that SQL Developer is using to display the package decomposition in the navigator not coping with the full PL/SQL and SQL syntax (largely analytical functions from memory).

Similar Messages

  • [BUG] email outbox displays bogus message

    If you open an empty outbox in Email and press the refresh button, the following message is displayed: "No messages in the last -1 days."
    Post relates to: Pre p100eww (Sprint)

    Hello.  I had this problem and solved it by uninstalling the My FiOS app and reinstalling it.  I didn't lose any emails, just the email that was stuck in the Outbox.  It's a mystery to me why there isn't an easier way to delete emails in the Outbox.

  • WHAT IS WRONG IN THE PACKAGE BODY PLEASE HELP ME... CAN U UNDO THE WRONG

    CREATE OR REPLACE PACKAGE EMP_PROK IS
    FUNCTION BIBI (EMP NUMBER) RETURN EMPLOYEES%ROWTYPE;
    PROCEDURE EMP_PROCEDURE ;
    END EMP_PROK;
    CREATE OR REPLACE PACKAGE BODY EMP_PROK IS
    FUNCTION BIBI( EMP NUMBER) RETURN EMPLOYEES%ROWTYPE
    IS
    EMPREC EMPLOYEES%ROWTYPE;
    BEGIN
    SELECT* INTO EMPREC FROM EMPLOYEES WHERE EMPLOYEE_ID=EMP;
    RETURN EMPREC;
    END;
    PROCEDURE EMP_PROCEDURE
    IS
    SAL EMPLOYEES.EMPLOYEE_ID%TYPE;
    JOB EMPLOYEES.JOB_ID%TYPE;
    EMP NUMBER:=100;
    BEGIN
    SELECT SALARY ,JOB_ID INTO SAL,JOB FROM EMPLOYEES WHERE EMPLOYEE_ID=EMP;
    IF BIBI(EMP).EMPLOYEE_ID THEN
    DBMS_OUTPUT.PUT_LINE(' thIS IS TRUE')
    END IF;
    END EMP_PROCEDURE;
    END EMP_PROK;
    SHOW ERR;

    1. Put closing ';' for dbms_output.put_line statement
    2. bibi(emp).employee_id must be compared to something as it will return employee_id.
    IF bibi(emp).employee_id THEN
          dbms_output.put_line(' thIS IS TRUE')
    END IF;
    {code}
    PS: Kindly mark the answers to your post as helpfull/correct if you are satisfied                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Mail message viewer displays wrong message

    Here's a strange one, started a couple of days ago: for most new messages, when I select the message in the upper pane, the message displayed in the viewing pane is not the one I selected.
    For example: a new message comes in from Joe, I click on it, but what I see is the text of a message from Dave that's three years old (and of course still sitting in my inbox---I can go find it and look at that one too, and it still displays normally). The messages I'm seeing in error are old messages in my Inbox, coming up in order, starting around message 500 (there are almost 2000 messages in my inbox). I can't read the content of the new message using Mail.
    My Mail is set up to leave everything on the server (it's an IMAP account), which is lucky since I can then access the mail by other means. For example, the Mail program on my laptop still functions normally, so I've been reading mail that way. In fact my two computers are both running OS 10.6.4, with identical Inboxes. Could there be some difference between how my relatively new iMac and my 1.5-yr old MacBookPro handle mailboxes?
    Other ideas?

    this solved the problem for me:
    http://discussions.apple.com/thread.jspa?messageID=12184634&#12184634
    in short: in Mail select the broken mailbox, then go to the menuitem Mailbox -> Rebuild
    Hope this helps.

  • Bug report & possible patch: Wrong memory allocation when using BerkeleyDB in concurrent processes

    When using the BerkeleyDB shared environment in parallel processes, the processes get "out of memory" error, even when there is plenty of free memory available. This results in possible database corruption.
    Typical use case when this bug manifests is when BerkeleyDB is used by rpm, which is installing an rpm package into custom location, or calls another rpm instance during the installation process.
    The bug seems to originate in the env/env_region.c file: (version of the file from BDB 4.7.25, although the culprit code is the same in newer versions too):
    330     /*
    331      * Allocate room for REGION structures plus overhead.
    332      *
    333      * XXX
    334      * Overhead is so high because encryption passwds, replication vote
    335      * arrays and the thread control block table are all stored in the
    336      * base environment region.  This is a bug, at the least replication
    337      * should have its own region.
    338      *
    339      * Allocate space for thread info blocks.  Max is only advisory,
    340      * so we allocate 25% more.
    341      */
    342     memset(&tregion, 0, sizeof(tregion));
    343     nregions = __memp_max_regions(env) + 10;
    344     size = nregions * sizeof(REGION);
    345     size += dbenv->passwd_len;
    346     size += (dbenv->thr_max + dbenv->thr_max / 4) *
    347         __env_alloc_size(sizeof(DB_THREAD_INFO));
    348     size += env->thr_nbucket * __env_alloc_size(sizeof(DB_HASHTAB));
    349     size += 16 * 1024;
    350     tregion.size = size;
    Usage from the rpm's perspective:
    The line 346 calculates how much memory we need for structures DB_THREAD_INFO. We allocate structure DB_THREAD_INFO for every process calling db4 library. We don't deallocate these structures but when number of processes is greater than dbenv->thr_max then we try to reuse some structure for process that is already dead (or doesn't use db4 no longer). But we have DB_THREAD_INFOs in hash buckets and we can reuse DB_THREAD_INFO only if it is in the same hash bucket as new DB_TREAD_INFO. So line 346 should contain:
    346     size += env->thr_nbucket * (dbenv->thr_max + dbenv->thr_max / 4) *
    347         __env_alloc_size(sizeof(DB_THREAD_INFO));
    Why we don't encounter this problem earlier? There are some magic reserves as you can see on line 349 and some other additional space is created by alligning to blocks. But if we have two processes running at the same time and these processes end up in the same hash bucket and we repeat this proces many times to fill all hash buckets with two DB_THREAD_INFOs then we have 2 * env->thr_nbucket(37) = 74 DB_THREAD_INFOs, which is much more than dbenv->thr_max(8) + dbenv->thr_max(8) / 4 = 10 and plus allocation from dbc_put, we are out of memory.
    And how we will create two processes that end up in the same hash bucket. We can start one process (rpm -i) and then in scriptlet we start many processes (rpm -q ...) in loop and one of them will be in the same hash bucket as the first process (rpm -i).
    I would like to know your opinion on this issue, and if the proposed fix would be acceptable.
    Thanks in advance for answers.

    The attached patch for db-4.7 makes two changes:
      it allows enough for each bucket to have the configured number of threads, and
      it initializes env->thr_nbuckets, which previously had not been initialized.
    Please let us know how it works for you.
    Regards,
    Charles

  • Report download displays wrong format in excel

    I have a text field that is a number, dash, then four numbers 1-2345..
    in an interactive report, when I download to CSV or XLS this field is converted to a date field 1/1/2345..
    If I then change format to text it divides the numbers and gives me the output..
    the only workaround I can find is: save to csv.. rename extention to .txt... then when you open the txt the import wizard will run and you can change the column type to text before excel screws everything up...

    tried both already.
    same results opening the file..
    and using ''''||FIELD as ALIAS then doesnt show the data just the '
    fyi.. the field has both 1-2345 and 1-2345-B (the ones with the dash -B work correctly and they showed up when I added the ''''||FIELD)
    Edited by: Merlin128 on Oct 19, 2009 4:22 PM

  • [BUG REPORT] com.adobe.rtc.messaging.MessageItem: Doesn't cleanup in createValueObject()

    I'm not sure if you have a publicly available bug tracker. If you do, let me know where it is and I'll post this there.
    If you register a class using MessageItem.registerBodyClass() and then call createValueObject(), readValueObject(). MessageItem.body is not the appropriate class.
    WhatShouldHappen:
    The readValueObject should the MessageItem.body with an object be of the registered class type.
    Why it happens:
    When MessageItem.createValueObject() creates the ByteArray, it doesn't rewind it when it's done, so when it's time to call MessageItem.readValueObject(), there are no more bytes to be read.
    Why we care:
    I'm using SessionManagerBase as a loopback server for my unit tests (not in the documentation, but it's in the code). They fail because of this.
    How do we fix it?:
    The simple solution is changing this:
         if (registeredClasses[flash.utils.getQualifiedClassName(body)]) {
              var bA:ByteArray = new ByteArray();
              bA.writeObject(body);
              writeObj.body = bA;
         } else {
              writeObj.body = body;
    to this:
         if (registeredClasses[flash.utils.getQualifiedClassName(body)]) {
              var bA:ByteArray = new ByteArray();
              bA.writeObject(body);
              bA.position = 0;          <--- I added this.
              writeObj.body = bA;
         } else {
              writeObj.body = body;
    thanks,
    -sandy

    I should have noted that this bug only seems to occur if you're using SessionManagerBase as a loopback.

  • Bug - Report Region In Wrong Position

    Apex 4.2
    I have a page with a parent region and 3 child regions
    I want region 1 and 2 next to each other and region 3 below.
    So I made the settings as below.
    region 1
    sequence 10
    template: html region
    start new grid: no
    start new row: no
    region 2
    sequence 20
    template: report region
    start new grid: no
    start new row: no
    new column: yes
    region 3
    sequence 30
    template: report region
    start new grid: yes
    For strange reason region 2 is appearing above region 1, even in edit page mode.
    Region 3 is in the correct position
    Any ideas ?
    Gus

    Gus C wrote:
    I tried it on oracle.com already and it works.
    I tried adding a new region with a sequence of 15.
    Once created it appears below region 1, which is correct.
    I now change the setting to
    start new grid: no
    start new row: no
    new column: yes
    So it should appear next to region 1 but it is placed above region 1 next to region 2.
    There must be something in my region 1 that is causing this, but I cannot find it
    Can you reproduce this in a new page in the application on your local instance?
    Is there anything in sub region 1 that renders non-APEX-sourced HTML that could break the grid? One of your previous threads involved a custom table inside the form layout.
    Can you post the HTML source of the entire parent region (simplify it to contain as little content as possible and redact any sensitive information)?

  • Bug Report: Navigation Bar Subscription Popup LOV

    Hi,
    it looks like that the popup LOV for the "Reference Master Navigation Bar From      List of Values" property of an navigation bar, just shows the name of the navigation bar if the "Icon Image Alt" is filled out. But actually the "Icon Subtext" is the required property for an navigation bar if it's text only.
    Patrick
    My APEX Blog: http://www.inside-oracle-apex.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://apexplugin.sourceforge.net/ New!

    Thanks, Patrick, I've noted that.
    Scott

  • Bug report: Navigating process definitions

    If I create a bunch of after submit processes on a page with sequence 10, 20, 30, 40 and then re-order them by changing the sequence no, HTML DB gets confused.
    On the Page Definition, I see them in the order I want, but when I click on process 10, I get both the "<" and the ">" buttons and when I click on the ">" button, I jump to process 30, not 20.
    I think the initial order in which the processes are defined somehow "sticks". Instead, it should navigate based on the current sequence numbers assigned to the process.
    Thanks

    Is this going to be fixed in 2.0? Thanks

  • SYSDBA - problem with viewing other users package body texts on sys account

    Hi,
    SQL Dev 1.0.0.15.27 has problem with correct display of other users package body texts on sys account. All bodies have "create or replace" text instead of all pck. bodies text.
    I guest it's problem with SYSDBA role. On system account text is displayed correctly. Quest SQL Navigator 5.x has no problem with this. Any ideas ?
    Regards,
    MM

    Hi Everyone,
    Just so I can close the case on this issue, although I was successful in
    using CSS to resolve the issue, actually, the issue was not really
    resolved. There was (for me) still the problem of rollover images not
    working in IE, and if I were ever to get another good night's sleep, I
    would need to resolve it -- so I did. Recall me saying earlier about the
    sizes being brought in to the javascript code by Dreamweaver? The original
    issue with having the size of the small image in the code caused the code
    to see the larger image as small also! However, when I deleted those size
    attributes' numbers, I failed to delete the words "width" and "height"
    along with the double quotes following each. So, while the other browsers
    ignored these "blank" attributes within these double quotes, IE apparently
    didn't, reading these "blank" values as some very small value, thus
    displaying the image in the absolutely smallest size possible! Wow! When I
    removed these two blank attributes, my problem went away! Live and learn!
    So, to all who were desperately trying to assist me, please accept my
    deepest and most sincere apologies. All the while I was blaming IE, I was
    the guilty one!!! Shame on me, and thanks for the wonderful responses I
    received from the Dreamweaver forum team. I will go and stand in the corner
    for 8 hours with my dunce cap on...
    Joe Dardard

  • Wrong message while running report in bex analyzer

    Hi Experts,
    I have created an authorization object based on compnay code. I use the option RSECADMIN => Analysis => Execute As, to test this authorization object. When I give incorrect company code value, it displays correct message that is 'No authorization'.
    But when I test in bex analyzer for same report, with same incorrect company code value instead of showing 'No authorization' message, it shows 'No applicable data found' message. Is there anything wrong here?
    How can I show the correct authorization message 'No authorization' in bex analyzer, when incorrect company code is supplied?
    Thanks,
    Purvang

    Hi Pratap,
    thanks for reply.
    I also thought that way initially but then was skeptical of different message received while testing in RSECADMIN. If SAP is going to show 'No applicable data found' message then how will a user have any idea that actually he is not authorized for the supplied value of company code.
    does anyone know if this is bug or is there any workaround to show right message i.e. no authorization.
    Thanks,
    Purvang
    Edited by: Purvang on Oct 19, 2011 3:18 AM

  • Bug Report (reproducible) - Adding an appointment to Google Calendar causes Pre to display a blank calendar.

    I have been able to reproduce an important bug on the Pre (webOS 1.0.2).  I didn't see a way to submit an official bug report, so I'm posting it here.
    Step 1: Import the following ical file into a Google calendar:  http://www.halfwayproductions.com/test.ics
    Step 2: Sync the Google calendar to your Pre
    Step 3: Your Pre calendar appears completely blank!
    It's worth noting that this file doesn't import correctly into Google calendar.  Google gets the repeat wrong and puts the appointment at the wrong time.  However, this shouldn't cause the Pre to display a blank calendar!
    Post relates to: Pre p100eww (Sprint)

    EDgeofNJ wrote:
    I confirmed that a meeting location with an apostrophe causes the event to not sync to Google Calendar. Interesting enough, I created an event on Google Calendar with an apostrophe in the location and it sync'd to my Pre, without causing the calendar to go blank. BTW, I'm on 1.1.0.
    This seems like it would be a very common occurance as many meetings or appointments could possibly contain apostrophes in the location (Joe's office, Dr's office, Arthur's Tavern, etc). It leaves me with little confidence of what is on the Pre and what is in my Google Calendar, as there could be other issues causing events not to sync, and they are obviously not "in sync." Is anyone looking into a fix for this? (Is Palm or Google listening?) In the mean time, is there any way to get a log of events that did not sync, as opposed to blindly assuming everything was uploaded fine?
    Message Edited by EDgeofNJ on 07-30-2009 10:18 AM
    Some of these are known occurrences and I believe have been logged into the Palm SW database. Symbols had also been causing Facebook contacts to not sync properly as well. I don't know if getting a log of events that do not sync is possible at this time. However, if a user could post characters and their entry points that are known anomalies that cause the errors, that'd be useful.

  • Displaying Text message or Symbol while processing the BI Publisher Report

    Hello,
    I have a BIP report embedded in a dashboard along with the Dashboard prompt.
    After clicking the 'View' button of the BIP report it shows a processing symbol and displaying like 'Processing..to cancel click here'.
    Where as BIP report is not showing anything after the prompts selection but it is running the report and displaying after some time.
    This gives the end user a wrong impression that whether the report is executed or still processing.
    Is there any way to set a text message or a processing symbol to show progress after the prompt selection?
    Thanks in advance

    Hi,
    Just a doubt.
    I tried running the above report from the machine where BI PUBLISHER has been installed,I was able to save reports with different names to the folder.How can I run the report from my machine?What path should I give when we do not run from the server?
    Following was my bursting query,
    select NVL(d.dname,'SALES') KEY, 'Template2' TEMPLATE, 'RTF' TEMPLATE_FORMAT,
    'en-US' LOCALE, 'PDF' OUTPUT_FORMAT, 'FILE' DEL_CHANNEL, 'C:\kuleena' PARAMETER1,
    d.dname || '.pdf' PARAMETER2
    from dept d
    Kindly reply.
    Edited by: K Tanna on Mar 11, 2010 2:12 AM

  • Bug report: Mail sends messages with empty bodies

    Over the last year, I have experienced a particularly irritating bug in Mail.app at least a dozen times. I finally have a good idea as to what causes it.
    The problem involves long email messages (often with attachments) that end up being sent with blank bodies (and no attachments). Even the copy in the "Sent" folder ends up blank, and several minutes or hours of work vanishes into thin air, not to be seen ever again.
    I finally realized that this bug only occurs when sending mail through our work SMTP server while outside the work firewall, and only as a result of a certain sequence of events. Here is what happens:
    When we connect to our work SMTP server from outside the local network and without going through the VPN, the SMTP server requires password authentication. If the current SMTP selection in Mail.app is the one that does not require authentication, the SMTP server rejects the message. At that point, Mail.app opens the email I am trying to send and brings up a modal dialog that says "Cannot send message using the server xxx.xxx -- The server response was: xxx@xxx relaying prohibited. You should authenticate first." The dialog also presents a drop-down list of SMTP server choices. I choose the password-authenticated version of the server and then click on "Use Selected Server" to send the message.
    This works almost all the time, but on occasion it ends up sending a blank message! If I have a long email, particularly with attachments such as PDFs that are rendered in the body of the message, it takes a few seconds for the mail message to be rendered underneath the modal dialog box. Since I am used to this STMP rejection behavior, sometimes I am too fast to choose another STMP server from the list and click on "Use Selected Server" before the mail message is rendered on screen! The result, invariably, is a blank email message that gets sent.
    I guess what is happening is that when the STMP server rejects the message and hands it back to Mail.app, the message gets copied into a buffer in order to be displayed on screen. Selecting another server and resending it immediately (before the message is copied into the buffer completely) causes the message body to get trashed.
    I hope that this description is adequate for Apple QA folks to replicate and isolate the problem (and hopefully fix it). One solution (although not the most elegant one) would be to disable the "Use Selected Server" action until the message is copied into the buffer and rendered on screen.

    This could be related to another bug reported here recently:
    E-mail looses all images if mail server doesn't accept outgoing email...
    You cannot count on Apple looking into this or even noticing it if you report it here, so I suggest you the same I suggested in the other thread, i.e. report it in one of the following places:
    http://www.apple.com/macosx/feedback/
    http://developer.apple.com/bugreporter/

Maybe you are looking for

  • Cannot add files to iTunes library on Windows 8

    I've recently purchased a new Acer laptop with Windows 8.1 installed and have the most recent version of iTunes installed, but upon loading it, I am unable to add any files. This isn't just with mp3s, but with tones, apps and books. At first, I thoug

  • Email not showing up in SOST

    Dear SRMers. System Information: SRM 4.0 I manually added an approver X in the approver flow and ordered the shopping cart. The approver flow says waiting for approver approval since 06-14-2007 9:51. When I go to SOST, I do not see the email listed t

  • 9i Appliaction Server

    Help! I have installed successfully 9i Application Server EE on oracle 8i EE 8.1.6 rel 2. There are no errors or nothing so it seems everything is running fine but i want to check that all the components of HTTP server like jserv, jsp,mod_plsql, xdl

  • MP3 Burn CD Problem

    I have numerous playlists in my iTunes library now (all MP3 files, not AAC), and I set about to burn one playlist onto an MP3 CD (it was a CD-RW; they're supposed to be compatible). The playlist was less than the maximum of 700 MB (I believe the play

  • Recovery catalog best practice

    Hi there, I want to ask you about your recovery catalog best practices should it be separate server, how to backup it, should I have standby recovery catalog, etc. ? we have dc and rdc and about 20 databases, we do backups to tapes and we use recover