Technical‎ > ‎Debugging‎ > ‎

Howto Enable WMS / MSCA Logging? [ID 338291.1]


How does one enable logging on the Oracle e-business MWA server for mobile applications like Oracle WMS (Warehouse Management System) and Oracle MSCA (Mobile Supply Chain Applications)?


Solution

Overview

The techniques for enabling WMS / MSCA trace are described in the Oracle Mobile Supply Chain Applications (MSCA) Server manual but listed again below for your convenience. The most common option for logging details of an MSCA / WMS session is to use the log level of Trace.  Logging levels force the mobile application to write details about the user's actions to a log file. 



Log Files

There are possibly 3 different log files being written to: WMS.log, INV.log, and system.log -- though WMS.log is being phased out in 11.5.10.  The log files are discussed in the Oracle Mobile Supply Chain Applications (MSCA) Server: Administration Guide, Release 1.0.7, September, 2001, Page 7.



Logging Types


The mwa.LogLevel can have the following values: Fatal, Error, Warning, Debug, and Trace.

Fatal is the most restrictive: it will display only messages from fatal errors. Trace is the least restrictive: it will log all messages. As seen in Note.277655.1, one could also use the log level of "Performance" to create SQL*Trace files. However, the "Performance" option does not enable the logs listed below (INV.log, etc.)




Note: The log files are often reviewed when diagnosing issues or creating service requests. The files give examples about what is happening in the code while the programs run. The most common logging is TRACE. Enabling the trace setting is outlined below.






STEPS

1. Locate the mwa.cfg file:

In 11i: $MWA_TOP/secure/

In R12: $INST_TOP/admin/install/


2. Ensure trace is enabled in the mwa.cfg file.

You should see trace level: mwa.LogLevel=TRACE

Also check for 'mwa.logdir' to be set accordingly


3. Restart the mobile server and hit ctrl-X, see what directory is for the logging


4. After you perform the transaction again, get the following log files from that log directory

[port].INV.log

[port].system.log




Examples

The following are examples of the log files and what kinds of messages you might see.

-- inv.log

[Fri Feb 27 12:44:13 EST 2009] **************** MWA Version 1.0.8.4 *****************

[Fri Feb 27 12:44:13 EST 2009] ***************** Start New Logging ******************

[Fri Feb 27 12:44:14 EST 2009] (Thread-12) Create savepoint RCV_SP complete.

[Fri Feb 27 12:44:14 EST 2009] (Thread-12) RCV: RcvFunction.appEntered - After putting following objects

[Fri Feb 27 12:44:14 EST 2009] (Thread-12) RCV: RcvFunction.appEntered - menu.SerialTypeRANGE

[Fri Feb 27 12:44:14 EST 2009] (Thread-12) RCV: RcvFunction.appEntered - menu.TransactionSourceType

[Fri Feb 27 12:44:14 EST 2009] (Thread-12) RCV: RcvFunction.appEntered - menu.TransactionAction

[Fri Feb 27 12:44:14 EST 2009] (Thread-12) RCV: RcvFunction.appEntered - transaction_typenull

...

[Fri Feb 27 12:44:59 EST 2009] (Thread-12) ITEMLOV: fieldExited - 000228

[Fri Feb 27 12:44:59 EST 2009] (Thread-12) ITEMLOV: fieldExited - 000228

[Fri Feb 27 12:44:59 EST 2009] (Thread-12) [Item Id: 259 :Rev code: 1:lotcode: 1 :serialcode: 1 :restrictsubcode: 1 :restrictlotcode: 1 :locationcode: 2 :shelflifecode: 1 :shelflifedays: 0 :primaryuomcode:EA :effectivity control: 1 Inspection Qty:0.0 mInventoryAssetFlag: Y mOutsideOperationFlag: N:Inventory Stockable Flag: Y]

[Fri Feb 27 12:44:59 EST 2009] (Thread-12) Current Release level is J or higher

[Fri Feb 27 12:44:59 EST 2009] (Thread-12) mCrossRefItemNum :NULL

[Fri Feb 27 12:44:59 EST 2009] (Thread-12) LotSerialFListener - fieldExited :INV.ITEM

[Fri Feb 27 12:44:59 EST 2009] (Thread-12) OSP flag is:N

[Fri Feb 27 12:44:59 EST 2009] (Thread-12) ******DateFieldBean: Should NOT use this method. Instead use the setValue method which takes a string and a session for proper error free function of dates.******

[Fri Feb 27 12:44:59 EST 2009] (Thread-12) ******DateFieldBean: Otherwise, please make sure you call the setDate method too for this field.******

[Fri Feb 27 12:44:59 EST 2009] (Thread-12) ******DateFieldBean: NOTE - Have not validated the date being set if it is in the proper client format or not.******

[Fri Feb 27 12:44:59 EST 2009] (Thread-12) RCV: RcptGenFListener.fieldExited

...

[Fri Mar 06 11:31:03 EST 2009] (Thread-18) RCV: RcvPage.specialKeyPressed

[Fri Mar 06 11:31:03 EST 2009] (Thread-18) Special key pressed: clearing the vectors

[Fri Mar 06 11:31:03 EST 2009] (Thread-18) Rollback to RCV_SP and calling inv_rcv_common_apis.rcv_clear_global

[Fri Mar 06 11:31:03 EST 2009] (Thread-18) Rollback to RCV_SP complete.

[Fri Mar 06 11:31:03 EST 2009] (Thread-18) RCV: RcptGenPage.specialKeyPressed 10 - action = MWA_MAIN_MENU

[Fri Mar 06 11:31:03 EST 2009] (Thread-18) RCV: RcptGenPage.specialKeyPressed - complete

[Fri Mar 06 11:31:06 EST 2009] (Thread-18) Employee     ID :null

[Fri Mar 06 11:31:06 EST 2009] (Thread-18) Organization ID :666

[Fri Mar 06 11:31:06 EST 2009] (Thread-18) Executing the J Patch Set  Code

[Fri Mar 06 11:31:06 EST 2009] (Thread-18) Error  java.lang.NumberFormatException: null






Free Hit Counters
Comments