Web Builder: Build Failure Error CS0117 or "Cannot Find Symbol"
Technical Note 10076
Last Reviewed 20-Apr-2007
Applies To
Verastream Host Integrator Development Kit version 6.5 only
Summary
With certain model table procedure names, attempts to build .NET or Java web applications may fail. This technical note describes the errors and explains how to resolve this problem.
Symptoms
The build failure symptoms differ, depending on whether you are building a .NET or Java web application.
.NET Web Application
When building a .NET web application, Web Builder (Build Project dialog or build log) may display error messages similar to the following:
Getting Model Metadata
Generating Web Application
Precompiling ASP.NET Application
BUILD FAILED
Reason: The following error occurred while executing this line:
C:\Program Files\VHI\projects\mymodel\build.xml:21: The following error occurred while executing this line:
C:\Program Files\VHI\projects\mymodel\build.xml:46: The following error occurred while executing this line:
C:\Program Files\VHI\projects\mymodel\build.xml:97: The following error occurred while executing this line:
C:\Program Files\VHI\projects\mymodel\build.xml:102: Utility to precompile an ASP.NET application
Copyright (C) Microsoft Corporation. All rights reserved.
c:\Inetpub\wwwroot\mymodel\procedure_Table_1_getAccount.aspx.cs(59): error CS0117: 'mymodel.mymodelSession' does not contain a definition for 'getAccount'
Java Web Application
When building a Java application, Web Builder (Build Project dialog) may display error messages similar to the following:
Getting Model Metadata
Generating Java Beans
Compiling Java Beans
Building JAR File
Generating Web Application
Configuring Web Application
Building WAR File
Deploying Web Application
Precompiling Dynamic Web Pages
BUILD FAILED
Reason: The following error occurred while executing this line:
C:\Program Files\VHI\projects\mymodel\build.xml:20: The following error occurred while executing this line:
C:\Program Files\VHI\projects\mymodel\build.xml:57: The following error occurred while executing this line:
C:\Program Files\VHI\projects\mymodel\build.xml:88: The following error occurred while executing this line:
C:\Program Files\VHI\projects\mymodel\build.xml:107: The following error occurred while executing this line:
C:\Program Files\VHI\projects\mymodel\build.xml:148: The following error occurred while executing this line:
C:\Program Files\VHI\projects\mymodel\build.xml:214: The following error occurred while executing this line:
C:\Program Files\VHI\projects\mymodel\build.xml:261: The following error occurred while executing this line:
C:\Program Files\VHI\projects\mymodel\build.xml:278: The following error occurred while executing this line:
C:\Program Files\VHI\projects\mymodel\build.xml:285: The following error occurred while executing this line:
C:\Program Files\VHI\projects\mymodel\build.xml:291: The following error occurred while executing this line:
C:\Program Files\VHI\lib\webbuilder\common\servletcontainer.xml:122: Java returned: 1
The build log displays "cannot find symbol" errors, where the symbol begins with a table procedure name.
Solution
This issue is expected to be fixed in a future hotfix and major product release. As a workaround, rename your model table procedure(s) to begin with an uppercase character (for example, change "getAccount" to "GetAccount").
To rename a model table procedure:
- Open your model in Design Tool.
- Click Model > Tables.
- In the Tables dialog (left pane), open the table and select the procedure.
- In the right pane, change the value in the Name edit field and click Apply or OK.
- Save and re-deploy your model.
- In Web Builder, re-build your web application.
Related Technical Notes
| 10039 |
Verastream Host Integrator Web Builder Port Conflict |
| 10056 |
Web Builder VB.NET Projects: Build Failure on .NET Framework Version 2.0 |
| 10075 |
Verastream Host Integrator 6.5 Known Issues |
| 40999 |
Verastream Host Integrator Technical Notes |