Skip to content
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

Bug createStateId with activity.getJob() inside StateUpdater #471

Open
JO-WTF opened this issue Jul 2, 2019 · 1 comment
Open

Bug createStateId with activity.getJob() inside StateUpdater #471

JO-WTF opened this issue Jul 2, 2019 · 1 comment

Comments

@JO-WTF
Copy link

JO-WTF commented Jul 2, 2019

I believe this is indeed a bug.
@lazaronixon used a workaround to get rid of the error but the problem exists.

Take the JobAndActivityDependenciesExample.java as an example, if I add one-line code as following in line 91, the error occurs:

stateManager.putProblemState(stateManager.createStateId(((JobActivity) activity).getJob().getId()),VehicleRoute.class,route);

The problem seems to be related with activity.getJob(). If I use the following code instead, the error is gone:

stateManager.putProblemState(stateManager.createStateId(((JobActivity) activity).getName()),VehicleRoute.class,route);

I assume the problem didn't exist in older versions when stateFactory was used to create stateId as there are several successful examples such as:
https://github.com/jsprit/playground/blob/master/src/stackoverflow/Stackoverflow_RelatedJobs_13_and_21_inSameRoute.java#L77

Originally posted by @JO-WTF in #269 (comment)

@KirschBa
Copy link

Hi @JO-WTF ,

have you found out anything new on the subject in the meantime?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants