Hi,
1) TransactionNum
I'm overriding this method in my own IDACall
and want to log the transactionNum, but it's null (see screenshot in Eclipse debugger).
I can get the number via
Is that the normal way?
2) Exception lost
When I call super.handleDSRequest(dsRequest, rpc, context), everything boils down OK, till a point where I throw a RuntimeException (that's OK, I want it).
However, that call catches the exception and puts it in the DSResponse as data.
I see the exception and stacktrace logged in the SmartClient server log file:
But I'd like to catch it myself (/as well). Is there some override point I can use to pass some more information about the exception to the DSResponse object?
some more info:
This is the stacktrace logged above found in the SmartClient server log file. ZzzIDACall.java:79 is the place where I expected to catch that error.
thanks
SmartClient Version: SC_SNAPSHOT-2010-10-27
1) TransactionNum
I'm overriding this method in my own IDACall
Code:
@Override public DSResponse handleDSRequest(DSRequest dsRequest, RPCManager rpc, RequestContext context)
I can get the number via
Code:
RPCManager.getTransactionNum(dsRequest.context.request)
2) Exception lost
When I call super.handleDSRequest(dsRequest, rpc, context), everything boils down OK, till a point where I throw a RuntimeException (that's OK, I want it).
However, that call catches the exception and puts it in the DSResponse as data.
I see the exception and stacktrace logged in the SmartClient server log file:
Code:
[l0-5] WARN RequestContext - dsRequest.execute() failed: ....
some more info:
This is the stacktrace logged above found in the SmartClient server log file. ZzzIDACall.java:79 is the place where I expected to catch that error.
Code:
zzz.server.util.error.ZzzRuntimeException: not found. at zzz.server.util.general.ZzzSessionUtil.postSessionInvoke(ZzzSessionUtil.java:33) at zzz.server.stores.ZzzAncestorSessStore.postInvoke(ZzzAncestorSessStore.java:268) at zzz.server.stores.menu.MNodeSessStore.getM(MNodeSessStore.java:44) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.isomorphic.base.Reflection.adaptArgsAndInvoke(Reflection.java:883) at com.isomorphic.datasource.DataSourceDMI.execute(DataSourceDMI.java:575) at com.isomorphic.datasource.DataSourceDMI.execute(DataSourceDMI.java:64) at com.isomorphic.datasource.DSRequest.execute(DSRequest.java:1413) at com.isomorphic.servlet.IDACall.handleDSRequest(IDACall.java:173) at zzz.server.custom.ZzzIDACall.handleDSRequest(ZzzIDACall.java:79) at com.isomorphic.servlet.IDACall.processRPCTransaction(IDACall.java:130) at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:95) at com.isomorphic.servlet.IDACall.doPost(IDACall.java:54) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152) at zzz.server.custom.ZzzIDACall.service(ZzzIDACall.java:60) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
thanks
SmartClient Version: SC_SNAPSHOT-2010-10-27
Comment