Uploaded image for project: 'NLPCraft'
  1. NLPCraft
  2. NLPCRAFT-230

Kotlin example failure.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.7.5
    • Examples
    • None

    Description

      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.

      Attachments

        Activity

          People

            sergeykamov Sergey Kamov
            aradzinski Aaron Radzinski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: