Debugger issue - local variable table missing

I have compiled my sources using IBM's jikes compiler with the -g option (for debugging purposes). I am using Sun's JRE 1.2.2. and JPDA 1.0.
When I run the debugger using JPDA and try to set a watch for local variables I get an error saying that the local variable table is missing. And it asks me to compile the source with the debug option (which I've already done but with the jikes compiler)
Any ideas what is going wrong here?
Thanks,
Rahul.

How about using javac?

Similar Messages

  • Local variable table missing

    I have compiled my sources using IBM's jikes compiler with the -g option (for debugging purposes). I am using Sun's JRE 1.2.2. and JPDA 1.0.
    When I run the debugger using JPDA and try to set a watch for local variables I get an error saying that the local variable table is missing. And it asks me to compile the source with the debug option (which I've already done but with the jikes compiler)
    Any ideas what is going wrong here?
    Thanks,
    Rahul.

    Simplest/quick solution would be to recompile with sun's javac before you run it through sun's JRE.

  • F8Pro - local variables not displayed in debugger - flashlocalvars.zip (0/1)

    Im not sure if this is me doing something stupid but I have
    been
    playing round with classes and noticed that in the debugger,
    the local
    variables are no longer displayed in the debugger after
    returning from
    a custom class get method. I have managed to work round this
    behaviour for a while but Im now stuck.
    I have posted a sample flash file with actionscript and
    sample class
    at
    http://www.zerofiveone.com/flashlocalvars.zip
    which displays
    this behaviour everytime. View the testscript.as file for
    info on
    where to place your breakpoints.
    If someone could put my out of my misery and let me know if I
    am doing
    something wrong I would apprecaite it.
    If im not doing anything wrong is there a workaround?
    Any help would really....really be greatly appreciated as Im
    stuck
    trying to work a fairly complex bug from some of my
    actionscript and
    this is causing me many headaches.
    Cheers,
    Tom

    Its a known problem then :(
    This has been round for a long while, annoying really.
    Thanks for the reply anyway.
    Cheers,
    Tom
    On Sun, 11 Jun 2006 14:45:35 +0000 (UTC), "the fleece"
    <[email protected]> wrote:
    >I use a work around if I can't see an object by sticking
    a :
    >
    >_global.TEMP=myObject
    >
    >and look at it through the global scope

  • How do i declare a user defined table type sproc parameter as a local variable?

    I have a procedure that uses a user defined table type.
    I am trying to redeclare the @accountList parameter into a local variable but it's not working and says that i must declare the scalar variable @accountList.this is the line that is having the issue: must declare the scalar variable @accountListSET @local_accountList = @accountListALTER PROCEDURE [dbo].[sp_DynamicNumberVisits] @accountList AS integer_list_tbltype READONLY
    ,@startDate NVARCHAR(50)
    ,@endDate NVARCHAR(50)
    AS
    BEGIN
    DECLARE @local_accountList AS integer_list_tbltype
    DECLARE @local_startDate AS NVARCHAR(50)
    DECLARE @local_endDate AS NVARCHAR(50)
    SET @local_accountList = @accountList
    SET @local_startDate = @startDate
    SET @local_endDate = @endDate
    CREATE TYPE [dbo].[integer_list_tbltype] AS TABLE(
    [n] [int] NOT NULL,
    PRIMARY KEY CLUSTERED
    [n] ASC
    )WITH (IGNORE_DUP_KEY = OFF)
    GO

    Why are you asking how to be an awful SQL programmer??  Your whole approach to SQL is wrong.
    We have a DATE data type so your insanely long NVARCHAR(50) of Chinese Unicode strings is absurd. Perhaps you can post your careful research on this? Can you post one example of a fifty character date in any language? 
    The use of the "sp_" prefix has special meaning in T-SQL dialect. Good SQL programmers do not use CREATE TYPE for anything. It is dialect and useless. It is how OO programmers fake it in SQL. 
    The design flaw of using a "tbl-" prefix on town names is called "tibbling" and we laugh at it. 
    There are no lists in RDBMS; all values are shown as scalar values. First Normal Form (1NF)? This looks like a set, which would have a name. 
    In any -- repeat any -- declarative programming language, we do not use local variables. You have done nothing right at any level. You need more help than forum kludges. 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • Inserting in the UUT_Results table a value that we read from our data base from a local variable

    We would like to include in the UUT_Results table a value that we read from our data base into a local variable during the execution of our sequence file. We found that by modifying the configure database options we were able to add a column for this variable, but the local variable was not available to be placed into an expression for that column from the local variables or parameters. Is it possible to do this, and if so, how? Station Globals were available to be included in the expression, however the sequence file may be executed on more than one system which makes the Global unavailable on systems other than the one where the sequence file originated.

    You can use the TestStand API to programmatically create global variables at runtime, thus ensuring their existence. For example, you could call Engine.Globals.SetValString("GlobalStringVariableName", PropOption_InsertIfMissing, "variable value")
    Of course, if you need to test multiple UUTs in parallel, a single global is not sufficient. In that case you might consider adding the field you need to the UUT datatype in the process model. You could then access the field in your sequence via RunState.Root.Locals.UUT.YourNewField = YourNewValue.
    If you also want your sequence to run without using a process model, you must check for the existence of the UUT before accessing it. You could use the expression function: PropertyExists("RunState.Root.Locals.UUT.YourNewFi
    eld")

  • JDev903 debugger doesn't display local variable when debugging into JDK src

    Hi,
    I found that JDev903 debugger doesn't display local variables in the "smart data" and "data" panels when debugging into the JDK src. For most of the time, it only shows "this" object.
    Is this right? How do I setup JDev903 to display local variables in debugger?
    thanks,
    Richard

    Hi Fred,
    Did you forget to put resultFormat=&quot;e4x&quot;?

  • How to Populate  local variable values to tables like likp .

    Hi..I have taken 3 local variables date1 date2 and date3 .How to populate them in table (likp-lfdat).In date1 i have dates of lfdat between 14/05 to 21/05 and date2 from 22/05 to 28/05 and date3 one more week.In o/p how can see data between these dates range only?

    Use Where clause as:
    WHERE
    LFDAT IN DATE1
    OR LFDAT IN DATE2
    OR LFDAT IN DATE3.
    Regards,
    Anil

  • Debugger: Watchpoint on local variable is triggered upon entering routine?

    Hi
    My problem is perhaps best illustrated in this small program:
    REPORT  zzkc_watchpoint.
    PERFORM form1 USING 'AB'.
    PERFORM form1 USING 'CD'.
    PERFORM form1 USING 'EF'.
    PERFORM form1 USING 'GH'.
    FORM form1  USING    value(p_1).
      DATA: lv_local(3)     TYPE c.
      IF 1 > 2.        <----
    Watchpoint triggered here - regardless of condition
      ENDIF.
      lv_local = p_1.
      IF 1 > 2.       <----
    And here when condition is met.
      ENDIF.
    ENDFORM
    I set a conditional watchpoint (all Module Instncs) on variable lv_local, condition: lv_local = 'EF', BUT: The watchpoint is whenever form form1 is entered. It's also triggered when lv_local eventually is set to 'EF", but why is it triggered upon entering form1???
    Best regards
    Kenneth

    This happens because the visibility of local variable is only in the subroutine. When system calls the subroutines subsequently, it reassigns the content of the local variable. If you watch the watchpoints (Watchpoints tool in the Break/watchpoints), you will see that for each subsequent call, system creates a new data reference and assign it to the Current Variable and Old variable. And it has the similar content (blank value) in the Current Value & Old Value.
    FORM form1 USING value(p_1).
      DATA: lv_local(3) TYPE c.
      IF 1 > 2. " At this point, Current Value and Old Value in the Watch points are same, BLANK.
      ENDIF.
      lv_local = p_1.   " here, After this statement Current Value would change to value of the P_1
      IF 1 > 2.
      ENDIF.
    ENDFORM.
    If you change the variable scope by changing it as the STATICS, it would only stop when it reaches to the EF.
    Check the last section:
    http://help.sap.com/saphelp_erp2005/helpdata/EN/f1/792442db42e22ce10000000a1550b0/frameset.htm
    In the OLD debugger, as soon as the validity of the variable changes, system would remove the watch point on that variable.
    Regards,
    Naimesh Patel

  • Issue with local variable in forms personalization

    Hi All,
    I did the following things at last it is give me syntax error, please help me on this.
    Rules section:
    seq Description Level Enabled
    1 Populate Number Function y
    Conditions:
    T.E : When new item instance
    T.O : REQ_LINES.REQUISIOTN_NUMBER
    Condition::REQ_LINES.BLANKET_PO_NUM_DSP IS NOT NULL AND
    :REQ_LINES.SELECT_LINE='Y'
    Processing mode: Not in enter query mode
    Actions:
    seq: Type: Desc: Langauge: Enabled
    1: property: local variable :Y
    Object Type: Local Varibale
    Target Object: XXNUM
    property : Value
    Text: = TO_CHAR(${item.req_lines.blanket_po_num_dsp.value})
    Rules section:
    seq Description Level Enabled
    1 Default Number Function y
    Conditions:
    T.E : When block instance
    T.O : New_DOCUMENT
    Condition:
    Processing mode: Not in enter query mode
    Actions:
    seq: Type: Desc: Langauge: Enabled
    1: property: use of local variable :Y
    Object Type:ITEM
    Target Object:NEW_DOCUMENT.DOCUMENT_NUMBER
    property : Value
    *Text:  = SELECT TO_CHAR (${var.XXNUM.value}) from dual*
    The line which i bold shows me an syntax error, please check the syntax and if it is wrong please correct it.
    Thanks and Regards
    Zaheer
    Edited by: zaheer on Feb 10, 2010 11:25 PM
    Edited by: zaheer on Feb 10, 2010 11:25 PM

    Hi Zaheer,
    Try using this:
    Actions:
    seq: Type: Desc: Langauge: Enabled
    1: property: use of local variable :Y
    Object Type:ITEM
    Target Object:NEW_DOCUMENT.DOCUMENT_NUMBER
    property : Value
    Text: = ${var.XXNUM.value}
    PS: You might get a message while validating, but you can ignore that.
    Regards,
    Sujoy

  • SQL Task Expression: SQL Command using variable tables

    Hello,
    I've got a question I hope someone could help me out with. I'm working on a SSIS project that basically synchronises logins of a Source and Destination server that are part of an AlwaysOn Cluster.
    The idea is as followed: On the source server there are variable tables created named Logins_<SourceServerName>_To_<DestinationServerName> for example. This one is filled with all the login information from that server, then on the Destination
    server the same table is created and the data is transfered. The Source and Destination server names are project variables.
    Once all data is copied I use a set of code from the dba_CopyLogins script I got from SQLSoldier (http://www.sqlsoldier.com/wp/sqlserver/transferring-logins-to-a-database-mirror) to create the missing logins on the Destination server.
    What I've found is that I can't use expressions to handle the code, at least I haven't found a way yet, expression evaluation will give an error on (for example) the following code:
    Begin
    Set @SQL = 'Create Login ' + quotename(@LoginName)
    If @Type In ('U', 'G')
    Begin
    Set @SQL = @SQL + ' From Windows;'
    End
    Else
    Begin
    Set @PasswordHashString = '0x' +
    Cast('' As XML).value('xs:hexBinary(sql:variable("@PasswordHash"))', 'nvarchar(300)');
    Set @SQL = @SQL + ' With Password = ' + @PasswordHashString + ' HASHED, ';
    Set @SIDString = '0x' +
    Cast('' As XML).value('xs:hexBinary(sql:variable("@SID"))', 'nvarchar(100)');
    Set @SQL = @SQL + 'SID = ' + @SIDString + ';';
    End
    I've tried various things to get this to work as an expression, however I seem to continue to get the error:
    The expression might contain an invalid token, an incomplete token, or an invalid element. It might not be well-formed, or might be missing part of a required element such as a parenthesis.
    So the next thing I tried was just using the script as Direct input with Parameter Mapping on the tables but I've got the error:
    Must declare the table variable "@P1".
    All the way up to @P12. Since we're talking about 12 variables that are in the script in total. But they are table variables and apparently Parameter mapping is not possible on table variables or am I wrong here? Pieces of code for example are:
    Set @MaxID = (Select Max(LoginID) From ?)
    Set @CurrID = (Select Min(LoginID) From ?)
    I hope there's someone who could help me out or at least can give me a direction to look into.
    Yes we could use the script provided, but we don't want to work with LinkedServers, besides I'd have to make local jobs on the servers instead of controlling it all from 1 centralised server.
    Thank for looking at the topic and I hope you have a clue about what to do...
    Regards,
    Danny

    The code you posted is a t-sql code. If you want to store it inside ssis variable syntax is different. As per what you say what might be best would be to warp above code inside a procedure and then call it from SSIS execute sql task after passing values
    through SSIS variable
    also for 
    Set @MaxID = (Select Max(LoginID) From ?)
    etc
    create variable in SSIS, set EvaluateAsExpression true and set expression as
    "Select Max(LoginID) AS MaxID From " + @[User::TableName]
    Where TableName is SSIS variable through which you pass the table name. Then use above statement inside execute sql task and set resultset option as single row and map resultset to SSIS variable (say @[User::MaxID]) to get return value 
    similarly for other statements
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Can't see 'Local Variables' while debugging in Sun Studio 11

    I am debugging a C/C++ application built with Sun Studio 11 running on Solaris 10. I load the application as always, set a breakpoint and run. The debugger stops at the assigned breakpoint as expected.
    The issue is that at this point there are no local variables displayed in the local variables pane.
    I have tried restarting SS11, rebuilding, etc...
    This is the first time I have seen this happen.
    Does anyone else have an idea what is wrong?

    Does adding a particular variable to Watch view help? (it can be done by typing "display <variable>" in dbx command line).
    You can also try erasing (or better moving to a temporary location) all Sun Studio settings like this:
    mv -f ~/.sunstudio /tmpand start debugging session again.

  • Thread local variable causes JVM crash through JNI

    Hi All,
    My team developed a JDBC driver which uses some native C codes. (Compiler: cl.exe, O/S: Windows XP)
    I found that JVM crashes at specific point. So I used debugger(Visual Studio 2005) to find the position.
    ==================File1.c=====================
    JNIEXPORT jbyteArray JNICALL
    Java_com_lone_wolf_MyClass_myFunc(
    JNIEnv *env, jclass cls,
    jint msgtype, jbyteArray recvarr)
    jbyteArray outarr;
    int x = 3;
    outarr = my_initializer (int &x);
    return outarr;
    ==================File2.c=====================
    __declspec(thread) int thread_id;
    static jbyteArray my_initializer (int *a)
    thread_id = *a; // HERE JVM CRASHES
    When my_initializer() tries to put *a into thread_id, JVM crashed with the following error message.
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x4931c6bf, pid=3560, tid=848
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_01-b08 mixed mode)
    # Problematic frame:
    # C [hello.dll+0xc6bf]
    --------------- T H R E A D ---------------
    Current thread (0x00037168): JavaThread "main" [_thread_in_native, id=848]
    Stack: [0x00040000,0x00080000), sp=0x0007f494, free space=253k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C [hello.dll+0xc6bf]
    C [hello.dll+0xbebb]
    C [hello.dll+0x3c30]
    C [hello.dll+0x18e6]
    C [hello.dll+0x11b8]
    j com.lone.wolf.MyClass.myFunc(I[B)[B+0
    v ~StubRoutines::call_stub
    V [jvm.dll+0x8176e]
    V [jvm.dll+0xd481d]
    V [jvm.dll+0x8163f]
    V [jvm.dll+0x885cd]
    C [java.exe+0x14c0]
    C [java.exe+0x64cd]
    C [kernel32.dll+0x16ff7]
    VM Arguments:
    jvm_args: -Xms128m -Xmx1024m
    java_command: sampler.Sampler
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 4 family 6, cmov, cx8, fxsr, mmx, sse, sse2, ht
    Memory: 4k page, physical 2062180k(1378880k free), swap 4003992k(3252828k free)
    vm_info: Java HotSpot(TM) Client VM (1.5.0_01-b08) for windows-x86, built on Dec 6 2004 19:51:00 by "java_re" with MS VC++ 6.0
    Any idea how to solve this issue will be greatly appreciated.
    Thank you.

    This deffinition ( __declspec(thread) ) of the thread local veriable does not works in some cases (see articles in MSDN how to define thread local variables in C++ code). JVM loads your native module (DLL) with LoadLibrary function. This is one of the cases when __declspec(thread) is wrong in C++ code.

  • SCCM 2007 Hardware Inventory v_GS_VIRTUAL_MACHINE table missing the PhysicalHostName0 and PhysicalHostNameFullyQualifi0 Columns

    Hi All,
    I went to run a query in SQL Management Studio the other day and realized that the
    v_GS_VIRTUAL_MACHINE table missing the PhysicalHostName0
    and PhysicalHostNameFullyQualifi0 Columns.
    I reviewed the Configuration.mof and SMS_def.mof files and they seem fine. The Configuration.mof file has the below in it where it should be gathering the PhysicalHostName0 and PhysicalHostNameFullyQualifi0 parameters.
    // Virtual PC
    #pragma namespace ("\\\\.\\root\\cimv2")
    [DYNPROPS]
    class Win32Reg_SMSGuestVirtualMachine
        [key]
            string InstanceKey;
            string PhysicalHostName;
            string PhysicalHostNameFullyQualified;
    [DYNPROPS]
    instance of Win32Reg_SMSGuestVirtualMachine
        InstanceKey = "VPCKey";
        [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Virtual Machine\\Guest\\Parameters|PhysicalHostName"),
                        Dynamic, Provider("RegPropProv")]
            PhysicalHostName;
        [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Virtual Machine\\Guest\\Parameters|PhysicalHostNameFullyQualified"),
                        Dynamic, Provider("RegPropProv")]
            PhysicalHostNameFullyQualified;
    [DYNPROPS]
    class Win32Reg_SMSGuestVirtualMachine64
        [key]
            string InstanceKey;
            string PhysicalHostName;
            string PhysicalHostNameFullyQualified;
    [DYNPROPS]
    instance of Win32Reg_SMSGuestVirtualMachine64
        InstanceKey = "VPCKey";
        [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Virtual Machine\\Guest\\Parameters|PhysicalHostName"),
                        Dynamic, Provider("RegPropProv")]
            PhysicalHostName;
        [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Virtual Machine\\Guest\\Parameters|PhysicalHostNameFullyQualified"),
                        Dynamic, Provider("RegPropProv")]
            PhysicalHostNameFullyQualified;
    I'm not really sure what to look at next and am hoping someone else has experienced this issue before.
    I have looked at other customers running SCCM 2007 and compared the Configuration.mof and SMS_def.mof files, which look pretty much the same.
    Thanks in advanced.
    Andrew

    Are they running on virtual pc or virtual server? Notice that I said virtual pc and virtual server, not Hyper-v. In CM12 this is fix and will show the physical server when running on Hyper-v.
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • Custom Trigger issues on PO_DISTRIBUTIONS_ALL table... null id?

    Hi...I have a custom after insert trigger on the PO_DISTRIBUTIONS_ALL table
    It is having an issue with getting the req_distribution_id
    I took out all the code and left in just a test, which only inserts the id into a test table. But it is always null! Can someone tell me why? Because there is an ID when created, and I see it after I query the table when it is finished. But I figured, after insert it will be there!
    Below is the trigger...
    create or replace
    TRIGGER APPS.xxmc_po_distributions_auir
    AFTER INSERT OR UPDATE ON PO_DISTRIBUTIONS_ALL
    REFERENCING NEW AS new OLD AS old
    FOR EACH ROW
    DECLARE
    v_trigger_location VARCHAR2(2000):= 'Declaration';
    v_error_message VARCHAR2(2000);
    BEGIN
    delete from test_table;
    insert into test_table values(to_char(:new.req_distribution_id));
    END;
    This enters null every time into the table. Why is that?
    -J

    OK my new trigger has the dml statements in a procedure and it still fails. The ID is always null. Below is the trigger...why is the id coming up null???
    :new.req_distribution_id should never be a null value in my opinion, right?
    create or replace
    TRIGGER APPS.xxmc_po_distributions_auir
    AFTER INSERT OR UPDATE ON PO_DISTRIBUTIONS_ALL
    REFERENCING NEW AS new OLD AS old
    FOR EACH ROW
    DECLARE
    v_trigger_location VARCHAR2(2000):= 'Declaration';
    v_error_message VARCHAR2(2000);
    /* Error Tracking local variables */
    v_user_id NUMBER := FND_GLOBAL.User_Id;
    v_inv_record_id_s NUMBER := 0;
    v_mycall_status VARCHAR2(20);
    v_myerror_msg VARCHAR2(200);
    v_ric_code VARCHAR2(10);
    v_tracking_id VARCHAR2(200);
    v_source_system xxmc_track_summary.source_system%TYPE := 'XXMC_CRM';
    v_destination_system xxmc_track_summary.destination_system%TYPE := 'XXMC_CRM';
    v_rice_name xxmc_track_summary.rice_object_name%TYPE := 'E120';
    v_failure_record_count xxmc_err_track_det.error_count%TYPE := 0;
    v_module_name xxmc_err_track_det.procedure_name%TYPE := 'XXMC_PO_DISTRIBUTIONS_AUIR';
    v_stg_tablename xxmc_track_summary.staging_table_name%TYPE := '';
    v_processed INTEGER := 0;
    v_failed INTEGER := 0;
    v_total INTEGER := 0;
    v_commit INTEGER := 0;
    e_error_tracking_exception EXCEPTION;
    CURSOR c_get_req_line_info(p_req_distribution_id IN NUMBER) IS
    SELECT PORH.SEGMENT1
    , porh.attribute1 po_heading_att1
    , porl.line_num
    , porl.destination_context
    , porl.attribute1
    , porl.attribute3
    , porl.attribute4
    , porl.attribute5
    , porl.attribute6
    , porl.attribute7
    , porl.attribute8
    , porl.attribute9
    , porl.attribute10
    , porl.attribute11
    , porl.attribute12
    , porl.requisition_line_ID
    , to_char(porl.creation_date, 'mm/dd/yyyy hh24:mi:ss') format_create_date_line
    FROM PO_REQ_DISTRIBUTIONS_ALL PORD
    , PO_REQUISITION_LINES_ALL PORL
    , PO_REQUISITION_HEADERS_ALL PORH
    WHERE PORD.DISTRIBUTION_ID = p_REQ_DISTRIBUTION_ID
    AND PORL.REQUISITION_LINE_ID = PORD.REQUISITION_LINE_ID
    AND PORH.REQUISITION_HEADER_ID = PORL.REQUISITION_HEADER_ID
    i number := 0;
    TEMP NUMBER;
    BEGIN
    v_trigger_location := 'Beginning of trigger body';
    KMG_WRITE('INSERTING IN XXMC TRIGGER ON PO DISTRIBUTIONS AT '
    || TO_CHAR(SYSDATE, 'MM/DD/YYYY HH24:MI:SS')
    || ' REQ_DISTRIBUTION_ID = '
    || NVL(TO_CHAR(:new.req_distribution_id), 'VALUE IS NULL') );
    xxmc_tracking_pkg.create_source_tracking_record(
    p_tracking_id => v_tracking_id
    ,p_source_system => 'XXMC_CRM'
    ,p_destination_system => 'XXMC_CRM'
    ,p_rice_object_name => v_rice_name
    ,p_creation_date => sysdate
    ,p_created_by => v_user_id
    ,p_transaction_type => 'XXMC_CRM'
    ,p_status => 'INFLIGHT'
    ,p_if_direction => 'O'
    ,p_sub_status => 'XXMC_PROCESSING_IN_EBS'
    ,p_src_total_records => 0
    ,p_call_status => v_mycall_status
    ,p_error_msg => v_myerror_msg);
    IF v_mycall_status <> 'S' THEN
    RAISE e_error_tracking_exception;
    END IF;
    TEMP:='AAA';
    i := 0;
    FOR r IN c_get_req_line_info(:new.req_distribution_id) LOOP
    i := i + 1;
    UPDATE po_lines_all pol
    SET attribute_category = r.destination_context
    , Attribute1 = r.attribute1
    , Attribute3 = r.attribute3
    , Attribute4 = r.attribute4
    , Attribute5 = r.attribute5
    , Attribute6 = r.attribute6
    , Attribute7 = r.attribute7
    , Attribute8 = r.attribute8
    , Attribute9 = r.attribute9
    , Attribute10 = r.attribute10
    , Attribute11 = r.attribute11
    , Attribute12 = r.attribute12
    WHERE pol.po_line_id = :new.po_line_id;
    UPDATE po_headers_all poh
    SET attribute1 = r.po_heading_att1
    WHERE poh.po_header_id = :new.po_header_id;
    END LOOP;
    EXCEPTION
    WHEN e_error_tracking_exception THEN
    kmg_write('Could not create source tracking record in XXMC PO DISTRIBUTIONS trigger. Status = '
    || v_mycall_status || ' Msg = ' || v_myerror_msg);
    RAISE_APPLICATION_ERROR (
    num=> -20003,
    msg=> 'XXMC PO DISTRIBUTIONS trigger error in '
    || ' create_source_tracking_record '
    || v_myerror_msg);
    WHEN OTHERS THEN
    v_error_message := SQLERRM;
    kmg_write('Error in XXMC PO DISTRIBUTIONS trigger. ' || v_error_message);
    xxmc_tracking_pkg.log_then_report_errors(
    p_tracking_id => v_tracking_id
    ,p_source_system => v_source_system
    ,p_destination_system => v_destination_system
    ,p_det_record_id => v_inv_record_id_s
    ,p_message_name => 'XXMC_PO_DISTRIBUTIONS'
    ,p_message_description => 'XXMC_PO_DISTRIBUTIONS'
    ,p_message_text => ltrim(rtrim(v_error_message))
    ,p_last_update_date => sysdate
    ,p_procedure_name => v_module_name
    ,p_staging_table_name => v_stg_tablename
    ,p_status => 'FAILED'
    ,p_sub_status => 'XXMC_PROCESSING_IN_EBS'
    ,p_src_success_records => v_processed
    ,p_src_failed_records => v_failed
    ,p_dest_success_records => v_processed
    ,p_dest_failed_records => v_failed
    ,p_error_count => v_failed
    ,p_call_status => v_mycall_status
    ,p_error_msg => v_myerror_msg
    ,p_key_field_value => v_tracking_id);
    RAISE_APPLICATION_ERROR (
    num=> -20001,
    msg=> 'Error encountered in XXMC PO DISTRIBUTIONS AUIR Trigger '
    || ' Date = ' || to_char(sysdate, 'mm/dd/yyyy hh24:mi:ss')
    || ' SQLERRM = ' || v_error_message);
    END;

  • Data Acquisition - using local variables to write data to a file

    Hello,
    I am running a Data Acquisition vi (currently in LabVIEW 7.1 but soon to be updated to 8.2) that collects ~100 parameters of data from several sources contained in a while loop. The current configuration (which I did not write) uses very few subVIs and writes to ~100 local variables to store each parameter. It then reads all the local variables and builds an array of all the strings, converts then to a spreadsheet string, then uses the write characters to file function to append to a datafile. I am trying to clean things up and have came up with subVIs to collect the data from the following sources:
    8 serial port sources collecting btwn 8 and 20 parameters each
    ~15 thermocouple readings
    ~10 analog inputs
    ~20 parameters read off an ARINC 429 bus.
    I have come up with a subVI to read each of the sources and have placed the subVIs in the while loop. Each subVI outputs the data that it collects in array or cluster form. I was wondering how best to write each parameter to a CSV file at between 1 and 10 Hz. Should I write each subVI output to a LV and then read them off as was done before (the difference being that I have reduced the # of LVs to ~10 vs >100?
    I should add that precise timing is not that important, so if all the subVIs are not collecting simultaneously (which I understand that they won't be), it does not really matter.
    Thanks.

    Hi jilla,
    jilla wrote:
    What I think that you are saying is to turn the outputs of the 4 subVIs into inputs of a 5th subVI that writes to the data file. Correct?
    Yes.  It may sound like a fine-point, but I beileve it's better to create a VI specifically for formatting data - in your example, 4 arrays IN, a single string OUT.  Then write the string to file as a seperate operation.  GUI-displayed data can go through a similar transformation, the four arrays wired to a subVI which builds output-structures specifically for display.  It's a beginner's mistake to put lots of individual controls and indicators on the screen when groups of them are naturally related (in an object-oriented sense.)  Use clusters to group related controls - this will keep the diagram much cleaner.
    One more question: at what point (either # of data points or frequency of data collection) does it become necessary to use queues? Thanks.
    Well, there's not really a clearly definable "point".  I'd say if your update-rate climbs above 100Hz, or you witness poor program or system performance, then it's time.  The scenario you've described is a fairly simple acquire/display&log loop - and simple is good.   Then-again people can't see/react-to updates faster than about 10Hz - so it doesn't make sense to sacrifice performance - if performance becomes an issue.
    Re: queues:  Queues are sometimes used to buffer data that's "produced" in one place and "consumed" in another.
    Here, if/when logging data, you're logging with every DAQ.  I wouldn't recommend using a queue to transport data from a "DAQ loop" to a "Logging-loop" - those functions can be in the same loop.  Should/could a queue be used to get data from a "DAQ loop" to update the GUI at a lower frequency?  Sure, but a Notifier might be a better choice.   Further, in the (simple?) program you've described, you might use a case structure (True/False) to only update FP indicators every "X" iterations - a simple solution that doesn't require Queues or Notifiers.
    Cheers!
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)

Maybe you are looking for

  • Tabular Form Validation not working in tabular form APEX 4.0

    Hi, I am using APEX 4.0. I have a tabular form with Tabular form validation done with it. Item not null is the validation.. so if I dont type any value in the any of the fields in the tabular form and press the Submit button, the first time error is

  • CS3 fails to update

    Hi, I dont know if this is the right place for a problem with CS3, but every time I run adobe updater with my CS3 application on my Imac Mac Os 10.5.6, I get a message from the installer that "the update cannot be applied to the product".  At the bot

  • Selecting charset when importing with SQL*Plus

    I'd like to import my application to another server using sqlplus to run the export script, how can I configure the charset to use?

  • I'm having trouble with export my film in FCPX

    When I export a film to youtube of Quicktime the audio remains but the video is gone expect for text. In most instances it's replaced by nothing. However, I have gotten the camera disconnected symbol as well. Any help would be terrific.

  • Strange tables in my Oracle 10g

    Hi guys, I found these stranges tables named BIN$+UX5Rnp5RbyomAwY5MV2fw==$0 , BIN$+m9qEOmZTlCp4GyCB0F0nw==$0 ... they are really a lot when i query "select tname from tab".. However Toad does not list them. Is there a way to remove them? Or can any o