Cannot Access Sample Database After Switching Network Types

Problem: After switching network types, Unwired WorkSpace is unable to connect to the predefined "My Sample Database" connection profile.

The "My Sample Database" connection profile, by default, uses 'localhost' as the hostname. But if you change it to the real hostname, then when you switch network types, the host may not be recognized. For example, moving a laptop from an office ethernet to an WiFi connection outside the company's firewall may prevent access to the database even if it is on the same machine as Unwired WorkSpace.

Solution: In Unwired WorkSpace, modify the connection profile host property to indicate localhost as the Host. To verify the connection is working, click Test Connection to ping the database. You may also have to redeploy any projects that access an Unwired Server SQL Anywhere database connection pool and reestablish the Unwired Server connection to the database by modifying the same property from hostname to localhost.

Related concepts
AutoCommit Option for JDBC MBOs Using an ASE Data Source
Troubleshoot Code Generation
Related tasks
Unwired WorkSpace Crashes When Previewing or Test Executing Large Amounts of Data
Cannot Start Unwired WorkSpace After Modifying Plugins
Data Source Connection Fails After Installing to a New Directory
Attribute Length Set Incorrectly for Operation and Load Arguments
Related reference
JDBC Connection Errors
Mobile Business Object Errors
Preview Errors for a Web Service Mobile Business Object with date/time Types
Deployment and Code Generation Errors For MBOs That Use Large Datatypes
Deploying to Unwired Server Fails
Deploying to Unwired Server in a Cluster Fails
Input Parameters Fail to Generate for Complex Data Sources