Very weird issue with server logging when using log4j.properties file

I'm using log4j logging. In log4j.properties the root logger is set up to use the ServerLoggingAppender class so that all our application logs go to the main server logfile. In addition, there are several appenders defined for specific components, with output going to specific per-component log files. Everything is going fine until I launch the server console. At this point all of those per-component log files get wiped out (zero length) and some non-ASCII lines are written to at least one of these files, after which the logs appear to be fine. The main server log file does not appear to be affected (because the root logger is set to "warn" level, while component-specific loggers are set to trace, the contents in these files is different; however I tried disabling all the other appenders and turning the root logger up to trace, and that still did not re-create the problem in the main server log file.
And here's the really weird part -- if I use the same configuration, but in a log4j.xml file, the problem does not happen.

Figured it out.
We were passing in the configuration for log4j as -Dlog4j.configuration=file:/<properties file> and this was added to the command line for both the managed and admin servers. Problem is that the console app starts its own instance of log4j, and when it reads the configuration for the appenders it initializes or rolls over the files. At some point we have two JVMs accessing the same files, so some corruption is bound to happen.
I'm not clear why the .xml file made a difference, but earlier we had been passing the log4j configuration as a jar file placed in the domain/lib folder, so perhaps the designer reverted to that (placed the log4j.xml file in a jar in lib, and not simply changed the -Dlog4j.configuration=file:/ option.

Similar Messages

  • Issue with instant ringback when using sip trunk to SP

    Hi all,
    We use CUCM 8.0.2.
    We have a SIP trunk to a SP connected via one of our Cisco 2911 routers configured as a CUBE.
    Cisco IOS Software, C2900 Software (C2900-UNIVERSALK9-M), Version 15.0(1)M3, RELEASE SOFTWARE (fc2)
    c2900-universalk9-mz.SPA.150-1.M3.bin
    Cisco CISCO2911/K9 (revision 1.0)
    Technology Package License Information for Module:'c2900'
    Technology Technology-package
                      Current       Type
    ipbase        ipbasek9      Permanent
    security      securityk9    Permanent
    uc              uck9            Permanent
    data           None            None
    We also have several ISDN lines that run out via various Cisco routers configured as H323 gateways.
    We use 7945 and CIPC for our phones.
    We're having an issue with calls going via the SIP trunk where we hear ringing instantly after dialling - but before the actual device at the other end starts ringing (considerable difference).
    Using the SIP trunk: If I make a call to my mobile phone - I hear ringing instantly - about 3 rings before my mobile phone actually starts ringing - undesireable.
    Using H323 gateway: If I make a call to my mobile phone - I hear silence for a bit - then ringing when the mobile starts ringing - desired.
    Using SIP trunk: If I make a call to a landline that is ready - it rings instantly for at least 1 ring - before the actual phone I'm calling starts ringing - undesireable.
    Using H323 gateway: There is a momentary pause before hearing ringing on my phone and the phone I dialled - desired.
    Using SIP trunk: If I make a call to a landline that is off-hook (with no call-waiting/etc.) - it rings once and then returns the busy signal (the worst issue) - undesireable.
    Using H323 gateway: There is a momentary pause before hearing busy signal - desired.
    Phone to phone internally (same network): Operates as expected (instantly rings locally and on the phone I'm calling). Between phones that utilise the SIP trunk and phones that utilise the H323 gateways within the same network - communication is instant and as expected.
    Any ideas why this happens and how to stop it?
    I want it to not ring until the situation is known and that it can provide the appropriate feedback (ringing/busy/etc.).
    Some possibly relevant config (note that there is a known bug with this IOS that meant I had to declare the codec in each dial-peer as the voice class would not work):
    voice service voip
    address-hiding
    mode border-element
    allow-connections sip to sip
    sip
      bind control source-interface GigabitEthernet0/0
      bind media source-interface GigabitEthernet0/0
      header-passing error-passthru
      early-offer forced
      midcall-signaling passthru
    interface GigabitEthernet0/0
    ip address x.x.x.x 255.255.255.252
    ip access-group acl.SIP-IN in
    no ip redirects
    no ip unreachables
    ip verify unicast reverse-path
    ip virtual-reassembly
    duplex full
    speed 100
    no cdp enable
    gateway
    timer receive-rtp 1200
    sip-ua
    connection-reuse
    gatekeeper
    shutdown
    dial-peer voice 1 voip
    description *** INBOUND CALLS FROM CARRIER ***
    translation-profile incoming SIPTRUNK-INCOMING
    session protocol sipv2
    incoming called-number #blah blah#
    dtmf-relay rtp-nte
    codec g711alaw
    ip qos dscp cs5 media
    no vad
    dial-peer voice 61 voip
    description **** WA, SA AND NT NUMBERS ****
    destination-pattern 0[8]........
    session protocol sipv2
    session target ipv4:<MY SP's SIP SERVER>
    incoming called-number 0[8]........
    dtmf-relay rtp-nte
    codec g711alaw
    ip qos dscp cs5 media
    no vad
    dial-peer voice 81 voip
    description **** MOBILE NUMBERS ****
    destination-pattern 0[4]........
    session protocol sipv2
    session target ipv4:<MY SP's SIP SERVER>
    incoming called-number 0[4]........
    dtmf-relay rtp-nte
    codec g711alaw
    ip qos dscp cs5 media
    no vad
    dial-peer voice 500 voip
    description *** INBOUND SIP TRUNK TO CUCM PUB ***
    translation-profile outgoing SIPTRUNK-CALLING-ADD-0
    preference 1
    destination-pattern 5[12]..
    session protocol sipv2
    session target ipv4:<OUR CUCM PUBLISHER IP>
    dtmf-relay rtp-nte
    codec g711alaw
    ip qos dscp cs5 media
    no vad
    Any help or a point in the right direction would be greatly appreciated.
    Cheers,
    Brett

    I ended up resolving this issue as follows:
    In CUCM, under Device > Device Settings > SIP Profile.
    I modifed the profile relevant to my SIP trunk, under the "Trunk Specific Configuration", I set "SIP Rel1XX Options" from "Disabled" to "Send PRACK if 1xx Contains SDP".
    Now, I get the expected delay before hearing ringback.
    Solved!

  • Issues with sending mail when using 2 email accounts - possible bug?

    Hi all,
    Having issues with trying to send email from the 3g iPhone. I have 2 IMAP acounts set up on the phone, one
    which works fine but when I try to create mail from the primary account as soon as I hit send it exits the mail program and goes back to the home screen.
    Both IMAP accounts have identical settings apart from the username and email address. On the primary account there is no sent messages folder on the iPhone whilst there is on the account that works. I've had a look in the advanced settings and it is programmed to store sent messages in the local sent folder which doesn't exist. I've tried selecting it to store in a IMAP folder as I thought maybe it was crashing as the local folder wasn't there but it has the same result.
    Have deleted the account and entered the settings back in again to try to coax it to create the local sent folder but cake up with the same problem.
    Suggestions are welcome.

    You have their SMTP servers mixed up, go to Mail>Preferences>Accounts>Outgoing Mail Server (SMTP), click on the server then choose Edit SMTP Servers and select the correct one for each account. Then check the Use Only This Server box

  • Weird issue with Bridge CC and vector masked TIFF files

    For some reason in Bridge CC my vector masked transparent backgrounds in my tiff files are showing.  I didnt have this issue with CS6.  only way to fix it is for me to flatten my image and resave it as a tiff without the mask.  Any option i need to click on?

    We don't even know what platform (Mac or Win) or version of the OS you are running.
    Also:  Are you aware that the latest version of Photoshop is not "CC" but CC2014v14.2.2 ?
    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    A screen shot of your settings or of the image could be very helpful too,
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Some very weird issue with Motion tween

    Hello, guys! I confronted some kind of weird problem. I uploaded it in fla, https://www.dropbox.com/s/u9bkjiokk51m1o3/landscape_START.fla. Soo, about the problem, flowers in layers 8,9,10 act wrong, when im trying to apply motion tween, they move from their current position right to the hell another one, and i can't understand why. Can somebody explain me what the matter? Because the  rest of objects in another layers make it right, when i use motion tween. Oh, and btw, when you make zoom like 50% and less, u can see the workplace consist of gray square in dark gray square, again, wtf? When i make sizes in properties panel larger, it just goes crazy.

    Emm, i meant that you should make motion tween by yourself to see that problem with flowers on layers 8,9,10. You just selecting any frame you want, then applying motion tween on flower on layer 8,9 or 10 and then puff, its like screwed up. Well, i tried to copy and replace this flower movie clips, but its always the same. For example, the rest of objects, when you apply motion tween on em, dont changing their location...

  • Issue with LPAD/RPAD when using with Japanese data

    Hi,
    I am trying to apply LPAD/RPAD on Japanese data, but its giving different results than expected.
    LPAD/RPAD is returning less data than length passed.
    Database: Oracle 10g
    Could some one help me on this.
    SQL Query: select length('アップリカ'),lpad('アップリカ',5,' '), length(lpad('アップリカ',5,' ')) from dual;
    Output:
    LENGTH('アップリカ') --> *5*
    LPAD('アップリカ',5,'') --> アッ
    LENGTH(LPAD('アップリカ',5,'')) --> *3*
    Thanks in advance !!
    Edited by: 871132 on Jul 7, 2011 8:18 PM
    Edited by: 871132 on Jul 7, 2011 8:20 PM
    Edited by: 871132 on Jul 7, 2011 8:21 PM

    I have made a little research and it seems that your problem is connected with way RPAD function works.
    Actually it counts 'display units' instead of 'real' characters count. And in japanesse one 'real' character may be formed from few display units.
    Oracle gives some info about it in its official documentation:
    http://download.oracle.com/docs/cd/B19306_01/olap.102/b14346/dml_x_reserved010.htm
    Some more info is given here:
    http://www.rhinocerus.net/forum/databases-oracle-tools/426832-oracle-bug-rpad-japanese-kanji-character-oracle-10gr2-utf8database.html
    And also sugestion is given:
    +"If you really want the number of characters then you can use+
    +something like:+
    +RPAD ( str , n - LENGTHC(str),'c')+
    +Use LENGTHB, if the requested width is in bytes, LENGTHC, if in+
    +characters+
    +Or+
    +SUBSTR( str || RPAD( 'c', n, 'c' ), 1, n )+
    +Use SUBSTRB, if the requested width is in bytes, SUBSTR, if in+
    +characters+
    +In above the+
    +* str is the string to be padded.+
    +*'c' is the fill character (usually blank) -- we a assume single-+
    +byte char+
    +* n is the requested width in bytes or characters+
    +"+
    Edited by: chudapet on 8.7.2011 1:52

  • Having issue with wmode opaque when used for games

    Hi,
    well i am using wmode  opaque only because of chrome browser as it shows white blocks in game  which no other browser show but only chrome. So i am using chorme, but  due to use of wmode opaque the performance of game becomes very bad, the  game become faster then it should be. I don't know what to do, any help  would be appreciated.Here is the link to the demo of error to check the  error you have to use the chrome browser.Play using first button and  look at the speed of rotation of star, and then play through 2nd button  and check rotation of star you will see the error.
    http://www.bloghuts.com/2010/09/star-island.html
    please help me.

    can you give me the link to the place where i should post as i was not able to find actionscript
    place,
    and thanks for reply.

  • How do I resolve issues with missing layers when opening a Tiff file from Photoshop CS5.1?

    I am downloading Tiff images from a partners website. After extracting the file and opening from Photoshop CS5.1 it's only displaying one of the original image layers. For example and image with two guys shaking hands in an office is only opening the clipped two guys and not showing the backgroud. The vendor says the files open fine on their end which leads me to believe its a download or photoshop issue. Any recommendations?

    Thanks Curt... I don't think my explanation was clear. I'm downloading an image from an external webiste. The image downloads in a ZIP archive. After extracting from the Zip file, I go into photoshop and do file open. Only part of the image appears. It looks as if it's the top layer of a photoshop image but since I didn't build the image, I'm not certain it was built with multiple layers. Any ideas?

  • Strange issue with rights of account, used by SSIS (Foreach Loop Container does not return file names without Admin rights on server)

    Hello everyone.
    Faced very strange issue with account, which is used to run SSIS package.
    The specific package uses Foreach Loop Container to retrieve file names within the specified folder, and put them into Import file task.
    The package is set up to run under specific service account. This service account is given all permissions (Full control) to the folder where source files reside.
    So the issue is: SSIS package fails to execute this task (Foreach Loop Container and then Import), and shows that no files are found in the directory (although files ARE there).
    Once we're adding the service account into local Administrators group on the SQL Server, it works! Removing - does not work again. We cannot leave the service account as SQL server's admin as it's prohibited by our IT policies, and is just a bad practice.
    Any ideas, please? 
    MCP

    Here's the real log output:
    Date 16.04.2014 12:47:09
    Log Job History (RU-BW: Update)
    Step ID 1
    Server Server
    Job Name RU-BW: Update
    Step Name bw_import_cust_master_data
    Duration 00:00:02
    Sql Severity 0
    Sql Message ID 0
    Operator Emailed
    Operator Net sent
    Operator Paged
    Retries Attempted 0
    Message
    Executed as user: service_account Microsoft (R) SQL Server Execute Package Utility  Version 10.50.4286.0 for 64-bit  Copyright (C) Microsoft Corporation 2010. All rights reserved.    Started:  12:47:09  Error: 2014-04-16 12:47:11.45
        Code: 0xC0202070     Source: bw_import_cust_master_data Connection manager "Input"     Description: The file name property is not valid. The file name is a device or contains invalid characters.  End Error  Error:
    2014-04-16 12:47:11.47     Code: 0xC0202070     Source: bw_import_cust_master_data Connection manager "Input"     Description: The file name property is not valid. The file name is a device or contains invalid characters.  End
    Error  Error: 2014-04-16 12:47:11.48     Code: 0xC0202070     Source: bw_import_cust_master_data Connection manager "Input"     Description: The file name property is not valid. The file name is a device or contains invalid
    characters.  End Error  Error: 2014-04-16 12:47:11.48     Code: 0xC020207E     Source: Import file Flat File Source [1]     Description: The file name is not valid. The file name is a device or contains invalid characters.
     End Error  Error: 2014-04-16 12:47:11.48     Code: 0xC004701A     Source: Import file SSIS.Pipeline     Description: component "Flat File Source" (1) failed the pre-execute phase and returned error code 0xC020207E.
     End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  12:47:09  Finished: 12:47:11  Elapsed:  2.324 seconds.  The package execution failed.  The step failed.
    MCP

  • Weird Issue With Windows Live Mail

    I have a friend using Windows Live Mail and he's been having some weird issues with it. When he goes to forward an email, it will occasionally open the email up twice, which isn't a huge deal it's just more annoying than anything. I thought maybe there was
    some malware or other junk that could be causing it so I ran MBAM and got everything cleaned up but it's still happening. Any other thoughts on what could cause this?
    Thanks.

    Windows Live Mail support is found @
    https://login.live.com/login.srf?wa=wsignin1.0&rpsnv=12&ct=1410798892&rver=6.1.6206.0&wp=LBI&wreply=https:%2F%2Fanswers.microsoft.com%2Fen-us%2Fsite%2Fcompletesignin%3Fsilent%3DFalse&id=273572
    You must login to your Windows Live account and then Ask a Question.
    This forum is dedicated to the Windows 7 operating system.  Windows Live is not a feature of Windows 7 and Microsoft has established support for Windows Live Mail  @ the Microsoft Community found @
    http://answers.microsoft.com/en-us/windows/forum/windows_7-ecoms?auth=1
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

  • Cost involved in changing the code using log4j.properties to log4j.xml

    i have finished my application, and it was done in such a way that logging is done using log4j but it was using log4j.properties file.
    now i need to change it to log4j.xml. i need to do this at the earliest. so i need to know the cost involved in it?. do i need to change a lot on my app to read the log4j.xml?. In my app there is a function named getProperties, which actually reads the log4j.properties file.
    this is the code of that function
    public static Properties getProperties(String filename,String path) throws myException
    //InputStream is = null;
    FileInputStream is=null;
            Properties props = new Properties();       
            //ClassLoader classLoader = ResourceUtil.class.getClassLoader();
            //is = classLoader.getResourceAsStream(filename);
            File catalinaHome = new  File(System.getProperty("catalina.home"));     
            try {       
    is=new
    FileInputStream(catalinaHome.getCanonicalFile()+path + filename);
    } catch (IOException e) {
            if(is == null)
                String message = "Cannot locate property file " + filename + " in the classpath";
                log.error(message);
            throw new myException(message);
            try
                props.load(is);
            catch (IOException e)
                String message = "Error reading property file " + filename;
                log.error(message);
            throw new myException(message, e);
            finally
                try
                    is.close();
                catch(Throwable t)
                    t.printStackTrace();
            if(props.isEmpty())
                String message = "No properties are defined in " + filename;
                log.error(message);
            throw new myException(message);
            return props;       
    }and my initialize function is
    public static void initialize()
    Properties properties=null;
    try {
    String path="/properties/";
    properties=ResourceUtil.getProperties("log4j.properties",path);
    } catch (myException e2) {
    e2.printStackTrace();
    PropertyConfigurator.configure(properties);
    }Message was edited by:
    xema
    Message was edited by:
    xema
    Message was edited by:
    xema

    >
    1. Restructure log4j.properties into log4j.xml.
    thats done
    2. Move log4j.xml into a directory that's in the
    classpath.
    actually i donot understand what does it mean to move in a directory thats in classpath means. i have to use logging in my webapplication running in tomcat. and my log4j.xml has to reside in catalina.home/properties/. My log4j.properties have been residing here and it had worked well woth the previous function. Now what i did is placed the log4j.xml under properties folder. Now tell me what modifications should i make in the above code.
    3. Remove any code that explicitly configures log4j
    (i.e. the initialize() method) because log4j will
    configure itself from any properties file it finds in
    the classpath, automatically, the first time it is
    called.I prefer not remvoing this function as this function is being called in many of my classes... and we don't have time to edit all...
    please help... and excuse me if i asked some blunders.!!!

  • Hi BC, I have an issue with BC. When the shopping cart is used it takes stock out of inventory and h

    Hi BC,
    I have an issue with BC. When the shopping cart is used it takes stock out of inventory and holds it, regardless of whether or not a customer proceeds to purchase. OK.
    To make matters worse, the stock is only cleared from the shopping cart when the customer closes the browser - not when they close the shopping window.
    Now lets say a customer doesn't close their browser for a month - it happens! .. when their stock is finally returned it may throw out our stock levels that have in the meanwhile been adjusted. So their stock will be added on top of an accurate stock take, putting stock in that isnt really available.
    This is causing us mayhem.
    We have not yet seen if stock is actually returned at all. In the test we did today where we filled a shopping cart then closed the browser without making a purchase, the stock was not returned immediately. So we dont even know when it will be returned - thats IF a customer actually closes their browser. Any solutions out there?
    Jo

    Hi there,
    The way stock is managed in this situation is desirable for many in that case otherwise shopping on a site and adding to cart would not be viable or use friendly.
    What you mention about not closing a browser though is a case that is not true. IF you go into the shop settings in the admin you can see the cart restore timer which is by default 24 hours but you can change this to as low as 1 hour if you wish.

  • Since Nov 11 we have very big issues with our emails received via exchange server. Part of them are empty

    Since Nov 11 all Iphone and Ipad of our company have very big issues with email synchronization. We all synchronized with Exchange server.
    In the past nobaody had issue.
    Some of our users have IOS 6 and others IOS 5
    Messages arrived empty and it is impossible to download them.
    Nobody is able to answer ????
    I have the same issue with my personnal Ipad synchronized with exchange also.

    This resolution have to attend at the server not with the ios device. My employer's mail administrator reject me to correct it from the server. As his concern is, if ither ios devices works why don't mine? So I am helpless than changing my iphone. It works fine for early versions of ios and with androids. And also one of my friends iphone4 with ios 7 (similar as mine) works too. So I guess it's something wrong with my iPhones settings. But basic question I cannot understand is it works in my phone before this ios7 upgrading. And currently working with my yahoo account too. Favourable reply expected.

  • Issues with Server.app

    hello together,
    I have some issues with Server.app.
    I connect to a server in our local network.
    In the Users tab I see only local users of the server, not the network accounts
    When I choose "Manage Network Accounts" from the "Manage" Menu, it tells me to configure the server as a network directory, but it is already configured as such.
    When I hit "next" and enter account information for the directory admin it tells me that this server is already configured to manage network accounts.
    How can I view and mange the network accounts again?
    Thanks in advance
    macmartin  

    Just fyi, I was not able to resolve this on my migrated server. Every time when I imported the OD backup from 10.5.8 Server.app couldn't load the user or group list and issues an error message with "error 5000" or something. Check if you have that in your logs, too. If so, Server.app is no longer able to authenticate against the OD. There are several threads regarding this 5000-error, none of them worked for me. Usually this happens when the hostname, IP or something in the OD setup changes and the agreed keys no longer work for authentication. As mentioned, I never managed to get that to work again and had to use a fresh OD and create the users from a list (without pwd). Not very charming.

  • Server0 restart with outOfMemory Error when using KM

    Hi,
    i am facing the following issue : when using the KM files and folder on my portal, the server0 restart with outOfMemory error.
    This is the log trace :
    FATAL: Caught OutOfMemoryError! Node will exit with exit code 666
    [EXCEPTION]
    java.lang.OutOfMemoryError
    My configuration is EP7, SP16 on windows 2k3 server, 6GB RAM, memory tuning :
    -     XX:MaxPermSize=512m
    -     XX:PermSize=512m
    -     XX:NewSize=341m for 2 GB heap size
    -     XX:MaxNewSize=341m for 2 GB heap size
    -     Heap Size : 2048
    -     Xmx2048m 
    -     Xms2048m
    -XX:+DisableExplicitGC
    JDK : 1.4.2_16-b05
    If someone could help....
    Thanks a lot.
    Fabien.

    Fabien,
    Please have a look at these SAP Notes : 723909 and 709140.
    Also, these threads might be handy.
    /message/3402754#3402754 [original link is broken]
    Re: FATAL: Caught OutOfMemoryError! Node will exit with exit code 666
    Cheers!
    Sandeep Tudumu

Maybe you are looking for

  • How do I get Address Book cards to show the groups that person is in?

    I have set up ten groups, and get get individuals into one or more groups.   But I want their individual card to also show what group(s) that person is in.  Can't find a way to do that. 

  • Crystal Reports Error, Developer Edition, XI R2

    Post Author: squiggly12 CA Forum: Deployment I have a non embedded report sitting on a network server, and I have a program that when a menu link is clicked, it calls a .net dll which then popluates a .net 2.0 dataset, then crystal will load that tab

  • Optimal configuration for inspire 5700

    I juz bought a inspire 5700 and a audigy 2 ZS. Currently i am using the digital connection through the Digital Din input on the decoder from the Digital out of the soundcard. However, when i m playing mp3, only the centre and front speakers are worki

  • Crystal Reports To Oracle Conversion

    Has anyone gone through a Crystal Reports to Oracle Reports conversion? It appears from my limited review of what is available in Oracle Reports that Crystal offers alot more flexibility in how reports and charts can be formatted and displayed, and i

  • SAP client copying Profile

    Hi  Gurus; If i choose profile SAP_UCSV (customising and user master records)will this inclde the transactional data also. Is there any other way to copy only master data-excluding the trasactional data. Please update ASAP Thanks and regards Tushar P