Technical Notes |
|
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.
This issue is indicated by the following symptoms in Web Builder:
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.
String index out of range: -4compile: [dotnet_compile] Compiling C# sourceBuild failed: Apr 8, 2008 4:27:32 PMReason: 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=2java.lang.StringIndexOutOfBoundsException: String index out of range: -4at 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)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.
This problem does not occur when only .NET Framework versions 2.0 and/or 3.0 are installed. It is suggested that Host Integrator Development Kit 6.5 be installed on a system without .NET Framework 3.5.
Attachmate plans to fully support .NET Framework version 3.5 (and Microsoft Visual Studio 2008) in a future product release. If you must use .NET 3.5 and/or Visual Studio 2008 with Host Integrator 6.5, request a hotfix by contacting Technical Support (http://support.attachmate.com/contact/).