[jboss-user] [JBoss Seam] - Re: Timer not starting from method with @Create annotation.

petemuir do-not-reply at jboss.com
Fri Jun 8 10:38:08 EDT 2007


2007-06-08 14:36:26,756 ERROR [org.jboss.ejb.txtimer.TimerImpl] Error invoking ejbTimeout: javax.ejb
  | .EJBException: java.lang.NullPointerException:

@Create
  |     public void startScheduler() {
  |         try {
  |         log.info("Entering create now to start the schdeuler");
  |         try{Thread t = new Thread();
  |         t.sleep(10000);}
  |         catch(Exception e){}
  |        	try {
  |        		MyappScheduleController ysh = (MyappScheduleController) Component.getInstance("myappScheduleHome");
  |        		ysh.saveAndSchedule();
  |        	} catch (Exception e) {
  |        		System.out.println("Got the exception while starting time "+e.toString());
  |        	}
  |         } catch (Exception e) {
  |             e.printStackTrace();
  |         }
  |     }

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052611#4052611

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052611



More information about the jboss-user mailing list