File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "" CharConversionException: isHexDigit" - Trojan Attempt?" Watch "" CharConversionException: isHexDigit" - Trojan Attempt?" New topic

" CharConversionException: isHexDigit" - Trojan Attempt?

Robert Paris
Ranch Hand

Joined: Jul 28, 2002
Posts: 585
I'm getting the error (see below) on Tomcat (it's not logged in the log file for some reason, but was reported in the command window), and I'm not sure what it's from. I fear it may be someone attempting to load a trojan on the webserver (similar to how code red worked I think). Does anyone know what it could be?

Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

I can't speak to what is causing the error aside from "malformed request", which viruses and trojans frequently make.

As for why you are getting it on your console, I tracked down the following in the code:

in method:

which is part of your stack trace, we find:

So that's where the stacktrace comes from (probably?); this bad-mannered code. The line numbers don't really match up, but I'm assuming I'm looking at some version of the code that is not in the 5.0.x build. Plus, it's in the Attic, with notations that the code has been moved to the connectors source. But obviously the build of Tomcat (and the connector you're using) still uses this?

You *ought* to be able to match up this exception with an access request, through your Apache web server logs, or if you're not using Apache, then through tomcat's access log (unless you've shut it off).
I agree. Here's the link:
subject: " CharConversionException: isHexDigit" - Trojan Attempt?
It's not a secret anymore!