Anylogic does not show me the error on console - anylogic

I did a model on anylogic. The build does not give me error but when i select "run", the model does nothing and it says "Error" (see image"), nevertheless the console does not show any detail , so i don't know what i did wrong. What could be the mistake?Thanks
the model:https://unisalerno-my.sharepoint.com/:u:/g/personal/l_aurilio1_studenti_unisa_it/EUGmkBzu9cxLrHtjOzkJu64BgSM6tpZnsEWktP_NgA1d2Q?e=HE3cLj

Actually the console DOES show errors. But you can see them in desktop client, not browser:
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "AnyLogic model execution control handler"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Frame Collector"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "qtp510744362-31"
And the reason for those is exceeding of experiment memory. After increasing it from 512Mb to 8Gb it runs.

the problem was linked with a resource pool,which size was more of 50000, exceeding the maximum value of available agent for student version.

Related

Updating Java Heap size while deploying/installing keycloak using bitnami/keycloak

I keep getting a OutOfMemoryError while deploying/installing keycloak using bitnami/keycloak in a Kubernetes pod.
2023-02-09 17:33:49,316 ERROR [org.jboss.threads.errors] (build-19) Thread Thread[build-19,5,build group] threw an uncaught exception: java.util.concurrent.RejectedExecutionException
at org.jboss.threads.RejectingExecutor.execute(RejectingExecutor.java:38)
at org.jboss.threads.EnhancedQueueExecutor.rejectException(EnhancedQueueExecutor.java:2049)
at org.jboss.threads.EnhancedQueueExecutor.doStartThread(EnhancedQueueExecutor.java:1713)
at org.jboss.threads.EnhancedQueueExecutor.execute(EnhancedQueueExecutor.java:787)
at io.quarkus.builder.BuildContext.depFinished(BuildContext.java:261)
at io.quarkus.builder.BuildContext.run(BuildContext.java:294)
at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1452)
at java.base/java.lang.Thread.run(Thread.java:829)
at org.jboss.threads.JBossThread.run(JBossThread.java:501)
Suppressed: java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reached
at java.base/java.lang.Thread.start0(Native Method)
at java.base/java.lang.Thread.start(Thread.java:798)
at org.jboss.threads.JBossThread.start(JBossThread.java:558)
at org.jboss.threads.EnhancedQueueExecutor.doStartThread(EnhancedQueueExecutor.java:1709)
... 8 more
I suspect it could be because of the Java Heap size. Please correct me if I am wrong.
I have checked the resources allocated to the machine; everything looks fine. The question is how do I update the heap size in value.yaml file? Is JAVA_OPTS_APPEND in https://github.com/bitnami/charts/blob/main/bitnami/keycloak/templates/configmap-env-vars.yaml is the env variable to be overridden?
If anybody has an example, please share.

sbt.TrapExitSecurityException error message in from Chisel (rocket-chip)

I have gotten this fascinating exception (no additional backtrace, that's it) in rocket-chip Chisel elaboration.
[info] [0.003] Elaborating design...
------------------------------------------------------------------------------
Error: Exception thrown when elaborating ChiselGeneratorAnnotation
Try --help for more information.
------------------------------------------------------------------------------
Exception: sbt.TrapExitSecurityException thrown from the UncaughtExceptionHandler in thread "run-main-0"
This is from PR https://github.com/chipsalliance/rocket-chip/pull/2310. I have managed to hose the generator so completely with so little information in a way I've never seen before. Anyone know what this sort of error means?
I believe this is due to a recent PR to add Staged Compile: https://github.com/chipsalliance/rocket-chip/pull/2274/files

Hosting internal Nuget and Symbols server

I have setup the Nuget.Server and the SymbolSource Server Basic in one solution when I run the "self diagnostics tool" I get the following exception, anyone have a clue what this is?
The URL I am accessing is
http://localhost/Home/NuGetPushTest
Method not found: 'Void NuGet.PackageServer.PushPackage(System.String,
System.IO.Stream, Int32)'.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.MissingMethodException: Method not found:
'Void NuGet.PackageServer.PushPackage(System.String, System.IO.Stream,
Int32)'.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.

