You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by th...@fortisbank.com on 2005/06/30 10:59:36 UTC

Log4J lost java context

Hi,

	I have a really strange problem and hope you'll be able to help me. I have a class named OpenHR (compiled with JDK1.3) using Log4J v1.2.8.
	My problem is that everything's going right and, suddenly, Log4J lost the context of the caller :

2005-06-29 11:34:50,917 (OpenHR.java:871) DEBUG - getFromSAP--> Execute the function in SAP
2005-06-29 11:34:50,980 (?:?) DEBUG - getFromSAP--> String from table DATA: blablabla

	Problem : (OpenHR.java:871) ==> (?:?)

	Is it a known behaviour and, if yes, do you know why it occurs suddenly ? 
	If not, could it be linked to the jvm memory management (stack management i guess) ? 
	Is there any limitation of the string length of the message sent to log4j ?
	
	Any help is welcome.

	Regards,
	Thomas de Bodt.
	


= = = = = = = = = = = = = = = = = = = = = = = = =
Fortis Bank disclaimer :
http://www.fortisbank.be/legal/disclaimer.htm

Fortis Bank privacy policy :
http://www.fortisbank.be/legal/privacy_policy.htm
= = = = = = = = = = = = = = = = = = = = = = = = =




---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: Log4J lost java context

Posted by Ceki Gülcü <li...@qos.ch>.
Was OpenHR compiled without the debug flag (-g). Looking at your example, 
it seems that certain logs from OpenHR cotains file and line information, 
while others don't. In that case, maybe the JIT compiler is to blame.

More below.

At 10:59 AM 6/30/2005, thomas.debodt@fortisbank.com wrote:
>Hi,
>
>         I have a really strange problem and hope you'll be able to help 
> me. I have a class named OpenHR (compiled with JDK1.3) using Log4J v1.2.8.
>         My problem is that everything's going right and, suddenly, Log4J 
> lost the context of the caller :
>
>2005-06-29 11:34:50,917 (OpenHR.java:871) DEBUG - getFromSAP--> Execute 
>the function in SAP
>2005-06-29 11:34:50,980 (?:?) DEBUG - getFromSAP--> String from table 
>DATA: blablabla
>
>         Problem : (OpenHR.java:871) ==> (?:?)
>
>         Is it a known behaviour and, if yes, do you know why it occurs 
> suddenly ?

Could you be more precise about what you mean by suddently?

>         If not, could it be linked to the jvm memory management (stack 
> management i guess) ?

Yes, blame it on the JIT. BTW, what is your runtime environment?

>
>         Is there any limitation of the string length of the message sent 
> to log4j ?

No.

>         Any help is welcome.
>
>         Regards,
>         Thomas de Bodt.
>

-- 
Ceki Gülcü

   The complete log4j manual: http://www.qos.ch/log4j/



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: Log4J lost java context

Posted by Javier Gonzalez <ja...@gmail.com>.
Maybe that log statement comes from a class that you don't have the
source of? Like a call to a method from a jar library?

On 6/30/05, thomas.debodt@fortisbank.com <th...@fortisbank.com> wrote:
> Hi,
> 
>         I have a really strange problem and hope you'll be able to help me. I have a class named OpenHR (compiled with JDK1.3) using Log4J v1.2.8.
>         My problem is that everything's going right and, suddenly, Log4J lost the context of the caller :
> 
> 2005-06-29 11:34:50,917 (OpenHR.java:871) DEBUG - getFromSAP--> Execute the function in SAP
> 2005-06-29 11:34:50,980 (?:?) DEBUG - getFromSAP--> String from table DATA: blablabla
> 
>         Problem : (OpenHR.java:871) ==> (?:?)
> 
>         Is it a known behaviour and, if yes, do you know why it occurs suddenly ?
>         If not, could it be linked to the jvm memory management (stack management i guess) ?
>         Is there any limitation of the string length of the message sent to log4j ?
> 
>         Any help is welcome.
> 
>         Regards,
>         Thomas de Bodt.
> 
> 
> 
> = = = = = = = = = = = = = = = = = = = = = = = = =
> Fortis Bank disclaimer :
> http://www.fortisbank.be/legal/disclaimer.htm
> 
> Fortis Bank privacy policy :
> http://www.fortisbank.be/legal/privacy_policy.htm
> = = = = = = = = = = = = = = = = = = = = = = = = =
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
> 
> 


-- 
Javier Gonzalez Nicolini

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org