Errors in a log file /var/log/system.log

I'm getting these errors in a log file /var/log/system.log
Shutdown:
Sep 21 12:41:38 Mac-mini.local WindowServer[86]: CGXGetConnectionProperty: Invalid connection 42243
Sep 21 12:41:38 Mac-mini.local coreservicesd[58]: SendFlattenedData, got error #268435459 (ipc/send) invalid destination port from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=145
Sep 21 12:41:38 Mac-mini.local WindowServer[86]: CGXGetConnectionProperty: Invalid connection 42243
Sep 21 12:41:38 Mac-mini.local coreservicesd[58]: SendFlattenedData, got error #268435460 (ipc/send) timed out from ::mach_msg(), sending notification kLSNotifyApplicationDeath to Sep 21 12:41:38 Mac-mini.local loginwindow[41]: DEAD_PROCESS: 41 console
Sep 21 12:41:38 Mac-mini.local WindowServer[86]: CGXGetConnectionProperty: Invalid connection 42243
Sep 21 12:41:38 Mac-mini.local coreservicesd[58]: SendFlattenedData, got error #268435459 (ipc/send) invalid destination port from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=142
Sep 21 12:41:38 Mac-mini.local shutdown[300]: halt by andrei:
Boot & Working:
Sep 21 12:42:11 localhost com.apple.launchd[1] (com.apple.automountd): Unknown key for boolean: NSSupportsSuddenTermination
Sep 21 12:42:22 Mac-mini.local apsd[56]: CGSLookupServerRootPort: Failed to look up the port for "com.apple.windowserver.active" (1102)
Sep 21 12:42:26 Mac-mini.local authorizationhost[121]: in od_principal_for_user(): failed: 7
Sep 21 12:42:26 Mac-mini.local authorizationhost[121]: in pam_sm_authenticate(): Failed to determine Kerberos principal name.
Sep 21 12:42:27 Mac-mini.local loginwindow[41]: ERROR | ScreensharingLoginNotification | Failed sending message to screen sharing GetScreensharingPort, err: 1102
Sep 21 12:42:31 Mac-mini.local XProtectUpdater[24]: Ignoring new signature plist: Not an increase in version
Sep 21 12:42:32 Mac-mini com.apple.launchd[1] (com.apple.xprotectupdater[24]): Exited with code: 252
Sep 21 12:43:04 Mac-mini.local com.apple.security.pboxd[290]: Bug: 12C54: liblaunch.dylib + 23849 [2F71CAF8-6524-329E-AC56-C506658B4C0C]: 0x25
Sep 21 12:53:49 Mac-mini.local CVMServer[98]: Check-in to the service com.apple.cvmsCompAgent_x86_64 failed. This is likely because you have either unloaded the job or the MachService has the ResetAtClose attribute specified in the launchd.plist. If present, this attribute should be removed.
Sep 21 12:59:48 Mac-mini.local com.apple.security.pboxd[290]: kCGErrorFailure: CGSSetHideOnDeact: error getting window tags
Sep 21 13:00:07 Mac-mini.local com.apple.security.pboxd[290]: _NXTermWindow: error releasing window (1000)
Sep 21 13:00:07 Mac-mini.local com.apple.security.pboxd[290]: __block_global_2: connection failed unexpectedly; terminating process; delegate was (
system.log - https://docs.google.com/open?id=0Bz5zKwys0GTcSzI5UFJRUzFxZjQ

File a bug report with Apple.

Similar Messages

  • Could not open error log file ''. Operating system error = 5(failed to retrieve text for this error. Reason: 15105).

    Hello
    When I try to start the SQl server service i get the following error:
    Event id 17058
    Could not open error log file ''. Operating system error = 5(failed to retrieve text for this error. Reason: 15105).
    As a test I have made sure the errorlog file ,and the entire drive it is, has everyone full control permissions, but to no avail. Does anyone have any ideas to resolve this issue?
    Thank you

    Hi,
    Try running:
    SELECT SERVERPROPERTY('ErrorLogFileName')
    Then verify that the account being used to run the SQL Server service account has access to the path output above.  If possible, you could try logging onto the server with the same account used to run SQL Server then navigate to the errorlog folder.
    Thanks,
    Andrew Bainbridge
    SQL Server DBA
    Please click "Propose As Answer" if a post solves your problem, or "Vote As Helpful" if a post has been useful to you

  • MDDataSetBW.GetCellData. See RFC trace file or SAP system log for more...

    Ingo,
    I am getting below error message in BO Test environment when I refresh WebI document.
    MDDataSetBW.GetCellData. See RFC trace file or SAP system log for more details
    It was working when we migrated the objects initially. Subsequently when we try to refresh WebI document we are getting the above error message. It still works in BO Dev environment and the no of records are the same in Dev and Test.
    I am able run the underlying BEx query in SAP BW Test environment and it does return data.
    I checked ST22 and SM21 log, but no details there.
    Is it related to Authorization on the Universe or Bex Query?
    We are in the middle of UAT and not able to move forward. I would greatly appreciate your input.
    Thanks
    Ram

    Ingo,
    I ran the zip file and added the required entries to registry.
    And then I tried to reproduce the error, but the files are not generated instead I noticeed below error message on the server:
    The description for Event ID ( 7939 ) in Source ( Crystal OLAP Client ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Registry Access Error: , [HKEY_LOCAL_MACHINE]Software\Business Objects\Suite 12.0\MDA\Log\Modules: The system cannot find the file specified..
    Does tha t mean we do not have permissons to read the registry?
    I would greatly appreciate your input.
    Thanks in advance.
    Ram

  • How to create the log file in remote system using log4j.

    Hi,
    How to create the log file in remote system using log4j. please give me a sample code or related links.The below example i used for create the log file in remote system but it return the below exception.Is there any authandication parameter for accessing the remote path? Please help.
    public class Logging
    Logger log=null;
    FileAppender fileapp=null;
    public Logging(String classname)
    try
    log = Logger.getLogger(classname);
    String path=" [\\192.168.0.14\\c$\\LOG\\d9\\May_08_2008_log.txt|file://\\192.168.0.14\\c$\\LOG\\d9\\May_08_2008_log.txt]";
    fileapp = new FileAppender(new PatternLayout("%r [%t] %-5p %c %x - %m%n"),path, true);
    log.addAppender(fileapp);
    log.info("Logger initilized");
    }catch(Exception ex)
    ex.printStackTrace();
    java.io.FileNotFoundException: \\192.168.0.14\c$\LOG\d9\May_08_2008_log.txt (The network path was not found)
    at java.io.FileOutputStream.openAppend(Native Method)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at org.apache.log4j.FileAppender.setFile(FileAppender.java:290)
    at org.apache.log4j.FileAppender.<init>(FileAppender.java:109)
    at annwyn.logger.BioCapLogger.<init>(Logging.java:23)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Please help.
    Thanks in advance.
    Saravanan.K

    Sorry path is missing for the above request.
    path="\\192.168.0.14\c$\LOG\d9\May_08_2008_log.txt ";
    please help.
    Saravanan.K

  • Can't create log file with java.util.logging

    Hi,
    I have created a class to create a log file with java.util.logging
    This class works correctly as standalone (without jdev/weblogic)
    import java.io.IOException;
    import java.text.DateFormat;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    import java.util.logging.*;
    public class LogDemo
         private static final Logger logger = Logger.getLogger( "Logging" );
         public static void main( String[] args ) throws IOException
             Date date = new Date();
             DateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
             String dateStr = dateFormat.format(date);
             String logFileName = dateStr + "SEC" + ".log";
             Handler fh;          
             try
               fh = new FileHandler(logFileName);
               //fh.setFormatter(new XMLFormatter());
               fh.setFormatter(new SimpleFormatter());
               logger.addHandler(fh);
               logger.setLevel(Level.ALL);
               logger.log(Level.INFO, "Initialization log");
               // force a bug
               ((Object)null).toString();
             catch (IOException e)
                  logger.log( Level.WARNING, e.getMessage(), e );
             catch (Exception e)
                  logger.log( Level.WARNING, "Exception", e);
    }But when I use this class...
    import java.io.File;
    import java.io.IOException;
    import java.text.DateFormat;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    import java.util.logging.FileHandler;
    import java.util.logging.Handler;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import java.util.logging.XMLFormatter;
    public class TraceUtils
      public static Logger logger = Logger.getLogger("log");
      public static void initLogger(String ApplicationName) {
        Date date = new Date();
        DateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
        String dateStr = dateFormat.format(date);
        String logFileName = dateStr + ApplicationName + ".log";
        Handler fh;
        try
          fh = new FileHandler(logFileName);
          fh.setFormatter(new XMLFormatter());
          logger.addHandler(fh);
          logger.setLevel(Level.ALL);
          logger.log(Level.INFO, "Initialization log");
        catch (IOException e)
          System.out.println(e.getMessage());
    }and I call it in a backingBean, I have the message in console but the log file is not created.
    TraceUtils.initLogger("SEC");why?
    Thanks for your help.

    I have uncommented this line in logging.properties and it works.
    # To also add the FileHandler, use the following line instead.
    handlers= java.util.logging.FileHandler, java.util.logging.ConsoleHandlerBut I have another problem:
    jdev ignore the parameters of the FileHandler method .
    And it creates a general log file with anothers log files created each time I call the method logp.
    So I play with these parameters
    fh = new FileHandler(logFileName,true);
    fh = new FileHandler(logFileName,0,1,true);
    fh = new FileHandler(logFileName,10000000,1,true);without succes.
    I want only one log file, how to do that?

  • [SOLVED]Pacman error: could not open file /var/.../portaudio

    Anyone got any insight?
    Any pacman or AUR-helper operation I try to do results in many repititions of this error.
    [marcus@ARCH ~]$ packer -Syu
    Password:
    :: Synchronizing package databases...
    core is up to date
    extra 450.4K 401.0K/s 00:00:01 [##########################################] 100%
    error: failed retrieving file 'community.db.tar.gz' from mirrors.easynews.com#####-------------] 68%
    community 372.7K 997.9K/s 00:00:00 [##########################################] 100%
    :: Starting full system upgrade...
    error: could not open file /var/lib/pacman/sync/community/portaudio-19_20071207-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/sync/community/portaudio-19_20071207-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/sync/community/portaudio-19_20071207-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/sync/community/portaudio-19_20071207-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/sync/community/portaudio-19_20071207-2/desc: No such file or directory
    [snip many repeats of same error]
    [marcus@ARCH ~]$ packer portaudio
    0 error: could not open file /desc: could not open file /var/lib/pacman/sync/community/portaudio-19_20071207-2/desc: No such file or directory
    1 community/desc: 19_20071207-2error: could not open file /var/lib/pacman/sync/community/portaudio-19_20071207-2/desc: No such file or directory
    error: could not open file /var/lib/pacman/sync/community/portaudio-19_20071207-2/desc: No such file or directory
    2 aur/haskell-portaudio 0.0.1-2
    Haskell bindings for the PortAudio library.
    3 aur/mingw32-portaudio 19_20071207-1
    A free, cross-platform, open source, audio I/O library (mingw32)
    4 aur/portaudio-svn 1384-3
    PortAudio is a free, cross platform, open-source, audio I/O library.
    5 aur/pyaudio 0.2.3-3
    Python bindings for PortAudio, the cross-platform audio I/O library
    6 aur/portaudio_v18 pa_snapshot_v18-3
    A free, cross-platform, open source, audio I/O library
    Type numbers to install. Separate each number with a space.
    Numbers: 1
    error: could not open file /var/lib/pacman/sync/community/portaudio-19_20071207-2/depends: No such file or directory
    desc: package not found, searching for group...
    error: could not open file /var/lib/pacman/sync/community/portaudio-19_20071207-2/desc: No such file or directory
    error: 'desc:': not found in sync db
    Last edited by Skripka (2010-05-11 18:21:11)

    hokasch wrote:looks like that mirror has some problem, switch to another one for the time being
    That mirror does have a problem...but switching to a different mirror returns the same mystery local error.  PS-I haven't had portaudio installed on my system in at least 6 months, and pacman has started returning errors about it this morning
    Last edited by Skripka (2010-05-11 18:15:33)

  • [SOLVED] pacman error: could not open file /var/lib ...

    the actual error is
    error: could not open file /var/lib/pacman/sync/community/fonteditfs-1.2-2/desc: No such file or directory
    removing that folder fixed it. i dont know if it was a coding mistake or just my box did something stupid today :S
    any thoughts?
    Last edited by eldragon (2010-04-20 17:25:18)

    geniuz wrote:
    I don't know if this error occured during an update of right after you've invoked pacman, but in any way synchronizing pacman I think should fix the issue. This is something you might have tried before deleting the file, but then again I don't know when the error occured. If it occured immediately deleting the file would probably be the easiest solution. I would've done the same.
    If you've synchronized pacman after you've removed the file all should be well now, maybe something indeed went wrong during an update (maybe your mirror went down or something, you never know).
    yes, the error apperared right after syncing the databases. the update went as expected...

  • [Solved] error could not open file /var/lib/pacman/sync/core.db

    I am trying to install Arch but when I type "pacstrap /mnt base base-devel"  I keep on getting this error "error could not open file /var/lib/pacman/sync/core.db unrecognized archive format".
    I have tried:
    # rm -R /var/lib/pacman/sync/
    # pacman -Syuf
    I have also tried pacman -Syy with no luck.
    What more is there to do besides installing ubuntu?
    Last edited by johane (2012-08-11 08:22:07)

    johane wrote:
    I am trying to install Arch but when I type "pacstrap /mnt base base-devel"  I keep on getting this error "error could not open file /var/lib/pacman/sync/core.db unrecognized archive format".
    I have tried:
    # rm -R /var/lib/pacman/sync/
    Pacstrap was telling you it couldn't open a file, so you just deleted the entire directory tree? Did it appear to be downloading the database files correctly before this? Did you try running pacstrap again after you deleted everything?
    And then you tried to run pacman with the -f (force) option? What happened? "no luck" doesn't tell us anything.
    What more is there to do besides installing ubuntu?
    There are many things you can do. You can give us more information about what you did and what happened. Did you follow all the steps in the Beginners Guide up to the pacstrap step? Did you get any errors or warnings before that step? Are you sure you had a working network connection? Did you interrupt the pacstrap process at any time? Did you try running it again after you deleted /var/lib/pacman/sync?
    Did you check the sha1sum of the iso you downloaded before you put it on a usb stick?
    https://wiki.archlinux.org/index.php/Be … oaded_file
    How did you put it on the usb stick?
    When you got the error, did you do
    ls /var/lib/pacman/sync
    to see what (if anything) was there?
    Last edited by 2ManyDogs (2012-08-06 23:38:27)

  • [SOLVED] error: could not open file /var/lib/pacman/local/qt-4.5.2-4/

    Hi all,
    So there I was, running pacman -Syu on all my Arch machines, and I get to my desktop PC at work, and half way through X decides to crash and kick me back to the CLI. Fair enough
    Now when I try and use pacman, I get a whole bunch of errors about a missing 'depends' directory:
    root ~ # pacman -S amarok
    resolving dependencies...
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    looking for inter-conflicts...
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    error: could not open file /var/lib/pacman/local/qt-4.5.2-4/depends: No such file or directory
    It still asks me to continue with installing the new package, but I'd rather get this fixed first in case it buggers it up worse
    Last edited by fukawi2 (2009-07-30 05:44:25)

    Once again my saviour Allan -- I had to -Sf it due to file already existing, but seems to be good now

  • How to delete TMS log file and and request log no.

    Dear experts,
    How to delete TMS log file and and request log no...My TMS log is not deleted since 2007. Please advice
    Thnks

    You can delete them from OS level. You can delete safely the following files:
    /usr/sap/trans/log/SAP*.<SID>
    Is this you were looking for?
    Regards,
    Faisal

  • Different listener log file  in RAC system

    we have 4 nodes 11.1.0.7 RAC at redhat 5.1 linux system.
    I just find there are two listener log file (listener.log; listener_nodename.log ) in each node.
    I want to know which difference function is in both listener.log and listener_nodename.log?
    When or which condition does node run( record data) in listener.log?
    When or which condition does node run( record data) in listener_nodename.log
    I saw the 3 node3 listener_nodename.log is wroking on and one node listener.log is workig on.
    why?
    Does some experts explain this point for me?
    Thanks

    I make some clears for this requirements.
    we have a schedule backup and stores in ASM diskgroup in SAN.
    As system admin and policy of SAN disaster recovery, we need to generate backup in a local file system.
    in this case, we only backup database plus archival files in external file system. but I still saw snapshot control file is still put into default linux location.
    I am not able to see this snapshot in external file system.
    For SAN disaster recovery, do we need to save a control file snapshot in external file?
    Can I apply BACKUP CURRENT CONTROLFILE TO DESTINATION "external file path" for SAN disaster recovery?
    Thanks in advance!
    Jin

  • How to Specify the Log File address as RootDir/Logs/Error.log in Log4j

    I have a web application,
    How to configure the log4j Rolling file Appender in that.
    I want to logs to be redirected to the RootDir/logs/Error.log.
    Currently, I m using following configuration:
    # This file must live on the classpath of the jvm
    # Set root logger level to DEBUG and log to both stdout and rollingFile appenders
    # (see below for their definitions)
    # The set of possible levels are: DEBUG, INFO, WARN, ERROR and FATAL
    log4j.rootLogger=INFO, stdout, R
    ####### Console appender ######
    log4j.appender.stdout=org.apache.log4j.ConsoleAppender
    log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
    # Pattern to output the caller's file name and line number.
    # The pattern: Date Priority (Filename:Line Number) - Message\n
    log4j.appender.stdout.layout.ConversionPattern=%d %-5p (%F:%L) - %m%n
    #### Second appender writes to a file
    log4j.appender.R=org.apache.log4j.RollingFileAppender
    log4j.appender.R.File=Error.log
    # Control the maximum log file size
    log4j.appender.R.MaxFileSize=100KB
    # Archive log files (one backup file here)
    log4j.appender.R.MaxBackupIndex=1
    log4j.appender.R.layout=org.apache.log4j.PatternLayout
    log4j.appender.R.layout.ConversionPattern=%d %-5p (%F:%L) - %m%n
    Thanks for your replies in advance.

    Please follow the following steps, will work.
    To enable log4j logging to a file on lunar pages do the following:
    1) Create a servlet class that will initialize log4j. Here is
    the code:
    package logging;
    import org.apache.log4j.PropertyConfigurator;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class Log4jInit extends HttpServlet {
    public
    void init() {
    String prefix = getServletContext().getRealPath("/");
    String file = getInitParameter("log4j-init-file");
    // if the log4j-init-file is not set, then no point in trying
    if(file != null) {
    PropertyConfigurator.configure(prefix+file);
    public
    void doGet(HttpServletRequest req, HttpServletResponse res) {
    2) In your web.xml file add the following entry:
    <servlet>
    <servlet-name>log4j-init</servlet-name>
    <servlet-class>logging.Log4jInit</servlet-class>
    <init-param>
    <param-name>log4j-init-file</param-name>
    <param-value>WEB-INF/classes/log4j.lcf</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    3) Create a log4j.lcf file located in your WEB-INF/classes directory
    as with the following entries:
    log4j.rootLogger=debug, R
    # yourdirectory below is where your site lives.
    log4j.appender.R=org.apache.log4j.RollingFileAppender
    log4j.appender.R.File=/home/yourdirectory/public_html/logs/out.log
    log4j.appender.R.MaxFileSize=500KB
    # Keep one backup file
    log4j.appender.R.MaxBackupIndex=1
    log4j.appender.R.layout=org.apache.log4j.PatternLayout
    log4j.appender.R.layout.ConversionPattern=%d %-5p [%c] %m%n
    4) Add logging to your class. Here is an example:
    import org.apache.log4j.Logger;
    public class Example {
    static Logger logger = Logger.getLogger(Example.class);
    public void doSomething() {
    logger.debug("testing logging");
    5) make sure you have the log4j-1.2.8.jar file located in your WEB-INF/lib directory.
    That should do it!

  • Log File in oracle network log directory,

    Hello,
    in the oracle\network\log directory there we can find the file [SIDNAME].log.
    I think only in case for network troubles, oracle will log some informations in this log file.
    For what is this file needed and can I delete this file?
    Thanks for your help.

    thanks for feedback...
    the input of the file is like the following:
    11-JUN-2010 10:23:51 * service_register * WMS * 0
    11-JUN-2010 10:24:03 * service_update * WMS * 0
    11-JUN-2010 10:24:25 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=WMS)(SERVER=dedicated)(CID=(PROGRAM=C:\Programme\Oracle\DB10g\bin\sqlplus.exe)(HOST=PCWI)(USER=Admin))(SERVER=dedicated)) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=2530)) * establish * WMS * 0
    11-JUN-2010 10:24:27 * service_update * WMS * 0
    11-JUN-2010 10:24:30 * service_update * WMS * 0
    11-JUN-2010 10:25:05 * ping * 0
    11-JUN-2010 10:25:05 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=PCWI)(PORT=1521)))(VERSION=169869568)) * status * 0
    11-JUN-2010 10:25:16 * (CONNECT_DATA=(SID=WMS)(CID=(PROGRAM=C:\Programme\Oracle\DB10g\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=PCWI)(USER=SYSTEM))(SERVER=dedicated)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.14.194)(PORT=2538)) * establish * WMS * 0
    11-JUN-2010 10:25:51 * (CONNECT_DATA=(SID=WMS)(CID=(PROGRAM=C:\Programme\Oracle\DB10g\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=PCWI)(USER=SYSTEM))(SERVER=dedicated)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.14.194)(PORT=2542)) * establish * WMS * 0
    11-JUN-2010 10:26:43 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=WMS)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.14.194)
    can I deactivate this traces?
    thanks for feedback

  • Oracle standby/redo log file shipping keeps needing logs re-registering

    Hi
    We have Log File Shipping enabled and the prod system ships redo logs over to the LFS server. It's kept 24 hours behind. It usually ships the logs (and I believe automatically registers them) without issue.
    EXCEPT - it keeps complaining about missing redo log files.
    The file is usually there; but just needs registering with:
    alter database register or replace logfile '/oracle/S1P/saparch/S1Parch1_636443_654987192.dbf';
    (we found if we left out the 'or replace' it takes a very long time or even hangs)
    It then plods on and applies the next... can go for another 2 or 3... or 20... but then often gets stuck again, and you need to register the next.
    Can spend whole days on this...!!
    We did try running a script to register the next 1365 redo logs! It failed on 4, so I ran it again... it worked on those 4, but turned up 3 others it had worked with before! HUH?!? So manually did those 3 ... fine... it carried on rolling forward... but got stuck after 10 minutes again when it hit another it reckoned needed registering (we'd already done it twice!!).
    Any ideas?
    Ross

    Hi
    We have Log File Shipping enabled and the prod system ships redo logs over to the LFS server. It's kept 24 hours behind. It usually ships the logs (and I believe automatically registers them) without issue.
    EXCEPT - it keeps complaining about missing redo log files.
    The file is usually there; but just needs registering with:
    alter database register or replace logfile '/oracle/S1P/saparch/S1Parch1_636443_654987192.dbf';
    (we found if we left out the 'or replace' it takes a very long time or even hangs)
    It then plods on and applies the next... can go for another 2 or 3... or 20... but then often gets stuck again, and you need to register the next.
    Can spend whole days on this...!!
    We did try running a script to register the next 1365 redo logs! It failed on 4, so I ran it again... it worked on those 4, but turned up 3 others it had worked with before! HUH?!? So manually did those 3 ... fine... it carried on rolling forward... but got stuck after 10 minutes again when it hit another it reckoned needed registering (we'd already done it twice!!).
    Any ideas?
    Ross

  • The SiteLog_ appl_name .log  file in  $ORACLE_HOME/j2ee/log is not created

    Hello experts,
    The SiteLog_<appl_name>.log file in the $ORACLE_HOME/j2ee/log directory stopped to be created 2 days ago.
    No errors.
    Which reason can be for that? How to enable creating this file?
    Regards,
    Ram

    Hi,
    Are there any error when login OWA or ECP?
    As Ed mentioned, please post specific information about your question for further troubleshooting.
    Besides, please check to see if there is a SharedWebConfig.Config file in the following directories:
    <install drive>\Program Files\Microsoft\Exchange Server\V15\ClientAccess
    <install drive>\Program Files\Microsoft\Exchange Server\V15\FrontEnd\HttpProxy
    Also, here’s an thread about miss this file in relevant location. For your reference:
    https://social.technet.microsoft.com/Forums/office/en-US/6699ad92-701d-4966-b202-90c9be6bf735/exchange-2013-cu6-event-id-1003?forum=exchangesvrgeneral
    Thanks
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Allen Wang
    TechNet Community Support

Maybe you are looking for

  • Vertical Scroll bar In List Item

    Dear All: I have to fill up list box with 100 values and i want to see only 4 values at a time,next 4 values should be shown by scrolling down vartical scroll bar.(The same functionality as we usually see in web pages' list box) I shall be very thank

  • Any BADI returning the 'IDOC Status'  during IDOC generation.

    Hello All, I need a BADI which is being called during any IDOC generation and which returns the 'IDOC Status' i.e. Pass/Fail etc. So far I am able to find BADIs like 'IDOC_DATA_MAPPER' or ''IDOC_DATA_INSERT'' but such BADIs only return the IDOC docum

  • ! next to downloaded songs

    I purchased and downloaded several songs, however three of them have an ! next to them. I can play them from the "recently added" folder but they won't copy to a new playlist.  Please help.!

  • Where can I find older versions of Mail for Exchan...

    Mail for exchange was unable to start up on my E71 phone so I removed it and installed the updated 3.0.50 version from OVI store. However, from some reason, this is not working with our exchange server - right after connecting I get the "System error

  • JSpinner Focus Issues

    Hi, I am working on this swing screen where i have multiple components like textboxes ,combos,and some spinners(JSpinners) Problem is that i have lost the default focus traversal policy as some components were deleted and some added. To reslove this