Why is "method is not applicable for the arguments"

I am trying to create a new .jsp page by copying a similar page.

I've been hobbling along by making small changes here and there so a pretty good sense of what is going on, but I have a compile error that I have no clue how to figure out.

This is a simple page that displays a list of 20 data loads, for a given day. Then the user can scroll back and forth, day by day.

Here's the error:
"The method getProcessName() in the type ProcessControlTable is not applicable for the arguments (String)"

My java pieces are:
- Domain: ProcessControlTable.java
- DAO:
   - DailyLoadDetailsDAO.java
   - DailyLoadDetailsDAOImpl.java
- Web: DailyLoadDetailsController
I've compared the working system with mine and can't find the difference.

I know this is a debugging exercise but I am dead in the water.
================== ProcessControlTable.java ============
package com.carefirst.edw.domain;

import java.util.Date;
import java.util.List;

public class ProcessControlTable {
	private String subjArea;
	private String srceName;
	private String processName;
	private Date runDate;
	private Date pullFromDate;
	private Date pullThruDate;
	private String runFreq;
	public String getSubjArea() {
		return subjArea;
	public void setSubjArea(String subjArea) {
		this.subjArea = subjArea;

	public String getSrceName() {
		return srceName;
	public void setSrceName(String srceName) {
		this.srceName = srceName;

	public String getProcessName() {
		return processName;
	public void setProcessName(String processName) {
		this.processName = processName;

	public Date getRunDate() {
		return runDate;
	public void setRunDate(Date runDate) {
		this.runDate = runDate;

	public Date getPullFromDate() {
		return pullFromDate;
	public void setPullFromDate(Date pullFromDate) {
		this.pullFromDate = pullFromDate;

	public Date getPullThruDate() {
		return pullThruDate;
	public void setPullThruDate(Date pullThruDate) {
		this.pullThruDate = pullThruDate;

	public String getRunFreq() {
		return runFreq;
	public void setRunFreq(String runFreq) {
		this.runFreq = runFreq;

================== DailyLoadDetailsDAO.java ============
package com.carefirst.edw.dao;

import java.util.Date;
import java.util.List;

public interface DailyLoadDetailsDAO {
	public abstract List getLoadDetails(Date date);

================== DailyLoadDetailsDAOImpl.java (this is where the errors are, see .jpg) ============
package com.carefirst.edw.dao;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Types;
import java.util.Date;
import java.util.List;

import org.springframework.jdbc.core.RowMapper;
import org.springframework.jdbc.core.namedparam.MapSqlParameterSource;
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcDaoSupport;

import com.carefirst.edw.domain.ProcessControlTable;

public class DailyLoadDetailsDAOImpl extends NamedParameterJdbcDaoSupport implements DailyLoadDetailsDAO {
	private static final String LOAD_DETAILS_SQL = 
	"select lk.subj_area, lk.srce_sys_cd_desc||' - '||lk.srce_sys_cd as source, cl.prcs_nm, cl.run_dt, to_char(cl.data_pull_from_dt_tm,'MM/DD/YYYY') as data_from, " +
	"       to_char(cl.data_pull_thru_dt_tm,'MM/DD/YYYY') as data_thru, cl.prcs_freq " +
	" from  edm_sys.edm_srce_sys_lkup lk " +
    "	    left join edm_sys.edm_cntl cl on lk.edm_srce_sys_skey = cl.edm_srce_sys_skey and trunc(cl.aud_insrt_tmstp) = :date " +
    " order by 1,2, 3 ";
	public List getLoadDetails(Date date) {
		MapSqlParameterSource map = new MapSqlParameterSource();
		map.addValue("date", date);
		List history = getNamedParameterJdbcTemplate().query(LOAD_DETAILS_SQL, map, new DailyDetailsRowMapper()); 
		return history;

    private class DailyDetailsRowMapper implements RowMapper {
        public Object mapRow(ResultSet rs, int arg1) throws SQLException {
        	ProcessControlTable detail = new ProcessControlTable();
        	return detail;

================== DailyLoadDetailsController ============
package com.carefirst.edw.web;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import com.carefirst.edw.dao.DailyLoadDetailsDAO;

public class DailyLoadDetailsController extends MonthSelectorController implements Controller {
	protected final Log logger = LogFactory.getLog(getClass());
	private DailyLoadDetailsDAO dao = null;
	public ModelAndView handleRequest(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		String date = request.getParameter("DATE");
		String subject = request.getParameter("SUBJ");
		SimpleDateFormat sdf = new SimpleDateFormat("MMddyyyy");
		Date reportDate = sdf.parse(date);
		Date previousDate = getPreviousDate(reportDate);
		Date nextDate = getNextDate(reportDate);
		List details = dao.getLoadDetails(reportDate);
		Map model = new HashMap();
		model.put("currentDate", reportDate);
		model.put("prevDate", previousDate);
		model.put("nextDate", nextDate);
		model.put("subjectArea", subject);
		model.put("date", reportDate);
		model.put("details", details);
		return new ModelAndView("dailyLoadDetails" + subject, "model", model);

	public void setDailyLoadDetailsDAO(DailyLoadDetailsDAO dao) {
		this.dao = dao;

Open in new window

Alaska CowboyAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Alaska CowboyAuthor Commented:
.pdf of screen print
Mick BarryJava DeveloperCommented:

the should all be setXyz (not getXyz)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Alaska CowboyAuthor Commented:
Oh, oops, still getting my feet wet on this.

Thanks, I'll try tonight and let you know.
Alaska CowboyAuthor Commented:
did the trick ! thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.