Community

Hi, I want to use java assertions in my model. However, when i enable the assertions by setting the Java Machine Argument to -ea in the simulation properties, the simulation window displays "Error during presentation drawing java.lang.AssertationError". This error is repeated every time the screen redraws, so the whole simulation is getting very slow. The assertation is caused by anylogic code (com.xj.anylogic.engine.Presentable.getShapeType(Presentable.java:116)), and i don't see in which way my simulation code is (indirectly?) causing this assertation? Is anybody using assertions with anylogic? Is there a fix for this problem?
Hello! Problem with Java assertions in model sources is already fixed. This fix will be included into the next AnyLogic update. This AnyLogic version (6.1.1) will contain the following string in [Help->Changes History] window: [IDE (Code generation): Fixed: (For advanced users) Java assertion usage could be problematic due to asserts fired by the Engine]. AnyLogic 6.1.1 will be available by the middle of December 2007.