Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guice Exceptions (with line breaks) don't show up correctly in Console #10

Closed
hartmut27 opened this issue Feb 18, 2015 · 2 comments
Closed
Labels

Comments

@hartmut27
Copy link

When I start the jetty web appliaction and as soon as some Guice errors occur, they don't show a correct line break in the eclipse console. This means, the whole stack trace is put in one single line.

Something is special to Guice error message line breaks. On the other side, this problem does only occur if I run it with eclipse-jetty-plugin.

Instead of a line break, a <|<| token is shown. I guess this corresponds to CRLF somehow?

Example:
com.google.inject.ProvisionException: Unable to provision, see the following errors:**<|<|**1) Error injecting constructor, javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, ...

@derkoe derkoe added the invalid label Feb 19, 2015
@derkoe
Copy link
Contributor

derkoe commented Feb 19, 2015

I just tried that out and yes the Guice errors are messed in Jetty console.

But then I deployed the app directly to Jetty (without Eclipse and plugin) and the format is still the same. Seems that Jetty's logger messes with the format.

I have searched the Jetty bug tracker and there it is: Bug 414763 - StdErrLog makes multiline messages unreadable

@derkoe derkoe closed this as completed Feb 19, 2015
@hartmut27
Copy link
Author

Thank You very much. Indeed, jetty itself does the escaping of logged lines by default. Great You found out!

Then, adding e.g. VM arguments

-Dorg.eclipse.jetty.util.log.stderr.ESCAPE=false

to the Jetty run configuration solves the problem entirely. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants