Hi, I following the BDI V3 Tutorial and after start Jadex Control Center using jadex.bat and load TranslationBDI.class I get "java.lang.RuntimeException: BDI agent class not found: TranslationBDI". This also occur with other examples of the tutorial. Shoud I set up any other parameter?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Lars, thanks for your response. I've seen that if I add to the JCC the folder /bin/a1/TranslationBDI.class (it is part of an Eclipse Java project), BDI agent class is found but jadex.micro.annotation.Agent is not. If its treated as Java classpath I still don´t understand why JCC jadex-applications examples work OK and If I write my own class, it doesn´t (I get, for example, jadex.micro.annotation.Agent not found). What path should I add?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have the same exactly error/problem. When I execute the BDI agent class from Eclipse the Agent runs ok!! but when I open the JCC as stand alone adding the /bin/a1/TranslationBDI.class I get the same error jadex.micro.annotation.Agent not found:
java.lang.RuntimeException: java.lang.ClassNotFoundException: jadex.micro.annotation.Agent
at jadex.micro.MicroClassReader.getClass(MicroClassReader.java:1862)
at jadex.micro.MicroClassReader.isAnnotationPresent(MicroClassReader.java:1730)
at jadex.bdiv3.BDIClassReader.getMicroAgentClass(BDIClassReader.java:1189)
at jadex.micro.MicroClassReader.read(MicroClassReader.java:129)
at jadex.bdiv3.BDIClassReader.read(BDIClassReader.java:135)
at jadex.bdiv3.BDIModelLoader.doLoadModel(BDIModelLoader.java:64)
at jadex.commons.AbstractModelLoader.loadModel(AbstractModelLoader.java:311)
at jadex.bdiv3.BDIModelLoader.loadComponentModel(BDIModelLoader.java:50)
at jadex.bdiv3.BDIAgentFactory$4.customResultAvailable(BDIAgentFactory.java:223)
at jadex.bdiv3.BDIAgentFactory$4.customResultAvailable(BDIAgentFactory.java:218)
at jadex.commons.future.ExceptionDelegationResultListener.resultAvailable(ExceptionDelegationResultListener.java:81)
at jadex.commons.future.Future.notifyListener(Future.java:618)
at jadex.bridge.service.component.interceptors.DelegatingFuture.access$401(FutureFunctionality.java:2271)
at jadex.bridge.service.component.interceptors.DelegatingFuture$1.resultAvailable(FutureFunctionality.java:2365)
at jadex.bridge.service.component.interceptors.DelegatingFuture$1.resultAvailable(FutureFunctionality.java:2362)
at jadex.bridge.service.component.interceptors.DecouplingReturnInterceptor$1$1$2.execute(DecouplingReturnInterceptor.java:100)
at jadex.bridge.component.impl.ExecutionComponentFeature.execute(ExecutionComponentFeature.java:1142)
at jadex.commons.concurrent.Executor.code(Executor.java:315)
at jadex.commons.concurrent.Executor.run(Executor.java:129)
at jadex.platform.service.execution.AsyncExecutionService$1.run(AsyncExecutionService.java:108)
at jadex.commons.concurrent.ThreadPool$ServiceThread.run(ThreadPool.java:515)
Caused by: java.lang.ClassNotFoundException: jadex.micro.annotation.Agent
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at jadex.micro.MicroClassReader.getClass(MicroClassReader.java:1856)
... 20 more
I really really need help...I dont want to depend of Eclipse
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Rafael,
sorry for the delay. There was actually a bug leading to the error you encountered.
It should be fixed with the next nightly build, which will be version 3.0.0-RC81.
Regards,
Julian
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I following the BDI V3 Tutorial and after start Jadex Control Center using jadex.bat and load TranslationBDI.class I get "java.lang.RuntimeException: BDI agent class not found: TranslationBDI". This also occur with other examples of the tutorial. Shoud I set up any other parameter?
Thanks
Hi, I have the same problem, see the topic Jadex , that is
below this.....sorry my english is not so good.
Yanet, thanks for your response. But it is not clear how do you solve the class not found problem. What path did you add?
You need to be careful what you add in the JCC as path. Use bin oder classes folder because it is treated as Java classpath.
Best
Lars
Lars, thanks for your response. I've seen that if I add to the JCC the folder /bin/a1/TranslationBDI.class (it is part of an Eclipse Java project), BDI agent class is found but jadex.micro.annotation.Agent is not. If its treated as Java classpath I still don´t understand why JCC jadex-applications examples work OK and If I write my own class, it doesn´t (I get, for example, jadex.micro.annotation.Agent not found). What path should I add?
I have the same exactly error/problem. When I execute the BDI agent class from Eclipse the Agent runs ok!! but when I open the JCC as stand alone adding the /bin/a1/TranslationBDI.class I get the same error jadex.micro.annotation.Agent not found:
java.lang.RuntimeException: java.lang.ClassNotFoundException: jadex.micro.annotation.Agent
at jadex.micro.MicroClassReader.getClass(MicroClassReader.java:1862)
at jadex.micro.MicroClassReader.isAnnotationPresent(MicroClassReader.java:1730)
at jadex.bdiv3.BDIClassReader.getMicroAgentClass(BDIClassReader.java:1189)
at jadex.micro.MicroClassReader.read(MicroClassReader.java:129)
at jadex.bdiv3.BDIClassReader.read(BDIClassReader.java:135)
at jadex.bdiv3.BDIModelLoader.doLoadModel(BDIModelLoader.java:64)
at jadex.commons.AbstractModelLoader.loadModel(AbstractModelLoader.java:311)
at jadex.bdiv3.BDIModelLoader.loadComponentModel(BDIModelLoader.java:50)
at jadex.bdiv3.BDIAgentFactory$4.customResultAvailable(BDIAgentFactory.java:223)
at jadex.bdiv3.BDIAgentFactory$4.customResultAvailable(BDIAgentFactory.java:218)
at jadex.commons.future.ExceptionDelegationResultListener.resultAvailable(ExceptionDelegationResultListener.java:81)
at jadex.commons.future.Future.notifyListener(Future.java:618)
at jadex.bridge.service.component.interceptors.DelegatingFuture.access$401(FutureFunctionality.java:2271)
at jadex.bridge.service.component.interceptors.DelegatingFuture$1.resultAvailable(FutureFunctionality.java:2365)
at jadex.bridge.service.component.interceptors.DelegatingFuture$1.resultAvailable(FutureFunctionality.java:2362)
at jadex.bridge.service.component.interceptors.DecouplingReturnInterceptor$1$1$2.execute(DecouplingReturnInterceptor.java:100)
at jadex.bridge.component.impl.ExecutionComponentFeature.execute(ExecutionComponentFeature.java:1142)
at jadex.commons.concurrent.Executor.code(Executor.java:315)
at jadex.commons.concurrent.Executor.run(Executor.java:129)
at jadex.platform.service.execution.AsyncExecutionService$1.run(AsyncExecutionService.java:108)
at jadex.commons.concurrent.ThreadPool$ServiceThread.run(ThreadPool.java:515)
Caused by: java.lang.ClassNotFoundException: jadex.micro.annotation.Agent
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at jadex.micro.MicroClassReader.getClass(MicroClassReader.java:1856)
... 20 more
Hi Rafael,
sorry for the delay. There was actually a bug leading to the error you encountered.
It should be fixed with the next nightly build, which will be version 3.0.0-RC81.
Regards,
Julian