Error logging facility and approach

What kind of facilities does Java provide for error logging? I like to be able to globally turn logging on and off, and the logging output can be directly to either the console or log file.
What are some of the general logging approaches java programmers take?

Adding to my question:
Some application provide crash reporting capabilities.
How do I do that in Java, and where can I read more
about this subject? Should logging generally be
turned off in production system for to improve
performance?If it is turned on in the same way that it is turned on when it is delivered to QA.

Similar Messages

  • Error log table and output type

    Hi All,
    While creating an invoice(while saving billing document) is it poosible to capture the error in a log in table?
    And how is this error log table related to the output type?
    Thanks

    You seem to be confusing saving of the billing document with creation of the output. These are two independent updates (LUWs). A document may be saved without any output.
    If there are any errors in the billing document creation, the document just won't be created. Such errors should be captured in the log of the Blling Due list, if it's been run properly.
    To update the processing log for the output, use FM NAST_PROTOCOL_UPDATE.

  • Error in loading the WSDL file. Check the error log for more details

    Hello,
    I am trying to create a Import Adaptive Webservice Model. I am using the WSDL:
    http://www.abysal.com/soap/AbysalEmail.wsdl
    I am getting the below error when I choose WSDL source as UDDI or file (I am not using any logical destination)
    "Error in loading the WSDL file. Check the error log for more details."
    Where can i see the error log? And what is the solution to fix this?
    I am able to create the model if i save the wsdl locally on my machine and choose Local File System or File as the WSDL source. But at runtime this fails as the application tries to read the WSDL for metadata info and it looks into the application server for this file.
    I also tried creating the old webservice model. And it is able to create the model. But I feel I need to use the new model as this one is deprecated.
    Thanks,
    Sachin

    Hi
    For the logs you can search in this directory
    Goto Window->Show view->Other->PDE Runtim->Error Log
    please try this may it would help you out, try to create a model for you Web Service using Web Service Model (DEPRECATED)
    See this link:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/ep/integration%2bof%2bweb%2bservices%2b-%2bdifferent%2bscenarios

  • BULK INSERT into View w/ Instead Of Trigger - DML ERROR LOGGING Issue

    Oracle 10.2.0.4
    I cannot figure out why I cannot get bulk insert errors to aggregate and allow the insert to continue when bulk inserting into a view with an Instead of Trigger. Whether I use LOG ERRORS clause or I use SQL%BULK_EXCEPTIONS, the insert works until it hits the first exception and then exits.
    Here's what I'm doing:
    1. I'm bulk inserting into a view with an Instead of Trigger on it that performs the actual updating on the underlying table. This table is a child table with a foreign key constraint to a reference table containing the primary key. In the Instead of Trigger, it attempts to insert a record into the child table and I get the following exception: +5:37:55 ORA-02291: integrity constraint (FK_TEST_TABLE) violated - parent key not found+, which is expected, but the error should be logged in the table and the rest of the inserts should complete. Instead the bulk insert exits.
    2. If I change this to bulk insert into the underlying table directly, it works, all errors get put into the error logging table and the insert completes all non-exception records.
    Here's the "test" procedure I created to test my scenario:
    View: V_TEST_TABLE
    Underlying Table: TEST_TABLE
    PROCEDURE BulkTest
    IS
    TYPE remDataType IS TABLE of v_TEST_TABLE%ROWTYPE INDEX BY BINARY_INTEGER;
    varRemData remDataType;
    begin
    select /*+ DRIVING_SITE(r)*/ *
    BULK COLLECT INTO varRemData
    from TEST_TABLE@REMOTE_LINK
    where effectiveday < to_date('06/16/2012 04','mm/dd/yyyy hh24')
    and terminationday > to_date('06/14/2012 04','mm/dd/yyyy hh24');
    BEGIN
    FORALL idx IN varRemData.FIRST .. varRemData.LAST
    INSERT INTO v_TEST_TABLE VALUES varRemData(idx) LOG ERRORS INTO dbcompare.ERR$_TEST_TABLE ('INSERT') REJECT LIMIT UNLIMITED;
    EXCEPTION WHEN others THEN
    DBMS_OUTPUT.put_line('ErrorCode: '||SQLCODE);
    END;
    COMMIT;
    end;
    I've reviewed Oracle's documentation on both DML logging tools and neither has any restrictions (at least that I can see) that would prevent this from working correctly.
    Any help would be appreciated....
    Thanks,
    Steve

    Thanks, obviously this is my first post, I'm desperate to figure out why this won't work....
    This code I sent is only a test proc to try and troubleshoot the issue, the others with the debug statement is only to capture the insert failing and not aggregating the errors, that won't be in the real proc.....
    Thanks,
    Steve

  • Error Logging Clause & Alternatives

    Users want data from an external source validated, and any nonconformities logged. I had hoped to do this via constraints and the error logging clause, and cooked up an example to try things out:
    SQL> alter table emp add constraint emp_ck_sal check(sal between 1 and 5000) enable;
    Table altered.
    SQL> select constraint_name, constraint_type from user_constraints where table_name = 'EMP';
    CONSTRAINT_NAME                C
    EMP_CK_SAL                     C
    PK_EMP                         P
    FK_DEPTNO                      R
    SQL> exec dbms_errlog.create_error_log('emp', 'bad_emp');
    PL/SQL procedure successfully completed.
    SQL> insert into emp (empno, ename, job, mgr, hiredate, sal, deptno)
      2  select 8001, 'AZIZ', 'CLERK', 7782, sysdate, 1000, 10 from dual
      3  union
      4  select 8002, 'NG', 'CLERK', 7782, sysdate, 0, 10 from dual
      5  union
      6  select 8003, 'ASFAW', 'CLERK', 8000, sysdate, 8000, 50 from dual
      7  log errors into bad_emp
      8  reject limit unlimited;
    1 row created.
    SQL> select * from emp;
      EMPNO ENAME      JOB              MGR HIREDATE      SAL       COMM  DEPTNO
       7369 SMITH      CLERK           7902 17-DEC-80     800                 20
       7499 ALLEN      SALESMAN        7698 20-FEB-81    1600        300      30
       7521 WARD       SALESMAN        7698 22-FEB-81    1250        500      30
       7566 JONES      MANAGER         7839 02-APR-81    2975                 20
       7654 MARTIN     SALESMAN        7698 28-SEP-81    1250       1400      30
       7698 BLAKE      MANAGER         7839 01-MAY-81    2850                 30
       7782 CLARK      MANAGER         7839 09-JUN-81    2450                 10
       7788 SCOTT      ANALYST         7566 19-APR-87    3000                 20
       7839 KING       PRESIDENT            17-NOV-81    5000                 10
       7844 TURNER     SALESMAN        7698 08-SEP-81    1500          0      30
       7876 ADAMS      CLERK           7788 23-MAY-87    1100                 20
       7900 JAMES      CLERK           7698 03-DEC-81     950                 30
       7902 FORD       ANALYST         7566 03-DEC-81    3000                 20
       7934 MILLER     CLERK           7782 23-JAN-82    1300                 10
       8000 MOORE      MANAGER         7839 22-MAY-06    3600                 40
       8001 AZIZ       CLERK           7782 31-AUG-06    1000                 10
    16 rows selected.
    SQL> select ora_err_number$, ora_err_mesg$, empno empnox, ename enamex, sal salx, deptno deptnox
    from bad_emp;
    ORA_ERR_NUMBER$ ORA_ERR_MESG$                EMPNOX ENAMEX     SALX   DEPTNOX
               2290 ORA-02290: check constraint  8002   NG         0      10
                    (SCOTT.EMP_CK_SAL) violated
               2290 ORA-02290: check constraint  8003   ASFAW      8000   50
                    (SCOTT.EMP_CK_SAL) violatedGreat. "Clean! Modern! Rapid!" as Mr Mori said. However, there's a problem. Employee 8003 ASFAW actually violates 2 constraints: the reported EMP_CK_SAL check constraint for having a salary out of range, and the FK_DEPTNO foreign key constraint because dept 50 doesn't exist - which isn't reported. The users want all the violations reported at once so that only one fix operation is required. I don't think I'm going to do that via the error logging clause? Anything I've missed?
    So - any ideas on how to avoid the 3000 line package of row-by-row processing with 7 levels of nested IFs I keep finding predecessors and associates have employed to do this kind of thing?

    Hello
    I would say that unless you can convince your users that they are going to have to accept that for some rows, they are going to have to correct more than one error, in more than one run, you will end up re-inventing the wheel - infact you will be creating a caterpillar track, capable of navigating pretty much any terrain roughly as quick as an actual caterpillar.
    Realistically though, what percentage of data is going to require users to re-import the same row twice? Is the quality of the source data very poor?
    One potential solution would be to use views on the source data that identify rows violating any given constraint:
    SQL> CREATE TABLE dt_test_dept (id number primary key)
      2  /
    Table created.
    SQL>
    SQL> insert into dt_test_dept values(1)
      2  /
    1 row created.
    SQL>
    SQL> CREATE TABLE dt_test_emp (id number primary key, deptid number, sal number)
      2  /
    Table created.
    SQL>
    SQL> alter table dt_test_emp add constraint emp_dept_fk foreign key (deptid) references dt_test_dept
      2  /
    Table altered.
    SQL> alter table dt_test_emp add constraint emp_ck_sal check(sal between 1 and 5000) enable
      2  /
    Table altered.
    SQL>
    SQL> CREATE TABLE dt_test_emp_src(id number, deptid number, sal number)
      2  /
    Table created.
    SQL> insert into dt_test_emp_src VALUES(2, 100,500)
      2  /
    1 row created.
    SQL> insert into dt_test_emp_src VALUES(3, 1,5001)
      2  /
    1 row created.
    SQL> insert into dt_test_emp_src VALUES(4, 100,5001)
      2  /
    1 row created.
    SQL> insert into dt_test_emp_src VALUES(5, 1,5000)
      2  /
    1 row created.
    SQL>
    SQL> CREATE VIEW dt_test_emp_bad_fk
      2  AS
      3  SELECT
      4     'No matching department' err_text,
      5     id,
      6     deptid,
      7     sal
      8  FROM
      9     dt_test_emp_src
    10  WHERE
    11     NOT EXISTS(     SELECT
    12                             NULL
    13                     FROM
    14                             dt_test_dept
    15                     WHERE
    16                             dt_test_dept.id = dt_test_emp_src.deptid
    17             )
    18  /
    View created.
    SQL> CREATE VIEW dt_test_emp_bad_sal
      2  AS
      3  SELECT
      4     'Salary invalid' err_text,
      5     id,
      6     deptid,
      7     sal
      8  FROM
      9     dt_test_emp_src
    10  WHERE
    11     sal NOT BETWEEN 1 AND 5000
    12  /
    View created.
    SQL>
    SQL> CREATE VIEW dt_test_emp_bad
      2  AS
      3  SELECT
      4     *
      5  FROM
      6     dt_test_emp_bad_fk
      7  UNION ALL
      8  SELECT
      9     *
    10  FROM
    11     dt_test_emp_bad_sal
    12  /
    View created.
    SQL> select * from dt_test_emp_bad
      2  /
    ERR_TEXT                       ID     DEPTID        SAL
    No matching department          2        100        500
    No matching department          4        100       5001
    Salary invalid                  3          1       5001
    Salary invalid                  4        100       5001
    SQL> select * from dt_test_emp_bad order by id, err_text
      2  /
    ERR_TEXT                       ID     DEPTID        SAL
    No matching department          2        100        500
    Salary invalid                  3          1       5001
    No matching department          4        100       5001
    Salary invalid                  4        100       5001That way you can pre-emptively idetify the rows that will fail and not even attempt to insert them. It does of course mean one view or select statement per constraint but that's the price I guess.
    HTH
    David
    And it should mean much less code to maintain...
    Message was edited by:
    david_tyler

  • Create Error log table

    I am supposed to insert the records that are not uploaded to the main table into a error log table and email the users about the error records that was not inserted into the table. How am is supposed to do it ?
    I have few more questions.
    What is the best way to upload the data from a file .
    1, I got to either do the batch processing or
    2, I got to browse and uplaod the file thru the APEX application and
    and insert the records.
    I want to know about which tutorial could be the best to read to do the
    about 2 methods and how do i create and insert records into the error log
    table and send the user with the CSv or txt file that contains the error records in both the methods ?
    Will following the below method be the right way for 2nd method ?
    http://oraexplorer.blogspot.com/2007/11/apex-to-upload-text-file-and-write-into.html

    Ok,
    I am trying to insert the records to an existing table from CSV file.
    I am using the below post to do so..
    Re: File Browse, File Upload
    I get some errors executing the htmldb tools package.
    Error at line 27: PLS-00103: Encountered the symbol "/"
    create or replace PACKAGE htmldb_tools
    AS
    -- Utility functions --{{{
    PROCEDURE parse_textarea ( --{{{
    -- Parse a HTML textarea element into the specified HTML DB collection
    -- The c001 element from the collection is used
    -- The parser splits the text into tokens delimited by newlines, spaces
    -- and commas
    p_textarea IN VARCHAR2,
    p_collection_name IN VARCHAR2
    PROCEDURE parse_file( --{{{
    -- Generic procedure to parse an uploaded CSV file into the
    -- specified collection. The first line in the file is expected
    -- to contain the column headings, these are set in session state
    -- for the specified headings item.
    p_file_name IN VARCHAR2,
    p_collection_name IN VARCHAR2,
    p_headings_item IN VARCHAR2,
    p_columns_item IN VARCHAR2,
    p_ddl_item IN VARCHAR2,
    p_table_name IN VARCHAR2 DEFAULT NULL
    END htmldb_tools;
    create or replace PACKAGE BODY htmldb_tools
    AS
    TYPE varchar2_t IS TABLE OF VARCHAR2(32767) INDEX BY binary_integer;
    -- Private functions --{{{
    PROCEDURE delete_collection ( --{{{
    -- Delete the collection if it exists
    p_collection_name IN VARCHAR2
    IS
    BEGIN
    IF (htmldb_collection.collection_exists(p_collection_name))
    THEN
    htmldb_collection.delete_collection(p_collection_name);
    END IF;
    END delete_collection; --}}}
    PROCEDURE csv_to_array ( --{{{
    -- Utility to take a CSV string, parse it into a PL/SQL table
    -- Note that it takes care of some elements optionally enclosed
    -- by double-quotes.
    p_csv_string IN VARCHAR2,
    p_array OUT wwv_flow_global.vc_arr2,
    p_separator IN VARCHAR2 := ','
    IS
    l_start_separator PLS_INTEGER := 0;
    l_stop_separator PLS_INTEGER := 0;
    l_length PLS_INTEGER := 0;
    l_idx BINARY_INTEGER := 0;
    l_quote_enclosed BOOLEAN := FALSE;
    l_offset PLS_INTEGER := 1;
    BEGIN
    l_length := NVL(LENGTH(p_csv_string),0);
    IF (l_length <= 0)
    THEN
    RETURN;
    END IF;
    LOOP
    l_idx := l_idx + 1;
    l_quote_enclosed := FALSE;
    IF SUBSTR(p_csv_string, l_start_separator + 1, 1) = '"'
    THEN
    l_quote_enclosed := TRUE;
    l_offset := 2;
    l_stop_separator := INSTR(p_csv_string, '"', l_start_separator + l_offset, 1);
    ELSE
    l_offset := 1;
    l_stop_separator := INSTR(p_csv_string, p_separator, l_start_separator + l_offset, 1);
    END IF;
    IF l_stop_separator = 0
    THEN
    l_stop_separator := l_length + 1;
    END IF;
    p_array(l_idx) := (SUBSTR(p_csv_string, l_start_separator + l_offset,(l_stop_separator - l_start_separator - l_offset)));
    EXIT WHEN l_stop_separator >= l_length;
    IF l_quote_enclosed
    THEN
    l_stop_separator := l_stop_separator + 1;
    END IF;
    l_start_separator := l_stop_separator;
    END LOOP;
    END csv_to_array; --}}}
    PROCEDURE get_records(p_blob IN blob,p_records OUT varchar2_t) --{{{
    IS
    l_record_separator VARCHAR2(2) := chr(13)||chr(10);
    l_last INTEGER;
    l_current INTEGER;
    BEGIN
    -- Sigh, stupid DOS/Unix newline stuff. If HTMLDB has generated the file,
    -- it will be a Unix text file. If user has manually created the file, it
    -- will have DOS newlines.
    -- If the file has a DOS newline (cr+lf), use that
    -- If the file does not have a DOS newline, use a Unix newline (lf)
    IF (NVL(dbms_lob.instr(p_blob,utl_raw.cast_to_raw(l_record_separator),1,1),0)=0)
    THEN
    l_record_separator := chr(10);
    END IF;
    l_last := 1;
    LOOP
    l_current := dbms_lob.instr( p_blob, utl_raw.cast_to_raw(l_record_separator), l_last, 1 );
    EXIT WHEN (nvl(l_current,0) = 0);
    p_records(p_records.count+1) := utl_raw.cast_to_varchar2(dbms_lob.substr(p_blob,l_current-l_last,l_last));
    l_last := l_current+length(l_record_separator);
    END LOOP;
    END get_records; --}}}
    -- Utility functions --{{{
    PROCEDURE parse_textarea ( --{{{
    p_textarea IN VARCHAR2,
    p_collection_name IN VARCHAR2
    IS
    l_index INTEGER;
    l_string VARCHAR2(32767) := TRANSLATE(p_textarea,chr(10)||chr(13)||' ,','@@@@');
    l_element VARCHAR2(100);
    BEGIN
    l_string := l_string||'@';
    htmldb_collection.create_or_truncate_collection(p_collection_name);
    LOOP
    l_index := instr(l_string,'@');
    EXIT WHEN NVL(l_index,0)=0;
    l_element := substr(l_string,1,l_index-1);
    IF (trim(l_element) IS NOT NULL)
    THEN
    htmldb_collection.add_member(p_collection_name,l_element);
    END IF;
    l_string := substr(l_string,l_index+1);
    END LOOP;
    END parse_textarea; --}}}
    PROCEDURE parse_file( --{{{
    p_file_name IN VARCHAR2,
    p_collection_name IN VARCHAR2,
    p_headings_item IN VARCHAR2,
    p_columns_item IN VARCHAR2,
    p_ddl_item IN VARCHAR2,
    p_table_name IN VARCHAR2 DEFAULT NULL
    IS
    l_blob blob;
    l_records varchar2_t;
    l_record wwv_flow_global.vc_arr2;
    l_datatypes wwv_flow_global.vc_arr2;
    l_headings VARCHAR2(4000);
    l_columns VARCHAR2(4000);
    l_seq_id NUMBER;
    l_num_columns INTEGER;
    l_ddl VARCHAR2(4000);
    BEGIN
    IF (p_table_name is not null)
    THEN
    BEGIN
    execute immediate 'drop table '||p_table_name;
    EXCEPTION
    WHEN OTHERS THEN NULL;
    END;
    l_ddl := 'create table '||p_table_name||' '||v(p_ddl_item);
    htmldb_util.set_session_state('P149_DEBUG',l_ddl);
    execute immediate l_ddl;
    l_ddl := 'insert into '||p_table_name||' '||
    'select '||v(p_columns_item)||' '||
    'from htmldb_collections '||
    'where seq_id > 1 and collection_name='''||p_collection_name||'''';
    htmldb_util.set_session_state('P149_DEBUG',v('P149_DEBUG')||'/'||l_ddl);
    execute immediate l_ddl;
    RETURN;
    END IF;
    BEGIN
    select blob_content into l_blob from wwv_flow_files
    where name=p_file_name;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    raise_application_error(-20000,'File not found, id='||p_file_name);
    END;
    get_records(l_blob,l_records);
    IF (l_records.count < 3)
    THEN
    raise_application_error(-20000,'File must have at least 3 ROWS, id='||p_file_name);
    END IF;
    -- Initialize collection
    htmldb_collection.create_or_truncate_collection(p_collection_name);
    -- Get column headings and datatypes
    csv_to_array(l_records(1),l_record);
    csv_to_array(l_records(2),l_datatypes);
    l_num_columns := l_record.count;
    if (l_num_columns > 50) then
    raise_application_error(-20000,'Max. of 50 columns allowed, id='||p_file_name);
    end if;
    -- Get column headings and names
    FOR i IN 1..l_record.count
    LOOP
    l_headings := l_headings||':'||l_record(i);
    l_columns := l_columns||',c'||lpad(i,3,'0');
    END LOOP;
    l_headings := ltrim(l_headings,':');
    l_columns := ltrim(l_columns,',');
    htmldb_util.set_session_state(p_headings_item,l_headings);
    htmldb_util.set_session_state(p_columns_item,l_columns);
    -- Get datatypes
    FOR i IN 1..l_record.count
    LOOP
    l_ddl := l_ddl||','||l_record(i)||' '||l_datatypes(i);
    END LOOP;
    l_ddl := '('||ltrim(l_ddl,',')||')';
    htmldb_util.set_session_state(p_ddl_item,l_ddl);
    -- Save data into specified collection
    FOR i IN 2..l_records.count
    LOOP
    csv_to_array(l_records(i),l_record);
    l_seq_id := htmldb_collection.add_member(p_collection_name,'dummy');
    FOR i IN 1..l_record.count
    LOOP
    htmldb_collection.update_member_attribute(
    p_collection_name=> p_collection_name,
    p_seq => l_seq_id,
    p_attr_number => i,
    p_attr_value => l_record(i)
    END LOOP;
    END LOOP;
    DELETE FROM wwv_flow_files WHERE name=p_file_name;
    END;
    BEGIN
    NULL;
    END;
    /

  • Error logging approaches

    I would like to hear how people have implemented various error
    logging approaches in Forte applications.
    Forte produces log files automatically for service partitions in
    $FORTE_ROOT/log and pops up dialog boxes with uncaught exceptions
    for client partitions.
    Some of the current problems with the existing Forte error logging
    include the famously painfull task of determining which log file
    in the $FORTE_ROOT/log pertains to your partition and how to
    correctly log client errors.
    We have taken the approach of opening our own error file for each
    Forte project containing a start class method. All exceptions are
    then caught and written to the application error file. This takes
    the guess work out of finding the correct error file but raises
    some interesting design questions:
    1) Should service objects maintain their own error files or should
    all problems just be handled as exceptions to be logged by the
    calling method. ( In some cases the calling method may not care
    that a service object is having a problem. In this case the service
    object may try an alternative approach. If the request is finally
    filled an error with the service object's functioning has occurred
    but not with the calling method's functionality ).
    2) Should all error messages be handled by a central message
    logger operating as a service object. In this case if various clients
    are running on different platforms all error message from an
    application are centralized. This saves the effort of checking error
    files for the same application on multiple platforms. It also means
    that a separate error file does not need to be created for each
    client that is instantiated. The message logger service in this
    case could be accessed by reference among several applications.
    Paul Buchkowski
    Merrill Lynch Canada
    [email protected]

    Never mind...my password to access file server contained a character that was not acceptable. Once changed, access restored.

  • Every time I log in and try to post I get error message

    Error
    An error has occurred. We apologize for the inconvenience.
    Useful links:
    Forum Home -- browse the forums here.
    Search Forums -- visit the search page to query all forum content.
    Then I have to hit "Forum Home" re-log in, and then go and find the thread that I wanted to post to. Please fix Apple.

    When that error appears, you will have an URL in the address bar such as:
    http://discussions.apple.com/login.jspa?successURL=/index.jspa
    Deleting the text between the third and fourth / characters as well as one of them should take you to the page you originally wanted to go to, without needing to log in again.
    (22282)

  • I cannot log onto sites that require my log in and password. I get no error message, fire fox just goes back to the same empty log in screen. this problem is not limited to one site. I reloaded firefox with same results.

    When i type in my log in and password and enter, the site either returns to the blank screens or does nothing. This is not limited to one or two sites. all of my financial institutions, electric company, insurance companies, even trying to register here so that i could ask this questions. In this situation, when i hit the register button, nothing happend, its as iff the button is inactive. i had to go to IE to register and post this question. I just tried to enter my new log in and pw on the screen in fire fox and nothing happens. Some sites behave differently when i hit the submit or log in button. the information seems to be transmitted but the screen comes right back to the original log in screen with blank fields. there are no error instructions that something does not match or is missing. then i go to IE and it works.
    This started a few weeks ago. I cant identify anything that was added around that time but i tried a system restore and that did nothing. i deleted fire fox and downloaded the latest version 3.6.13 and it is still happening

    This issue can be caused by corrupted cookies.
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"
    *http://kb.mozillazine.org/Cookies

  • I restored my Macbook Pro and now I can't log in as Admin - it says there is an error with FileVault and I don't have access - plz help!  thank you.

    I had to restore my Macbook Pro from Time Capsule yesterday and now when I go to log in as my usual Admin, it says there is a FileVault error and my access is denied.  I created another temporary Admin acct, but everything I had on my desktop, etc is "gone"  I can look up the "drive' or wahtever it's called, but I can't access any of it.  All I want to do is log back in as my usual self (the regular Admin) - plz help!  Thanks.   p.s. I"m (obviously) not that computer savvy!

    Triple-click the line below to select it:
    /System/Library/CoreServices/Directory Utility.app
    Rght-click or control-click the highlighted text and select
    Services ▹ Open
    from the contextual menu.* The application Directory Utility will open.
    In the Directory Utility window, click the lock icon and authenticate. Select the Directory Editor tool in the toolbar. Select Users from the Viewing menu in the toolbar, if not already selected. Select the affected user account in the list. On the right is a list of properties and values. Select the property "HomeDirectory" and delete it by clicking the minus-sign icon directly below the property list. There are two such icons in the window. You want the one on the right, not the one on the left.
    CAUTION: Do not click the minus-sign icon on the left, below the user list.
    Then click the Save button in the lower right corner of the window. Quit Directory Utility.
    CAUTION: There is no "undo" in Directory Utility. If you make a mistake and delete something in the Directory Editor that should not have been deleted, restore your whole system from a backup and start over. I have no other help to offer in that case.
    Try again to log in as the affected user. If you can log in, you should find a file in the home folder with the name of the user and the filename extension "sparseimage" or "sparsebundle". Double-click that file. A disk image should open. Copy your files from that disk image to restore them.
    I strongly suggest that you deactivate legacy FileVault in the Security & Privacy preference pane, then log out and log back in. Consider activating FileVault 2 if you want that kind of security.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard (command-C). Open a TextEdit window and paste into it (command-V). Select the line you just pasted and continue as above.

  • HT202159 I have been on to apps store logged in and gone on my purchurse to try and re down load Mountin Lion however it just states an error as accord I can't get it to re down load to launch pad in lion

    I have been on to apps store logged in and gone on my purchurse to try and re down load Mountin Lion however it just states an error as accord I can't get it to re down load to launch pad in lion

    1. You did not get an error message telling you that your iPhoto library was getting full. You got a message telling you that your HD was getting full, right?
    OS X needs about 10 gigs of hard drive space for normal OS operations - things like virtual memory, temporary files and so on.
    Without this space your Mac will slow down as the OS hunts for space on the disk, files will be fragmented, also slowing things down, apps will crash and the risk of data corruption - that is damage to your files, photos, music - increases exponentially.
    Your first priority is to make more space on that HD. Nothing else can be done until you do.
    Purchase an external HD and move your Photos and Music to it. Both iPhoto and iTunes can run perfectly well with the Library on an external disk.
    Your Library has been damaged from being run on an overfull disk.
    How much free space on it now?

  • MOD_OC4J_0080 and other errors HTTP Server error log

    Our portal pages with portlets on it started giving error 503 messages (just some portlets) to clients. I have checked error log and found out that it is full of this errors
    MOD_OC4J_0080: After calling Apache's ap_bwrite(), got an return value: -1 and the client could have aborted in the middle of receiving the chunk data.
    (10053)Unknown error: client stopped connection before rvputs completed
    Now and then it show also this one
    MOD_OC4J_0007: Oc4j process opmnid=141164843 parsed from cookie of session request: /portal/pls/portal/!PORTAL.wwpro_app_provider.execute_portlet/88809671/17 does not match to oc4j instance with destination name: OC4J_Portal. Ignore this cookie.
    I have found some info for the firts one (MOD_OC4J_0080) on metalink, but I'm unsure what the second one is about (10053)?
    Help appriciated
    G.

    sounds like apache or oc4j is getting confused about matching to their respective partners.
    I've seen it very very rarely and then AFAIR it was down to vhost misconfiguration

  • How to write error log while creating invoice and avoid implicite commit

    Hi,
    I've have written code in exit RV60AFZZ in which I check for some possible errors while invoicing via VF01/VF04. If conditions are met then we create error message and display it to the user. As result we had a lot of missing SD invoices in FI when we did batch/mass invoicing. I've opened OSS note and SAP support team wrote that using statement MESSAGE is forbidden in UE. It can lead to implicite commits.
    Do you have some example how to write error log for invoincing in VF01/VF04 transactions?
    Thanks

    @ sri nath. Please read post before answering. I wouldn't be posting trivial questions. As I wrote before it doesn't work.  Also SAP support would not answer to the question in my OSS.
    In VOFM, SAP is using routine  VBFS_HINZUFUEGEN_ALLG to write to error log.
    Mine is something like this in ue:
          PERFORM ZVBFS_HINZUFUEGEN_ALLG
                     USING VBAP-VBELN VBAP-POSNR  'ZSD' 'E '600'
                           SPACE SPACE SPACE SPACE.
    (we have custom message class)
    As result  XVBFS and VBSK are filled with error, but posting is also done.  Error log is filled but invoice is created and posted in FI.
    That is not OK.
    thanks

  • Creation of error log  on input data  and stat report

    I am doing call transaction on <b>C202</b> transaction.my client asked me before uploading the file he needs some validations on input file and he is asking me to create  a log for all the validations.i have to place error lof for all the input data.
    •An error log will record all errors occurring during upload. For each error the list should
    contain the data (line) going in error and an error text in a subsequent column (subsequent to data). The change number used to perform  the upload will be stated in the header of the error list.A txt-file containing the error log will get the same name as the input file, but with an ending –err.xls.
    Therefore no Batch-Input-Session is needed.
    • After execution of the batch input program, the following analysis regarding execution will be shown:
    o Number of records in input file (including title, first line)
    o Number of records successfully updated
    o Number of records in error
    Example:
    Number of records in input file (incl. first line) 4
    Number of records successfully updated:   3
    Number of records in error:      0
    How to do this according to client  requirements.can u help me to get a statastical way to represent errors.  Send me some smpale code for number of errors and no records gets success and no of failed.
    Thanks
    chandrasekhar

    Hai Chandrasekhar
    Go through the following Code
    report Z_CALLTRANS_VENDOR_01
    no standard page heading line-size 255.
    Generated data section with specific formatting - DO NOT CHANGE ***
    data: begin of it_lfa1 occurs 0,
    KTOKK like lfa1-ktokk,
    NAME1 like lfa1-name1,
    SORTL like lfa1-sortl,
    LAND1 like lfa1-land1,
    end of it_lfa1.
    End generated data section ***
    data : it_bdc like bdcdata occurs 0 with header line.
    *DATA: IT_MESSAGES TYPE TABLE OF BDCMSGCOLL WITH HEADER LINE.
    *DATA: LV_MESSAGE(255).
    data : it_messages like bdcmsgcoll occurs 0 with header line.
    data : V_message(255).
    data : V_flag.
    data : V_datum1 type sy-datum.
    data : begin of it_mesg occurs 0,
    message(100),
    end of it_mesg.
    *V_datum1 = sy-datum-1.
    parameters : P_Sess like APQI-GROUPID.
    start-of-selection.
    perform Get_data.
    *perform open_group.
    loop at it_lfa1.
    perform bdc_dynpro using 'SAPMF02K' '0100'.
    perform bdc_field using 'BDC_CURSOR'
    'RF02K-KTOKK'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    perform bdc_field using 'RF02K-KTOKK'
    it_lfa1-KTOKK.
    perform bdc_dynpro using 'SAPMF02K' '0110'.
    perform bdc_field using 'BDC_CURSOR'
    'LFA1-LAND1'.
    perform bdc_field using 'BDC_OKCODE'
    '=UPDA'.
    perform bdc_field using 'LFA1-NAME1'
    it_lfa1-name1.
    perform bdc_field using 'LFA1-SORTL'
    it_lfa1-sortl.
    perform bdc_field using 'LFA1-LAND1'
    it_lfa1-land1.
    call transaction 'XK01' using it_bdc
    mode 'N'
    update 'S'
    messages into it_messages.
    if sy-subrc <> 0.
    if V_flag <> 'X'.
    perform open_group.
    V_flag = 'X'.
    endif.
    perform bdc_transaction. "using 'XK01'.
    endif.
    perform format_messages.
    refresh : it_bdc,it_messages.
    endloop.
    if V_flag = 'X'.
    perform close_group.
    endif.
    *& Form Get_data
    text
    --> p1 text
    <-- p2 text
    FORM Get_data .
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    FILENAME = 'C:\srinu_vendor.txt'
    FILETYPE = 'ASC'
    TABLES
    DATA_TAB = it_lfa1
    EXCEPTIONS
    CONVERSION_ERROR = 1
    INVALID_TABLE_WIDTH = 2
    INVALID_TYPE = 3
    NO_BATCH = 4
    UNKNOWN_ERROR = 5
    GUI_REFUSE_FILETRANSFER = 6
    OTHERS = 7
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM. " Get_data
    *& Form bdc_dynpro
    text
    -->P_0061 text
    -->P_0062 text
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
    CLEAR it_BDC.
    it_BDC-PROGRAM = PROGRAM.
    it_BDC-DYNPRO = DYNPRO.
    it_BDC-DYNBEGIN = 'X'.
    APPEND it_BDC.
    ENDFORM.
    Insert field *
    FORM BDC_FIELD USING FNAM FVAL.
    CLEAR it_BDC.
    it_BDC-FNAM = FNAM.
    it_BDC-FVAL = FVAL.
    APPEND it_BDC.
    ENDFORM.
    *& Form format_messages
    text
    --> p1 text
    <-- p2 text
    FORM format_messages .
    loop at it_messages.
    CALL FUNCTION 'FORMAT_MESSAGE'
    EXPORTING
    ID = it_messages-MSGID
    LANG = 'EN'
    NO = it_messages-MSGNR
    V1 = it_messages-MSGV1
    V2 = it_messages-MSGV2
    V3 = it_messages-MSGV3
    V4 = it_messages-MSGV4
    IMPORTING
    MSG = V_message
    EXCEPTIONS
    NOT_FOUND = 1
    OTHERS = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    write : / V_message.
    clear : V_message.
    endloop.
    ENDFORM. " format_messages
    *& Form open_group
    text
    --> p1 text
    <-- p2 text
    FORM open_group .
    CALL FUNCTION 'BDC_OPEN_GROUP'
    EXPORTING
    CLIENT = SY-MANDT
    GROUP = P_Sess
    HOLDDATE = V_datum1
    KEEP = 'X'
    USER = SY-UNAME
    IF SY-SUBRC = 0.
    write : / 'Session Creating wit Name : ',P_Sess.
    ENDIF.
    ENDFORM. " open_group
    *& Form close_group
    text
    --> p1 text
    <-- p2 text
    FORM close_group .
    CALL FUNCTION 'BDC_CLOSE_GROUP'.
    ENDFORM. " close_group
    *& Form bdc_transaction
    text
    -->P_0132 text
    FORM bdc_transaction. "USING VALUE(P_0132).
    CALL FUNCTION 'BDC_INSERT'
    EXPORTING
    TCODE = 'XK01'
    POST_LOCAL = NOVBLOCAL
    PRINTING = NOPRINT
    SIMUBATCH = ' '
    CTUPARAMS = ' '
    TABLES
    DYNPROTAB = it_bdc
    EXCEPTIONS
    INTERNAL_ERROR = 1
    NOT_OPEN = 2
    QUEUE_ERROR = 3
    TCODE_INVALID = 4
    PRINTING_INVALID = 5
    POSTING_INVALID = 6
    OTHERS = 7
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM. " bdc_transaction
    Regards
    Sreeni
    Message was edited by: Sreenivasulu Ponnadi

  • Trying to access my movies on someone's else's Apple TV, logged in and it brings up everything I have bought but when I try and play it's says error loading

    Trying access my Apple TV movies on someone's else's Apple TV, logged in and get everything I have purchased but when trying to play it says error loading

    Power cycle the ATV and router.
    If the issue continues, on the ATV select Settings > General > Reset

Maybe you are looking for