Code Monkey home page Code Monkey logo

scheduling-portal's Issues

Kill job is not functional

Original issue created by Christian Delbé on 05, Jan 2011 at 13:31 PM - PORTAL-62


When killing a running job (164) :
Wed Jan 05 13:31:16 GMT+100 2011 (link: core.client.presenter, WARNING): Submitting job. Trying to submit the file job.xml to the Scheduler.
Wed Jan 05 13:31:17 GMT+100 2011 (link: core.client.presenter, WARNING): Job submitted. A new job with the id 164 having the name: Generated Job was submitted.
Wed Jan 05 13:31:29 GMT+100 2011 (link: core.client.presenter, WARNING): Killing job. Trying to kill the job 164.
Wed Jan 05 13:31:29 GMT+100 2011 (link: core.client.presenter, WARNING): The job having the id 164 could not be killed.
Wed Jan 05 13:31:29 GMT+100 2011 (link: core.client.presenter, WARNING): The error message: "404 - Not Found error. <title>Apache Tomcat/6.0.26 - Error report</title><style></style>

HTTP Status 404 - Could not find resource for relative : /scheduler/jobs/164/kill of full path: http://localhost:8080/proactive_grid_cloud_portal/scheduler/jobs/164/kill


type Status report

message Could not find resource for relative : /scheduler/jobs/164/kill of full path: http://localhost:8080/proactive_grid_cloud_portal/scheduler/jobs/164/kill

description The requested resource (Could not find resource for relative : /scheduler/jobs/164/kill of full path: http://localhost:8080/proactive_grid_cloud_portal/scheduler/jobs/164/kill) is not available.


Apache Tomcat/6.0.26

" occurred when trying to kill the jobs with the id 164.

Disconnection does not work properly

Original issue created by Fabrice Fontenoy on 26, Oct 2010 at 18:00 PM - PORTAL-44


When you disconnect and reconnect right atfer, it is not possible to get some details (tasks, job info and logs) on a job anymore.
The application says that you are not connected and ask you to get connected first

SynchronizationTimerTask remains active even when all clients are deconnected

Original issue created by Arnaud Contes on 30, Dec 2010 at 17:41 PM - PORTAL-58


not found a scheduler frontend for sessionId 4
status: Unauthorized
org.ow2.proactive_grid_cloud_portal.shared.exception.JobSynchronizationException: Exception occured while trying to synchronize the job list with the scheduler throught the REST service located at http://localhost:8080/proactive_grid_cloud_portal
at org.ow2.proactive_grid_cloud_portal.server.SchedulerServiceImpl$SynchronizationTimerTask.run(SchedulerServiceImpl.java:1168)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)

documentation target doc-jaxrs does not work

Original issue created by Arnaud Contes on 02, Nov 2010 at 10:04 AM - PORTAL-48


10:02:08{master proactive_grid_cloud_portal.git} % ant doc-jaxrs
Buildfile: build.xml

doc-jaxb:

BUILD FAILED
/home/acontes/ws_git/proactive_grid_cloud_portal.git/build.xml:75: No source files and no packages have been specified.

Total time: 1 second
(link: 1) 2168 exit 1 ant doc-jaxrs

From time to time, JobDetailsPresenterImpl.onFailure raised a ClassCastException

Original issue created by Fabrice Fontenoy on 20, Oct 2010 at 17:21 PM - PORTAL-34


java.lang.ClassCastException: com.google.gwt.user.client.rpc.StatusCodeException cannot be cast to org.ow2.proactive_grid_cloud_portal.shared.exception.RestServerException

at org.ow2.proactive_grid_cloud_portal.client.presenter.scheduler.visualization.job.JobDetailsPresenterImpl$2.onFailure(JobDetailsPresenterImpl.java:127)
at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:218)
at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287)
at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:393)
at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
...

After a disconnection, presenters of the previous sessions are still alive and they are still handling events.

Original issue created by Fabrice Fontenoy on 27, Oct 2010 at 14:41 PM - PORTAL-46


This implies that every event are handled as many time as we have been connected.
This implies also that they are many failed request since they are using previous session id no longer valid.

We can consider 2 solutions for this issues:

  • Use a singleton pattern for presenters. Presenters are translated into Javascript so the behaviour of this pattern should be tested first but it seams that the singleton pattern is only valid for one tab. That implies that we will have 2 instances on 2 tabs but only one instance on one tab. This is the behaviour that we aim at providing (at most one session per tab but we can have several sessions using several tabs).
    When a reconnection is performed, we can just change the sessionId of the main presenter (SchedulerPresenter) and this presenter will propagate this modification to its sub-presenter and so on and so forth. One thing we have to take care of, is the initialisation of displays (should be called by its presenter). Otherwise, next user we be able to the last screen of the previous user.
  • Make every presenter handle the LogoutEvent in which we can call a doLogout() method for example that will perform operations necessary to remove all references and thus will make the GC possible. Remember that a presenter has a reference towards its view (Display) which itself has a reference towards its presenter. So the presenter has to call a method on its display to remove the reference towards itself and then it has to remove reference towards its display.

There is maybe a better and/or shorter solution but using one of these two solutions should fix this issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.