Hi Isomorphic,
please see these logs for an add request from BatchUploader (v10.1p_2016-11-08).
Somehow an attribute gets lost between the browser request and the 1st time I can set a breakpoint on the server:
Browser request Developer Console:
Browser request Browser network tab (formatted):
Server log:
Eclipse debug on Browser request Browser network tab (formatted):
This is the class:
This is what I get for dsRequest.getValues() in Eclipse expression tab:
Please note that STATUS_SHORTNAME is missing there.
I have absolutely no idea what could be the reason for this. Small changes to the .ds.xml did not change anything.
The STATUS_SHORTNAME field is one with importStrategy="display" but I have this also for another field where this problem does not exist.
Server restarts, new compile and deploy etc did not lead to any change.
Do you have any pointer for me how I can debug this very strange effect or even better what might be causing this?
Thank you & Best regards
Blama
please see these logs for an add request from BatchUploader (v10.1p_2016-11-08).
Somehow an attribute gets lost between the browser request and the 1st time I can set a breakpoint on the server:
Browser request Developer Console:
Code:
{ dataSource:"V_LEADBATCHUPDATE__36__2016_11_10_03_18_03", operationType:"add", data:{ STATUS_STATUSDATE:"2016-11-15T23:00:00.000", STATUS_STATUSCOMMENT:"Alles OK, verschieben", MD_SOURCEUID:"FOLLOWUP-1", [B] STATUS_SHORTNAME:"resubmission",[/B] STATUS_IMPTRANS_LOOKUP_EXTNAME:"WV" }, textMatchStyle:"exact", willHandleError:true, showPrompt:true, oldValues:{ STATUS_STATUSDATE:"2016-11-15T23:00:00.000", STATUS_STATUSCOMMENT:"Alles OK, verschieben", MD_SOURCEUID:"FOLLOWUP-1", STATUS_SHORTNAME:"resubmission", STATUS_IMPTRANS_LOOKUP_EXTNAME:"WV" }, requestId:"V_LEADBATCHUPDATE__36__2016_11_10_03_18_03$62712", fallbackToEval:false, lastClientEventThreadCode:"MUP3", bypassCache:true, dataProtocol:"getParams" }
Code:
<transaction xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:type="xsd:Object"> <transactionNum xsi:type="xsd:long">12</transactionNum> <operations xsi:type="xsd:List"> <elem xsi:type="xsd:Object"> <values xsi:type="xsd:Object"> <STATUS_STATUSDATE xsi:type="xsd:datetime">2016-11-15T23:00:00.000</STATUS_STATUSDATE> <STATUS_STATUSCOMMENT>Alles OK, verschieben</STATUS_STATUSCOMMENT> <MD_SOURCEUID>FOLLOWUP-1</MD_SOURCEUID> [B] <STATUS_SHORTNAME>resubmission</STATUS_SHORTNAME>[/B] <STATUS_IMPTRANS_LOOKUP_EXTNAME>WV</STATUS_IMPTRANS_LOOKUP_EXTNAME> </values> <operationConfig xsi:type="xsd:Object"> <dataSource>V_LEADBATCHUPDATE__36__2016_11_10_03_18_03</dataSource> <repo xsi:nil="true" /> <operationType>add</operationType> <textMatchStyle>exact</textMatchStyle> </operationConfig> <appID>builtinApplication</appID> <operation>V_LEADBATCHUPDATE__36__2016_11_10_03_18_03_add</operation> <oldValues xsi:type="xsd:Object"> <STATUS_STATUSDATE xsi:type="xsd:datetime">2016-11-15T23:00:00.000</STATUS_STATUSDATE> <STATUS_STATUSCOMMENT>Alles OK, verschieben</STATUS_STATUSCOMMENT> <MD_SOURCEUID>FOLLOWUP-1</MD_SOURCEUID> <STATUS_SHORTNAME>resubmission</STATUS_SHORTNAME> <STATUS_IMPTRANS_LOOKUP_EXTNAME>WV</STATUS_IMPTRANS_LOOKUP_EXTNAME> </oldValues> </elem> </operations> </transaction>
Code:
=== 2016-11-11 23:31:51,277 [ec-4] DEBUG RPCManager - Request #1 (DSRequest) payload: { values:{ STATUS_STATUSDATE:new Date(1479250800000), STATUS_STATUSCOMMENT:"Alles OK, verschieben", MD_SOURCEUID:"FOLLOWUP-1", [B] STATUS_SHORTNAME:"resubmission",[/B] STATUS_IMPTRANS_LOOKUP_EXTNAME:"WV" }, operationConfig:{ dataSource:"V_LEADBATCHUPDATE__36__2016_11_10_03_18_03", repo:null, operationType:"add", textMatchStyle:"exact" }, appID:"builtinApplication", operation:"V_LEADBATCHUPDATE__36__2016_11_10_03_18_03_add", oldValues:{ STATUS_STATUSDATE:new Date(1479250800000), STATUS_STATUSCOMMENT:"Alles OK, verschieben", MD_SOURCEUID:"FOLLOWUP-1", STATUS_SHORTNAME:"resubmission", STATUS_IMPTRANS_LOOKUP_EXTNAME:"WV" }, criteria:{ } } === 2016-11-11 23:31:51,277 [ec-4] INFO LMSIDACall - Performing 1 operation(s) === 2016-11-11 23:31:51,277 [ec-4] DEBUG SQLDataSource - DataSource 3196 acquired SQLDriver instance 1238298750 during initialization === 2016-11-11 23:31:51,278 [ec-4] DEBUG SQLDataSource - DataSource 3197 acquired SQLDriver instance 1172939677 during initialization === 2016-11-11 23:31:51,278 [ec-4] DEBUG SQLDataSource - DataSource 3198 acquired SQLDriver instance 831213388 during initialization ... ... ...
This is the class:
Code:
public class V_LEADBATCHUPDATE { public DSResponse updateLead(DSRequest dsRequest, HttpServletRequest servletRequest, HttpServletResponse servletResponse) throws Exception { @SuppressWarnings("unchecked") Map<String, Object> data = (Map<String, Object>) dsRequest.getValues(); ... ... ...
{STATUS_STATUSDATE=Wed Nov 16 00:00:00 CET 2016, STATUS_STATUSCOMMENT=Alles OK, verschieben, MD_SOURCEUID=FOLLOWUP-1, STATUS_IMPTRANS_LOOKUP_EXTNAME=WV}
I have absolutely no idea what could be the reason for this. Small changes to the .ds.xml did not change anything.
The STATUS_SHORTNAME field is one with importStrategy="display" but I have this also for another field where this problem does not exist.
Server restarts, new compile and deploy etc did not lead to any change.
Do you have any pointer for me how I can debug this very strange effect or even better what might be causing this?
Thank you & Best regards
Blama
Comment