adlink-ist / agentv Goto Github PK
View Code? Open in Web Editor NEWa microsvc framework for vortex
License: Apache License 2.0
a microsvc framework for vortex
License: Apache License 2.0
Hello PrismTech team,
when trying to compile agentv from scratch on CentOS 6.5, I got the following errors.
Do I need to install Intellji?
Thanks
Francois
[info] Compiling 1 Scala source and 1 Java source to /export/home/flefevre/gitPeps/agentv/agentv-commander/target/scala-2.11/classes...
[warn] While parsing annotations in /export/home/flefevre/.ivy2/cache/com.prismtech.cafe/cafe/jars/cafe-2.2.1-SNAPSHOT.jar(org/omg/dds/type/Extensibility.class), could not find RUNTIME in enum object RetentionPolicy.
[warn] This is likely due to an implementation restriction: an annotation argument cannot refer to a member of the annotated class (SI-7014).
[warn] While parsing annotations in /export/home/flefevre/.ivy2/cache/com.prismtech.cafe/cafe/jars/cafe-2.2.1-SNAPSHOT.jar(org/omg/dds/type/Extensibility.class), could not find TYPE in enum object ElementType.
[warn] This is likely due to an implementation restriction: an annotation argument cannot refer to a member of the annotated class (SI-7014).
[warn] While parsing annotations in /export/home/flefevre/.ivy2/cache/com.prismtech.cafe/cafe/jars/cafe-2.2.1-SNAPSHOT.jar(org/omg/dds/core/policy/QosPolicy.class), could not find EXTENSIBLE_EXTENSIBILITY in enum object Kind.
[warn] This is likely due to an implementation restriction: an annotation argument cannot refer to a member of the annotated class (SI-7014).
[warn] three warnings found
[error] /export/home/flefevre/gitPeps/agentv/agentv-commander/src/main/scala/com/prismtech/agentv/commander/CommanderWindow.java:215: error: package com.intellij.uiDesigner.core does not exist
[error] contentPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(3, 2, new Insets(10, 10, 10, 10), -1, -1));
[error] ^
[error] /export/home/flefevre/gitPeps/agentv/agentv-commander/src/main/scala/com/prismtech/agentv/commander/CommanderWindow.java:219: error: package com.intellij.uiDesigner.core does not exist
[error] runningAppsPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));
[error] ^
[error] /export/home/flefevre/gitPeps/agentv/agentv-commander/src/main/scala/com/prismtech/agentv/commander/CommanderWindow.java:220: error: package com.intellij.uiDesigner.core does not exist
[error] contentPane.add(runningAppsPanel, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));
[error] ^
[error] /export/home/flefevre/gitPeps/agentv/agentv-commander/src/main/scala/com/prismtech/agentv/commander/CommanderWindow.java:220: error: package com.intellij.uiDesigner.core does not exist
[error] contentPane.add(runningAppsPanel, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));
[error] ^
[error] /export/home/flefevre/gitPeps/agentv/agentv-commander/src/main/scala/com/prismtech/agentv/commander/CommanderWindow.java:220: error: package com.intellij.uiDesigner.core does not exist
[error] contentPane.add(runningAppsPanel, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));
[error]
[error] /export/home/flefevre/gitPeps/agentv/agentv-commander/src/main/scala/com/prismtech/agentv/commander/CommanderWindow.java:293: error: package com.intellij.uiDesigner.core does not exist
[error] panel4.add(deployButton, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
[error] ^
[error] Note: /export/home/flefevre/gitPeps/agentv/agentv-commander/src/main/scala/com/prismtech/agentv/commander/CommanderWindow.java uses unchecked or unsafe operations.
[error] Note: Recompile with -Xlint:unchecked for details.
[error] 100 errors
[error] (compile:compile) javac returned nonzero exit code
[error] Total time: 25 s, completed 23 févr. 2016 15:11:04
[info] Loading project definition from /export/home/flefevre/gitPeps/agentv/agentv-microsvc-daytime/project
The commander is using File.separator to define the partition for micro services
See Commander.scala
class AgentContext(nodeId: String) {
val microsvcPartition = NodePartition+ File.separator + nodeId
The solution might be to create a DDS.separator constant
Currently: I'm unable to deploy a microservice using commander on windows.
This issue is maybe the root of my problem.
To use Commander.scala in another context it would be interesting to have it more independent from CommanderWindow
Especially (from what I understood), it is required to launch the call def run(window: CommanderWindow)
method (at least to init the node list L112).
My first tests are working with Commander.run(new CommanderWindow())
but it may cause some problems on more complicated use cases.
Is it possible to add a new method to "run" the commander without CommanderWindow ?
(or allow to pass null as parameter)
Steps to reproduce
I got the following log
[CommanderWindow | Debug]: jarFile = C:\git\iot\agentv\lib\agentv-microsvc-daytime_2.11-0.5.0-SNAPSHOT.jar, nodeId = a
[Commander | Debug]: Deploying package agentv-microsvc-daytime_2.11-0.5.0-SNAPSHOT.jar on a
but not the success log (that are present for @flefevre on centos)
and also no log in the agentv cygwin
I also tried to restart commander to check that it isn't a refresh problem.
I tried to launch ./agentv test test in a cygwin console and got the following exception
Exception in thread "main" java.lang.ClassNotFoundException: Could not find class com.prismtech.agentv.runtime.DDSRuntime
at com.prismtech.agentv.RepositoryClassLoader.findClass(RepositoryClassLoader.scala:69)
at com.prismtech.agentv.RepositoryClassLoader.loadClass(RepositoryClassLoader.scala:34)
at com.prismtech.agentv.RepositoryClassLoader.loadClass(RepositoryClassLoader.scala:20)
at com.prismtech.agentv.Launcher$.main(Launcher.scala:18)
at com.prismtech.agentv.Launcher.main(Launcher.scala)
I also tried a direct call to the library : java -Dddsi.network.interface=eth3 -cp ../lib/agentv-assembly-0.5.0-SNAPSHOT.jar com.prismtech.agentv.Launcher com.prismtech.agentv.runtime.DDSRuntime repository com.prismtech.cafe.core.ServiceEnvironmentImpl fakeid fakeinfo 0
but got the same exception
Is there a way to activate the debug mode to get more information?
It would be nice to have a button to undeploy a micro-service.
Indeed, when developing a micro-service we have to proceed to multiple deployment
and sometimes it's unclear whether the deployment is successful or not.
In the same way, a reset button would be nice to stop all micro-services and undeploy them from a node.
It seems that your topic name are defined in a class inside "package com.prismtech.agentv / package object prelude"
Would be possible to rename the "package" which is to be a keywoprk for java?
I am not able to reference in a maven project this code due to an error with the compiler.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.