All pastes #2093202 Raw Edit

Untitled

public text v1 · immutable
#2093202 ·published 2011-11-08 22:53 UTC
rendered paste body
public class MySQLAvailable extends AbstractMySQLEvent implements Available {

public MySQLAvailable(int i, EventFactory factory) {
  super(i, factory);
}




Class[] cArgs = { Integer.class, EventFactory.class }; 
return (Event) c.getConstructor(cArgs).newInstance( Integer.valueOf(result), this.getFactory());



Caused by: java.lang.NoSuchMethodException: ca.ubc.cpsc410.meetmarket.system.db.events.mysql.MySQLAvailable.<init>(java.lang.Integer, ca.ubc.cpsc410.meetmarket.events.EventFactory)
	at java.lang.Class.getConstructor0(Class.java:2723)
	at java.lang.Class.getConstructor(Class.java:1674)
	at ca.ubc.cpsc410.meetmarket.system.db.events.mysql.MySQLEventFactory.getEventByID(MySQLEventFactory.java:118)
	... 1 more