Closed GoogleCodeExporter closed 8 years ago
You have 2 problems in your logs.
The first one is NumberFormatException: For input string: "true" with the
command
line java -jar javamelody-1.11.1.war --ajp13Port -1 --httpPort 9094
It is a problem for the Winstone servlet container which is included in the
javamelody "war". And it is because you forgot "=" for the parameters. There is
even
an issue for this :
http://sourceforge.net/tracker/index.php?func=detail&aid=1821821&group_id=98922&
atid=622497
The second problem is StringIndexOutOfBoundsException: String index out of
range: -36
at java.lang.String.substring(String.java:1937)
at
winstone.WinstoneResponseWriter.write(WinstoneResponseWriter.java:54)
It occurs only with Winstone (and not Tomcat) and I think only when you have
not yet
defined an application in the centralized collect server.
I think that it is a Winstone bug because WinstoneResponseWriter at line 54 (
http://winstone.cvs.sourceforge.net/viewvc/winstone/winstone/src/java/winstone/W
instoneResponseWriter.java?revision=1.3&view=markup
) defines a write(string, offset, length) method and calls
String.substring(beginIndex, endIndex) with offset and length.
To workaround this Winstone bug, you can deploy the same war in Tomcat, or you
can
add in your temporary directory an application.properties file with has the
following
content: "myapp=http\://host\:port/context" (with the host, port and context of
your
webapp to monitor).
I will try to include a workaround in the next release of javamelody.
Do you have the time to write an issue for Winstone :
http://sourceforge.net/tracker/?group_id=98922&atid=622497 ?
bye, Emeric
Original comment by evernat@free.fr
on 5 Feb 2010 at 6:58
Original comment by evernat@free.fr
on 5 Feb 2010 at 6:59
I need to correct myself:
To workaround this Winstone bug, you can deploy the same war in Tomcat, or you
can
add in *the subdirectory javamelody* of your temporary directory an
*applications.properties* file with has the following
content: "myapp=http\://host\:port/context"
For example, in the file "/tmp/javamelody/applications.properties"
Original comment by evernat@free.fr
on 5 Feb 2010 at 7:06
thanks works fine in tomcat.
I have an other issue. I will open an other issue.
Original comment by oliver.lamy@gmail.com
on 5 Feb 2010 at 9:04
A workaround for the centralized collect server in Winstone (standalone) is
ready for
next release (1.12). It should fix the StringIndexOutOfBoundsException.
Original comment by evernat@free.fr
on 6 Feb 2010 at 11:07
Original issue reported on code.google.com by
oliver.lamy@gmail.com
on 5 Feb 2010 at 9:06