javamelody content encoding error

435 views
Skip to first unread message

Daniël Ettema

unread,
Feb 23, 2011, 10:38:00 AM2/23/11
to javamelody
Dear all,

I have tried installing java melody by following the instructions.
I copy pasted the Dependency part into my pom.xml file and created a
new war file. Deployed it to my tomcat 7 (also tried 6) and went to
the monitoring url of my webapp: http://localhost:8080/mywebapp/monitoring

it then promptly shows the message:
<pre>
Content Encoding Error

The page you are trying to view cannot be shown because it uses an
invalid or unsupported form of compression.
* Please contact the website owners to inform them of this
problem.
</pre>

I am really starting to dislike that last message... since I am that
person and I don't know what to do anymore. ;)

I installed httpFox to see what was happening and I could filter out
the message: (NS_ERROR_DOCUMENT_NOT_CACHED)

Maybe any of you have any experience with this?

With kind regards,
Daniel Ettema

Emeric Vernat

unread,
Feb 24, 2011, 6:22:27 PM2/24/11
to javam...@googlegroups.com
Hi Daniel,

Perhaps you have a servlet filter in your webapp changing the content or
changing the response headers or perhaps something similar in apache web
server?

Anyway "The page you are trying to view cannot be shown because it uses
an invalid or unsupported form of compression" gives some responses in
Google.
So first, I would suggest to clear you browser cache and to use the ip
address of your server and not its name in dns.

bye, Emeric


Le 23/02/2011 16:38, Dani�l Ettema a �crit :

Daniël Ettema

unread,
Feb 27, 2011, 7:44:28 PM2/27/11
to javamelody
HI Emeric,

thank you for your response. I have tried some options, but I still
can't make it work. I guess it has to many filters already and would
have to start with a bare webapp to see if it works... I am going to
puzzle with it a little more and give feedback in this post.
We use appfuse to generate the basics of the application. The lead dev
did already do some work on the general app layout and such, so I have
to ask him to see if he knows any solution.

If you have any tips from your side, they are more then welcome.

Thanks in advance,

Daniel

Darren Hartford

unread,
Feb 28, 2011, 7:30:11 AM2/28/11
to javam...@googlegroups.com
One basic thing that has helped me in the past if this is related to static content is, if you use Eclipse, go to the Project Properties->Resource->"Text File Encoding" option, change that (probably from cp#### for windows) to UTF-8 and see if that comes up with anything unusual. A lot of the code I reviewed in javamelody (rightly) assumes UTF-8, so if you have content that is not UTF-8 that may be the issue.

Some gotcha's I've run into are related to Windows "magic quotes" for single quote/apostrophe and double quotes. Other times copying content from MS Word into editor or a web textbox will put additional characters that are not recognized.

HTH,
-Darren

--- On Sun, 2/27/11, Daniël Ettema <defiant.c...@gmail.com> wrote:

khoapha...@gmail.com

unread,
Oct 9, 2012, 12:13:52 AM10/9/12
to javam...@googlegroups.com, defiant.c...@gmail.com
Hi Daniel,

I have the same problem like you.
I fixed it by putting the java melody filter before another filter. to make javamelody filter first.

Khoa Pham
Reply all
Reply to author
Forward
0 new messages