Procedure fails to compile, because of "Order By" on join table

I am trying to convert a working script into a procedure. The script works fine, but when placed in a procedure, I get the following error:
[Error] Syntax check (4: 71): ERROR line 4, col 71, ending_line 4, ending_col 75, Found 'order', an alias is not allowed here (reserved for XMLCOLATTVAL, XMLFOREST and XMLATTRIBUTES only)
I am essentially trying to make sure that the values are ordered chronologically when placed into the string. Any ideas on why this fails as a procedure or how to ensure the chronological ordering?
I have also noticed that this error does not occur if I am only querying one table (no join, no order by other table field).
The Order By columns are unique to the second table. Aliasing doesn't help.
Jason
CREATE OR REPLACE PROCEDURE AHSANALYTICS.delme_jjs IS
tmpVar varchar2(3000);
BEGIN
        SELECT collect_to_string(CAST(COLLECT(TO_CHAR(cs_description) order by CL_DATE_REQUESTED desc) AS collect_table),' >> ') AS cs_description_collect
        into tmpvar
        FROM   f_consul_link            f_consul_link,
               f_consultations          f_consultations
        WHERE  f_consul_link.cl_pp_sequ      = 2973968 AND
               f_consul_link.cl_cs_sequ      = f_consultations.cs_sequ (+)
        GROUP BY cl_pp_sequ;
        dbms_output.put_line('tmpvar = '||tmpvar);
END delme_jjs;
/But the same code (minus the INTO) works fine as a script
SELECT collect_to_string(CAST(COLLECT(TO_CHAR(cs_description) order by CL_DATE_REQUESTED ASC, CL_SEQU ASC) AS collect_table),' >> ') AS cs_description_collect
FROM   f_consul_link            f_consul_link,
       f_consultations          f_consultations
WHERE  f_consul_link.cl_pp_sequ      = 2973968 AND
       f_consul_link.cl_cs_sequ      = f_consultations.cs_sequ (+)
GROUP BY cl_pp_sequ
;The "collect_to_string" function is this:
CREATE OR REPLACE FUNCTION AHSANALYTICS.collect_to_string (
    nt_in IN collect_table,
    delimiter_in IN VARCHAR2 DEFAULT ','
This function helps to concatenate a set of strings into a single field.
Author         :  http://oracle101.blogspot.com/2008/08/oracle-collect-function.html
Parameters     : collect_table and delimiter_in
Created Date   : 2011-Jan-10
Example Script :   CREATE OR REPLACE TYPE collect_table AS TABLE OF VARCHAR2 (4000);
                    SELECT
                      MAX(pp_sequ)
                    , MAX(RC.CONS_SEQ) AS ED_CONSULTS
                    , collect_to_string(CAST(COLLECT(RC.CONSULT_GROUP) AS collect_table),' >> ') AS temp123
                    , MIN(RC.CONSULT_REQUESTED_DT) AS ED_FIRST_CONSULT_DT
                    FROM HSA_TGT.redis_consults rc
                    WHERE
                      PP_SEQU = 1183707
                    GROUP BY pp_sequ;
Change History :
    yyyy-mmm-dd    Author   Description
    2011-Jan-10    JJS      Creation of script
    RETURN VARCHAR2
IS
    v_idx PLS_INTEGER;
    v_str VARCHAR2 (32767);
    v_dlm VARCHAR2 (10);
BEGIN
    v_idx := nt_in.FIRST;
    WHILE v_idx IS NOT NULL
    LOOP
        v_str := v_str || v_dlm || nt_in (v_idx);
        v_dlm := delimiter_in;
        v_idx := nt_in.NEXT (v_idx);
    END LOOP;
    RETURN v_str;
END collect_to_string;
/

Jason_S wrote:
David,
The issue only seems to arise when there are two tables joined, and the order by is based on the 'other' table.
JasonNot here....
SQL> create table another_table
  2  (   id number
  3  )
  4  /
SQL> declare
  2
  3      tmpvar      varchar2(100);
  4
  5  BEGIN
  6          SELECT collect_to_string
  7                  (   CAST
  8                      (   COLLECT
  9                          (   TO_CHAR(cs_description)
10                              order by id desc
11                          ) AS collect_table
12                      ),
13                      ' >> '
14                  ) AS cs_description_collect
15          into tmpvar
16          FROM   f_consul_link            f_consul_link,
17                  another_table
18          WHERE  f_consul_link.cl_pp_sequ      = 2973968
19          AND
20                  f_consul_link.cl_pp_sequ = another_table.id (+)
21          GROUP BY cl_pp_sequ;
22  END ;
23  /
PL/SQL procedure successfully completed.
SQL> declare
  2
  3      tmpvar      varchar2(100);
  4
  5  BEGIN
  6          SELECT collect_to_string
  7                  (   CAST
  8                      (   COLLECT
  9                          (   TO_CHAR(cs_description)
10                              order by id desc
11                          ) AS collect_table
12                      ),
13                      ' >> '
14                  ) AS cs_description_collect
15          into tmpvar
16          FROM   f_consul_link            f_consul_link,
17                  another_table
18          WHERE  f_consul_link.cl_pp_sequ      = 2973968
19          AND
20                  f_consul_link.cl_pp_sequ = another_table.id
21          GROUP BY cl_pp_sequ;
22  END ;
23  /
declare
ERROR at line 1:
ORA-01403: no data found
ORA-06512: at line 6Again, maybe you could post your create table statements and full version of oracle....although it is fairly academic given the alternative ways to aggregate strings in the links provided.
David

Similar Messages

  • Run_report_object_proc procedure fails to compile

    Thanks all.
    For more information as some you guys have requested
    Os is windows
    reports developer version is 9.0.2.0.3
    forms developer version is 9.0.2.9.0
    I am compiling the following plsql code
    PROCEDURE run_report_object_proc(
         report_id          REPORT_OBJECT,
         report_server_name     VARCHAR2,
         report_format     VARCHAR2,
         report_destype_name     NUMBER,
         report_file_name     VARCHAR2,
         report_otherparam     VARCHAR2,
         reports_servlet          VARCHAR2) IS
    report_message VARCHAR2(100) :='';
    rep_status     VARCHAR2(100) :='';
    job_id     VARCHAR2(4000)     :='';
    hidden_action     VARCHAR2(2000)     :='';     
    v_report_other     VARCHAR2(4000)     :='';
    i     number(5);
    c char;
    c_old     char;
    c_new     char;
    BEGIN
    SET_REPORT_OBJECT_PROPERTY report_id,REPORT_COMM_MODE,SYNCRONOUS);
         SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILE_NAME,report_file_name);
         SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,report_server_name);
         SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,report_destype_name);
         SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESFORMAT,report_format);
         hidden_action := hidden_action||'&report='||GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME);
         hidden_action := hidden_action||'&destype='||GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE);
         hidden_action := hidden_action||'&desformat='||GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESFORMAT);
         hidden_action := hidden_action||'&userid='||get_application_property(username)||'/'||get_application_property(password)||'@'||     get_application_property(connect_string);
    c_old :='@';
         FOR i in 1..LEMNGTH(report_otherparam) LOOP
              c_new := substr(report_otherparam,i,1);
              IF (c_new ='') THEN
                   c := '&';
              ELSE
                   c := c_new;
              END IF;
              IF (c_old='' and c_new='') THEN
                   null;
              ELSE
                   v_report_other     :=     v_report_other||c;
              END IF;
              c_old := c_new;
         END LOOP;
         hidden_action := hidden_action||'&'||v_report_other;
         hidden_action := report_servlet||'?_hidden_server='||report_server_name||encode(hidden_action);
         SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,'pfaction='||hidden_action||''||report_otherparam);
         report_message :=run_report_object(report_id);
         rep_status :=report_object_status(report_message);
         IF rep_status='FINISHED' THEN
              v_job_id :=substr(report_message,length(report_server_name)+2,length(report_message));
              WEB_SHOW_DOCUMENT(reports_servlet||'getjobid'||'?server='||macreport_server_name,'_blank');
         ELSE
              null;
         END IF;
    END;
    the error is PLS-00201 identifier 'REPORT_OBJECT' must be declared.

    Could you please post the pl/sql code?

  • I just tried to install the 11.4 update (or whichever one is the most recent update as of 1/26/2014) and when it failed i tried to install manually and now whenever i try to use it, i get the following error: the application has failed to start because MS

    i just tried to install the 11.4 update (or whichever one is the most recent update as of 1/26/2014) and when it failed i tried to install manually and now whenever i try to use it, i get the following error: "The application has failed to start because MSVCR80.dll was not found. Re-installing the application may fix this problem." Right after i click ok i then get this error: "Itunes was not installed correctly. Please reinstall Itunes. Error 7 (Windows error 126)." I tried to uninstall Itunes and then reinstall the 11.03 version but that didnt work either. I want to know if i copy all of the music in my itunes folder to an external without consolidating can i still transfer all my itunes music from my current windows xp pc to a brand new one and have my current itunes library in my new pc? Basically i just want to know 3 things: What exactly does consolidating the itunes library do? Can i copy, paste, and transfer my itunes library to an external and from there to a new pc? Will i be able to transfer my itunes library without consolidating the files?

    I have found a temporary solution, allowing the previous version of iTunes (v. 11.1.3 (x64) in my case) to be re-installed.  It will allow you to re-establish use of iTunes until the Apple software engineers fix the most recent disasterous upgrade (v. 11.1.4).  Please see and follow the procedure in the following article:http://smallbusiness.chron.com/reverting-previous-version-itunes-32590.html   The previous version works beautifully.

  • HT6001 I have tried numerous time to update iTunes to Version 11.1.4.  Each time it has failed. I get the message of "This application has failed to start because MSVCR80.dll was not found".  Also I get a message of "Error 7". Advise please.

    I have tried numerous time to update iTunes to version 11.1.4.  It has failed every time.  Now I can't even get into iTunes on my PC.  The message I get is "This application has failed to start because MSVCR60.dll was not found.  Re-installing the application may fix the problem."  Okay. Which application?  What steps are needed for this process?
    Also, I get this message "iTunes was not installed correctly.  Please reinstall iTunes.  Error 7 (Windows error 126)"  Could someone please assist me in the steps necessary to remedy this issue.  Thanks.

    For many users at this point in time (iTunes 11.1.4.62) uninstalling iTunes alone is not enough and they may need to undertake further steps...
    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • My iTunes will not start.  The box on the error message APSDaemon.exe,  And message says "This application failed to start because MSVC80.dll was not found.  Reinstalling may fix."  I did the reinstall and I get the same error.

    My iTunes will not start.  The box on the error message APSDaemon.exe,  And message says "This application failed to start because MSVC80.dll was not found.  Reinstalling may fix."  I did the reinstall and I get the same error.  The error first happened after I approved the an iTurns update.

    Same problem today. Took five times to reinstall without any error messages. Apple has posted a way to fix and you should follow their's first. I finally got to upldate correctly by doing their fix but with one difference. I did the following:
    1) Went to the C:\program files (x86)\iTunes and C:\program files\iTunes folders and moved every file ending in .dll to the desktop (even if two files in same location had the same name, just replace)
    2) Restarted computer and still got error message
    3) Uninstalled all apple programs possible in the following order......itunes, apples software update, apple mobile device support, bonjour, and apple application support.....all performed using the microsoft control panel
    4) put all the .dll files on the desktop in the trash and emptied (this is a step apple support did not specifically put in their fix but for a final try I wanted to delete everything apple).
    5) Restarted computer.
    6) Re-installed itunes from apple website
    No error messages during re-install and was able to open shortcut in one try. Even updated my ipad to make sure everything was working.

  • Sun C 5.9 Build13_0 2006/01/06 fails to compile stdlib.h

    On both IA-32 and AMD64, c89 fails to compile a single-line
    test file containing
    #include <stdlib.h>
    "/usr/include/stdlib.h", line 537: long long not allowed in Xc mode
    "/usr/include/stdlib.h", line 537: invalid type combination
    I suggest that the "no long long" in Xc mode be dropped
    on these platforms, because that type is used in standard
    header files needed by most software.

    We will consider turning this into a warning and supressing that warning in system header files.

  • Procedure created with compilation errors

    I created a procedure and that when I run it in SQLPlus I get this message:
    Warning: Procedure created with compilation errors.
    Where can I go to see what the errors are?

    I tried adding 'show errors' to the end of the procedure but it didn't display any errors. I'm using this script that is for MS SQL and I wanted to see what I would need to change in order for it to work in Oracle:
    Can you tell me where I should put the 'show errors' statmement?
    DROP PROCEDURE      scp_mig_jobs_copy;
    CREATE PROCEDURE scp_mig_jobs_copy
    AS
    ** File Name:
    ** scp_mig_jobs_copy.sql
    ** Procedure Name:
    ** scp_mig_jobs_copy
    ** Description:
    ** This procedure is used to move data from the limited staging table,
    **          scp_mig_jobs, to the full migration table scp_mig_jobs2
    **          It first trunacates the migration table, then copies the data
    ** Saba Version:
    ** SE2005 May release + August patch.
    ** Input Parameter(s):
    **          None
    ** Output Parameter(s):
    ** None
    ** Return Codes:
    **          None.
    ** Error Codes:
    ** None.
    ** Calling Procedure(s):
    ** Procedures Called:
    **          None.
    ** Database Table(s) Accessed:
    **          sct_mig_jobs
    **          sct_mig_jobs2
    ** Database View(s) Accessed:
    **          None.
    ** Cursor(s):
    **          None.
    ** Misc:
    BEGIN
    DECLARE @xerror     NUMBER;
    PRINT '**************************************************';
    PRINT 'Begin Copying data from the staging table, sct_mig_jobs, to the migration table, sct_mig_jobs2';
    PRINT getDate();
    PRINT ' '
    BEGIN TRAN
    TRUNCATE TABLE sct_mig_jobs2
    INSERT INTO sct_mig_jobs2 (
    name, description, custom0, custom1, --These are the only fields that the staging table has
    id, CI_Name
    created_by, created_on,
    updated_by, updated_on,
    split,
    custom2, custom3, custom4, custom5, custom6, custom7, custom8, custom9,
    process_ind, process_date, valid_rec_ind, rec_status, err_num, err_msg
    SELECT name, description, custom0, custom1, --These are the only fields that the staging table has
    NULL id,
         NULL CI_Name,
    NULL created_by, NULL created_on,
    NULL updated_by, NULL updated_on,
    NULL split,
    NULL custom2, NULL custom3, NULL custom4, NULL custom5, NULL custom6, NULL custom7, NULL custom8, NULL custom9,
    NULL process_ind, NULL process_date, NULL valid_rec_ind, NULL rec_status, NULL err_num, NULL err_msg
    FROM sct_mig_jobs
    SET @xerror = @@error;
    IF(@xerror<>0)
    BEGIN
    ROLLBACK TRAN;
    PRINT 'Error:: ' + STR(@xerror);
    PRINT '--Unable to copy data from the staging table to the migration table';
    END
    ELSE
    BEGIN
    COMMIT TRAN;
    PRINT 'Data successfully copied from the staging table to the migration table';
    END
    PRINT ' ';
    PRINT ' ';
    END
    /

  • ODI 11g  (odi 11.1.1.3)  procedure failed -  Encountered the symbol "," ...

    Hi All,
    I am facing problem while calling PL/SQL procedure from ODI procedure:
    ODI Console show below error code on failure of procedure:
    =======================================================================
    ODI-1228: Task PR_RETRIVE_DATA (Procedure) fails on the target ORACLE connection SES_DW.
    Caused By: java.sql.SQLException: ORA-06550: line 1, column 30:
    PLS-00103: Encountered the symbol "," when expecting one of the following:
    ( ) - + case mod new not null <an identifier>
    <a double-quoted delimited-identifier> <a bind variable>
    table continue avg count current exists max min prior sql
    stddev sum variance execute multiset the both leading
    trailing forall merge year month day hour minute second
    timezone_hour timezone_minute timezone_region timezone_abbr
    time timestamp interval date
    <a string literal with character set specification>
    ================================================
    Thanks,
    Dharmaraj

    Hi,
    it seems there are compilation errors in your PL/SQL, leading to the ORA-06550 error. Check your PL/SQL code and try to execute it directly in the database to see if the issue is related to ODI.
    Regards,
    Alex

  • When trying to launch ITunes I get an error message saying that application fail to start because MSVCR80.dll file not found. Reinstalling app may fix problem.

    When trying to launch ITunes I get an error message saying that application fail to start because MSVCR80.dll file not found. Reinstalling app may fix problem.

    I've just (finally) managed to fix this problem today. I checked the Apple Support forums, and it seems a lot of people are having the same problem.
    I rang the Apple Support line, and the very helpful man (thanks Alan!) talked me through it stage by stage. If you go to the following page on the internet: http://support.apple.com/kb/TS5376   it takes you through the process. WARNING - it takes a little time!
    Basically, the first thing you have to do is go to your Program Files and double click on your iTunes folder. There'll be a number of files with the suffix .dll - you need to move all the .dll files from that folder to your desktop - you can simply click and drag them on the desktop..
    Next, uninstall iTunes - go to Control Panel / Add/Rempve Programs and when the list comes up remove iTunes. This will take a few minutes... Then reboot your computer.
    Next, go back to Control Panel / Add Remove and Remove - IN THIS ORDER -
    Apple Software Update
    Apple Mobile Device Support
    Bonjour
    Apple Application Support
    Reboot again!
    Next, check in your Program Files that the iTunes folder is completely gone - if it has, great: if it hasn't, right-click on the folder and press Shift and Delete - it will say "Are you sure you want to completely remove the folder "iTunes"? Click on "Yes".
    Reboot!
    Then go to the iTunes download page and voila! It should download iTunes without any problems... well it did for me.... Good luck!

  • ODI-1228: Task PRD-create-populate-table (Procedure) fails on the target

    I get this error when trying to run PRD-create-populate-table from Oracle by example ODI
    ODI-1228: Task PRD-create-populate-table (Procedure) fails on the target ORACLE connection ODI_DATA_SERVER.
    Caused By: java.sql.SQLSyntaxErrorException: ORA-02264: name already used by an existing constraint
    ODI-1228: Task PRD-create-populate-table (Procedure) fails on the target ORACLE connection ODI_DATA_SERVER.
    Caused By: java.sql.SQLSyntaxErrorException: ORA-02264: name already used by an existing constraint
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:91)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1035)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:953)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1224)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3467)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1350)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java:665)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.executeUpdate(SnpSessTaskSql.java:3218)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java:1785)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java:2805)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2515)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:534)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:449)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1954)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:322)
         at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:224)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:246)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:237)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:794)
         at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:114)
         at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
         at java.lang.Thread.run(Thread.java:662)

    the specified constraints name is still used. Please check if you are having the order correctly ie drop table , create and insert and check if the table is dropped , if still the constraints is there then drop it from database

  • Why procedure created with compilation errors?

    CREATE or REPLACE PROCEDURE AddStudent(
    p_stuID number,
    p_lname varchar2(30),
    p_fname varchar2(20),
    p_major varchar2(5) check(major IN
    ('ACCT','ECT','EET','BIS','BSIT','CIS','TCOM')),
    P_standing varchar2(10) check(standing IN
    ('FRESHMAN','SOPHOMORE','JUNIOR','SENIOR')),
    P_gpa number(3,2) IS
    BEGIN
    INSERT INTO STUDENT (P_STUID, P_LNAME, P_FNAME, P_MAJOR,
    P_STANDING, P_GPA, P_ADVISOR) VALUES
    (STUDENT_SEQ.NEXTVAL, 'SMITH', 'HEATHER', 'CIS', 'JUNIOR', 3.8,
    2);
    INSERT INTO STUDENT (P_STUID, P_LNAME, P_FNAME, P_MAJOR,
    P_STANDING, P_GPA, P_ADVISOR) VALUES
    (STUDENT_SEQ.NEXTVAL, 'ELLIOTT', 'DAVE', 'CIS', 'JUNIOR', 3.65,
    2);
    COMMIT;
    END;
    SQL> /
    Warning: Procedure created with compilation errors.
    any help would be appreciated

    I would guess it's because you can't use CHECK like that (at
    least not in Oracle 8i). If you want to check the validity of
    procedural parameters you'll have to code this sort of thing:
    BEGIN
    IF major NOT IN ('whatever', 'etc') THEN
    RAISE_APPLICATION_ERROR(-22200, 'Invlaid value for MAJOR');
    ELSIF ....
    For future reference you can use the SQL*Plus command SHOW ERR
    to see what went wrong - it gives you line numbers and error
    messages.
    HTH, APC

  • EJB fails to compile - static inner class problem

    I am using OC4J 9.0.4 and Sun JDK1.4.2 and EJBs fail to compile if they reference objects that contain static inner classes. However, they successfully compile under JDK1.4.1.
    For example, I have a class like below:
    public class ValueObject
    public static class Key
    private Key key;
    private String value;
    Any references to ValueObject.Key inside the EJB cause the EJB compiler to generate "ValueObject$Key" which is incorrect. JDK1.4.1 is more lenient than 1.4.2, and allows this error through.
    Is there a way around this problem other than reverting to JDK1.4.1?
    Regards,
    Andy

    The reason I don't want to move to JDK 1.4.1 is because of the memory leak in the StringBuffer.toString() method.
    Is there anywhere I can submit this as a bug?
    Regards,
    Andy

  • VMPlayer 3.1.5: Failed to compile module vmmon

    Hi,
    yesterday I updated VMPlayer but after that it doesn't work. When I try to start the program it advice me that 'Before you can run VMware, several modules must be compiled and loaded into the running kernel'. I select the 'Install' button but the procedure fails immediately during the compiling of the 'Virtual Machine Monitor'.
    The problem seems to be the vmmon module.
    Oct 10 10:49:57.775: app-3076052672| Log for VMware Workstation pid=1942 version=7.1.5 build=build-491717 option=Release
    Oct 10 10:49:57.775: app-3076052672| The process is 32-bit.
    Oct 10 10:49:57.775: app-3076052672| Host codepage=UTF-8 encoding=UTF-8
    Oct 10 10:49:57.775: app-3076052672| Logging to /tmp/vmware-root/setup-1942.log
    Oct 10 10:49:58.133: app-3076052672| modconf query interface initialized
    Oct 10 10:49:58.134: app-3076052672| modconf library initialized
    Oct 10 10:49:58.218: app-3076052672| Your GCC version: 4.6
    Oct 10 10:49:58.226: app-3076052672| Your GCC version: 4.6
    Oct 10 10:49:58.248: app-3076052672| Your GCC version: 4.6
    Oct 10 10:49:58.276: app-3076052672| Your GCC version: 4.6
    Oct 10 10:49:58.297: app-3076052672| Your GCC version: 4.6
    Oct 10 10:49:58.394: app-3076052672| Trying to find a suitable PBM set for kernel 3.0-ARCH.
    Oct 10 10:49:58.402: app-3076052672| Trying to find a suitable PBM set for kernel 3.0-ARCH.
    Oct 10 10:49:58.410: app-3076052672| Trying to find a suitable PBM set for kernel 3.0-ARCH.
    Oct 10 10:49:58.419: app-3076052672| Trying to find a suitable PBM set for kernel 3.0-ARCH.
    Oct 10 10:49:58.427: app-3076052672| Trying to find a suitable PBM set for kernel 3.0-ARCH.
    Oct 10 10:49:58.496: app-3076052672| Trying to find a suitable PBM set for kernel 3.0-ARCH.
    Oct 10 10:49:58.505: app-3076052672| Trying to find a suitable PBM set for kernel 3.0-ARCH.
    Oct 10 10:49:58.513: app-3076052672| Trying to find a suitable PBM set for kernel 3.0-ARCH.
    Oct 10 10:49:58.521: app-3076052672| Trying to find a suitable PBM set for kernel 3.0-ARCH.
    Oct 10 10:49:58.530: app-3076052672| Trying to find a suitable PBM set for kernel 3.0-ARCH.
    Oct 10 10:49:58.536: app-3076052672| Your GCC version: 4.6
    Oct 10 10:49:58.558: app-3076052672| Your GCC version: 4.6
    Oct 10 10:49:58.652: app-3076052672| Trying to find a suitable PBM set for kernel 3.0-ARCH.
    Oct 10 10:49:58.660: app-3076052672| Trying to find a suitable PBM set for kernel 3.0-ARCH.
    Oct 10 10:49:58.668: app-3076052672| Trying to find a suitable PBM set for kernel 3.0-ARCH.
    Oct 10 10:49:58.676: app-3076052672| Trying to find a suitable PBM set for kernel 3.0-ARCH.
    Oct 10 10:49:58.685: app-3076052672| Trying to find a suitable PBM set for kernel 3.0-ARCH.
    Oct 10 10:49:58.690: app-3076052672| Your GCC version: 4.6
    Oct 10 10:49:58.712: app-3076052672| Your GCC version: 4.6
    Oct 10 10:49:58.878: app-3076052672| Trying to find a suitable PBM set for kernel 3.0-ARCH.
    Oct 10 10:49:58.887: app-3076052672| Trying to find a suitable PBM set for kernel 3.0-ARCH.
    Oct 10 10:49:58.896: app-3076052672| Trying to find a suitable PBM set for kernel 3.0-ARCH.
    Oct 10 10:49:58.905: app-3076052672| Trying to find a suitable PBM set for kernel 3.0-ARCH.
    Oct 10 10:49:58.913: app-3076052672| Trying to find a suitable PBM set for kernel 3.0-ARCH.
    Oct 10 10:49:59.512: app-3076052672| Trying to find a suitable PBM set for kernel 3.0-ARCH.
    Oct 10 10:49:59.513: app-3076052672| Building module vmmon.
    Oct 10 10:49:59.525: app-3076052672| Extracting the sources of the vmmon module.
    Oct 10 10:49:59.582: app-3076052672| Building module with command: /usr/bin/make -C /tmp/vmware-root/modules/vmmon-only auto-$
    Oct 10 10:50:05.007: app-3076052672| Failed to compile module vmmon!
    I try to compile the modules with the command vmware-modconfig --console --install-all but it returns me:
    $ sudo vmware-modconfig --console --install-all
    Password:
    Stopping VMware services:
    VMware USB Arbitrator done
    VM communication interface socket family done
    Virtual machine communication interface done
    Virtual machine monitor done
    Blocking file system done
    Using 2.6.x kernel build system.
    make: Entering directory `/tmp/vmware-root/modules/vmmon-only'
    make -C /lib/modules/3.0-ARCH/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
    MODULEBUILDDIR= modules
    make[1]: Entering directory `/usr/src/linux-3.0-ARCH'
    CC [M] /tmp/vmware-root/modules/vmmon-only/linux/driverLog.o
    CC [M] /tmp/vmware-root/modules/vmmon-only/linux/iommu.o
    /tmp/vmware-root/modules/vmmon-only/linux/iommu.c:47:44: error: ‘SPIN_LOCK_UNLOCKED’ undeclared here (not in a function)
    /tmp/vmware-root/modules/vmmon-only/linux/iommu.c: In function ‘IOMMU_SetupMMU’:
    /tmp/vmware-root/modules/vmmon-only/linux/iommu.c:103:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    /tmp/vmware-root/modules/vmmon-only/linux/iommu.c:113:17: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘long long unsigned int’ [-Wformat]
    /tmp/vmware-root/modules/vmmon-only/linux/iommu.c:117:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    /tmp/vmware-root/modules/vmmon-only/linux/iommu.c:120:20: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘uint64’ [-Wformat]
    make[2]: *** [/tmp/vmware-root/modules/vmmon-only/linux/iommu.o] Error 1
    make[1]: *** [_module_/tmp/vmware-root/modules/vmmon-only] Error 2
    make[1]: Leaving directory `/usr/src/linux-3.0-ARCH'
    make: *** [vmmon.ko] Error 2
    make: Leaving directory `/tmp/vmware-root/modules/vmmon-only'
    Unable to install vmmon

    I am Gianluca wrote:It works!
    Thank you very much BxS
    I use VMware for a long time, it normally needs patchs for new kernels, Workstation 8 and Player 4 for now don't need any, they simple work out of the box, very nice

  • I was updating Firefox from version 6 to version 7, after updating I tried to open Firefox and the message I got is this: This application has failed to start because xul.dll was not found. How can I fix this?

    I was updating Firefox to the newest version 7.0.1 from version 6.0.2 I think it was, I clicked the restart Firefox button that always comes up after updating. It started updating and then Firefox never restarted like it was supposed to after it was done updating. I then tried to open Firefox and it told me "This application has failed to start because xul.dll was not found." I did have Firefox crash on maybe about 30 minutes or so earlier which bothered me because I have been using Firefox for years and never had it crash on me before but I didn't think much of it at the time it happened because I was able to go back onto Firefox and finish what I had been working on. A while later I checked for updates and updated. The first time I tried to update it didn't work though so I had to shutdown Firefox and reopen Firefox and start the update a second time. It was after the second time that when I tried to open Firefox I got that message about failing to start because xul.dll can't be found. I filed a crash report when my Firefox crashed. This would have been around 1am-2am in the morning that Firefox first crashed and then wouldn't allow me to open it after updating. I have a DELL laptop running the Windows XP operating system but the laptop is probably at least 6 or 7 years old. The laptop will no longer charge so I always have to have it plugged into an outlet. Both my laptop hard drive and my external hard drive give me messages that I am running out of disk space on my hard drive. I bought this laptop 6 or 7 years ago second hand so it could be even older. In short it's a piece of crap and it gives me all kinds of issues but I currently can't afford a new one, but I have never had any problems with Firefox and I use Firefox more than any other aspect of my laptop so it's really really bothering me. May you please help me fix it?

    Unfortunately I tried that and it didn't work. Thanks for the help though. I tried to uninstall and it said I couldn't because the file is corrupt or something, but I think I finally got it uninstalled and/or deleted or whatever, but now I try to reinstall/download it again from the beginning and I can't. No matter what I do I can not get Firefox working again. No matter how many times I try to redownload it. Any other suggestions?

  • Bridge CS3 (Windows XP) fails to start because Symlib.dll was not found

    Bridge CS3 (Windows XP) fails to start because Symlib.dll was not found? How do I fix this? I've re-installed and the auto updater has run...I even downloaded and ran the patcher application? By the way Bridge CS3 doesn't show up in the CS3 program list in the start menu but it is installed in my program files - I've tried launching it directly from there as well. Bridge CS2 is operating just fine.
    Update: I installed and ran the Adobe Support Advisor, resulting in - Issues: "The module found no solutions to report for the selected log file."
    I tried to package the report and the error read: "The size of the package is too large to be handled with the current configuration! Please contact Adobe Support for additional information."
    I opened a web based report/case number at the Adobe Support Portal about the missing Symlib.dll (including the Adobe Support Advisor error). Their response was: We regret to inform you that complimentary support for your product is not available and/or has expired.

    Did Bridge work before? If so, reset preferences by holding down the Ctrl key when starting Bridge. If successful you will get a Reset Window, choose all 3 options.

Maybe you are looking for

  • Please check the below Cursor Procedure and correct that code Please

    Hai Every One. Please check the below code I have two issues in that code 1. Invalid cursor 2. Record must be enter Please correct this code and send me pls its urgent.I cont understand where i done mistake PROCEDURE fetch_detail_PROC IS cursor c1 is

  • Is it possible to rotate video horiz/vert?

    As a photographer, I frequently turn my camera vertically to shoot. Well, the new camera has video capabilities, and I did the same thing without thinking. Is there a way to rotate the video clip the way photos can be rotated? I have checked QTPro an

  • Has anyone been able to register Windows?

    Although my original copy of Windows Vista Business was activated, I was never able to register it. I bought a retail copy of Vista Ultimate (Lenovo will not supply a straight Windows disk) and installed and activated it. But still, when I try to reg

  • Edit rman script

    Hi guys, someone can tell me if is possible to edit rman script in Backup Jobs definition of Grid? I've scheduled some jobs backup and I need to edit script but don't find where i can edit it.. thanks Andrea

  • Raw imports

    Why can I not see any raw (NEF) files anymore  afte importing files to Elements 8  ? I only can access the jpegs. I shoot raw AND jpgs.