private Object makedata(Session sess) {
try {
try {
- return(dcl.getConstructor().newInstance());
+ return(dcl.getConstructor(Session.class).newInstance(sess));
} catch(NoSuchMethodException e) {
}
try {
- return(dcl.getConstructor(Session.class).newInstance(sess));
+ return(dcl.getConstructor().newInstance());
} catch(NoSuchMethodException e) {
}
} catch(InstantiationException e) {
public void respond(Request req) {
Session sess = Session.get(req);
Responder resp;
- synchronized(sess) {
+ synchronized(this) {
resp = (Responder)sess.get(rcl, null);
if(resp == null) {
resp = create(sess);