Git Product home page Git Product logo

apamacomponents's People

Contributors

allisoftwareag avatar barais avatar maxleiko avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

apamacomponents's Issues

Docker image for new Apama version

Hi,

Is there a docker version of the latest Apama version (9.10)?
Can someone use predefined queries created in apama studio along with the kevorized components?

Description of .kevoree/config.json

Is there some documentation on .kevoree/config.json?
Should the .kevoree folder be in the user's home?
Is it allowed to configure more than one Kevoree repository in this file?

New apama queries not fired

Hi,

We have implemented a new version of apama components based on the current work (apamaTest2 project)
This version includes more events and monitors including NumberOneMonitor.

Unfortunately the alarms are not triggered, although the events are sent and received by the apama correlator.

Could you have a look?

How to select the kev-script with -Dnode.bootstrap?

@maxleiko , according to https://github.com/dukeboard/kevoree/wiki/Kevoree-System-Properties the following should work, but I get the following error. Kevoree searches for src\main\kevs\main.kevs

C:\Workspaces\HEADS ATC Use Case\kevoreeNewsAssetCep>mvn kev:run -Dnode.bootstrap=src/main/kevs/inject.kevs
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building News Asset CEP Kevoree Scripts to run ApamaComponents 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- org.kevoree.tools.mavenplugin:5.4.0-SNAPSHOT:run (default-cli) @ kevoreeNewsAssetCep ---
[INFO] Generating a Kevoree model by reflection...
[INFO] Model saved at target\classes\KEV-INF\kevlib.json
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.388 s
[INFO] Finished at: 2017-01-11T19:29:46+01:00
[INFO] Final Memory: 10M/307M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.kevoree.tools:org.kevoree.tools.mavenplugin:5.4.0-SNAPSHOT:run (default-cli) on project kevoreeNewsAssetCep: Unable
to read KevScript file at src\main\kevs\main.kevs: C:\Workspaces\HEADS ATC Use Case\kevoreeNewsAssetCep\src\main\kevs\main.kevs -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

New version of Apama components and JsonUtil

Hi,
The Apama Receiver sends out a message that is an Apama string and not a json string. In order for the response of the Receiver to be usable I updated the kevoreeNewsAssetCep project to include the JsonUtil class and tried to transform the message into json in the TestClient, but I get the following error

00:35 ERROR: Input port "/nodes[node0]/components[client]/provided[receiveMessage]" method threw an exception
com.apama.event.parser.ParserRuntimeException: EventParser.parse() : The EventType "Alarm" is not a known type in this parser.
at com.apama.event.parser.EventParser.parse(EventParser.java:111)
at atc.newsasset.test.TestClient.receiveMessage(TestClient.java:78)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.kevoree.library.java.wrapper.port.ProvidedPortImpl.send(ProvidedPortImpl.java:101)
at org.kevoree.library.AsyncBroadcast$1.run(AsyncBroadcast.java:44)
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:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

I have tried with and without the apama namespaces but it doesn't make any difference.
I will send the updated project and if you can please have a look.

Unable to find kevoree.JavaNode

Hi,

I have a problem, starting the apamaTest2 project.

I have a apama docker container running, but if I start mvn -e kev:run at the apamaTest2 project, I am getting the following error:

[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building apamaTest 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for woodstox:wstx-asl:jar:3.2.4 is missing, no dependency information available
[WARNING] The POM for com.softwareag.apama:engine_client:jar:5.3 is missing, no dependency information available
[WARNING] The POM for com.softwareag.apama:utils:jar:5.3 is missing, no dependency information available
[INFO]
[INFO] --- org.kevoree.tools.mavenplugin:5.4.0-SNAPSHOT:run (default-cli) @ apamaTest2 ---
[INFO] Generating a Kevoree model by reflection...
[INFO] Model saved at target/classes/KEV-INF/kevlib.json
[INFO]
[INFO] Applying KevScript: src/main/kevs/main.kevs...
[INFO] On model: target/classes/KEV-INF/kevlib.json
00:00 INFO: Registry https://registry.kevoree.org
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.954s
[INFO] Finished at: Mon Nov 14 15:28:46 CET 2016
[INFO] Final Memory: 11M/174M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.kevoree.tools:org.kevoree.tools.mavenplugin:5.4.0-SNAPSHOT:run (default-cli) on project apamaTest2: Something went wrong: Unable to find kevoree.JavaNode/LATEST/LATEST on the registry -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.kevoree.tools:org.kevoree.tools.mavenplugin:5.4.0-SNAPSHOT:run (default-cli) on project apamaTest2: Something went wrong
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:414)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:357)
Caused by: org.apache.maven.plugin.MojoExecutionException: Something went wrong
at org.kevoree.tools.mavenplugin.KevRunnerMojo.execute(KevRunnerMojo.java:162)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: org.apache.maven.plugin.MojoExecutionException: Something went wrong
at org.kevoree.tools.mavenplugin.KevRunnerMojo.execute(KevRunnerMojo.java:156)
... 21 more
Caused by: java.lang.Exception: Unable to find kevoree.JavaNode/LATEST/LATEST on the registry
at org.kevoree.kevscript.util.KevoreeRegistryResolver.processRegistryTypeDef(KevoreeRegistryResolver.java:69)
at org.kevoree.kevscript.util.KevoreeRegistryResolver.resolve(KevoreeRegistryResolver.java:105)
at org.kevoree.kevscript.KevScriptEngine.interpret(KevScriptEngine.java:97)
at org.kevoree.kevscript.KevScriptEngine.interpret(KevScriptEngine.java:92)
at org.kevoree.kevscript.KevScriptEngine.interpret(KevScriptEngine.java:87)
at org.kevoree.kevscript.KevScriptEngine.executeFromStream(KevScriptEngine.java:67)
at org.kevoree.kevscript.KevScriptEngine.execute(KevScriptEngine.java:42)
at org.kevoree.tools.mavenplugin.KevRunnerMojo.execute(KevRunnerMojo.java:135)
... 21 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Can someone explain to me, what exactly I have to do to resolve that?

