Bug 546484 - Long log4j messages disappear from console
Summary: Long log4j messages disappear from console
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Runtime (show other bugs)
Version: 4.8   Edit
Hardware: PC Windows 10
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: platform-runtime-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: core
Depends on:
Blocks:
 
Reported: 2019-04-16 11:17 EDT by Ralph Cook CLA
Modified: 2019-04-16 11:17 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Cook CLA 2019-04-16 11:17:45 EDT
Photon on Windows 10; Spring Batch application, but bug shows up running a method of the code under JUnit. The code generates JSON strings, and there are log4j calls writing JSON strings to the eclipse console. The pattern for log4j includes a (filename:lineNumber) that is formatted in blue text with underline, and clicking on that link displays the corresponding source line in an editor. 

The bug is that the long JSON string sometimes disappears from the console as soon as it is displayed; it can be redisplayed by hovering over a specific link field on a different line than the message that has disappeared. The 'prefix' part of the line does not disappear, only the "message" portion of the display from the application, so if the desired display is:

2019-04-16 10:36:35,515 INFO  [main] impl.MessageBundlerServiceImpl (MessageBundlerServiceImpl.java:133) - { longJsonMessage: ...

when the bug operates, it instead produces:

2019-04-16 10:36:35,515 INFO  [main] impl.MessageBundlerServiceImpl (MessageBundlerServiceImpl.java:133

somehow the message disappears starting from the right paren at the end of the 'link'

If I use control-A control-C to copy the console text and paste it into a separate text editor, the message shows up in the pasted text.

If I limit that JSON message to 5420 characters, it appears in the console; if I attempt to display the first 5425 characters of it, it illustrates this bug by disappearing.

There are other long JSON messages that disappear in my output; I have not attempted to limit all of them.

This is consistent -- under my current setup, it behaves this way every time.


-- Configuration Details --
Product: Eclipse IDE 4.8.0.20180619-1200 (org.eclipse.epp.package.jee.product)Installed Features:
 org.eclipse.platform 4.8.0.v20180611-0656