truncated Application Call Stack format in log

5 views
Skip to first unread message

bwallis42

unread,
Apr 29, 2021, 1:37:29 AM4/29/21
to orb...@googlegroups.com
I'm wondering if there is a way to change the format of error logging so that
it does not re-arrange the java stack trace into a format that I can't paste
into intellij or eclipse and also so that it doesn't format it in fixed
width with truncation of useful information.

e.g.


In the case of the above error, the interesting thing is the host in the url
as we have a problem with it using the wrong one sometimes. That part of the
URL has been truncated out, all I see is "43/orbeon/fr/...". Not very useful
for quickly finding the problem.

I would also sometimes like to take the stack trace and paste it into
eclipse or intellij where I have the orbeon source available and navigate
around the code using the stack trace. This works for normal java stack
traces but not with the one in the orbeon error log messages.

So, can I easily change the format of error logging into something a bit
more java like?

thanks


--
Sent from: http://discuss.orbeon.com/

Brian Wallis

unread,
Apr 29, 2021, 1:42:08 AM4/29/21
to Orbeon Forms
and yet again the mailing list lost the example. Here is the bit that goes after the e.g.
+----------------------------------------------------------------------------------------------------------------------+
|An Error has Occurred                                                                                                 |
|----------------------------------------------------------------------------------------------------------------------|
|Connection timed out (Connection timed out)                                                                           |
|----------------------------------------------------------------------------------------------------------------------|
|Application Call Stack                                                                                                |
|----------------------------------------------------------------------------------------------------------------------|
|oxf:/apps/fr/detail/read-form.xpl                                                 |reading processor output      |  91|
|······················································································································|
|element=<p:output name="data" id="document"/>                                                                         |
|name   =data                                                                                                          |
|id     =document                                                                                                      |
|----------------------------------------------------------------------------------------------------------------------|
|43/orbeon/fr/service/persistence/crud/orbeon/builder/form/form.xhtml?document=56:8|                              |    |
|oxf:/apps/fr/detail/read-form.xpl                                                 |executing processor           |  96|
|······················································································································|
|element=<p:processor name="oxf:null-serializer">[...]</p:processor>                                                   |
|name   ={http://www.orbeon.com/oxf/processors}null-serializer                                                         |
|----------------------------------------------------------------------------------------------------------------------|
|----------------------------------------------------------------------------------------------------------------------|
|Exception: java.net.ConnectException                                                                                  |
|----------------------------------------------------------------------------------------------------------------------|

Alessandro Vernet

unread,
May 4, 2021, 1:34:32 PM5/4/21
to orb...@googlegroups.com
Hi Brian,

Yes, this makes sense; I created RFE #4883, and added a +1 from you.
https://github.com/orbeon/orbeon-forms/issues/4883

-Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply all
Reply to author
Forward
0 new messages