Welcome to VisualAge Version 6.0
.
Please refer to the VisualAge Smalltalk web page for technical information, including tips, and product updates made after this product release. The web page also includes information about Education, Services, and Support as well as hints and tips for using VisualAge Smalltalk. You can link to the ftp site for product updates from the Support section. You can get to the VisualAge Smalltalk web pages by going to the IBM web page and searching for "VisualAge Smalltalk" in document titles.
You can download the latest product updates from the VisualAge Smalltalk service ftp site.
For installation information, see cd_m\doc\instgd.htm or cd_c\doc\instgd.htm in the CD drive or the temporary directory where you extracted the manager or client installation files. To install VisualAge Smalltalk, follow the instructions for your specific platform.
. Before installing Version 6.0, follow these steps:
If you have a version prior to VisualAge Smalltalk Version 6.0 installed, please refer to the Migration Guide for important information before using VisualAge Smalltalk Version 6.0. The Migration Guide can be installed with the VisualAge Smalltalk Client by selecting the "VisualAge Smalltalk Documentation" feature. It is also available in PDF format on the VisualAge Smalltalk web page.
The following sections list some important information about some of the components and features. For the latest product information, please refer to the VisualAge Smalltalk web page.
VisualAge Smalltalk lets programmers create and deploy e-business applications that are cross-platform, object-oriented, and integrated with IBM's key initiatives:
PQ45824 ABRREMOVEINTERESTFROM: DOES NOT WORK FOR PROMOTED FEATURES
PQ46370 SCI Sockets cannot send buffers greater then 8MB
PQ47705 ZERO SUPPRESSED CONVERTER SETTING DOES NOT WORK FOR CONTAINER
PQ48173 CONTAINER COLUMN WITH STRING CONVERTER, EMPTYMAKESDEFAULT=TRUE
PQ48934 EWLIST>> ITEMS: DOES NOT ACCOUNT FOR ENDEDIT WHEN EDITING IS IN
PQ49049 JAPANESE IME - CONTROL+H FOLLOWED BY DELETE IN VAST MLE RESULTS
PQ49602 WALKBACK RECEIVED WHEN FEATURE NAME INCLUDES ( OR )
PQ49632 NUMERIC FORMATTED TEXT INCORRECTLY INSERTS/OVERLAYS
PQ49800 AFTER LOADING OLD SETTINGS VIEW CONFIGURATION MAP, CAN NOT OPEN
PQ49837 SciSend/SciRecv hangs server on socket primitive
PQ49842 Explicit futures leak when #invoke:at: is curtailed by timeout
PQ50299 WALKBACK WHEN USER-DEFINED TABBING IN CONTAINER DETAILS AFTER
PQ50425 WALKBACK FROM RECALCULATEPARTBUILDERRECORDFROMARCHIVALCODE
PQ50837 RMI ConnectionManager walkback with nil connection handle
PQ51720 WALKBACK WHEN ATTEMPTING TO OPEN WINDOW A SECOND TIME.
PQ52491 MLE FIELD ALLOWS MORE THAN MAX CHARACTERS DEFINED BY USER.
PQ52848 NUMERIC CONVERTER INDICATES A FIELD CHANGE FOR A NIL VALUE
PQ53006 Unable to resolve remote space location at server
PQ54905 whenTimeoutInSeconds method returns prematurely
PQ55555 Incomplete support for DBCS languages
PQ56040 IN V5.5 WIDGETS CAN NOT MANIPULATE THE IME USING METHODS LIKE
14032 Web Connection Running out of sockets on Windows
Be sure that your numlock key is turned off if you are using the composition editor. The numlock will prevent parts from being dropped on the Composition Editor.
On UNIX, make sure your LC_MONETARY locale setting contains a non-empty mon_decimal_point entry. On some machines, mon_decimal_point may be empty for the "C" locale. For example, if you wish to change to the en_US locale, set your LANG environment variable to en_US before starting VA Smalltalk with the ksh command:
export LANG=en_US
You can check the value of mon_decimal_point with the command:
locale -k LC_MONETARY
The output should look like:
int_curr_symbol="USD "
currency_symbol="$"
mon_decimal_point="."
mon_grouping="3"
mon_thousands_sep=","
positive_sign=""
negative_sign="-"
int_frac_digits=2
frac_digits=2
p_cs_precedes=1
p_sep_by_space=0
n_cs_precedes=1
n_sep_by_space=0
p_sign_posn=1
n_sign_posn=1
debit_sign="DB"
credit_sign="CR"
left_parenthesis="("
right_parenthesis=")"
Each time the Slider part is repainted the "X Error: BadWindow (invalid Window parameter)" message is printed in the xterm window which VisualAge Smalltalk was launched.
The Slider part still functions normally.
On OS/2, if you have an older version of VisualAge Smalltalk running, when you attempt to start VisualAge Smalltalk 6.0, you will fail with the following message:
"The program in session encountered a problem. Registry: the system could not demand load the application's segment ABT->ESVM40. EsReportWarning is in error. Help Sys127."
To workaround this problem, start VA Smalltalk 6.0 before starting the older version. Another solution is to replace the bin directory of your older version with a copy of the bin directory that is installed with VisualAge Smalltalk 6.0.
Native code caching will not work on some models of HP-UX hardware. If you experience this problem, your application will halt with an "impossible" walkback soon after startup. The "impossible" walkback will show places where method A calls method B, even if method A never calls method B in your code.
To work around, use the -mcd command line option when starting VisualAge Smalltalk. This will disable native code caching.
When your development image is running on UNIX, you will not be able to read stack dump files that were generated on an architecture with different endian-ness. Doing so will cause a walkback.
To work around this problem, swipe and execute the following doit from your development environment:
PlatformLibrary mapLogicalName: 'EsLoadAndSave' toPhysicalName: 'libeslsi40'
Under certain Linux configurations, some operations that use progress dialogs can cause empty or "phantom" dialog boxes to remain after the operation has completed. These phantom dialog boxes can show up as a small rectange that is completely blank and cannot be moved.
To work around this problem, make the following modification to EtWindow>>#execLongOperation:message:allowCancel:showProgress:
...
aBlock argumentCount = 1
ifTrue: [runBlock := [aBlock value: inProgressDialog]]
ifFalse: [runBlock := [(Delay forMilliseconds: 100) wait. aBlock value]].
...
The Object>>#-> method has been added as a convenience for constructing instances of Associations (for example, evaluating the expression 'upperLeft' -> (0@0) will answer anAssociation with 'upperLeft' as the key and 0@0 as the value). Some add-on products have extended Object with this same method. One such product is the RefactoringBrowser. Attempting to load such a product will cause a conflict and result in a load failure with a message similar to the following:
Error: 330 Cannot complete the load because Object>>#-> is defined by RBParserVAApp and CLDT
NOTE: The method collisions will be resolved if you reload after executing:
EmImageBuilder cancelIfMethodsCollide: false
Following the suggested course of action will allow the add-on product to load correctly.
Support for ANSI Smalltalk (see ANSI/NCITS 319-1998 Smalltalk Programming Language, available in PDF format from http://www.cssinfo.com/ncitsgate.html) is included in this release of VisualAge Smalltalk Enterprise. This support greatly enhances the portability of Smalltalk applications between different Smalltalk implementations that provide ANSI Smalltalk support.
All methods supporting the ANSI Smalltalk protocol are categorized as ANSI-API. Methods associated with ANSI Smalltalk function that is not complete in this release are categorized as ANSI-Unimplemented.
The following restrictions with respect to ANSI Smalltalk are in force for this release:
The following Exception methods are not functional
isNested
outer
pass
resignalAs:
retry
retryUsing:
The following DateAndTime methods are not functional:
timeZoneAbbreviation
timeZoneName
The MessageNotUnderstood exception class is provided, but is not signaled by the standard #doesNotUnderstand: method.
The ZeroDivide exception class is provided, but is not signaled when a divide by zero occurs.
On MVS, an .ini file is optional. On all other platforms, an .ini file is required. The .ini file may have the same name and be in the same directory as your executable (on Unix, the executable is es or esnx). The .ini file can also have the same name and be in the same directory as your .icx or .ic file.
In addition, you can specify your .ini file as a command line parameter. For example, you can launch your program by typing the following:
abt -imyapp.icx -ini:c:\any.ini
The HTML Help subsystem requires that TCP/IP be configured and functional. HTML Help will function with or without a network adapter as long as TCP/IP is configured properly.
Windows
For Windows platforms, configure TCP/IP according to your adapter configuration:
1. If you are using a LAN adapter configuration, ensure the following:
On any OS/2 command line enter ping localhost. This command should return some data rather than just hang. If it hangs, or if it returns localhost unknown, then localhost has not been enabled on your system. If you are on a network, then make sure loopback is enabled. If you are not on a network, enable localhost by performing the following steps:
Set up the HTML help browser setup according to your browser type:
If you use Internet Explorer or Netscape with a firewall (proxies enabled), then you must modify the default settings for help to work properly.
Windows -- Internet Explorer 5
Set up Internet Explorer 5 as follows:
A backlevel version of libsslthread.so was included in the Server Runtime zips for Solaris. To deploy SSL on Solaris, copy the libsslthread.so file that resides in the /opt/IBMvast/6.0/bin directory of your development environment into the /opt/IBMvast/6.0/serverbin directory for your server runtime application. This file supports multi-threaded SSL applications.
By default, the send and receive buffers used for local sockets are set at 32 K (32768 bytes). In addition, there are platform-dependent limitations the programmer should be aware of. On Linux, the size of messages sent over a local socket should not exceed 63 KB, (64,512 bytes). On Solaris, the message size should not exceed 64 KB (65536 bytes). On HP-UX, the message size should not exceed 32 KB (32768 bytes). Finally, at the time of this writing, the limits on AIX are 2 KB (2048 bytes) for local datagram sockets and 4 KB (4096 bytes) for local stream sockets.
VisualAge Smalltalk Enterprise V6.0 does not support APPC and CPIC on Solaris, HP-UX or Linux.
Support has been added for MQSeries on Linux and HP-UX platforms.
The Secure Socket Layer (SSL) support for VisualAge Smalltalk 6.0 uses OpenSSL binaries. OpenSSL an open source implementation of SSL/TLS based on the SSLeay library developed by Eric A. Young and Tim J. Hudson. The use of OpenSSL is provided under a dual license, the OpenSSL license and the SSLeay license. A copy of this license can be found the Programmer's Reference. SSL is not supported on MVS and OS/2 platforms.
On HP and Solaris, the abt script file attempts to set up the shared library path to include DB2 if DB2 is detected. However, the Korn shell on HP and Solaris does not always evaluate the tilde character (~) so that VisualAge can set up the shared library path to include DB2. This causes the libraries for DB2 to not be added to the path correctly.
To workaround this problem, you must add the DB2 libraries. You may want to add the one of the following examples to your profile.
HP: export SHLIB_PATH=/home/db2inst1/sqllib/lib:$SHLIB_PATH
Solaris: export LD_LIBRARY_PATH=/home/db2inst1/sqllib/lib:$LD_LIBRARY_PATH
When using stored procedures with the new Oracle 8 database connection, the Get schema function on the Stored Procedure Specification Settings view only works for procedures that are not contained in packages. Users must manually define host variables for procedures that are contained in packages.
To create the stored procedure used in the Oracle sample, logon to SQL*PLUS and use the file found in your vast\samples\oracle.
1. Logon to SQL*PLUS
sqlplus scott/tiger
2. Execute the file
SQL> @vast\samples\oracle\sample.sql
ODBC drivers have not been shipped with VisualAge Smalltalk since Version 4.5. The drivers in previous versions were provided by MERANT (formerly INTERSOLV Inc.). If you need to obtain ODBC drivers, the DataDirect product is still available directly from MERANT. For more information call 800-876-3101 or visit http://www.merant.com/datadirect
You can also check your DBRM for ODBC drivers. Most, if not all, major DBRMs now ship with ODBC drivers.
Before you can run the database features on AIX, you must extract a shared object from the appropriate archive file. This is true for IBM DB2, ODBC, and Oracle databases.
IBM DB2
For IBM DB2, extract the file from $DB2INSTANCE/sqllib/lib/libdb2.a by performing the following steps:
1.Extract the shared object
ar -x libdb2.a
2.Rename the extracted file libdb2.so
mv shr.o libdb2.so
ODBC
For ODBC, extract from your libodbc.a file by performing the following steps:
1.Extract the shared object
ar -x libodbc.a
2.Rename the extracted file libodbc.so
mv libodbc.o libodbc.so
Oracle
For ORACLE, extract from your libclntsh.a file by perform the following steps:
1.Extract the shared object
ar -x libclntsh.a
2.Rename the extracted file libclntsh.so
mv clntsh.o libclntsh.so
Note:
For each of these databases, the resulting .so file must be in the library path (LIBPATH) in order to be located by VisualAge.
Some database applications will need to add a prerequisite for the AbtRecordStructureApp application. Applications that use Database Parts will not need to add this prerequisite because the parts will include the AbtRecordStructureApp application. If an application manipulates instances of any of the subclasses of AbtRow, they will probably need to add this prerequisite. On Unix, if you are using database features and experience a core dump when exiting VisualAge, comment out the PlatformLibrary>>shutDown method. An alternative solution for your packaged application is to execute the following code when exiting: When installing on a DBCS machine please remember the following: The NLS versions of Lotus Notes must be installed on the native Operating System (OS) platforms, in order for Notes to work. If a US-English version of Lotus Notes is installed on the native OS, then the user will not be able to input either SBCS or DBCS characters correctly. This is a restriction with Lotus Notes.
DBCS cookies are not supported using the Servlet Interface. This is a limitation of the HTTP Server.
To ensure all information is displyed on your computer, we encourage you to use the highest resolution offered by your display terminal.
A hook has been added to the VisualAge Smalltalk codepage conversion support which allows the programmer to substitute a custom code page conversion routine in place of the VisualAge default routine. This capability is particularly useful for Windows programmers who write programs that require translation from DBCS ASCII to DBCS EBCDIC because the code page conversion support for Windows does not support this task. On the UNIX platform, if you use Netscape 4.7, VisualAge Smalltalk may not be able to bring up Netscape when you try to access the help system. To workaround this problem on HP-UX and Sun Solaris, bring up Netscape manually before accessing the VisualAge Smalltalk Help. On AIX, bring up Netscape manually and type in the following URL : In an OS/2 environment, if EMSRV is installed under a directory name that contains spaces (e.g. x:\VAST60 MG\bin), attempting to invoke EMSRV via an OS/2 START command may fail with a SYS1041 message. For example, when issued from the varoot\bin directory, the following command: Be sure to use the following good development practices with EMSRV: We have seen rare cases where the client installation program on Linux will hang and become unresponsive after only partially completing the install. We have only noticed this on machines whose hard drive is one giant partition located at /. On some Unix platforms, problems have been reported on the Select Features screen. After On an AIX machine, before installing Smalltalk for the first time, use Smitty or Smit to create a Journalled File System.
On an AIX machine, before installing base Smalltalk for the first time, use Smitty or Smit to increase the disk size to 200 Megabytes.
If you are attempting to access the VisualAge Smalltalk newsgroup news://news.software.ibm.com/ibm.software.vasmalltalk using a Netscape browser, you must choose one of the following items in the Netscape browser's Use copy and paste to share OLE objects between the Windows Explorer and an OLE Client part. Dropping an OLE object that was dragged from the Windows Explorer onto an OLE Client part does not work. When using the Packager UI (Modifiy Instructions :: Applications and ICs), you must manually add AbtNlsCfsSupportApp to the image that you are packaging as follows: The SST HTTPS Client example attempts to start its local endpoint using a URL that specifies 'httpsex' as a transport identifier, but there is no transport configuration registered for this identifier. The example client should use 'httpsl' in the URL, as shown below. CORBA IIOP facilities provided by SST in previous releases are obsolete as of this release. The implementation provided in previous releases continues to be shipped with this release, but all methods have been recategorized as 'OBSOLETE'. There will be no further developement or enhancement of these facilities, and they may be removed from the product in a future release. In previous releases of VisualAge Smalltalk Server Runtime, only one method of logging a simple walkback was provided. When an error occurred, the walkback information was written to TranscriptTTY. This caused the walkback information to be written to the console (Unix) or to a log file identified by the -l commandline option. Since TranscriptTTY does unbuffered character-at-a-time output, it can be very time consuming to write the walkback information. The RMI in Server Smalltalk will run under JDK 1.3, using the same techniques that were required for JDK 1.2.
When running the IIOP PingPong examples you must pass a type that conforms to the CORBA Any type interface. Typically, Strings are used as the argument representing @anAnyType when sending the method SstPingPongIIOP>>start: @anInteger with: @anAnyTYpe. Passing Smalltalk Integers and Floats as arguments will cause the example to fail because CORBA does not represent these as objects, and therefore, they do not conform to the Any interface.
When trying to use the interactive debugger, if you are getting the error EHOSTNOTFOUND or EADDRNOTAVAIL on the runtime side, the problem may be that your runtime machine cannot resolve the dotted TCP/IP address of your development machine. You can work around this problem by adding an entry to the hosts file on the runtime machine for your development machine.
The RMI Wizard adds the following instance methods to all mapped classes: On AIX, some SST applications that use the MQ transport layer will fail when using the unthreaded versions of the AIX MQ libraries. If you are getting the error MqCallInProgress, this may be the cause. When loading the feature "SST WebConnection Support" into a passive image (XD) through the Properties dialog, it is necessary to also select the feature "Web Connection" in order for it to load without errors.
It is not currently possible to use the interactive debugger facility of an XD image to debug a Web Connection application. In order to debug a Web Connection application (or an XML application that uses the Web Server Interface), perform the following steps: On OS/2, attempting to start a WSI Server with transport type sst-http causes Smalltalk to hang if TCP/IP loopback is not enabled. To package your Web Connection application so that it utilizes the Web Connection image components, you must implement a packager method to force inclusion of your web parts in the packaged image. When a Table part is dropped onto an Html Page, the #selectionType attribute for a table column contains the following selections in the properties table: The Web Server Interface Monitor is no longer included, by default, in the prerequisites for Web applications. In order to include the monitor in a packaged application, users should modify the prerequisites for web applications to include theAbtRunHtmlPageApp application. Alternatively, users can package their web applications using the Tools->Browse Packaged Images option. You can add the AbtRunHtmlPageApp application to the packaged image from the Package Control Panel without modifying application prerequisites. This approach is necessary for Web applications that must be loaded into an XD image because the AbtRunHtmlPageApp application will not load into an XD image. When the container administration service is deployed to both client and server containers in the same Smalltalk image, the service does not always select the correct container as the target for administration tasks. This causes services intended for the server container to be deployed into the client container. A side effect of this is that new endpoints may be started which direct Web services requests to the client container. The code examples in the 'Web services guide' can cause this scenario.
One potential symptom of this problem is a server exception like that below:
When a Web services client receives a SOAP fault response from the server, standard Web services handler chains are traversed prior to signalling an exception to report the SOAP fault. Therefore, fault chains are traversed after standard client processing has already completed. Custom client chains may need to be aware of the possibility that the message result could be a fault. Ideally, the Web services support should circumvent standard processing and branch immediately into the fault handlers after discovering a SOAP fault in the output message. Hosting 'document' style services is not supported for this release. However, invocation of remote 'document' style services is supported. To try out the XML server samples, perform the following steps: The XML server sample named AbtXmlSampleCustomerRequestHandler contains code with hard coded directory references that do not resolve properly. If you would like to test this sample, you must first do the following: If you wish to package your XML application so that it utilizes the XML image components, you must implement a packager method to force inclusion of your XML request handler parts in the packaged image. For example, you can implement the following method as a class method of the application containing your XML request handler parts: If the input serialization functionality of the XML feature is used to map incoming XML requests into Smalltalk business objects, the packager will exclude classes that are not specifically referenced in code. The specific sequence of events that may cause packaging concerns is as follows: The XML parser automatically performs code page conversion before attempting to parse an XML stream. Many code pages are handled seamlessly using the default code page conversion routine of the runtime operating system. However, there are some character encodings that cannot be converted. Unsupported code page conversions cause walkbacks at execution time. When serializing an object into XML using an XML schema, the serialization logic may not properly resolve the AbtClassElementMapping that contains rules for extracting the attributes from the object.
For objects that rely on mapping for extraction of attributes, this can result in missing XML elements and attributes in the rendered output.
To workaround the problem, replace the method AbtXmlSchemaComponent>>#classMappingForTagName:configuration: with the code below:
THIS DOCUMENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. IBM DISCLAIMS ALL WARRANTIES, WHETHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE AND MERCHANTABILITY WITH RESPECT TO THE INFORMATION IN THIS DOCUMENT. BY FURNISHING THIS DOCUMENT, IBM GRANTS NO LICENSES TO ANY PATENTS OR COPYRIGHTS.
If you package your application and get the error The attribute Pub
On Unix, running Database Features
System primitiveExit
DBCS
DBCS Notes on installing VisualAge Smalltalk
1.If you are using OS/2 Warp 4.0J, you must apply Warp J4 Fixpack FX00004 before using VisualAge Smalltalk.
2.If you are using a DBCS version of OS/2 Warp 4.0, other than OS/2 Warp 4.0J, IBM VisualAge Smalltalk Enterprise requires the equivalent to Warp 4.0J Fixpack FX00004.
3.If you are using IBM VisualAge Smalltalk Enterprise on a DBCS system, you must use the ABTRULES.DBC file instead of the default US-English ABTRULES.NLS provided by the system. The ABTRULES.DBC file contains additional codepage conversion tables needed for the DBCS environment. You can find this file in your VisualAge NLS directory. Back up the ABTRULES.NLS file to ABTRULES.BAK, then rename ABTRULES.DBC to ABTRULES.NLS.
Using an English version of Lotus Notes
Web Connection does not support DBCS char for Cookies
Display Resolution for DBCS machines
User-Supplied Code Page Conversion
Please refer to our web page located at http://www.software.ibm.com/ad/smalltalk/downloads/vacodepage.html for a Windows-only example which demonstrates usage of a custom code page routine.
Documentation and Helps
On UNIX, Netscape 4.7 may not start automatically
http: //localhost:57002/abtwebx/6.0/va/vast.htm
EMSRV
On OS/2, Starting EMSRV
START EMSRV -u
may get the message SYS1041: The name EMSRV is not recognized as an internal or external command, operable program or batch file. To bypass this problem, issue the command sequence without the START:
EMSRV -u
Using the Manager file
Backup the manager file regularly.
Run library statistics utilities on a regular basis to ensure the integrity of the manager file.
Protect the manager file.
Installation
On Linux, client install may become unresponsive
If this happens, a safe workaround is to terminate the install program and completely delete everything in the /opt/IBMvast/6.0 directory. Then restart the install.
Select Features Screen in UNIX Installs
selecting a new feature to install, sometimes the Next button is not enabled due to an error in
synchronization of the features. To correct this problem, select the Back button and then on
the License Agreement screen, select the Accept button. The Next button on the Select
Features screen should then be enabled.
On AIX, create a Journaled File System before Installing Smalltalk
On AIX, increasing disk space for Smalltalk installation
Accessing the Smalltalk newsgroup using Netscape
Edit->Preferences->Advanced->Proxies menu:
1. Direct connection to the Internet
2. Manual proxy
If you have selected an autoproxy from this menu, your attempt to access the VisualAge Smalltalk newsgroup will fail.
OLE
Copying from Windows Explorer into an OLE Client part
Packaging
XD packaging of non-MVS leaf ICs which use MPRs at runtime
1.Select AbtNlsCfsSupportApp in the left pane.
2.Press the >> button. (It will be highlighted. There are two of these buttons. You want to press the one on the left that is below the left and/or center panes).
Server
HTTPS Client Example uses incorrect transport scheme
SstHttpsClientExample>>#initialize
localEndpoint := SstLocalEndpoint fromUrl: 'httpsl://' sstAsUrl.
SST IIOP Support is Obsolete
Customer applications which made use of these facilities in a previous release will continue to be supported as they are migrated to this current release.
Customers are advised to make use of Web Services technologies, such as XML and WSDL, for future interoperability strategies.
Performance improvement in writing walkback log
For VisualAge Smalltalk V 5.5.2 and later, an alternative output mechanism is provided. When it is enabled, this mechanism writes the walkback information to a file stream just as would be done for a Reduced Runtime image. This is a buffered operation which can be more than an order of magnitude faster than writing to TranscriptTTY.
To enable writing the walkback information to a file stream, you must provide the startUp class with the filename of the file to be associated with the file stream. For example, to see the difference in behavior, create an XD image and load the HelloWorld application. Then package it specifying AbtHeadlessRuntimeStartUp as the image startup class. If you specify HelloWorld haltHelloWorld as the application entry point, the walkback will be written to TranscriptTTY (you need to specify the -l commandline switch at runtime to see this output on Windows and OS/2); if you specify System image startUpClass walkbackFileName: 'runtimeWB.log'. HelloWorld haltHelloWorld as the application entry point, the walkback will be written to the runtimeWB.log file.
Support for JDK 1.3 using RMI
IIOP PingPong examples fails with an object other than a String.
Using XD Interactive Debugger over TCP/IP with no nameserver
5.0 RMI Wizard considerations
sstRmiClassName
Answers the Java class name the receiver is mapped to.
sstIsRmiSerializable
Answers true if the receiver is serializable (passed by value).
sstIsRmiRemotable
Answers true if the receiver is remotable (passed by reference).
The above methods, along with the class mapping definitions (added to the application class), are used by SST to enable instances of the class for use with RMI. There may be some cases where you want to enable the class itself (versus instances of the class) for use with RMI. For example, you might want to have a Java client send messages to a Smalltalk class. If this is the case, you'll need to add the above methods as class methods.
On AIX, SST using MQ requires threaded versions of MQ library
By default, Smalltalk MQ calls will use the unthreaded libraries. To switch to the threaded libraries, before making your first MQ call, execute the call AbtMQSeriesBaseUnixSubApp threaded.
Web Connection
Loading SST WebConnection into an XD Image
Debugging Web Connection applications using interactive debugger
1.In the AbtWebServerInterfaceBaseApp>>AbtWsiConnection>>#handleTransaction: method, change the ExAll exception reference to ExError.
2.In the AbtWebServerInterfaceBaseApp>>Block>>#abtWsiAtEndOrWhenExceptionDo: method, replace the code with the following:
abtWsiAtEndOrWhenExceptionDo: completionBlock
" Code hacked to enable debugging in XD runtime image via the interactive debugger "
self value.
completionBlock value
After making the above changes, package the application and execute it as usual.
Note: Be sure to load the original code prior to packaging the application for production.
On OS/2, starting SST-HTTP server hangs
Eventually, a Smalltalk debugger appears with the following error message: Could not create socket pair: ETIMEDOUT (10060): Connection timed out. To correct this problem, enable loopback on OS/2 by performing the following steps:
1.Open TCP/IP Configuration windows.
2.Select loopback interface from the Interface to Configure list box.
3.Select the Enable interface check box.
4.Close the TCP/IP Configuration window.
To determine if the loopback interface is working properly, type the following from an OS/2 command prompt:
ping 127.0.0.1
If loopback is properly configured, a series of messages will be written to the OS/2 session indicating that the target address for the ping was successfully contacted. Press ctrl-c to terminate the ping operation.
After successfully configuring loopback, you should be able to use the sst-http interface from OS/2.
Packaging an image with Web Connection image components
For example, implement the following method as a class method of the application containing your web connection parts.
packagerIncludeClassNames
^self defined collect: [:i | i name ]
#selectionType for table column gives confusing error message in properties
<Error: No Form - Multiple Select>
<Error: No Form - Single Select>
These messages are a bit confusing. The #selectionType attribute is only valid for tables that are dropped onto an Html Form part.
Including the Web Server Interface Monitor in packaged applications
For example, the sample application AbtWebSamplesApp is now headless by default because it does not include the prerequisite AbtRunHtmlPageApp. When the packaged image for this sample is started, no windows will open. The application AbtWebSamplesApp can be loaded into a passive XD image and packaged if desired.
The application AbtWebSamplesWithMonitorUIApp contains prerequisites to include the Web Server Interface Monitor as well as all the sample parts from AbtWebSamplesApp. This application cannot be loaded into an XD passive image.
Note:
Applications constructed before v4.5 already include the prerequisite AbtRunHtmlPageApp, so no special action is necessary.
Web services
Container administration sample does not select correct container
'Operation ''undeploy'' in namespace ''urn:SstWSContainerAdminInterface'' was not found'
To correct the problem, modify the method SstWSContainerAdminInterface>>#getContainer as shown below. A check is added to make sure that the target container includes the implementation of the administration service and not just a service proxy.
getContainer
| containers |
( containers := SstWSContainer containers ) size == 1
ifTrue: [ ^containers values first ].
" Search the containers and find the one where this service is deployed "
^containers detect: [:aContainer | | service |
(( service := aContainer serviceNamed: self serviceName inNamespace: self serviceNamespace) notNil
and: [ service sstTarget notNil ]) ]
ifNone: [ self error: 'Container could not be resolved by admin service']
Server Fault message construction
Client handlers can use the message #isSoapFault to verify that message results contain expected content.
example: fault := anSstWSMessageContext results detect:[:each | each isSoapFault] ifNone: [ ].
Hosting document style service operations is not currently supported
Operations containing WSDL definitions like that below cannot be hosted using the VisualAge Smalltalk Web services support.
<operation name="DocumentLiteralMessageType">
<soap:operation soapAction="urn:TestDocumentLiteralMessageType" style="document" />
<input>
<soap:body use="literal"
namespace="http://vast.encoding.tests"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output>
<soap:body use="literal"
namespace="http://vast.encoding.tests"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
</operation>
XML
Using the XML server examples
Testing XML request handlers over HTTP
1.From the VisualAge Organizer, select the AbtXmlServerSamplesUIApp application.
2.Select the AbtXmlSampleHttpClientTesterView part.
3.Enter an XML string or a piece of code that evaluates to an XML string
AbtXmlSampleCustomerRequest xmlTestString1
AbtXmlSampleCustomerRequest xmlTestString2
4.From the Actions menu, select the Open WSI monitor option to bring up the Web Server Interface monitor. Follow the instructions in the Web Connection User's Guide to start a WSI server with transport type wsi-tcp
5.Specifiy the URL that will handle the request:
http://myserver/cgi-bin/abtwsac.exe/AbtXmlSampleCustomerRequestHandler
6.Enable the Options->Inspect result option so that you can view the returned XML response string
7.Select the code string in the text box, and select the Actions->Evaluate and send menu option (or use pop-up menu for text box).
After the command is processed, an inspector should open to display an XML string that contains the results.
Testing XML request handlers over sockets (very similar to the steps for testing over HTTP)
1.From the VisualAge Organizer, select the AbtXmlServerSamplesUIApp application.
2.Select the AbtXmlSampleSocketClientTesterView part.
3.Enter an XML string or a piece of code that evaluates to an XML string
AbtXmlSampleCustomerRequest xmlTestString1
AbtXmlSampleCustomerRequest xmlTestString2
4.From the Actions menu, select the Open WSI monitor option to bring up the Web Server Interface monitor. Start a WSI server with transport type xml-tcp and select the request handler class that you wish to use for handling incoming requests on the socket. For example:
AbtXmlSampleCustomerSaxRequestWsiHandler
5.From the XML socket client tester view, specify the server and port number for the request that is to be made (the same server and port from step #4 above).
6.Enable the Options->Inspect result option so that you can view the returned XML response string.
7.Select the code string in the text box, and select the Actions->Evaluate and send menu option (or use pop-up menu for text box).
After the command is processed, an inspector should open to display an XML string that contains the results.
On Unix, testing the XML server sample AbtXmlSampleCustomerRequestHandler
1.Create a subdirectory named xml from your VisualAge base client directory. For example:
mkdir xml
2.Copy the xml files from the directory /opt/IBMvast/6.0/xml to the newly created xml directory. For example:
cd
cp /opt/IBMvast/6.0/xml/*.* .
Packaged image with XML image components
packagerIncludeClassNames
| handlers |
handlers := AbtXmlServerSamplesApp defined select: [:aClass |
aClass inheritsFrom: AbtXmlWsiHandler ].
^handlers collect: [:aClass | aClass name ]
For reduced runtime images that are packaged without the XML image components, all XML request handlers are automatically included in the packaged image.
Packaging considerations when using XML input serialization
1.Parse an XML file to construct a DOM (document object model).
2.Send the #mapUsing: method to the DOM and pass it a valid instance of the AbtXmlMappingSpec class.
The #mapUsing: API uses the passed mapping specification to build an object from the contents of the DOM. However, the steps above do not cause any actual references to the class name of the constructed instance. Therefore, packaging rules must be used to instruct the packager that unreferenced classes should be included in the packaged image.
For example, the #packagerIncludeClassNames packager method (a class method) can be implemented in the application class. For example, if MyModel1 and MyModel2' are classes in MyApplication, then the method below should be implemented as a class method in MyApplication.
packagerIncludeClassNames
" Include class names that might be constructed via XML mapping "
^#(MyModel1 MyModel2)
XML code page conversion (unsupported encodings)
The following code pages are not supported:
* EUC_JP conversion is not properly supported by native Windows code page routines. A Windows implementation of ICONV supports EUC_JP. To download ICONV, see http://www.ibm.com/software/ad/smalltalk/downloads/vacodepage.html Using the ICONV support, additional code pages, including EUC_JP, can be supported.
* The code page ISO-2022-JP is not supported by native routines or by ICONV.
The VisualAge XML support attempts to map XML character set encodings to valid code pages. The default mappings can be overridden using the API shown in the following example:
AbtXmlStreamConverter mapEncoding: 'UTF-8' toCodePage: 65001.
VisualAge uses the code page conversion support APIs that are built in to each of the supported platforms. Therefore, code page mappings may be different for different operating systems. If you encounter a debugger with the following message it is likely that you have encountered an unmapped or mismapped encoding.
Abt.Nls.160.e: Conversion from code page
Class element mapping not resolved when serializing from schema
classMappingForTagName: aTagName configuration: anAbtXmlSerializationConfiguration
" Answer the AbtClassElementMapping for the passed object. This method assumes
that there is a single mapping for a class "
| mapping mappingSpec |
" First check in the passed mapping spec. If not found, check the object cache for a suitable mapping spec "
mappingSpec := anAbtXmlSerializationConfiguration mappingSpec.
mappingSpec ifNotNil: [:spec |
mapping := spec mappingForElement: (AbtXmlUtility localNameFor: aTagName) nameSpaceURI: self namespaceUri.
mapping isNil
ifTrue: [ mapping := spec mappingForElement: self name nameSpaceURI: self namespaceUri ]].
mapping ifNil: [ | spec restrict |
( mappingSpec isNil or: [ mappingSpec nameSpaceURI = self namespaceUri])
ifFalse: [
( spec := anAbtXmlSerializationConfiguration objectCache mappingSpecNamed: self namespaceUri ) notNil
ifTrue: [
mapping := spec mappingForElement: (AbtXmlUtility localNameFor:aTagName)
nameSpaceURI: self namespaceUri.
mapping isNil
ifTrue: [ mapping := spec mappingForElement: self name nameSpaceURI: self namespaceUri ]]].
mapping isNil
ifTrue: [ " Last chance. See if the type has a restriction which is mapped "
(restrict := self getRestriction) notNil
ifTrue: [
spec := anAbtXmlSerializationConfiguration objectCache mappingSpecNamed: restrict baseType
namespaceUri.
spec notNil
ifTrue: [ mapping := spec mappingForElement: restrict baseType localName nameSpaceURI:
restrict baseType namespaceUri ]]]].
^mapping
Disclaimer