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 with JSOAR and Idea class #36

Open
wandemberg-eldorado opened this issue Oct 14, 2021 · 3 comments
Open

Error with JSOAR and Idea class #36

wandemberg-eldorado opened this issue Oct 14, 2021 · 3 comments
Assignees
Labels
bug CST CST tasks

Comments

@wandemberg-eldorado
Copy link
Contributor

wandemberg-eldorado commented Oct 14, 2021

As JSoarCodelet runs, an error sometimes appears:

java.lang.IllegalArgumentException: Comparison method violates its general contract!

Please further investigate and fix it.

@rgudwin
Copy link
Member

rgudwin commented Oct 14, 2021

Wandemberg, please provide more information in order to reproduce the generation of the Exception ... in what Test it is raising this Exception ? Under which conditions ? Running in a desktop or within Android ?

@wandemberg-eldorado
Copy link
Contributor Author

A simple test like:

@test
public void basicTest(){
Mind mind = new Mind();

    String soarRulesPath="src/test/resources/mac.soar";
    jSoarCodelet.initSoarPlugin("testAgent", new File(soarRulesPath), false);
    mind.insertCodelet(jSoarCodelet);

    mind.start();

    try{
        Thread.sleep(5000L);
    }catch(Exception e){
        e.printStackTrace();
    }

    String inputLink = jSoarCodelet.getInputLinkAsString();
    String outputLink = jSoarCodelet.getOutputLinkAsString();

    //System.out.println(inputLink);
    System.out.println(outputLink);

    mind.shutDown();

}

This test ran on:

  • Ubuntu 20.04
  • Java 8 (openJDK8)
  • Intel Core i5
  • IDE: Pycharm Community

@rgudwin
Copy link
Member

rgudwin commented Jun 13, 2024

I inserted this code as a test, but it didn't exhibit the mentioned behavior. Maybe it was a Soar problem. As I upgraded jSOAR to version 4.1.3, this was automatically corrected ? Can you check again if the error is still happening to you ?

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

No branches or pull requests

3 participants