You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nlpcraft.apache.org by "Aaron Radzinski (Jira)" <ji...@apache.org> on 2021/01/28 17:34:00 UTC

[jira] [Created] (NLPCRAFT-230) Kotlin example failure.

Aaron Radzinski created NLPCRAFT-230:
----------------------------------------

             Summary: Kotlin example failure.
                 Key: NLPCRAFT-230
                 URL: https://issues.apache.org/jira/browse/NLPCRAFT-230
             Project: NLPCraft
          Issue Type: Bug
          Components: examples
            Reporter: Aaron Radzinski
            Assignee: Sergey Kamov
             Fix For: 0.7.5


I also ran my groovy-data-science example which interacts with the light
switch example model.
After blowing away my ".nlpcraft" folder, it ran fine against the Java,
Scala and Groovy example models.
Against the Kotlin model it error with:

     [java] Jan-28|15:11:33|ERR| Failed to start probe:
     [java] Jan-28|15:11:33|ERR|   +-+ Failed to instantiate model:
org.apache.nlpcraft.examples.lightswitch.LightSwitchKotlinModel ->
(NCDeployManager.scala:522)
     [java] Jan-28|15:11:33|ERR|     |
o.a.n.probe.mgrs.deploy.NCDeployManager$.makeModelWrapper ->
(NCDeployManager.scala:522)
     [java] Jan-28|15:11:33|ERR|     |
o.a.n.probe.mgrs.deploy.NCDeployManager$.start ->
(NCDeployManager.scala:618)
     [java] Jan-28|15:11:33|ERR|     |
o.a.n.probe.NCProbeBoot$.startManagers -> (NCProbeBoot.scala:479)
     [java] Jan-28|15:11:33|ERR|     | o.a.n.probe.NCProbeBoot$$anon$4.run
-> (NCProbeBoot.scala:357)
     [java] Jan-28|15:11:33|ERR|     +-+ Unexpected generic type for
@NCIntentTerm annotated argument [mdlId=nlpcraft.lightswitch.ex, type=?
extends org.apache.nlpcraft.model.NCToken, arg=#1 of
LightSwitchKotlinModel#onMatch(NCToken, List)] ->
(NCDeployManager.scala:1327)
     [java] Jan-28|15:11:33|ERR|       |
o.a.n.probe.mgrs.deploy.NCDeployManager$.checkTypes ->
(NCDeployManager.scala:1278)

Not sure if this is related to calling from Groovy into that model?

Cheers, Paul.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)