semaifour / myschedule

Automatically exported from code.google.com/p/myschedule
0 stars 1 forks source link

NullPointerException #102

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a new scheduler
2. Pasted database config properties and xml file content with a job, got the 
message "Job loaded successfully"
3. Went back to Jobs and clicked on "Run It Now" and received - Error Type: 
class java.lang.NullPointerException

Stack Trace:

java.lang.NullPointerException
    at myschedule.quartz.extra.SchedulerTemplate.getNextFireTimes(SchedulerTemplate.java:647)
    at myschedule.service.QuartzUtils.getNextFireTimesWithExclusionDesc(QuartzUtils.java:94)
    at myschedule.web.servlet.app.handler.JobHandlers$12.handleViewData(JobHandlers.java:399)
    at myschedule.web.servlet.UrlRequestActionHandler.handleAction(UrlRequestActionHandler.java:49)
    at myschedule.web.servlet.ActionHandlerServlet.process(ActionHandlerServlet.java:109)
    at myschedule.web.servlet.AbstractControllerServlet.doGet(AbstractControllerServlet.java:82)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    at java.lang.Thread.run(Thread.java:619)
Please help me out...I know there are some discussions about the issue, but 
none of them are clear...

Original issue reported on code.google.com by berryapp...@gmail.com on 26 Oct 2012 at 9:57

GoogleCodeExporter commented 9 years ago
hello berry,
Thanks for reporting the issue. Can you please paste what config props you used 
and what's xml you use to create the job?

And what version of myschedule are you using?

Thanks,
Zemian

Original comment by saltnlight5 on 29 Oct 2012 at 1:28

GoogleCodeExporter commented 9 years ago
Hi, please find the attached files for config and xml files. I'm using 2.4.4 
version of myschedule.

Original comment by berryapp...@gmail.com on 29 Oct 2012 at 2:49

Attachments:

GoogleCodeExporter commented 9 years ago
Hi berry, I can't reproduce your error with your config and xml job. It runs 
fine on my box (I used ping instead of curl since I don't have that installed.)

According to your stacktrace, the line 
"myschedule.quartz.extra.SchedulerTemplate.getNextFireTimes(SchedulerTemplate.ja
va:647)" will only occur if the trigger no longer exists. I don't see how 
that's possible with your xml job since it's a repeating trigger without an end 
date.

Perhaps you can print me your full server log with all the quartz activities 
and see if I find the cause.

Original comment by saltnlight5 on 31 Oct 2012 at 1:12

GoogleCodeExporter commented 9 years ago
Hi, Thanks for your reply.
It seems to be working now..
Can you tell me how to set the end date to stop the trigger according to my 
XML..

Original comment by berryapp...@gmail.com on 1 Nov 2012 at 5:41

GoogleCodeExporter commented 9 years ago
Hi, can you please tell me how to add the username and password in the XML 
file. So that if any user runs the scheduler that user details(username) has to 
be saved in database..Kindly help me in this. Thanks

Original comment by berryapp...@gmail.com on 9 Nov 2012 at 10:09

GoogleCodeExporter commented 9 years ago
Hello Berry,

I am not understanding what you are asking about username and password. The XML 
that quartz provides are used to add Trigger or Job entries into the scheduler, 
and they don't support username nor password. The xml are supported by Quartz 
project. You can read the XSD schema provide by the xml and see what elements 
are supported. Or you can post your XML related questions to Quartz to see if 
their user can help you.

The MySchedule app itself also provided few examples as well.

Original comment by saltnlight5 on 10 Nov 2012 at 1:32

GoogleCodeExporter commented 9 years ago
If this is non-issue, I would like to close it now.

Original comment by saltnlight5 on 2 Mar 2013 at 2:07

GoogleCodeExporter commented 9 years ago
Closing issue as invalid.

Original comment by saltnlight5 on 8 Jun 2013 at 3:36