Skip to content

Commit f0b76f1

Browse files
author
Tony Fitzgerald
authored
Merge pull request #3 from cicsdev/fitzget-patch-1
update for LengthErrorException
2 parents 718a5e1 + 4cc61fc commit f0b76f1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ This is a set of sample Eclipse projects for Link to Liberty, demonstrating how
1919
## Deploying the sample
2020
1. Import the projects into CICS Explorer using File -> Import -> General -> Existing projects into workspace.
2121
- If using the egit client, you can just clone the repo and tick the button to import all projects.
22+
2. If compiling against CICS 5.6 or higher uppate the catch statement in class HelloLiberty to add ***LengthErrorException***
2223
2. Change the name of the JVMSERVER in the .warbundle file from DFHWLP to the name of the JVMSERVER resource defined in CICS.
2324
3. Export the bundle project to zFS by selecting 'Export Bundle project to z/OS Unix File System' from the context menu.
2425
4. Ensure the `cicsts:link-1.0` feature is present in server.xml and the JVMSERVER is ENABLED.

projects/com.ibm.cics.server.examples.wlp.link/src/com/ibm/cics/server/examples/wlp/link/HelloLiberty.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ public void printMessage() {
4242
sb.append(Task.getTask().getUSERID());
4343
}
4444
} catch (InvalidRequestException | ContainerErrorException | ChannelErrorException | CCSIDErrorException
45-
| CodePageErrorException | LengthErrorException e) {
45+
| CodePageErrorException e) {
46+
// If compiling against CICS 5.6 or higher: add "LengthErrorException" as shown in the following commented out lines
47+
// } catch (InvalidRequestException | ContainerErrorException | ChannelErrorException | CCSIDErrorException
48+
// | CodePageErrorException | LengthErrorException e) {
4649
e.printStackTrace();
4750
Task.getTask().abend("OHNO");
4851
}

0 commit comments

Comments
 (0)