This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 175635 - String index out of range: 0
Summary: String index out of range: 0
Status: RESOLVED INCOMPLETE
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Webserver (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Vince Kraemer
URL: http://ka-und-we.de
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-29 11:19 UTC by magsam
Modified: 2009-11-11 00:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description magsam 2009-10-29 11:19:52 UTC
When  i run my vwp aplication in netbeans 6.8 Beta with the webserver glassfish-v3-b68  I get this bug 

Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
        at java.lang.String.charAt(String.java:687)

This is the code 

 public char charAt(int index) {
        if ((index < 0) || (index >= count)) {
            throw new StringIndexOutOfBoundsException(index);
        }
        return value[index + offset];
    }

The value of index is 29 and the value of count the same  = 29 and the contence of "this" is the actual date and time in  
the length 29    "Thu, 29 Oct 2009 10:03:00 GMT"

Hope you will soon fix the bug

Peter
Comment 1 Vince Kraemer 2009-11-11 00:00:33 UTC
please reopen with the complete stack trace, if this is still a problem.

A sample vwp project that demonstrates the problem would be a good thing, too.