Jython java call throws exception asking for 2 args when only one arg is coded
- by clutch
I have an Java method I want to call within my Jython servlet running on tomcat5. It looks like this:
@SuppressWarnings("unchecked")
public School loadByName(String name) {
List<School> school;
school = getHibernateTemplate().find("from " + getPersistentClass().getName() + " where name = ?", name);
return uniqueResult(school);
}
I call it in Jython using:
foobar = SchoolDAOHibernate.loadByName('Univeristy')
It throws an error that says loadByName() expects 2 args; got 1.
What other argument could it be looking for?