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

Error running GridGameExample.java #1

Open
alinakhay opened this issue Apr 2, 2017 · 1 comment
Open

Error running GridGameExample.java #1

alinakhay opened this issue Apr 2, 2017 · 1 comment

Comments

@alinakhay
Copy link

Hello, I have the following error, when running GridGameExample.java:

Exception in thread "main" java.lang.NullPointerException
at burlap.behavior.stochasticgames.solvers.MinMaxSolver.getColPlayersStrategy(MinMaxSolver.java:60)
at burlap.behavior.stochasticgames.solvers.MinMaxSolver.getRowPlayersStrategy(MinMaxSolver.java:25)
at burlap.behavior.stochasticgames.madynamicprogramming.backupOperators.CoCoQ.performBackup(CoCoQ.java:63)
at burlap.behavior.stochasticgames.agents.maql.MultiAgentQLearning.observeOutcome(MultiAgentQLearning.java:269)
at burlap.mdp.stochasticgames.world.World.runStage(World.java:441)
at burlap.mdp.stochasticgames.world.World.runGame(World.java:338)
at burlap.mdp.stochasticgames.world.World.runGame(World.java:306)
at burlap.mdp.stochasticgames.world.World.runGame(World.java:296)
at edu.brown.cs.burlap.examples.GridGameExample.QLCoCoTest(GridGameExample.java:163)
at edu.brown.cs.burlap.examples.GridGameExample.main(GridGameExample.java:235)

Can you please suggest possible error source and how to fix it? Thanks

@IngyN
Copy link

IngyN commented Mar 13, 2019

I have the same error with all the methods except saInterface example. It seems to be a problem with the iniatilization of the solver from scpsolve. Any ideas how to fix it?

EDIT:
I figured out a way to make it work. I used JDK 7 for 32-bit instead of 64
https://stackoverflow.com/questions/28394041/scpsolver-with-java-nullpointerexception-a-runnable-example

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