New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NPE in household-customer #649
Comments
I will look into it. |
This is fixed. |
Either it's not fixed, or there is another array out of bounds problem. But now it appears to be (more) repeatable. Here's the backtrace from the test report:
and here's the debug log from the test at the point of failure:
|
As I said in my mail, the TariffHelper is returning positive values when the tariff is variable. When it is fixed, it returns negative numbers. When I change the positive returns of variable tariffs then everything works correctly. |
It seems to have been a problem in the test case, not in the customer model itself. Looks like this is solved. |
java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0
at java.util.Vector.get(Vector.java:694)
at org.powertac.householdcustomer.customers.Village.logitPossibilityEstimation(Village.java:2352)
at org.powertac.householdcustomer.customers.Village.possibilityEvaluationNewTariffs(Village.java:2142)
at org.powertac.householdcustomer.HouseholdCustomerService.publishNewTariffs(HouseholdCustomerService.java:392)
at org.powertac.tariffmarket.TariffMarketService.publishTariffs(TariffMarketService.java:592)
at org.powertac.tariffmarket.TariffMarketService.activate(TariffMarketService.java:568)
at org.powertac.server.CompetitionControlService.step(CompetitionControlService.java:725)
at org.powertac.server.CompetitionControlService.access$600(CompetitionControlService.java:83)
at org.powertac.server.CompetitionControlService$SimRunner.run(CompetitionControlService.java:1027)
The text was updated successfully, but these errors were encountered: