It appears that the ERMBatchSizeControl returns null for d2wContext() when it's tied to an embedded listing.
Oct 07 06:47:09 TotalViewAdminD2W[9191] (TVWApplication.java:283) ERROR er.extensions.appserver.ERXApplication - Uncaught exception: Attempt to insert null object into an com.webobjects.foundation.NSDictionary.
Extra info: {
"D2W-SubTask" = "null";
"D2W-PageConfiguration" = "ListEmbeddedCCCommunicationIdentity";
"CurrentComponent" = "er.modern.directtoweb.components.ERMDBatchSizeControl";
"PreviousPageList" = (
"QuerySamsStudent",
"ListSamsStudent",
"InspectSamsStudent"
);
"D2W-PropertyKey" = "null";
"D2W-DisplayPropertyKeys" = (
"communication.communicationDate",
"role.displayName",
"identity.firstname",
"identity.lastname",
"communication.subject"
);
"CurrentPage" = "er.modern.look.pages.ERMODTabInspectPage";
"Current Account" = "10193338";
"URL" = "/cgi-bin/WebObjects/TotalViewAdminD2W.woa/ajax/hV8rQV1q1R2BMjuPYav2xw/5.0.3.5.1.2.3.0.1.0.0.3.3.0.1.3.1263925117.0.1.3.0.1.0.1.3.0.1.3.1.2.0.0.0.0.1.2.3.1.0.3.3.1.1.9.1.0.1.1.0.9";
"CurrentComponentHierarchy" = (
"er.modern.look.pages.ERMODTabInspectPage",
"er.modern.directtoweb.components.repetitions.ERMDInspectPageRepetition",
"er.directtoweb.components.relationships.ERDList",
"er.directtoweb.embed.ERXD2WList",
"er.directtoweb.components.ERD2WSwitchComponent",
"er.modern.look.pages.ERMODListPage",
"er.modern.directtoweb.components.ERMDBatchSizeControl"
);
"D2W-EntityName" = "CCCommunicationIdentity";
"D2W-ComponentName" = "ERD2WDisplayString";
"Headers" = {
"user-agent" = "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-us) AppleWebKit/533.18.1 (KHTML, like Gecko) Version/5.0.2 Safari/533.18.5";
"cookie" = "__utmc=188508456; __utma=188508456.1010180370.1286383408.1286383408.1286383408.1; __utmz=188508456.1286383408.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)";
"accept" = "text/_javascript_, text/html, application/xml, text/xml, */*";
"content-type" = "application/x-www-form-urlencoded; charset=UTF-8";
"accept-encoding" = "gzip, deflate";
"content-length" = "27";
"x-prototype-version" = "1.6.1";
"original_context_id" = "5";
"x-requested-with" = "XMLHttpRequest";
"host" = "10.0.1.8:9191";
"accept-language" = "en-us";
"connection" = "keep-alive";
};
"Current User" = "Reed Ckeade";
}
IllegalArgumentException: Attempt to insert null object into an com.webobjects.foundation.NSDictionary.
at com.webobjects.foundation.NSDictionary.<init>(NSDictionary.java:170)
at er.modern.directtoweb.components.ERMDBatchSizeControl.setNumberOfObjectsPerBatch(ERMDBatchSizeControl.java:177)
... skipped 21 stack elements
at ognl.helperfunction.WOHelperFunctionKeyValueAssociation.setValue(WOHelperFunctionKeyValueAssociation.java:21)
at er.ajax.AjaxInPlaceEditor.handleRequest(AjaxInPlaceEditor.java:168)
... skipped 232 stack elements
at er.ajax.AjaxRequestHandler.handleRequest(AjaxRequestHandler.java:17)
... skipped 1 stack elements
at er.extensions.appserver.ajax.ERXAjaxApplication.dispatchRequest(ERXAjaxApplication.java:50001)
... skipped 1 stack elements
at com.k12.totalview.app.TVWApplication.dispatchRequestImmediately(TVWApplication.java:50001)
at com.k12.totalview.app.Application.dispatchRequestImmediately(Application.java:50001)
... skipped 1 stack elements
at com.k12.totalview.app.TVWApplication.dispatchRequest(TVWApplication.java:213)
at com.k12.totalview.app.Application.dispatchRequest(Application.java:42)
... skipped 3 stack elements