Can logger stmts belonging to one class alone not not get printed at times?

Hello,
My application has run into an issue where some log statements in "one particular class" do not get printed at times. The issue is not reproduced in a consistent manner ie. it may happen on some days/may not on some other days.
Here is the structure of the two classes which has reported the issue. I have a class A and another class B which has extended the class A. I am printing 2 log statements in class B(one statement using the logger object of class A (logA object), and the other statement with the logger object of class B (logB object)). But the logger statement using the logA object does not get printed on some days. After a server restart, it starts working fine. Is there some thread which gets killed?
public class A{
protected static Logger logA = Logger.getLogger(A.class);
public static void myLog(String s) {
logA.info("in myLog, " + s);
public class B extends A{
protected static Logger logB = Logger.getLogger(B.class);
myLog("Log Statement Number 1"); //This statement does not get printed all the time
logB.info("Log Statment Number 2"); //This statement always get printed
Any help is appreciated. Thanks
Anoop

Anoop.Isaac wrote:
The issue is not reproduced in a consistent manner Since you cannot reproduce the problem you have not narrowed down what the possible cause might be. So now you expect someone here to diagnose your problem and provide a solution just by reading some vague and incomplete lines of code with no other information.
Good luck with that.

Similar Messages

  • HT201250 how can i pass information from one mac to another mac by using the time capsule

    how can i pass information from one mac to another mac by using the time capsule

    If you want to transfer files, settings, etc., you must open Migration Assistant (Applications > Utilities) in the Mac that you want to transfer the files and follow the instructions

  • Can I have more than one version of adobe reader at the same time?

    can I have more than one version of adobe reader at the same time?

    If I may add a qualification: on a device running full Windows 8, you may have both Adobe Reader Touch and Adobe Reader (normal desktop edition). This does not apply to the primitive devices which cannot run desktop apps (running "Windows RT"), and while I may be wrong, I believe that the Surface 2 is such a device.

  • Can we query more than one class in a call to .tmib

    Hi,
    i am creating a utility to monitor the applications at run time using mib.any
    body have an idea if we can query more than one class in one call to .tmib.
    thanks
    roopesh

    That would be an interesting enhancement, perhaps using Embedded FML to
    pack multiple MIB requests into one buffer.
    Product Management makes all decisions about major enhancements, and it
    is based on customer need, so that's where the requests should go.
         Scott Orshan
    roopesh wrote:
    >
    yes.
    i am trying to devlop a utility which can monitor
    applications at runtime.i wanted to make as less the
    no of calls to tmib as possible but one class does
    not give all the information so i need to query
    more than one.
    anyways thanks for the reply.
    "MS" <[email protected]> wrote:
    Hi,
    Are you trying to write a Tuxedo app health-check monitor utility.
    A tuxedo client can make different calls to .TMIB service for different
    classes.
    I don't think we can query more than one class in a single call.
    Are you looking for something else??/
    HTH
    regards
    MS

  • Can you place more than one class in a source file?

    If so how is this done because I get the following error when I try to.
    IPHunter.java:100: class Arguments is public, should be declared in a file named Arguments.java
    public class Arguments {
    Thanks in advance

    When having two classes in the same file, only one should be public, and the file should be named with the name of that class.
    Try removing public from the class Arguments, and if you have to use it from classes outside the file, you should have a file Arguments.java
    Hope that helps,
    Al

  • Can't connect more than one PC to my network at the same time.

    When trying to connect a second wireless laptop to my network, the one already connected gets disconnected. I'm using a WRT110 router(cable connection) that I bought 5 days ago, and two laptops with Win Vista. I don't have any PC wired connected.

    First thing which you need to do is upgrade the firmware of your Router. Go to website linksysbycisco.com/downloads... ......insert model no of your router in serach tab......select proper version of your router........download the firmware file......save that file on desktop..
    Follow these steps to upgrade the firmware on the device : -
    Open an Internet Explorer browser page on a computer hard wired to the router...
    In the address bar type - 192.168.1.1...Leave the Username blank & in Password use admin in lower case...
    Click on the 'Administration' tab- Then click on the 'Firmware Upgrade' sub tab- Here click on 'Browse' and browse the .bin firmware file and click on "Upgrade"...
    Wait for few seconds until it shows that "Upgrade is successful"  After the firmware upgrade, click on "Reboot" and you will be returned back to the same page OR it will say "Page cannot be displayed".
    Now reset your router :
    Press and hold the reset button for 30 seconds...Release the reset button...Unplug the power cable from your router, wait for 30 seconds and re-connect the power cable...Now re-configure your router...
    Once you configure all the settings on your router... here are some wireless settings which you can set on your Router and i think this might make your both the wireless computers go Online...
    Open an Internet Explorer browser page on your wired computer(desktop).In the address bar type - 192.168.1.1 and press Enter...Leave username blank & in password use admin in lower case...
    For Wireless Settings, please do the following : -
    Click on the Wireless tab
    - Here select manual configuration...Wireless Network mode should be mixed...
    - Provide a unique name in the Wireless Network Name (SSID) box in order to differentiate your network from your neighbours network...
    - Set the Radio Band to Standard-20MHz and change the Standard channel to 11-2.462GHz...Wireless SSID broadcast should be Enabled and then click on Save Settings...
    Please make a note of Wireless Network Name (SSID) as this is the Network Identifier...
    For Wireless Security : -
    Click on the Sub tab under Wireless > Wireless Security...
    Change the Wireless security mode to WEP, Encryption should be 64 bit.Leave the passphrase blank, don't type in anything...Under WEP Key 1 type in any 10 numbers please(numbers only and no letters eg: your 10 digit phone number) and click on save settings...
    Please make a note of WEP Key 1 as this is the Security Key for the Wireless Network...
    Click on Advanced Wireless Settings
    Change the Beacon Interval to 75 >>Change the Fragmentation Threshold to 2304, Change the RTS Threshold to 2304 >>Click on "Save Settings"...
    Now see if you can locate your Wireless Network and attempt to connect...

  • Can I configure csm as one arm and routing mode at the same time?

    My csm currently is configured as the routing mode and bridge mode, resently I have a service requirement which I think the one arm mode should be the best resolution. Can anybody let me know if there will be any affect if I add the one arm mode to the currently production environment?
    Thanks in advance.
    Jason

    Gille,
    Thanks for your quick response. I notice you have same opinion about the one arm mode in your other post, but I think in the multi-tire data center design with fw in bridge mode and csm in one arm mode with RHI, do give us a lot of flexibilty. If I use policy routing instead of source nat, can I overcome these limit you metioned?
    Do you know who csm could handle the TFTP traffic? I may have too much question, I am realy looking for your suggestion.
    Thanks
    Jason

  • HT201303 I want to change my security questions but I can't remember the current ones.  How do I get past this to change them?

    Whenever I try to purchase new apps on my Ipad, it asks me two security questions.  I don't remember them and don't even recall answering them in the first place.  I want to change them but can't get past not answering them.  How do I fix this?

    The Three Best Alternatives for Security Questions and Rescue Mail
         1.  Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
         2.  Call Apple Support in your country: Customer Service: Contact Apple support.
         3.  Rescue email address and how to reset Apple ID security questions.
    A substitute for using the security questions is to use 2-step verification:
    Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID.

  • I can sign into iTunes with one user id, but not the other

    I am trying to update all apps.  I tried to sign in under my main id, and it says it cannot connect.  No error code.  I tried under my other id and it worked great.  What would cause my main id to not work?  Any suggestions would be appreciated.  I hope it's something easy that my brain just doesn't want to see.

    Go to Users/(your account)/Library/Preferences and delete com.apple.ichat.AIM.plist and restart iChat.
    10:15 PM Friday; January 11, 2008

  • Reading two beans into one class?

    Hi,
    I am trying to deserialize a bean from a database (Oracle blob). I need help in introducing some flexibility, meaning that I can store objects of the same class but different versions, and I can cast them into just one class when I read them back.
    For example, initially I wrote an Employee object into the DB, and I had a local Employee class.
    class Employee {
         String name;
         int age;
         String getName() {...}
         void setName(String s) {...}
         int getAge() {...}
         void setAge(int i) {...}
    }Later, you might want to add a new field 'payRise' to the class, and use the new corresponding getPayRise() and setPayRise().
    In the DB, you still want to have both objects from both versions of the same class. Is there a way to still read the old object using the new Employee class? (so now we can read both versions) Currently I'm still having the InvalidClassException (serialVersionUID difference) even after manually setting the serialVersionUID . Please help.
    More code example:
       resultSet = statement.executeQuery("SELECT * FROM DB WHERE VERSION = 1")
       resultSet.next();  
       Employee e = (Employee) read (resultSet, "EMPLOYEE_OBJECT")
       // and also..
       resultSet = statement.executeQuery("SELECT * FROM DB WHERE VERSION = 2")
       resultSet.next();
       e = (Employee) read (resultSet, "EMPLOYEE_OBJECT")read() is the usual deserialization:
        public static Object read(ResultSet resultTransactionSet, String column)
                throws SQLException, IOException, ClassNotFoundException {
            byte[] buf = resultTransactionSet.getBytes(column);
            if (buf != null) {
                ObjectInputStream objectIn = new ObjectInputStream(
                        new ByteArrayInputStream(buf));
                return objectIn.readObject();
            return null;
        }Is there a way to do this?
    Thanks,
    Nico

    Serialization does not work for different versions of classes.
    You must use XMLEncoder to write the object to DB, and then later can retrieve with XMLDecoder.
    It will create an XML representation of your class depending only on your public apis, and works for different versions of the classes/objects.

  • Many Classes Vs Many Methods in one class

    Can any one tell me what are the advantages & disadvantages - and which is better?
    Having many methods (say about 15) in One class - about 10 doing various actions and not interrelated at all.
    Vs
    spliting the methods to be in their own classes, and instantiating them only when needed? Say in this case there could be about 10 classes thus created .
    Thanks
    Aarvi

    >
    I have got a chance to rewrite the existing code that
    has about 75 "unrelated" methods in one class. ( do
    not throw me out of this community now).
    When I said, these methods should be put in their own
    class based on their own functionality and can be
    loaded only when it is called for. The counter
    argument from the tech arch (!!) here is - "Why not
    have it in one class? It works now". The tech arch is
    a cobal type developer.
    Hate to repeat what was said above (given the source) but.....
    an object is not merely a collection of methods,
    So far you have referred only to the methods.
    Are there any data members?
    If no then all you have is a collection of methods. You can of course still break them up but doing so doesn't necessarily mean it will be better. But in terms of the "tech arch" the impact is minimal. That of course doesn't mean that testing isn't required.
    On the other hand if there is data then breaking them up would be based on how the data is used by the methods. As for why you would do that, the reason for the "tech arch" would be because the reason for using an OO language is so that one can have objects. And that 'class' is not an object.

  • One class type compiles into many .class files

    I have written a single large GUI file that is composed of a single class (FCTabGui class). When I run javac FCTabGui.java it generates around 190 classes with the same name (FCTabGui) but each one after the first is attached with $# at the end (ie FCTabGui$1.class, ..., FCTabGui$189.class) . I have never seen this before. Does anyone know why this is happening and how I can keep it to just one .class file instead of 190. Thanks.
    Jason

    What I meant by "standard to jar up files for a GUI"
    is that if there are lots of buttons that create
    anonymous classes then you HAVE to jar up the files
    because there is no alternative to it. One cannot
    preserve the single .class file setup with a GUI,
    unless its really small and has no action listeners.I suppose you could contort your code so that the single class not only creates all the widgets but also acts as the single action listener for every single button. This way you could avoid creating anonymous inner classes. But anyone who needs to maintain your code will grow to hate you.
    One can double click on a jar file and it will start
    running automatically, (assuming the JRE is
    installed), right?You can do that, but it's not automatic. You have to explicitly list what class has the main() method to invoke when the jar is double clicked. If you're using a wizard to create the jar, this may be easily specified. Otherwise you can do it by creating a jar manifest file with a "Main-class:" attribute.

  • HT5312 I don't have a rescue e-mail to reset my security questions, what can i do to set one or to reset the questions?

    I don't have a rescue e-mail to reset my security questions, what can i do to set one or to reset the questions?
    Every time i want to purchace something i have to answer these questions that i have forgotten !
    Please help

    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you will need to contact iTunes Support or Apple to get them reset.
    e.g. you can try contacting iTunes Support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Account Management , and then try Apple ID Account Security
    or try ringing Apple in your country and ask to talk to the Accounts Security Team : http://support.apple.com/kb/HE57
    When they've been reset you can then use the steps half-way down this page to add a rescue email address for potential future use : http://support.apple.com/kb/HT5312

  • I don't have a credit card to create a Child ID. What can I do to create one?

    I don't have a credit card to create a Child ID. What can I do to create one?

    That's not the point. A credit card with a security code is required to "prove" you are a parent in order to set up a child's account in Family Sharing. You can change your payment method right back, Apple says, to a debit card THAT ALSO HAS A SECURITY CODE. If you are a parent without a credit card you can't access Family Sharing for all family members. Apple doesn't care if you're in debt and don't have a card or have freed yourself from the horrible credit card system. It's crap.

  • Can anyone answer why in logic pro X I keep getting a window popping up that says Directory not found, result code= -120, followed by another window saying, Fade update failed, (error -120)?

    Can anyone answer, why in Logic Pro X I keep on getting a window popping up saying, Directory not found, result code = -120. Followed by another window saying, Fade update failed, (error -120)?
    I am running the latest version 10.0.5 through a Macbook Pro that has just been upgraded to 16GB Ram and a 960GB SSD which has made it as fast as ****. I upgraded because I was experiencing problems before and it was suggested that I didn't have enough Ram?
    I am using a Focusrite scarlett 2i4 and an Alesis Q61 midi controller. Weirdly, just trying to put a bass line down on a track using the Alesis, the bass sound goes out of tune with the track during recording only. This is very frustrating! I surely can't be the only one experiencing this?
    Many thanks
    Rob.

    Hi
    Time lost could be a problem, but.....
    Sadly, I don't think that there are any Apple docs relating to networked storgae issues with Logic. Other than a 'school' or 'business' setup, NAS/OD/AD setups are not usual circumstances for audio.
    If the issue is one of data backup & security, it may be enough to automatically backup the students local work folders to the NAS.
    If the issue is one of the Users being able to work from any Mac and pick up their files from the server, you are not likely to resolve this problem, without copying the files to the Local Mac.
    CCT

Maybe you are looking for

  • Settlement of PM order over Internal order

    In order to control revenue budget from being over run we have developed Internal orders in controlling with the combination of Cost Centre & GL Code. The internal order are statistical in nature. We are facing the following problem: 1. In PM order (

  • Report showing in diff. currencies

    Hi guys, Problem: For a particular GL account the report shows values in EUR where in the parameters to retrieve data is 30(group currency). Checked the ODS for that particular gl account & its showing in USD. I checked the transformation which loads

  • Can't Use "Mail" Application

    I just got a MacBook so am just starting to get my head around things. I have tried to use and set up Mail but I put in my yahoo address and password - it whirrs for a bit and then says basically yahoo may require some money for this - is this correc

  • 3rd party remittance issue

    Hi, We accidentally deleted a 3PR posting document (which was in created status, not yet posted). The status of the posting in remittance reconcilliation report for the corresponding evaluation run was 'being posted'. Now when we are trying to run cr

  • Error in processing inbound Idocs

    Hi, i have a file to idoc scenario. the message gets picked at the sender and in SXMB_MONI the message has success flag but the outbound status tab in SXMB_MONI has red flag. i cheked the transactions sm58, we05 in R3 systems, their are no messages f