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 211231 - StringIndexOutOfBoundsException: String index out of range: -1
Summary: StringIndexOutOfBoundsException: String index out of range: -1
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-16 08:51 UTC by Exceptions Reporter
Modified: 2012-05-18 18:55 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 178658


Attachments
stacktrace (5.88 KB, text/plain)
2012-04-16 08:51 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2012-04-16 08:51:00 UTC
This issue was reported manually by mmirilovic.
It already has 20 duplicates 


Build: NetBeans IDE 7.1 (Build 201112071828)
VM: Java HotSpot(TM) Client VM, 22.0-b10, Java(TM) SE Runtime Environment, 1.7.0_02-b13
OS: Windows XP

User Comments:
GUEST: Create a JDBC resources

GUEST: Click the New File  button in the IDE's toolbar.
Select the GlassFish category, then select JDBC Resource and click Next.

GUEST: Open the New File wizard. Select the GlassFish server category, then select JDBC Resource and click Next.

GUEST: I've tried to create New JDBC Resource

GUEST: ???????? ?????? ??????? JDBC. ? ????? ?????? ?? ?????????.

deonis: I was working at IFPWAFCAD. And I try to select Resousce JDBC in GlassFish.

GUEST: ?? ??????? ??????? ?????? Glassfish. ?????? ??? ??????????? ????????? ?????????

GUEST: Creating new JDBC source for GlassFish

GUEST: ??????? ?????? "??????? ????" (?????? "??????? ????") ?? ??????? ?????? ???????????? ? ????? IDE ??? ?????? ??????? ???????? ?????. ???????? ????????? ??????? GlassFish, ????? ???????? "?????? JDBC" ? ??????? ?????? "?????".

GUEST: http://netbeans.org/kb/docs/web/mysql-webapp_ru.html#setUpJDBC

????????? ????????? ?????? JDBC ? ???? ???????????

GUEST: ????? ?????? "??????? ????" ?? ??????? ?????? ???????????? ? ????? IDE ??? ?????? ??????? ???????? ?????. ??????? ????????? ??????? GlassFish, ????? ??????? "?????? JDBC" ? ????? ?????? "?????".




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
   at java.lang.String.substring(String.java:1958)
   at org.netbeans.modules.j2ee.sun.ide.sunresources.wizards.Util.getCorrectedLabel(Util.java:99)
   at org.netbeans.modules.j2ee.sun.ide.sunresources.wizards.CommonAttributePanel.isValid(CommonAttributePanel.java:188)
   at org.openide.WizardDescriptor.updateStateOpen(WizardDescriptor.java:900)
   at org.openide.WizardDescriptor.updateState(WizardDescriptor.java:844)
   at org.openide.loaders.TemplateWizard.updateState(TemplateWizard.java:760)
Comment 1 Exceptions Reporter 2012-04-16 08:51:05 UTC
Created attachment 118310 [details]
stacktrace
Comment 2 Vince Kraemer 2012-05-17 17:24:38 UTC
this is an easy fix. will commit soon.
Comment 3 Quality Engineering 2012-05-18 09:51:02 UTC
Integrated into 'main-golden', will be available in build *201205180400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/dca10e214863
User: vince kraemer <vkraemer@netbeans.org>
Log: #211231 : some locales have translation without the ampersand in the label