thank you so much :)

Could not find artifact

Hi,

I have got a new issue, while I was trying to run the apamaTest2 project:

[alli@daevitesa01 apamaTest2]$ mvn kev:run
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building apamaTest 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for woodstox:wstx-asl:jar:3.2.4 is missing, no dependency information available
[WARNING] The POM for com.softwareag.apama:engine_client:jar:5.3 is missing, no dependency information available
[WARNING] The POM for com.softwareag.apama:utils:jar:5.3 is missing, no dependency information available
[INFO]
[INFO] --- org.kevoree.tools.mavenplugin:5.4.0-SNAPSHOT:run (default-cli) @ apamaTest2 ---
[INFO] Generating a Kevoree model by reflection...
[INFO] Model saved at target/classes/KEV-INF/kevlib.json
[INFO]
[INFO] Applying KevScript: src/main/kevs/main.kevs...
[INFO] On model: target/classes/KEV-INF/kevlib.json
00:00 INFO: Registry https://kevoree.braindead.fr
00:01 INFO: Found kevoree.JavaNode/1/LATEST in the registry
00:01 INFO: Found atc.TestApamaSubscriber2/14/LATEST in the registry
00:01 INFO: Found atc.TestApamaPublisher2/5/LATEST in the registry
00:01 INFO: Found atc.TestApamaTicker2/2/LATEST in the registry
00:02 INFO: Found kevoree.AsyncBroadcast/1/LATEST in the registry
00:02 INFO: Found kevoree.WSGroup/1/LATEST in the registry
[INFO] => resulting model saved at target/classes/KEV-INF/ctxModel.json
[INFO]
[INFO] Starting Kevoree runtime using -Dnode.bootstrap=target/classes/KEV-INF/ctxModel.json
00:04 INFO: Log level= INFO
00:04 INFO: Registry https://kevoree.braindead.fr:443
00:04 INFO: Starting Kevoree using version: 5.4.0-SNAPSHOT
00:04 INFO: Platform node name: node0
00:04 INFO: Resolving ............. org.kevoree.library.java:org.kevoree.library.java.javaNode:5.4.0-SNAPSHOT
00:08 INFO: Resolved in 3328ms
00:08 INFO: Starting /nodes[node0]
00:08 INFO: Comparing models and planning adaptation
00:08 INFO: Launching adaptation of the system
00:08 INFO: Resolving ............. org.kevoree.project:apamaTest2:1.0.0-SNAPSHOT
00:10 ERROR: Unable to AddDeployUnit for /nodes[node0]/components[cmp2]
org.jboss.shrinkwrap.resolver.api.NoResolvedResultException: Unable to collect/resolve dependency tree for a resolution due to: Could not find artifact org.kevoree.project:apamaTest2:jar:1.0.0-SNAPSHOT in central (https://repo.maven.apache.org/maven2), caused by: Could not find artifact org.kevoree.project:apamaTest2:jar:1.0.0-SNAPSHOT in central (https://repo.maven.apache.org/maven2)
at org.jboss.shrinkwrap.resolver.impl.maven.MavenWorkingSessionImpl.wrapException(MavenWorkingSessionImpl.java:492)
at org.jboss.shrinkwrap.resolver.impl.maven.MavenWorkingSessionImpl.resolveDependencies(MavenWorkingSessionImpl.java:231)
at org.jboss.shrinkwrap.resolver.impl.maven.MavenStrategyStageBaseImpl.using(MavenStrategyStageBaseImpl.java:71)
at org.jboss.shrinkwrap.resolver.impl.maven.MavenStrategyStageBaseImpl.withoutTransitivity(MavenStrategyStageBaseImpl.java:58)
at org.jboss.shrinkwrap.resolver.impl.maven.MavenStrategyStageBaseImpl.withoutTransitivity(MavenStrategyStageBaseImpl.java:40)
at org.kevoree.bootstrap.kernel.KevoreeCLKernel.installDeployUnit(KevoreeCLKernel.java:153)
at org.kevoree.library.java.command.AddDeployUnit.execute(AddDeployUnit.java:36)
at org.kevoree.core.deploy.KevoreeSeqDeployPhase.execute(KevoreeSeqDeployPhase.java:27)
at org.kevoree.core.deploy.PrimitiveCommandExecutionHelper.executeStep(PrimitiveCommandExecutionHelper.java:44)
at org.kevoree.core.deploy.PrimitiveCommandExecutionHelper.execute(PrimitiveCommandExecutionHelper.java:19)
at org.kevoree.core.KevoreeCoreBean.internal_update_model(KevoreeCoreBean.java:343)
at org.kevoree.core.KevoreeCoreBean$UpdateModelRunnable.run(KevoreeCoreBean.java:177)
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:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.eclipse.aether.resolution.DependencyResolutionException: Could not find artifact org.kevoree.project:apamaTest2:jar:1.0.0-SNAPSHOT in central (https://repo.maven.apache.org/maven2)
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:384)
at org.jboss.shrinkwrap.resolver.impl.maven.bootstrap.MavenRepositorySystem.resolveDependencies(MavenRepositorySystem.java:121)
at org.jboss.shrinkwrap.resolver.impl.maven.MavenWorkingSessionImpl.resolveDependencies(MavenWorkingSessionImpl.java:228)
... 15 more
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact org.kevoree.project:apamaTest2:jar:1.0.0-SNAPSHOT in central (https://repo.maven.apache.org/maven2)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:367)
... 17 more
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact org.kevoree.project:apamaTest2:jar:1.0.0-SNAPSHOT in central (https://repo.maven.apache.org/maven2)
at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:39)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:355)
at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:581)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:249)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:520)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421)
... 19 more
00:10 ERROR: Error while executing primitive command AddDeployUnit atc/apamaTest2/1.0.0-SNAPSHOT/c9c5ddf58e9526e98102a8227675be81
00:10 WARN: JavaSENode is aborting last update...
00:10 INFO: End deploy result=false (2478ms)
00:10 WARN: JavaSENode update aborted in 2480 ms