JBOSS - The transaction is not active error

I get transaction timeout error as follow, when I run my JBOSS.
SystemException The following problem occured: null; nested exception is:
java.lang.IllegalStateException: [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] [com.arjuna.ats.internal.jta.transaction.a
rjunacore.inactive] The transaction is not active!; - nested throwable: (java.lang.IllegalStateException: [com.arjuna.ats.internal.jta.transactio
n.arjunacore.inactive] [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] The transaction is not active!): null; nested exception is:
java.lang.IllegalStateException: [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] [com.arjuna.ats.internal.jta.transaction.a
rjunacore.inactive] The transaction is not active!; - nested throwable: (java.lang.IllegalStateException: [com.arjuna.ats.internal.jta.transactio
n.arjunacore.inactive] [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] The transaction is not active!): [com.arjuna.ats.internal.jt
a.transaction.arjunacore.inactive] [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] The transaction is not active! called at com.jco
ffee.base.global.ExceptionMapper.handleException(ExceptionMapper.java:240)
I googled the error and came across a solution which involves changing the transaction timeout from 300 to a higher value and I did so,
<mbean code="com.arjuna.ats.jbossatx.jta.TransactionManagerService"
name="jboss:service=TransactionManager">
<attribute name="TransactionTimeout">3000</attribute>
<attribute name="ObjectStoreDir">${jboss.server.data.dir}/tx-object-store</attribute>
</mbean>
but still the error persist.
My heapsizes are as follow:
-Xms2000m
-Xmx2000m
-XX:PermSize=256M
-XX:MaxPermSize=256m
Before the error occurs, Garbage collector unloads a large number of classes and the RAM is left only with few MB of free space. I have aroung 6GB of RAM + 3GB of pagefiles
Any help will be really appreciated.
Thanks a lot in advance.
I have seen that exception when the transaction timeout is reached, I think that increasing the timeout should solve the problem.
Try to set the transaction timeout to UserTransaction object like is showed here. (Using BMT section)

org.neo4j.kernel.lifecycle.LifecycleException in Neo4j

I've been using neo4j 1.9 RC1 for the past two months. Yesterday, after an eclipse crash I started having this this exception:
Exception in thread "main" java.lang.RuntimeException: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.transaction.TxManager#bf5743' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:282)
at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:90)
at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:75)
at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:60)
at fr.inria.atlanmod.neo4emf.drivers.impl.PersistenceService.<init>(PersistenceService.java:44)
at fr.inria.atlanmod.neo4emf.drivers.impl.PersistenceServiceFactory.createPersistenceService(PersistenceServiceFactory.java:27)
at fr.inria.atlanmod.neo4emf.drivers.impl.PersistenceManager.<init>(PersistenceManager.java:80)
at fr.inria.atlanmod.neo4emf.impl.Neo4emfResource.<init>(Neo4emfResource.java:58)
at fr.inria.atlanmod.neo4emf.impl.Neo4emfResourceFactory.createResource(Neo4emfResourceFactory.java:58)
at main.JDTASTMain.main(JDTASTMain.java:35)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.transaction.TxManager#bf5743' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:104)
at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:260)
... 9 more
Caused by: org.neo4j.graphdb.TransactionFailureException: Unable to start TM, no active tx log file found but found either tm_tx_log.1 or tm_tx_log.2 file, please set one of them as active or remove them.
at org.neo4j.kernel.impl.transaction.TxManager.openLog(TxManager.java:738)
at org.neo4j.kernel.impl.transaction.TxManager.start(TxManager.java:138)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)
... 11 more
I am running it with Java 1.7. Any ideas?
It seems that your data directory is corrupt. There is already a suggestion printed to the log to fix that issue:
Unable to start TM, no active tx log file found but found either
tm_tx_log.1 or tm_tx_log.2 file, please set one of them as active or
remove them.