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

UnimplementedCapacityException when getting logging capacity #976

Closed
ngaud opened this issue Feb 24, 2020 · 2 comments
Closed

UnimplementedCapacityException when getting logging capacity #976

ngaud opened this issue Feb 24, 2020 · 2 comments

Comments

@ngaud
Copy link
Member

ngaud commented Feb 24, 2020

Sometimes the
Logging _$CAPACITY_USE$IO_SARL_CORE_LOGGING$CALLER = this.$castSkill(Logging.class, (this.$CAPACITY_USE$IO_SARL_CORE_LOGGING == null || this.$CAPACITY_USE$IO_SARL_CORE_LOGGING.get() == null) ? (this.$CAPACITY_USE$IO_SARL_CORE_LOGGING = this.$getSkill(Logging.class)) : this.$CAPACITY_USE$IO_SARL_CORE_LOGGING);
this.eventBus.asyncDispatch(event, _$CAPACITY_USE$IO_SARL_CORE_LOGGING$CALLER.getLogger());

in InternalEventBusSkill.freEvent return a null loggin capacity but it shouldn't.

io.sarl.lang.core.UnimplementedCapacityException: io.sarl.core.Logging
at io.sarl.lang.core.AgentTrait.$castSkill(AgentTrait.java:116)
at io.sarl.sre.skills.internal.InternalEventBusSkill.fireEvent(InternalEventBusSkill.java:363)
at io.sarl.sre.skills.internal.InternalEventBusSkill$ExternalEventBusAccessor.receiveEvent(InternalEventBusSkill.java:101)
at io.sarl.sre.spaces.AbstractEventSpace.lambda$0(AbstractEventSpace.java:320)
at java.lang.Iterable.forEach(Iterable.java:75)
at io.sarl.sre.spaces.AbstractEventSpace.emitLocally(AbstractEventSpace.java:322)
at io.sarl.sre.spaces.AbstractEventSpace.emit(AbstractEventSpace.java:215)
at io.sarl.sre.skills.bic.DefaultContextInteractionsSkill.emit(DefaultContextInteractionsSkill.java:116)
at io.sarl.core.DefaultContextInteractions.emit(DefaultContextInteractions.java:238)
at io.sarl.scalability.tests.ScalableAgent.$behaviorUnit$Taskgo$1(ScalableAgent.java:50)
at io.sarl.scalability.tests.ScalableAgent.lambda$2(ScalableAgent.java:116)
at io.sarl.sre.skills.bic.SchedulesSkill.lambda$1(SchedulesSkill.java:1011)
at io.sarl.sre.skills.bic.SchedulesSkill$TaskRunner.coreRun(SchedulesSkill.java:370)
at io.sarl.sre.skills.bic.SchedulesSkill$TaskRunner.run(SchedulesSkill.java:411)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

@gallandarakhneorg
Copy link
Member

What is the demo, which may enable me to reproduce?

@ngaud
Copy link
Member Author

ngaud commented Feb 25, 2020

SARL Benchmark https://github.com/sarl/SARLBenchmarks/

@gallandarakhneorg gallandarakhneorg self-assigned this Mar 2, 2020
gallandarakhneorg added a commit that referenced this issue Mar 5, 2020
When the skill references were cleared, the getSkill function of the
agents was not throwing the UnimplementedCapacityException.

see #975
see #976

Signed-off-by: Stéphane Galland <galland@arakhne.org>
gallandarakhneorg added a commit that referenced this issue Mar 5, 2020
…e generated from the "uses" clause.

see #975
see #976

Signed-off-by: Stéphane Galland <galland@arakhne.org>
gallandarakhneorg added a commit that referenced this issue Mar 5, 2020
see #975
see #976

Signed-off-by: Stéphane Galland <galland@arakhne.org>
gallandarakhneorg added a commit that referenced this issue Mar 6, 2020
… lifecycle.

see #975
see #976

Signed-off-by: Stéphane Galland <galland@arakhne.org>
gallandarakhneorg added a commit that referenced this issue Mar 6, 2020
…ll lifecycle.

see #975
see #976

Signed-off-by: Stéphane Galland <galland@arakhne.org>
gallandarakhneorg added a commit that referenced this issue Mar 6, 2020
… lifecycle.

see #975
see #976

Signed-off-by: Stéphane Galland <galland@arakhne.org>
gallandarakhneorg added a commit that referenced this issue Mar 24, 2020
…ting API.

Signed-off-by: Stéphane Galland <galland@arakhne.org>
gallandarakhneorg added a commit that referenced this issue May 15, 2020
Signed-off-by: Stéphane Galland <galland@arakhne.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants