I was testing libreplan, unfortunately with root login. I tested some feature, created a project and some task with complex ressource assignement.
I surely made some error on task ressource assignement because now, when i try to log again with root i have this error message :
[b]java.lang.IllegalArgumentException: seconds cannot be negative
at org.apache.commons.lang.Validate.isTrue(Validate.java:157)
at org.libreplan.business.workingday.EffortDuration.<init>(EffortDuration.java:172)
at org.libreplan.business.workingday.EffortDuration.plus(EffortDuration.java:291)
at org.libreplan.web.planner.chart.ChartFiller.accumulatePerWeek(ChartFiller.java:404)
at org.libreplan.web.planner.chart.ChartFiller.groupByWeekDurations(ChartFiller.java:394)
at org.libreplan.web.planner.chart.ChartFiller.groupAsNeededByZoom(ChartFiller.java:389)
at org.libreplan.web.planner.chart.StandardLoadChartFiller.getCalendarMaximumAvailability(StandardLoadChartFiller.java:70)
at org.libreplan.web.planner.chart.StandardLoadChartFiller.getPlotInfos(StandardLoadChartFiller.java:25)
at org.libreplan.web.planner.chart.LoadChartFiller.fillChart(LoadChartFiller.java:46)
at org.libreplan.web.planner.chart.Chart.fillChart(Chart.java:49)
at org.libreplan.web.planner.company.CompanyPlanningModel.setupChart(CompanyPlanningModel.java:611)
at org.libreplan.web.planner.company.CompanyPlanningModel.setupChartAndItsContent(CompanyPlanningModel.java:277)
at [/b]
How can i solve this problem that block the access to the application ?
Thank you for any help
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
first of all, thanks for reporting the problem. Probably it is caused by the complex assignments you say that you have being doing. However, in spite of them, the program should never cause this condition. Summing up, there is some bug in the code controlling the assignments.
I reported a bug in the project bug tracking system http://bugs.libreplan.org/show_bug.cgi?id=1372. As you say that you are doing tests, in order to reproduce the bug and fix, it would be very helpful if we could have a dump of your database. I deduce that you are not working with confidential data as you are doing tests. So, if you do not mind, I would like to ask you to attach your libreplan database dump in the bug page. In order to do it, you will need to create an account in the LibrePlan bugzilla and, after this, you will need to visit the bug page and press in the link Add an attachment. If you find difficulties doing this, you can also send us the database dump to the mail info@libreplan.com
The exception is saying that a negative amount of time has been assigned in the database, thing that should never happen. Once done the database dump, in order to solve the exception on doing login, probably the best solution is the following.
* After the error, put the following address in the URL box in the browser: http://localhost:8080/libreplan-webapp/settings/settings.zul
* In this window, uncheck the option Company view in Planning charts expanded row.
* Now, go the the projects list through the top menu option Scheduling -> Project list.
* Locate the project(s) you have been doing allocations and press in the delete button in the operations column.
After this, the inconsistent data should be deleted and the error should have gone away.
If you are unable to do this because exception keeps arising, please, comment us here again and I can paste you the SQL sentences to remove the inconsistent data directly in the database.
Regards.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Unfortunately, i can not provide a dump because i'm doing test with real data (company names, costs, …).
But I think i've found my error and i can provide the way to reproduce the bug :
I want to plan a resource that is a cluster with multiple cores. For this I set up a virtual worker with the amount of cores as capacity.
For the calendar I was making a mistake by putting the number of cores times 24 hrs as the normal effort for every day (for exemple 100*24). Then I was allocating the resource in a task by 0.5 instead of 50 cores in the resource per day input box.
Now I switch to normal effort of 24hr in the virtual worker calendar and put 50 in the resource per day. And the error does not appear any more.
On top of this i made a calendar that allow huge amount of hours per day to have the number of day being computed correctly. I used it in my task calendar allocation.
Am I clear enough or do you need more information ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
the way in which you have proceeded in your second response is the right one according to how LibrePlan is thought.
* The capacity of the virtual workers says how many people (in your case cores) are in the group. In your business case the capacity should be 100.
* If you want to assign a number of people (in your case cores) per day of a virtual worker, you have to specify in the resource allocation resources per day field that number. In your example, 50 cores.
* The capacity per day of the calendar is right configured to 24 hours/day if the cores are working full time.
Regarding to the bug, I configured your initial situation and I reproduced the bug, so, now we can fix it.
Besides I think that a constraint must be included to avoid to configure more than 24 hours/day in the calendars.
Thank you very much for helping us with the description of your initial problem.
Regards.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I was testing libreplan, unfortunately with root login. I tested some feature, created a project and some task with complex ressource assignement.
I surely made some error on task ressource assignement because now, when i try to log again with root i have this error message :
How can i solve this problem that block the access to the application ?
Thank you for any help
Hi,
first of all, thanks for reporting the problem. Probably it is caused by the complex assignments you say that you have being doing. However, in spite of them, the program should never cause this condition. Summing up, there is some bug in the code controlling the assignments.
I reported a bug in the project bug tracking system http://bugs.libreplan.org/show_bug.cgi?id=1372. As you say that you are doing tests, in order to reproduce the bug and fix, it would be very helpful if we could have a dump of your database. I deduce that you are not working with confidential data as you are doing tests. So, if you do not mind, I would like to ask you to attach your libreplan database dump in the bug page. In order to do it, you will need to create an account in the LibrePlan bugzilla and, after this, you will need to visit the bug page and press in the link Add an attachment. If you find difficulties doing this, you can also send us the database dump to the mail info@libreplan.com
The exception is saying that a negative amount of time has been assigned in the database, thing that should never happen. Once done the database dump, in order to solve the exception on doing login, probably the best solution is the following.
* After the error, put the following address in the URL box in the browser: http://localhost:8080/libreplan-webapp/settings/settings.zul
* In this window, uncheck the option Company view in Planning charts expanded row.
* Now, go the the projects list through the top menu option Scheduling -> Project list.
* Locate the project(s) you have been doing allocations and press in the delete button in the operations column.
After this, the inconsistent data should be deleted and the error should have gone away.
If you are unable to do this because exception keeps arising, please, comment us here again and I can paste you the SQL sentences to remove the inconsistent data directly in the database.
Regards.
Hi, and thank you for helping.
Unfortunately, i can not provide a dump because i'm doing test with real data (company names, costs, …).
But I think i've found my error and i can provide the way to reproduce the bug :
I want to plan a resource that is a cluster with multiple cores. For this I set up a virtual worker with the amount of cores as capacity.
For the calendar I was making a mistake by putting the number of cores times 24 hrs as the normal effort for every day (for exemple 100*24). Then I was allocating the resource in a task by 0.5 instead of 50 cores in the resource per day input box.
Now I switch to normal effort of 24hr in the virtual worker calendar and put 50 in the resource per day. And the error does not appear any more.
On top of this i made a calendar that allow huge amount of hours per day to have the number of day being computed correctly. I used it in my task calendar allocation.
Am I clear enough or do you need more information ?
You are welcome,
the way in which you have proceeded in your second response is the right one according to how LibrePlan is thought.
* The capacity of the virtual workers says how many people (in your case cores) are in the group. In your business case the capacity should be 100.
* If you want to assign a number of people (in your case cores) per day of a virtual worker, you have to specify in the resource allocation resources per day field that number. In your example, 50 cores.
* The capacity per day of the calendar is right configured to 24 hours/day if the cores are working full time.
Regarding to the bug, I configured your initial situation and I reproduced the bug, so, now we can fix it.
Besides I think that a constraint must be included to avoid to configure more than 24 hours/day in the calendars.
Thank you very much for helping us with the description of your initial problem.
Regards.