Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Question about log message "No public zero-argument method named '_updateLead' found"

    Hi Isomorphic,

    I wonder what the log message I get very early during a request means (as everything is working as expected and it sounds like a warning):
    Code:
    === 2013-11-18 17:21:19,940 [ec-6] DEBUG PoolableSQLConnectionFactory - Executing pingTest 'select 1 from dual' on connection 804541778
    === 2013-11-18 17:21:19,941 [ec-6] DEBUG SQLConnectionManager - Borrowed connection '804541778'
    === 2013-11-18 17:21:19,941 [ec-6] DEBUG SQLTransaction - Started new Oracle transaction "804541778"
    === 2013-11-18 17:21:19,941 [ec-6] DEBUG DeclarativeSecurity - Processing security checks for DataSource null, field null
    === 2013-11-18 17:21:19,941 [ec-6] DEBUG DeclarativeSecurity - DataSource T_ADDRESS is not in the pre-checked list, processing...
    === 2013-11-18 17:21:19,941 [ec-6] DEBUG AppBase - [builtinApplication.updateLead] No userTypes defined, allowing anyone access to all operations for this application
    [B]=== 2013-11-18 17:21:19,942 [ec-6] DEBUG AppBase - [builtinApplication.updateLead] No public zero-argument method named '_updateLead' found, performing generic datasource operation
    [/B]=== 2013-11-18 17:21:19,942 [ec-6] INFO  SQLDataSource - [builtinApplication.updateLead] Performing update operation with
    	criteria: {ID:1}	values: {...}
    I have a .ds.xml with the following operationBindings:
    Code:
    <DataSource dbName="Oracle" tableName="T_ADDRESS" ID="T_ADDRESS" serverType="sql">
    	<fields>
    		...fieldlist...
    	</fields>
    	<serverObject lookupStyle="new" className="com.lmscompany.lms.server.worker.T_ADDRESS" />
    	<operationBindings>
    		<operationBinding operationType="add" operationId="addLead" serverMethod="addLead">
    		</operationBinding>
    [B]		<operationBinding operationType="update" operationId="updateLead" serverMethod="updateLead">
    		</operationBinding>[/B]
    	</operationBindings>
    </DataSource>
    The server-side class is:
    Code:
    public class T_ADDRESS {
    	public DSResponse update(DSRequest dsRequest, HttpServletRequest servletRequest) throws Exception {
    		return dsRequest.execute();
    	}
    
    	public DSResponse addLead(DSRequest dsRequest, HttpServletRequest servletRequest) throws Exception {
    		return addOrUpdateLead(dsRequest);
    	}
    
    [B]	public DSResponse updateLead(DSRequest dsRequest, HttpServletRequest servletRequest) throws Exception {
    		return addOrUpdateLead(dsRequest);
    	}[/B]
    
    	public DSResponse addOrUpdateLead(DSRequest dsRequest) throws Exception {
    		...some logic...
    	}
    };
    If I set breakpoints I can see that the server-method updateLead(...) is used, which in turn calls my custom logic - so everything works as expected.

    I'm just curious what the log entry "No public zero-argument method named '_updateLead' found, performing generic datasource operation" is telling me. Can I create a method _updateLead() and where could it be useful?

    Thank you,
    Blama

    #2
    Ignore these logs. They are from a subsystem with no documented APIs.

    Comment


      #3
      Thanks for the answer. I will do so.

      Best regards,
      Blama

      Comment


        #4
        Originally posted by Isomorphic View Post
        Ignore these logs. They are from a subsystem with no documented APIs.
        In my project , when this log ocurs, sometimes it didn't go ahead, it stopped just there . My operation is stopped. I just don't know why.

        Comment

        Working...
        X