I also had similar ? using different JVMs. For example, the oracle JVM,
ojvm, does not format the stacktrace in a standard way (and does not even
put the line number!). Log4j is therefore not able to parse it. 
Change JVM or try patching ThrowableInformation or LocationInfo (don't
remember which one does the job).


//Benoit
(very thankful to Ceki and the others who worked on this wonderful product.
What would be Java without Ant,JUnit and Log4J ??)

-----Original Message-----
From: donald larmee [mailto:dlarmee@;utopiansoft.com]
Sent: 23 October 2002 16:55
To: Log4J Users List
Subject: Re: ?'s returned from call


Try compiling your code w/ the -g switch to include debugging 
information.  Many JustInTime compilers lose locality information during 
runtime optimizations.  However, if you are using a 3rd party jar, you may 
be out of luck.  The ''?' results because the StackTrace being parsed to 
get the locality information is encountering a 'compiled code' instead of a 
valid line number.

Hope it helps.

-don

At 02:32 PM 10/23/2002 +0100, FLYNN, Peter -Syntegra UK wrote:
>We've recently ran some tests with Log4J and are experiencing some strange
>behaviour from some of the calls.
>
>When I run it on my computer it is fine, but when my colleague runs the
same
>test, we get ? for line number
>and method name from locationInformation.
>
>Would it do this if the symbol table in the class being logged was missing?
>Or could it be something else?
>
>Regards,
>Peter
>
>
>********************************************************************
>
>This email may contain information which is privileged or confidential. If 
>you are not the intended recipient of this email, please notify the sender 
>immediately and delete it without reading, copying, storing, forwarding or 
>disclosing its contents to any other person
>Thank you
>
>Check us out at http://www.syntegra.com
>
>********************************************************************


+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
   donald h. larmee                               [EMAIL PROTECTED]
 
804.301.UTOP
                          utopian software concepts, inc.
                                  www.utopiansoft.com
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+


--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@;jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@;jakarta.apache.org>

Reply via email to