Log4j question about closed appender error

Hi all,
In my company's project, we have used the log4j 1.1.3 for logging. Since in the project, there are a few applications. We have a common properties to state the log4j properties for AppSTDERR(console), AppLogFile and AppNTEventLog. And we also have a properties file for each application. In each proeprties file, we state a different path to the AppLogFile for different application. We use PropertyConfigurator.configure() to configure the properties and use Category.getRoot(). However, sometimes some application's log will log to another application log file. So we decide to change the application properties file like this:
log4j.category.AppXXX=DEBUG, AppXXXSTDERR, AppXXXLogFile
log4j.appender.AppXXXLogFile=org.apache.log4j.DailyRollingFileAppender
log4j.appender.AppXXXLogFile.File=C:\\xxx\\xxx.log
log4j.appender.AppXXXLogFile.layout=org.apache.log4j.PatternLayout
log4j.appender.AppXXXLogFile.layout.ConversionPattern=%d{ISO8601} [%-5p] [%t] %m%n
log4j.appender.AppXXXSTDERR: org.apache.log4j.ConsoleAppender
log4j.appender.AppXXXSTDERR.layout: org.apache.log4j.PatternLayout
log4j.appender.AppXXXSTDERR.layout.ConversionPattern: %d{ISO8601} [%-5p] [%t] - %m%n
We don't use Category.getRoot() and use Category.getInstance("AppXXX") instead. But we sometimes get these errors on console:
log4j:ERROR Attempted to append to closed appender named [AppSTDERR].
log4j:WARN Not allowed to write to a closed appender.
log4j:ERROR Attempted to append to closed appender named [AppLogFile].
log4j:WARN Not allowed to write to a closed appender.
We don't know what is the problem. We guess that some common programs will log common messages to AppLogFile and AppSTDERR but we do not open the AppLogFile and AppSTDERR in each application. Is that we have to use Category.getRoot() ?
Anybody help?
Raymond

Do you not need a DatePattern value for the DailyRollingFileAppender? DatePattern being the variable that determines WHEN the logs are rolled.
If not specified what is the default value? Could not setting this value result in strange behavior?
These are shots in the dark I know but we are having similar issues. I can't find any documentation on what the default value is of DatePattern if not specified and have no idea what happens if no value is set. At any rate we are going to supply a value for DatePattern and see if it fixes our problem, I'll post the resutls.