The project is still running after that, but I am not sure, if it runs in a proper way (I do not think so).

Can somebody help me with this issue (once again)?

Thank you so much :)

Kevoree resolves to older artifacts

With mvn clean install I get older artifacts from a Kevoree registry. Source changes are not reflected. The local Maven repository contains the newest version of the artifact, but this is not used during mvn kev:run.

Is there a merge between repositories in .m2/setting.xml and .kevoree/config.json?

Class not found exception

I am preparing a test project based on the apama components, but when I run the project (mvn kev:run) I get class not found exception.

The problem seems to be related to the external libraries, since the exception is thrown when the ApamaSubscriber tries to inject the monitor script engineClient.injectMonitorScript(epl);

FATAL : EngineClientBean.connect() - caught Error (not Exception), will re-throw
com/ctc/wstx/stax/WstxInputFactory
java.lang.NoClassDefFoundError: com/ctc/wstx/stax/WstxInputFactory
at com.apama.correlator.corba.CorrelatorManagement_TCP.(Correlator
Management_TCP.java:250)
at com.apama.engine.EngineManagementFactory.connectToEngineViaTCP(Engine
ManagementFactory.java:157)
at com.apama.engine.EngineManagementFactory.connectToEngineViaTCP(Engine
ManagementFactory.java:120)
at com.apama.engine.EngineManagementFactory.connectToEngine(EngineManage
mentFactory.java:56)
at com.apama.engine.beans.EngineClientBean.connect(EngineClientBean.java
:1318)
at com.apama.engine.beans.EngineClientBean.getEngineManagement(EngineCli
entBean.java:285)
at com.apama.engine.beans.EngineClientBean.injectMonitorScript(EngineCli
entBean.java:2573)
at com.apama.engine.beans.EngineClientBean.injectMonitorScript(EngineCli
entBean.java:2564)
at atc.test.cep.TestApamaSubscriber.start(TestApamaSubscriber.java:99)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.kevoree.library.java.wrapper.KInstanceWrapper.startInstance(KInst
anceWrapper.java:105)
at org.kevoree.library.java.wrapper.ComponentWrapper.startInstance(Compo
nentWrapper.java:54)
at org.kevoree.library.java.command.StartStopInstance.run(StartStopInsta
nce.java:36)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.