fadhilprm / myschedule

quartz scheduler management UI sample
0 stars 0 forks source link

Question #133

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
 access via RMI.

Hi I am using your project with RMI access .. I manage to connect but when 
viewing file details gives me this error I'm using spring 4.1.0
thank you

set 09, 2014 4:25:24 PM com.vaadin.server.DefaultErrorHandler doDefault
GRAVE: 
com.vaadin.server.ServerRpcManager$RpcInvocationException: Unable to invoke 
method click in com.vaadin.shared.ui.button.ButtonServerRpc
    at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:172)
    at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:118)
    at com.vaadin.server.AbstractCommunicationManager.handleBurst(AbstractCommunicationManager.java:1678)
    at com.vaadin.server.AbstractCommunicationManager.handleVariables(AbstractCommunicationManager.java:1564)
    at com.vaadin.server.AbstractCommunicationManager.handleUidlRequest(AbstractCommunicationManager.java:582)
    at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:315)
    at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:201)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:170)
    ... 27 more
Caused by: com.vaadin.event.ListenerMethod$MethodException: Invocation of 
method buttonClick in myschedule.web.ui.DashboardScreen$1 failed.
    at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:528)
    at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:167)
    at com.vaadin.server.AbstractClientConnector.fireEvent(AbstractClientConnector.java:984)
    at com.vaadin.ui.Button.fireClick(Button.java:367)
    at com.vaadin.ui.Button$1.click(Button.java:56)
    ... 32 more
Caused by: org.quartz.SchedulerException: Error communicating with remote 
scheduler. [See nested exception: java.rmi.UnmarshalException: error 
unmarshalling return; nested exception is: 
    java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean]
    at myschedule.quartz.extra.SchedulerTemplate.getJobDetail(SchedulerTemplate.java:148)
    at myschedule.web.ui.JobsWithTriggersContent.reloadTableContent(JobsWithTriggersContent.java:234)
    at myschedule.web.ui.JobsWithTriggersContent.initJobsTable(JobsWithTriggersContent.java:221)
    at myschedule.web.ui.JobsWithTriggersContent.<init>(JobsWithTriggersContent.java:45)
    at myschedule.web.ui.SchedulerScreen$SchedulerContent.switchJobsWithTriggersContent(SchedulerScreen.java:95)
    at myschedule.web.ui.SchedulerScreen$SchedulerContent.<init>(SchedulerScreen.java:90)
    at myschedule.web.ui.SchedulerScreen.initContent(SchedulerScreen.java:27)
    at myschedule.web.ui.SchedulerScreen.<init>(SchedulerScreen.java:23)
    at myschedule.web.ui.MyScheduleUi.loadSchedulerScreen(MyScheduleUi.java:81)
    at myschedule.web.ui.DashboardScreen$1.buttonClick(DashboardScreen.java:60)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:508)
    ... 36 more

Original issue reported on code.google.com by divane...@gmail.com on 9 Sep 2014 at 2:14

GoogleCodeExporter commented 8 years ago
Hard to say what's the cause. Could it be that your job is not seriablizable? 
Have you read about Quartz and RMI and "codebase"? See 
http://quartz-scheduler.org/documentation/quartz-2.2.x/configuration/ConfigRMI

Original comment by saltnlight5 on 19 Sep 2014 at 1:30