WebSphere MQ Workflow 3.4.0 Java Generic API Test / Prototyping Tool

[prev][next][parent][TOC]

FmcException - Example

Testcase
/* example16 */

Agent.Agent
  agentHdl                          1 
End 

Agent.setLocator
  agentHdl                          1 
  locator                           LOC_LOCATOR
End 

Agent.versionInfo
  agentHdl                          1
End 

Agent.setName
  agentHdl                          1
  name                              ""
End 

Agent.locate
  agentHdl                          1
  systemGroup                       "FMCGRP"
  system                            "FMCSYS"
  executionServiceHdl               1 
  xpFmcException                    FMC_OK
End 

ExecutionService.logon
  executionServiceHdl               1 
  userID                            "ADMIN"
  password                          "WrongPassword"
  xpFmcException                    FMC_ERROR_PASSWORD
End 

FmcException.getMessage
End 

FmcException.origin
  xpValue                           "e:\v32_661\src\fmcjcesv.cxx, line 952"
End 

FmcException.parameters
  stringArrayHdl                    1
  xpValue                           ""
End 

FmcException.messageText
  xpValue                           "FMC00012E Incorrect password 
" 
End 

FmcException.rc
  xpValue                           FMC_ERROR_PASSWORD
End
 
 

Result:

MQSeries Workflow 3.2.0 Java Generic API Test Tool (JGATT), Driver v32_662
Test case: k:\fle\example16.dat
Tue Jun 15 16:54:33 CEST 1999 
============================================================================
Operating system:              Windows NT 
Operating system version:      4.0
Operating system architecture: x86 
Java version:                  1.1.6
User account name:             kurtfle 
----------------------------------------------------------------------------
+++> 
============================================================================
===> 
Parsing the input file ...
===> 270 msec 
============================================================================
Agent.Agent
parameter: agentHdl                                = 1 
============================================================================
Agent.setLocator
parameter: agentHdl                                = 1 
parameter: locator                                 = LOC_LOCATOR = 4 
============================================================================
Agent.versionInfo
parameter: agentHdl                                = 1 
..........Report............................................................
versionInfo = null 
============================================================================
Agent.setName
parameter: agentHdl                                = 1 
parameter: name                                    = ""
============================================================================
Agent.locate
parameter: agentHdl                                = 1 
parameter: systemGroup                             = "FMCGRP"
parameter: system                                  = "FMCSYS"
parameter: executionServiceHdl                     = 1 
..........RC Report.........................................................
AcException = none = 0 
XpException = none 
+++OK+++
============================================================================
ExecutionService.logon
parameter: executionServiceHdl                     = 1 
parameter: userID                                  = "ADMIN"
parameter: password                                = "WrongPassword"
..........RC Report.........................................................
AcException = FMC_ERROR_PASSWORD = 12 
XpException = FMC_ERROR_PASSWORD
+++OK+++
============================================================================
FmcException.getMessage
..........ValueReport.......................................................
AcValue = " 
FMC38009E MQSeries Workflow API Error : 
API Return Code  : 12 
Error Orgin      : e:\v32_661\src\fmcjcesv.cxx, line 952 
Error Message    : FMC00012E Incorrect password 

Nested Exception : None"
XpValue Expected value missing 
============================================================================
FmcException.origin
..........ValueReport.......................................................
AcValue = "e:\v32_661\src\fmcjcesv.cxx, line 952"
XpValue = "e:\v32_661\src\fmcjcesv.cxx, line 952"
+++OK+++
============================================================================
FmcException.parameters
parameter: stringArrayHdl                          = 1 
..........ValueReport.......................................................
AcValue = ""
XpValue = ""
+++OK+++
============================================================================
FmcException.messageText
..........ValueReport.......................................................
AcValue = "FMC00012E Incorrect password 
" 
XpValue = "FMC00012E Incorrect password 
" 
+++OK+++
============================================================================
FmcException.rc
..........ValueReport.......................................................
AcValue = FMC_ERROR_PASSWORD
XpValue = FMC_ERROR_PASSWORD
+++OK+++
============================================================================
====== Test case ended normally ============================================