Indeni rule file log failure message

Indeni rule file log failure message
0

I have noticed strange behavior of the indeni-server after moving a rule file. In particular, the indeni-server logs a Failed and Success message for the rule file.

Any idea how to overcome this problem?


Check logs below

INFO [2017-09-19 17:40:01,650] com.indeni.api.endpoints.v1.websocket.AsyncJobActor: Request message keep_alive: AsyncKeepAliveJob :Actor[akka://indeni-server/user/$b#335797085]

INFO [2017-09-19 17:40:11,660] com.indeni.api.endpoints.v1.websocket.AsyncJobActor: Request message keep_alive: AsyncKeepAliveJob :Actor[akka://indeni-server/user/$b#335797085]

INFO [2017-09-19 17:40:11,869] org.reflections.Reflections: Reflections took 37 ms to scan 1 urls, producing 18 keys and 1010 values

INFO [2017-09-19 17:40:11,883] com.indeni.server.rules.manager.factory.FileSystemRuleFactory: Loading rule from file '/usr/share/indeni/rules/CrossVendorConfigUnsavedA.rule'

ERROR [2017-09-19 17:40:11,883] com.indeni.server.rules.manager.factory.FileSystemRuleFactory: Failed to load rule from file '/usr/share/indeni/rules/CrossVendorConfigUnsavedA.rule'

! com.indeni.server.rules.manager.factory.RuleCompilationException: Failed to parse any class name in the code:

! at com.indeni.server.rules.manager.factory.RuntimeRuleCompiler.parseClassName(RuntimeRuleCompiler.scala:54)

! at com.indeni.server.rules.manager.factory.RuntimeRuleCompiler.compile(RuntimeRuleCompiler.scala:36)

! at com.indeni.server.rules.manager.factory.FileSystemRuleFactory.com$indeni$server$rules$manager$factory$FileSystemRuleFactory$$compileFile(RuleFactory.scala:115)

! at com.indeni.server.rules.manager.factory.FileSystemRuleFactory$$anonfun$create$2.apply(RuleFactory.scala:89)

! at com.indeni.server.rules.manager.factory.FileSystemRuleFactory$$anonfun$create$2.apply(RuleFactory.scala:89)

! at com.indeni.filesystem.FileParser$$anon$1.visitFile(FileParser.scala:221)

! at com.indeni.filesystem.FileParser$$anon$1.visitFile(FileParser.scala:209)

! at java.nio.file.Files.walkFileTree(Files.java:2670)

! at com.indeni.filesystem.FileParser$.com$indeni$filesystem$FileParser$$walkFileTreeAndParse(FileParser.scala:205)

! at com.indeni.filesystem.FileParser$.com$indeni$filesystem$FileParser$$walkNonJarAndParse(FileParser.scala:167)

! at com.indeni.filesystem.FileParser$.walkFileTreeAndParse(FileParser.scala:39)

! at com.indeni.server.rules.manager.factory.FileSystemRuleFactory.create(RuleFactory.scala:89)

! at com.indeni.server.rules.manager.factory.RuleFactory.create(RuleFactory.scala:38)

! at com.indeni.server.rules.manager.RuleLoader.load(RuleLoader.scala:39)

! at com.indeni.server.sensor.Manager$1.onEvent(Manager.java:240)

! at com.indeni.filesystem.FileSystemWatcher$FileSystemWatcherRunnable.notifyListenerAndWaitNextEvent(FileSystemWatcher.scala:168)

! at com.indeni.filesystem.FileSystemWatcher$FileSystemWatcherRunnable.run(FileSystemWatcher.scala:136)

! at java.lang.Thread.run(Thread.java:745)

INFO [2017-09-19 17:40:12,065] org.reflections.Reflections: Reflections took 37 ms to scan 1 urls, producing 18 keys and 1010 values

INFO [2017-09-19 17:40:12,072] com.indeni.server.rules.manager.factory.FileSystemRuleFactory: Loading rule from file '/usr/share/indeni/rules/CrossVendorConfigUnsavedA.rule'

INFO [2017-09-19 17:40:12,771] com.indeni.server.rules.manager.factory.FileSystemRuleFactory: Successfully loaded rule 'cross_vendor_config_unsaved_2' from file '/usr/share/indeni/rules/CrossVendorConfigUnsavedA.rule'


Vasileios,


Thanks for sharing this. I wanted to let you know that it's currently under review.


Best,