Similar Messages

  • Question about closed captioning

    Hello all,
    I have a quick question about closed captioning. I've output broadcast shows to Mini-DV which has been transferred to BETA SP with no problems. Another station requires the BETA tapes with closed captioning on them. The company doing the captioning has requested that the tapes be originals that have never been dubbed to BETA. Does it make a difference? Or can the same DV tapes I supplied the first station still be used?
    Thanks in advance...

    Thrillcat's got it.
    You might want to ask for a captioned DV (more likely DVCam) dub as well, so you can have the CC on any dubs you do. DV and variants store CC in a mysterious place called "VAUX data", and as long as the deck respects it (many mini-DV decks don't) the CC will be passed through FireWire. You can FireWire it back into FCP and it will stay with the program.
    If you're doing the above ask if the video itself is a digital DV clone. That may not be the normal case, as standard old-fashioned Line 21 is normally inserted in an analogish way.
    Oliver, your posts still don't make it clear if DV is the best format you can output. That should be the major factor in what you give them. If you are equipped to output to BetaSP, DVCPro50, etc. while avoiding a DV compression, your program will thank you.

  • Concept Question about EDI and Error Processing

    Hello All,
    This is a concept question, I was wondering how others would approach this scenario.
    Let's take this scenario. In EDI often the transmission for a purchase order comes in with an invalid material number. Normal error processing is for the EDI team to research the issue (find the correct matnr), edit the idoc and reprocess the Idoc.  I would like to move that type of error processing out of the hands of the EDI folks and into the hands of the business users.
    How would they correct the material number? It has to be more intuitive than editing an IDoc, it has to be an easy and intuitive user interface. This process has to also work for many types of EDI transmissions both inbound and outbound.
    There would be many ways to handle this: create a report with an editable grid that would change the idoc during input and create the order with the corrections, convert the idoc to xml and use simple transformations, use an xsl report...etc.  You get the point. 
    How would you approach this?  Before I start the design I want to make sure I've given all the options due consideration...all options, webdynpro, transformations, regex, you name it...all is available, except there is no XI. 
    Personally I'm leaning towards an editable grid and processing buttons that would post the idoc in background...but I do that type of thing all the time and I may be in a rut and neglecting better design options.
    Thanks for your input,
    Greg

    <b>Paul:</b> So it runs the transaction silently in BDC format, until the error occurs, then opens up in dialogue to allow the user to change the invalid material, and then continue on with processing.
    This works when the processing function module uses BDC. But even then I think this is possibly nice from user perspective, but a nightmare from auditing perspective. I.e. correct me if I'm wrong, but I'm pretty sure there's no log indicating that the user changed the material number. Thus for anybody comparing the IDoc contents against the posted document (including change history) there's no trail that shows this change. Of course you can assume that this is what must have happened, but I personally prefer if I can track in the system what happened and have proof for that.
    <b>Reddy:</b>
    <ol>
    <li>it can be run daily basis, which should select all idocs which are in status 51 with message number (..related to wrong material number). report output should inlcude :idoc number-wrong mat no- space for new material to be entered by business against wrong 1. And there should be one button for RUN.</li>
    <li>After RUN, the material number should be changed to new 1 in segments and idocs should be reprocessed.</li>
    <li>repeat the run until business enter right mat num.</li>
    </ol>
    Design seems to limited to me (takes care only of one error message). Might work if that's the main pain point and this is the only one the user is dealing with. Otherwise I'd expect pretty soon they start complaining about having to use different tools for the possible errors. I'd keep the report more general, but allow this special form of processing only for a given error message (otherwise it's a normal re-process as triggered for example via BD87).
    Also, I assume that when you talk of changing the IDoc you mean that you actually keep an original copy around (like SAP does when you edit an IDoc). Often this is required from an auditing perspective. I'm not sure why you wouldn't want to check the material number <em>before</em> trying to process the IDoc to avoid wasting system resources (but maybe I misunderstood the step).
    Anyhow, in theory you could also achieve all of this via workflow. You can add custom columns to the work item overview in the inbox, only issue here is that it doesn't scale well (so issues with larger volumes).

  • A question about cache group error in TimesTen 7.0.5

    hello, chris:
    we got some errors about cache group :
    2008-09-21 08:56:15.99 Err : ORA: 229574: ora-229574-3085-ogTblGC00405: Failed calling OCI function: OCIStmtFetch()
    2008-09-21 08:56:15.99 Err : ORA: 229574: ora-229574-3085-raUtils00373: Oracle native error code = 1405, msg = ORA-01405: fetched column value is NULL
    2008-09-21 08:56:28.16 Err : ORA: 229576: ora-229576-2057-raStuff09837: Unexpected row count. Expecting 1. Got 0.
    and the exact scene is: our oracle server was restart for some reason, but we didnot restart the cache group agent. then iit start appear those errors informations.
    we want to know, if the oracle server restart, whether we need to restart cache agent?? thank you..

    Yes, the tracking table will track all changes to the associated base table. Only changes that meet the cache group WHERE clause predicate will be refreshed to TimesTen.
    The tracking table is managed automatically by the cache agent. As long as the cache agent is running and AUTOREFRESH is occurring the table will be space managed and old data will be purged.
    It is okay if very occasionally an AUTOREFRESH is unable to complete within its defined interval but if this happens with any regularity then this is a problem since this situation is unsustainable. To remedy this you need to try one or more of:
    1. Tune execution of AUTOREFRESH queries in Oracle. This may mean adding additional indexes to some of the cached Oracle tables. There is an article on this in MetaLink (doc note 473493.1).
    2. Increase the AUTOREFRESH interval so that a refresh can always complete within the defined interval.
    In any event it is important that you have enough space to cope with the 'steady state' size of the tracking table. If the cache agent will not be running for any significant length of time you need to manually cleanup the tracking table. In TimesTen 11g a script to do this is provided but it is not officially supported in TimesTen 7.0.
    If the rate of updates on the base table is such that you cannot arrive at a sustainable situation by tuning etc. then you will need to consider more radical options such as breaking the table into multiple separate tables :-(
    Chris

  • Question about "missing glyph" error in CS4/CS5 live preflight

    Hi all
    Basically I'm wondering what the "missing glyph" error refers to specifically and what are the implications of such an error. The help file doesn't mention it, as far as I can see.
    I have some PDFs (from WordPerfect) which are causing this error when imported into Indesign. I think the pages which cause this error have been corrected with a PDF editor (Iceni Infix) but Acrobat reports all the fonts are embedded and subsetted. A third-party preflight programs reports everything is okay too.
    Am I safe to ignore these errors?
    thanks,
    Iain

    I'm not sure "Missing Glyph" picks up missing glyphs in PDFs. What does ID point to when you click the page number hyperlink in the Preflight panel?
    If you have missing glyphs in your document text, they will look something like this:
    -- then again, perhaps you cannot see the pink highlight because of background (an image) or foreground (another character 'on top of it', or perhaps even a graphic over the text).
    How serious this is? It's ... critical! As you can see in my image, the only thing InDesign can do is notify you with the pink highlight and temporarily insert the font's own "missing" image (which may be a rectangle, a question mark, or even just a space).
    Fortunately, if you do need the character, all you have to do is change the font (for those characters only) to one that does contain the missing ones. You'll have to try all your system fonts before you find one that does and matches the rest of your text as well :-)
    There are a few special cases where InDesign gets it wrong, though. The Symbol font, for example, might not get imported correctly from Word, and in that case you have to manually change the character -- i.e., find the correct one in the Glyphs panel and insert it from there. There is also the Strange Case of the Invisible Marker: InDesign thinks there is something but if you check against the original Word file, there is nothing. This will usually insert a character code U+FFFD; you can safely delete them.

  • The Question about mess "Customizing Error in Work Schedule Rule ..."

    Dear all,
    I run the Start-Payroll  and I getting an error " Customizing Error In WSR for that Personal Number"
    I configuration all of Time Management with start date is 01.01.2000 and when I run Payroll on Payroll period is 01/2000 with start date is 01.01.2000 to 31.01.2000 for Employees hiring on 01.01.2000 then I have an error " Customizing error in work schedule rule .. .. ... ..".
    But I can run the payroll period on 02/2000 with start date is 01.02.2000 to 29.02.2000 for Employees hiring on 01.02.2000.  form 02/2000 it is okies.
    Please help me  solve about my problem
    Thank for your answers
    Regds
    Huyen Nguyen

    Customizing Error in Work Schedule Rule
    where are u getting this error
    if it  is PY  log
    Check GENPS this error will come under this Function
    it is the combination of
    ur Holiday calendar
    Employee Sub Group
    Personal Sub area Grouping
    and ur Daily work Schedule Rule
    Check the Start dats an end dates fo all the above Settings along with their Groupings in table V_T508A

  • Simple question about tabular forms: error in MRU

    hi to all,
    i write here to check if what i think about tabular forms is confirmed.
    If i build a master- detail or tabular form and the underlying table are modified, the page where the tabulare form is contained doesn't work anymore.
    if what i've written above is correct, is there a way to realign the fields of the tabular forms to the db fields and make my page work again without rebuilding all?
    Can i modify something, somewhere inside apex to make my page run again?
    The error i get (in italian / english)
    Error in mru internal routine: ORA-20001: Errore in MRU: riga= 0, ORA-20001: ORA-20001: La versione corrente dei dati nel database è cambiata da quando l'utente ha iniziato il processo di aggiornamento. checksum corrente = "ED73B05FA6016F8D5F3B4B5B69AF482D", checksum elementi = "CFD72DCC4221A340057D654B54EA7A04"., update "NEWPROJ"."CNT_VAL_SEG_DEMO" set "ID" = :b1, "FK_CNT" = :b2
    Means: The version of data in db (fields of the tables?) has changed since the user started the update process.
    By the way this sentence under my opinion can trick you as
    in italian 'La versione corrente dei dati nel database'
    can means both that data contained in tables have changed (dml error / process error / data the user see not are the real underlying data). Can mean as well the field definition is changed, however a more meaningful message in italian is: ' la definizione delle tabelle usate dall'oggetto tabular form é cambiata'.
    That translated in english is ' DDL of table/s used by tabular form has changed'.
    thanx a lot
    Message was edited by:
    Marcello Nocito

    HI Heinz,
    yes is now clear, however is a pity that a litte change in the query has a lot of
    implications: a change in the structure of DB means new feature / the data model is not alligned with current requirement. So usually (but not always) it means changing the SELECT as well.
    Such Apex is a Rad an impression is that if you build a complex forms with several linked reports / field and one day you have to change the query of the TABULAR FORM / MASTER DETAIL generated with report you get a lot of rebuilding.
    I think i will avoid the use of this 2 object in the future and use more htmldb.items in the select.
    bye bye

  • Question about Office 2004 error

    I encountered this when i open any microsoft office applications. Even i reinstall for many times, it still have the same problem:
    "An unexpected error occured while trying to load the Microsoft Framework Library"
    Any solutions?
    Many thanks.

    - Make sure every office application is closed
    - Go to: Macintosh HD/Users/____/Documents
    (ofcours ____ is your username)
    -There you will find this folder: Microsoft User Data
    - Replace this folder to the desktop
    (make sure it is not in the documents folder any more)
    - Restart your Mac
    - Open office again.
    Most off the time this solve the problem!
    Hopefully this is helpfull or solved your problem.
    Please see the "helpfull" and "solved" button's on top off this message! Apple: Why reward points?

  • Flash Professional Question: About the compiler error window

    Sorry if this is the wrong forum however I was unable to post a question to the Flash Professional forum for some wierd reason. Basically my question is, when I get an error in my console in Flash Professional is there an elegant way of zooming to my intended editor, Flash Builder? The built in code viewer is useless and a hassle to use.

    Launch the movie Flash Builder:
    Run > Test Movie will launch in Flash Pro and give compile errors in Flash Builder
    Run > Debug As.. will start a debug session (in browser or AIR) and you can debug it from Flash Builder (runtime errors, breakpoints, etc.)
    -Aaron

  • Question about displaying handler errors in the webdynpro

    Hello all, Please forgive any EM terminology mixups as I am new to this unique module!
         Here is my scenario, I am in EM WebDynpro and updating the actual dates on a purchase req. The event handler accepts the date I entered and in the background makes a synchronous rfc call to ECC to update the related project with the new date. This rfc call fails because I have the project open and it is locked. This call is synchronous so I get the error right away and I set the return code to 4 and populate an error message that I want passed back to the user in WebDynpro. For some reason the EM system is ignoring this error and returning to the user a successful 'sent' message.
    EM WebDynpro --> Purchase Req --> PO Approved Actual Date entered --> synchronous RFC to ECC to update Project --> project locked error returned by ECC --> error message populated in EM --> EM WebDynpro returns as if it was successful
    I have put in breakpoints to ensure I was populating error messages back to EM and I see the details flowing back that are correct, but no details are returned to the actual user. If I go to the Event Handler Overview in the GUI I can find my error message recorded there. Problem is our users will be working from the Web primarily and would not see this message in a normal course of work.
    Is there a config piece that I should be setting to return this error to the users in WebDynpro? This seems like a trivial/standard piece of functionality so I am confused as to why it is not showing up in the dynpro.
    Thank you for any help or ideas and points awarded of course!
    John

    Hello Berthold,
       I believe we understand what you are saying we should do and we have mimicked the activity you described. Now we are running into a short dump when the system tries to process the RETRIEVE MSG method. The code is looking for the class /AIN/CLPUB_ID_CONVERT for some reason. This class does not exist in this release. There is a /SAPTRX/ class that matches.
    So in /SAPTRX/CL_PUB_ID_CONVERT method CALL_AII_FOR_SINGLE_ID at line 45 there is this statement:      CALL METHOD (co_ain_class_name)=>(co_ain_method_id_mapping). Since this is a dynamic class/method call we think we must have something still incorrect in the IMG so we are going through troubleshooting and looking at OSS Notes. No luck so far.
    Any additional input or ideas as to possible missed steps would be greatly appreciated.
    John
    PS Release 7 (SAPK-70004INSCEMSRV pack level)
    Edited by: John D Norman on May 6, 2010 2:00 AM

  • Question about array append

    Hi,
    I have a for loop and an array outside the for loop. In each iteration some values are sent to the array.
    For example, after first loop, I send following data to array:
    2 3 4 5
    4 5 6 7
    after the second loop, other data send to array again and will overwrite the former data in array. How can I append the data to the array?
    I try to use "Insert into array.vi", but how to keep the former array's data?
    Thanks.

    You have quite a few options.
    The attached VI (LabVIEW 7.1) shows two possibilities, either building the table (2D string) or building the array (2D DBL).
    (NOTES: If this is in a fast FOR loop it is not useful to update the display inside the loop, simply place the output terminals outside the FOR loop, connected to the shift registers on the right. If you know the final array size and it is relatively big, it is more efficient to initialize the shift register with the full sized array (e.g. filled with zeroes or NaNs), then replace array sections as you go in the loop. This avoids array resizing operations.)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    temp_ni_MOD.vi ‏43 KB

  • Question about undefined method error

    method in CalculatorMethods.java
    public static Date setStartDate(int leaveYr,String feb,String apr,String may)throws java.text.ParseException
    return startDate;
    }     advancedOptions.jsp
    startDate = CalculatorMethods.setStartDate(leaveYr,startMonthFeb,startMonthApr,startMonthMay);now i get this error
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 38 in the jsp file: /al/jsp/advancedOptions.jsp
    Generated servlet error:
    The method setStartDate(int, String, String, String) is undefined for the type CalculatorMethods
    An error occurred at line: 38 in the jsp file: /al/jsp/advancedOptions.jsp
    Generated servlet error:
    The method setEndDate(int, String, String, String) is undefined for the type CalculatorMethods
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    ok, im an idiot, but i suspected that anyway,
    eclispe wasent highlighting the Message class name, which i hadnt imported, therefore the method was not being reconised!
    Sorry :)
    Edited by: Sir_Dori on Nov 4, 2009 1:55 PM

  • Question about overridden method error

    Hello everyone, I have a silly problem which im sure is elementry, but alas still I cannot work it out.
    I have a test class as below
    import android.os.Handler;
    public class Test extends Handler{
           @Override
           public void handleMessage(Message msg){
           @Override
           public String toString(){
                   return "hi";
    }Eclpise dosent reconise handleMessage as a superclass method, says i should remove the @Override notation. This method has been in all Android SDKs as far as i am aware (see it here [http://developer.android.com/intl/zh-CN/reference/android/os/Handler.html|http://developer.android.com/intl/zh-CN/reference/android/os/Handler.html], i just dont get why it wont let me do this.
    Any help would be great
    ps i have also posted this on the anddev forum, but i m sure someone will very quickly point out my stupidity ( i hope so )

    ok, im an idiot, but i suspected that anyway,
    eclispe wasent highlighting the Message class name, which i hadnt imported, therefore the method was not being reconised!
    Sorry :)
    Edited by: Sir_Dori on Nov 4, 2009 1:55 PM

  • Question about Java Errors

    I have some questions about some java errors
    1. what kind of errors are contained in Error class?
    2.does this class contain only runtime errors?
    3. if the question number 2 is positive, what about InstantiationError which is a compile error and is a subclass of Error.
    4.When our program is out of memory, which processes are done for an error to be produced. is the error actually from OS or VM?

    I have some questions about some java errors
    1. what kind of errors are contained in Error class?An Error is a subclass of Throwable that indicates serious problems that a reasonable application should not try to catch.
    2.does this class contain only runtime errors?No
    3. if the question number 2 is positive, what about
    InstantiationError which is a compile error and is a
    subclass of Error.
    4.When our program is out of memory, which processes
    are done for an error to be produced. is the error
    actually from OS or VM?Various - both, depending on where the error occurred.

  • I have a question about Lightroom 5... I used it last night, I go to get on it today and its will not open. I have an error msg "Lightroom encountered an error when reading from its preview cache and needs to quit" Lightroom will attempt to fix the proble

    I have a question about Lightroom 5... I used it last night, I go to get on it today and its will not open. I have an error msg "Lightroom encountered an error when reading from its preview cache and needs to quit" Lightroom will attempt to fix the problem when reopened

    https://forums.adobe.com/message/6219922#6219922
    See if the issue in the thread above helps you to solve your problem.

Maybe you are looking for

  • How to export a schema and import the schema to a different schema name

    I am using Oracle9i Oracle Enterprise Manager Console. I can export the HR to a dmp file. I have created another user call MYHR and I would like to import hr.dmp to the new user. 1. How can I add a schema using OEM? I can do it by creating a table in

  • Using Dense/Sparse Lookup on Tables or files from different Databases

    Hi, I have a Subject Area which is built on Essbase cube. I have a requirment where I have to use a Lookup on Flat file and/or Database Table. I followed below steps 1. Created a Logical Column in BMM Layer for a cube dimension 2. Opened the LTS Prop

  • Live meeting v806362.215 won't install with sccm 2012

    I'm trying to install Live Meeting 2007 client v806362.215 under SCCM 2012 application model using the .MSI.  "I get a message that says the installer was interrupted before Microsoft Office Live Meeting 2007 could be installed.  You need to restart

  • WLC 526 Corrupted image

    Hi; I searched the portal but could not find the solution about my problem which is WLC 526's corrupted image. Available commands : rub> help blocklist FILE boot bootp [--with-configfile] cat FILE chainloader [--force] FILE color NORMAL [HIGHLIGHT] c

  • Dreamweaver 4 & Windows Vista

    I just bought a new computer with Windows Vista and was wondering if my Dreamweaver 4 will run on Vista?