Hi all,
Can anybody tell me how I could catch ORA errors?
The situation is:
I have a “stored procedure” adapter service. This is inside
the TRY sequence. I use pub.flow:getLastError service in the
CATCH sequence.
For testing purpose, I have deleted the stored procedure
from the database(Oracle). ‘lastError’ record doesn’t give
the detailed error info as appears in the error log. How to
get these error messages in the CATCH sequence?
The errorDump for this exception is
[
Mesg: Exception at gbsgl:callProcGL , Error:
com.wm.pkg.art.error.DetailedServiceException:
[ART.117.4002] Adapter Runtime (Adapter Service): Unable to
invoke adapter service gbsgl:callProcGL.
at
com.wm.util.LocalizedException.(LocalizedException.java:114)
at
com.wm.app.b2b.server.ServerException.(ServerException.java:24)
at
com.wm.app.b2b.server.ServiceException.(ServiceException.java:15)
blah…blah…blah…
]
The “error log” messages (from admin screen) are:
ORA-06550: line 1, column 7: PLS-00201: identifier
‘WEBM.LOAD_GLCODE’ must be declared ORA-06550: line 1,
column 7: PL/SQL: Statement ignored
[ADA.001.316] Cannot execute the SQL statement “{call
WEBM.LOAD_GLCODE (?) }”. " (65000/6550) ORA-06550: line 1,
column 7: PLS-00201: identifier ‘WEBM.LOAD_GLCODE’ must be
declared ORA-06550: line 1, column 7: PL/SQL: Statement
ignored "
[ART.117.4002] Adapter Runtime (Adapter Service): Unable to
invoke adapter service gbsgl:callProcGL.
com.wm.pkg.art.error.DetailedServiceException:
[ART.117.4002] Adapter Runtime (Adapter Service): Unable to
invoke adapter service gbsgl:callProcGL.
The above error log messages look meaningful than the one
obtained from getLastError service. How to catch these
error messages?
Appreciate any help…
RK