You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a new Federated rule, jar file is not uploaded to S3.
If we manually upload the file to S3 e.g pac-fed-rules.jar.jar, rule engine only looks at pac-managed-rules.jar and cannot find the required class to execute the rule.
Reproduce steps
Create a new Federated rule with custom jar file.
Invoke the rule and check batch logs.
Expected Results
Rule should be able to find the class from the uploaded custom jar file and execute successfully.
Actual Results
Rule execution fails with below error:
running at
/root
list of files here
. pac-managed-rules.jar rule-engine.jar
............................................
............................................
java.lang.ClassNotFoundException: cannot find class associated to rule
at com.tmobile.pacman.util.ReflectionUtils.findAssociateClass(ReflectionUtils.java:55)
at com.tmobile.pacman.executor.SingleThreadRuleRunner.runRules(SingleThreadRuleRunner.java:63)
at com.tmobile.pacman.executor.RuleExecutor.run(RuleExecutor.java:228)
at com.tmobile.pacman.executor.RuleExecutor.main(RuleExecutor.java:91)
2019-02-19 05:37:13 9f4d49f6-0f48-45f6-afd0-d81691a2f56f [main] ERROR c.t.pacman.executor.RuleExecutor - error occured while executing
java.lang.ClassNotFoundException: cannot find class associated to rule
at com.tmobile.pacman.util.ReflectionUtils.findAssociateClass(ReflectionUtils.java:55)
at com.tmobile.pacman.executor.SingleThreadRuleRunner.runRules(SingleThreadRuleRunner.java:63)
at com.tmobile.pacman.executor.RuleExecutor.run(RuleExecutor.java:228)
at com.tmobile.pacman.executor.RuleExecutor.main(RuleExecutor.java:91)
2019-02-19 05:37:13 9f4d49f6-0f48-45f6-afd0-d81691a2f56f [main] ERROR c.t.pacman.executor.RuleExecutor - exiting now..
java.lang.ClassNotFoundException: cannot find class associated to rule
at com.tmobile.pacman.util.ReflectionUtils.findAssociateClass(ReflectionUtils.java:55)
at com.tmobile.pacman.executor.SingleThreadRuleRunner.runRules(SingleThreadRuleRunner.java:63)
at com.tmobile.pacman.executor.RuleExecutor.run(RuleExecutor.java:228)
at com.tmobile.pacman.executor.RuleExecutor.main(RuleExecutor.java:91)
Same error is seen even if we upload the jar file manually in S3. Seems Rule engine only looks at pac-managed-rules.jar
The text was updated successfully, but these errors were encountered:
Micro services
Rule Engine
Summary
When creating a new Federated rule, jar file is not uploaded to S3.
If we manually upload the file to S3 e.g pac-fed-rules.jar.jar, rule engine only looks at pac-managed-rules.jar and cannot find the required class to execute the rule.
Reproduce steps
Create a new Federated rule with custom jar file.
Invoke the rule and check batch logs.
Expected Results
Rule should be able to find the class from the uploaded custom jar file and execute successfully.
Actual Results
Rule execution fails with below error:
running at
/root
list of files here
. pac-managed-rules.jar rule-engine.jar
............................................
............................................
java.lang.ClassNotFoundException: cannot find class associated to rule
at com.tmobile.pacman.util.ReflectionUtils.findAssociateClass(ReflectionUtils.java:55)
at com.tmobile.pacman.executor.SingleThreadRuleRunner.runRules(SingleThreadRuleRunner.java:63)
at com.tmobile.pacman.executor.RuleExecutor.run(RuleExecutor.java:228)
at com.tmobile.pacman.executor.RuleExecutor.main(RuleExecutor.java:91)
2019-02-19 05:37:13 9f4d49f6-0f48-45f6-afd0-d81691a2f56f [main] ERROR c.t.pacman.executor.RuleExecutor - error occured while executing
java.lang.ClassNotFoundException: cannot find class associated to rule
at com.tmobile.pacman.util.ReflectionUtils.findAssociateClass(ReflectionUtils.java:55)
at com.tmobile.pacman.executor.SingleThreadRuleRunner.runRules(SingleThreadRuleRunner.java:63)
at com.tmobile.pacman.executor.RuleExecutor.run(RuleExecutor.java:228)
at com.tmobile.pacman.executor.RuleExecutor.main(RuleExecutor.java:91)
2019-02-19 05:37:13 9f4d49f6-0f48-45f6-afd0-d81691a2f56f [main] ERROR c.t.pacman.executor.RuleExecutor - exiting now..
java.lang.ClassNotFoundException: cannot find class associated to rule
at com.tmobile.pacman.util.ReflectionUtils.findAssociateClass(ReflectionUtils.java:55)
at com.tmobile.pacman.executor.SingleThreadRuleRunner.runRules(SingleThreadRuleRunner.java:63)
at com.tmobile.pacman.executor.RuleExecutor.run(RuleExecutor.java:228)
at com.tmobile.pacman.executor.RuleExecutor.main(RuleExecutor.java:91)
Same error is seen even if we upload the jar file manually in S3. Seems Rule engine only looks at pac-managed-rules.jar
The text was updated successfully, but these errors were encountered: