Results 1 to 3 of 3
  1. #1
    Cookie2306 is offline Member
    Join Date
    May 2016
    Posts
    1
    Rep Power
    0

    Lightbulb Why do I get Null values for getSourceMethodName in java 6 loggers

    Why do I get Null values for getSourceMethodName in java 6 log using java.util.logging?
    I am trying to print logs using java.util.logging. Every time i try to run the java file containing the loggers, i get the out put on my local but getSourceClassName() and getSourceMethodName() returns null the java file is deployed on server. I am using Java 6.

    I am stuck with my development, any help is appreciated.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,003
    Rep Power
    33

    Default Re: Why do I get Null values for getSourceMethodName in java 6 loggers

    Can you post code that can be compiled and executed and shows the problem?
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,995
    Rep Power
    9

    Default Re: Why do I get Null values for getSourceMethodName in java 6 loggers

    My guess is that you didn't compile/build with debug information on. Add -g to javac(.exe) or debug="on" to the javac-Ant task.
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

Similar Threads

  1. Very Compact Test For Any of 4 Values Being Null.
    By augustas656 in forum New To Java
    Replies: 1
    Last Post: 04-08-2014, 11:25 AM
  2. Array null values
    By blug in forum New To Java
    Replies: 2
    Last Post: 03-20-2011, 06:48 AM
  3. null values
    By jabo in forum New To Java
    Replies: 3
    Last Post: 03-31-2010, 03:44 PM
  4. How to get null values stored in array
    By Ms.Ranjan in forum New To Java
    Replies: 4
    Last Post: 05-21-2009, 10:29 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •