dev@glassfish.java.net

"Java.lang.StringIndexOutOfBoundsException" is generated when not ending with % in the specification of the key word of the HTTP access log format.

From: Lv Songping <lvsongping_at_cn.fujitsu.com>
Date: Fri, 30 Mar 2012 09:07:40 +0800

Hi all:

I found a bug when I start cluster after not ending with % in the
specification of the key word of the HTTP access log format.

Reappear step
1. Create a cluster and instance related to this cluster

2. Open cluster config related to the created cluster

3. Access the Http-service and changed the format like " %client.name%
%datetime %status% " where the datetime is not end with % (picture1.bmp).

4. start the related cluster but the cluster can't be start. Then check the
serverlog but there's no obvious information about this
phenomenon(picture2.bmp).

I have revised the issue in my patch file
(DefaultAccessLogFormatterImpl.patch).

See more in my attachments.

I have opened up http://java.net/jira/browse/GLASSFISH-18570 to trac this.

Thanks

Jeremy Lv




picture2.JPG
(image/jpeg attachment: picture2.JPG)

picture1.JPG
(image/jpeg attachment: picture1.JPG)