Attachmate Worldwide  |   Contact Us  |   NetIQ.com
Home » Support » Solution Library

Technical Notes

Web Builder String Index Error on .NET Framework 3.5
Technical Note 10077
Last Reviewed 11-Sep-2008
Applies To
Verastream Host Integrator Development Kit version 6.5
Summary

When using Verastream Host Integrator (VHI) Web Builder to generate a project, you may see an error "String index out of range: -4" or other problems. This technical note describes the symptoms and solutions.

Symptoms

This issue is indicated by the following symptoms in Web Builder:

  • When you click Options > Web Builder Settings, the settings dialog box does not display.
  • When building a project, you see particular error messages. The messages are detailed below.

Build Errors

Depending on the type of project you are building, Web Builder may display an error message similar to one of the following. The message may be displayed in a dialog or log file.

.NET Web Application or Web Service

String index out of range: -4

.NET Class Library

compile:
[dotnet_compile] Compiling C# source
Build failed: Apr 8, 2008 4:27:32 PM
Reason: C:\Program Files\VHI\projects\test\build.xml:20: The following error occurred while executing this line:
C:\Program Files\VHI\projects\test\build.xml:58: The following error occurred while executing this line:
C:\Program Files\VHI\projects\test\build.xml:90: The following error occurred while executing this line:
C:\Program Files\VHI\projects\test\build.xml:103: java.io.IOException: CreateProcess: ${cscompiler} /nologo /target:library /reference:"C:\Program Files\VHI\lib\dotnet\WRQ.Verastream.HostIntegrator.dll",System.dll,System.Data.dll,System.XML.dll /out:"C:\Program Files\VHI\projects\test\classlibrary\bin\test.dll" "C:\Program Files\VHI\projects\test\classlibrary\src\*.cs" error=2

Java Project

java.lang.StringIndexOutOfBoundsException: String index out of range: -4
at java.lang.String.substring(Unknown Source)
at com.wrq.vhi.wb.properties.FrameworkComparator.getMinorVersion(MSToolsProperties.java:318)
at com.wrq.vhi.wb.properties.FrameworkComparator.compare(MSToolsProperties.java:278)
at java.util.Arrays.mergeSort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at com.wrq.vhi.wb.properties.MSToolsProperties.getLatestNETFrameworkDir(MSToolsProperties.java:225)
at com.wrq.vhi.wb.properties.MSToolsProperties.getFactoryDefaults(MSToolsProperties.java:82)
at com.wrq.vhi.wb.properties.PropertiesBase.loadFromFactoryDefaults(PropertiesBase.java:94)
at com.wrq.vhi.wb.properties.PropertiesBase.loadFromDefaults(PropertiesBase.java:82)
at com.wrq.vhi.wb_ui.MainWindow.<init>(MainWindow.java:244)
at com.wrq.vhi.wb_ui.MainWindow.main(MainWindow.java:316)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.wrq.vhi.wb_ui.SplashWindow.main(SplashWindow.java:29)

Explanation

This problem is known to occur on systems that have Microsoft .NET Framework version 3.5 installed. Microsoft .NET Framework 3.5 includes new features that Web Builder version 6.5 does not support.

Solution

To resolve this issue, upgrade to Verastream Host Integrator version 6.6, which works with .NET Framework version 3.5 (and Microsoft Visual Studio 2008). For more information on version 6.6 features and fixes, and how to obtain this new release, see Technical Note 10080.

This problem does not occur when only .NET Framework versions 2.0 and/or 3.0 are installed, so if you cannot upgrade to version 6.6, install Host Integrator Development Kit 6.5 on a system without .NET Framework 3.5.

Related Technical Notes
10080 New Features in Verastream Host Integrator 6.6
40999 Verastream Host Integrator Technical Notes

Did this technical note answer your question?

Yes    No    Somewhat     Not sure yet

Additional comments about this tech note:

Need further help? For technical support, please contact Support.