Focal Point
Error handling [Resolved]

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/715103155

October 14, 2010, 07:28 AM
Ted Michalski
Error handling [Resolved]
We have a J2EE application that is calling and executing a WF report through Web Services. If anything goes wrong with the WF report (i.e. can't connect to the database, etc.) we want WF to send J2EE to send a string (like the one below) through a SOAP message. Is this possible?





WebFOCUS Message[42]: NO EDA HTML Output






No HTML Output!





              <H5>

               (FOC1400) SQLCODE IS -1 (HEX: FFFFFFFF)

               : SQL OLE DB Interface: Could not find Connection WEBFOCUS

               L    (FOC1406) SQL OPEN CURSOR ERROR.

              </H5>

            




This message has been edited. Last edited by: Ted Michalski,


7.7.02
Windows
EXCEL, PDF, CSV, TEXT
October 14, 2010, 08:14 AM
Håkan
Ted,
something like this:
1. Create a master for the focsql.err file, ti's located in the \ibi\64bit\srv76\home\nls or
\ibi\srv76\home\nls\, depending on whether you're on a 64 or 32 bit machine. They come in a few different language versions as well.

FILENAME=FOCSQL, SUFFIX=FIX
SEGNAME=SEG1, SEGTYPE=S0,$
FIELD=str0,,A5,A5,$
FIELD=errno,,A9,A9,$
FIELD=space,,A1,A1,$
FIELD=text,,A65,A65,$

Run a query and extract the information you want. Maybe jsut the first line is interesting.

/Håkan


WebFOCUS DS 8.0.06/08 DS/AS
WebFOCUS RS 8.0.08 (Linux/IBM i)
WebFOCUS Client 8.0.06 (Linux)
October 14, 2010, 03:57 PM
Waz
I think that step 1 should be add error checking to your fex.

Then you can handle the errors.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

October 14, 2010, 05:36 PM
Håkan
No offence Waz

but I think create the master file first and then run a standard fex as an -include or ex after the report. If &FOCERRNUM = 0 then you just skip the error handling, else do somthing useful to send to your Java app


WebFOCUS DS 8.0.06/08 DS/AS
WebFOCUS RS 8.0.08 (Linux/IBM i)
WebFOCUS Client 8.0.06 (Linux)
October 14, 2010, 05:45 PM
Waz
The order is not important, unless it effects the performance of the report.

As long as there is error checking, and something to handle it.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!