Digital Assistant and Mobile

Get Involved. Join the Conversation.

Topic

    Ga Marini
    JavaException when calling Instant App from a bot
    Topic posted March 14, 2018 by Ga MariniGreen Ribbon: 100+ Points, last edited March 15, 2018 by Arijit ChakrabortyBronze Trophy: 5,000+ Points, tagged Bots 
    77 Views, 6 Comments
    Title:
    JavaException when calling Instant App from a bot
    Summary:
    JavaException when calling Instant App from a bot
    Content:

    I've created a simple Bot using OMCe bots only stack. Now I want to integrate a simple Instant App into my bot flow.

     

    I used one of the Instant App's templates offered by the platform: I created one using the wizard and then I activated it. I created this state to call the Instant App:

     

    interactiveState:

        component: "System.Interactive"

        properties:

          sourceVariableList: "name, lastname"

          variable: "outputMessage"

          id: "Test_Instant_App"

          prompt: "test phrase"

        transitions: {}

     

    When the bot reach this particular state I get the following error:

     

    "errorMessage": "javaException:Schema specific part is opaque."

     

    The entire flow is defined as follows:

     

    states:

    helloState:

        component: "System.Output"

        properties:

          keepTurn: true

          text: "Ciao come posso esserti utile?"

        

      setName:

        component: "System.SetVariable"

        properties:

          variable: "name"

          value: "nome"

        

      setLastname:

        component: "System.SetVariable"

        properties:

          variable: "lastname"

          value: "cognome"

      

      interactiveState:

        component: "System.Interactive"

        properties:

          sourceVariableList: "name, lastname"

          variable: "outputMessage"

          id: "Test_Instant_App"

          prompt: "test phrase"

      

      testState:

        component: "System.Output"

        properties:

          text: "${outputMessage.value.test1} ${outputMessage.value.test2}"

        transitions:

          return: "done"

     

    I extracted a log from the pipeline, this log reports the following error:

     

    An exception occurred while invoking component System.Interactive: Schema specific part is opaque.[[

    java.lang.IllegalArgumentException: Schema specific part is opaque.

    at org.glassfish.jersey.uri.internal.JerseyUriBuilder._buildFromMap(JerseyUriBuilder.java:816)

    at org.glassfish.jersey.uri.internal.JerseyUriBuilder.buildFromMap(JerseyUriBuilder.java:801)

    at oracle.cloud.bots.component.InteractiveComponent.getCallbackUrl(InteractiveComponent.java:283)

    at oracle.cloud.bots.component.InteractiveComponent.buildInteractivePayload(InteractiveComponent.java:361)

    at oracle.cloud.bots.component.InteractiveComponent.createInteractiveInstance(InteractiveComponent.java:178)

    at oracle.cloud.bots.component.InteractiveComponent.invokeImpl(InteractiveComponent.java:119)

    at oracle.cloud.bots.component.AsyncHttpComponent.invoke(AsyncHttpComponent.java:59)

    at oracle.cloud.bots.pipeline.de.DialogEngine.invokeBuiltInComponent(DialogEngine.java:414)

    at oracle.cloud.bots.pipeline.de.DialogEngine.executeState(DialogEngine.java:355)

    at oracle.cloud.bots.pipeline.de.DialogEngine.processMessage(DialogEngine.java:144)

    at oracle.cloud.bots.pipeline.de.DialogEngine.runDialog(DialogEngine.java:104)

    at oracle.cloud.bots.pipeline.components.DialogInvoker.processImpl(DialogInvoker.java:97)

    at oracle.cloud.bots.pipeline.PipelineComponent.process(PipelineComponent.java:53)

    at oracle.cloud.bots.pipeline.PipelineComponent.process(PipelineComponent.java:56)

    at oracle.cloud.bots.pipeline.PipelineComponent.process(PipelineComponent.java:56)

    at oracle.cloud.bots.pipeline.PipelineComponent.process(PipelineComponent.java:56)

    at oracle.cloud.bots.pipeline.components.MessageSource.process(MessageSource.java:40)

    at oracle.cloud.bots.pipeline.components.MessageSource.process(MessageSource.java:16)

    at oracle.cloud.bots.kafka.consumer.SingleRecordProcessor.process(SingleRecordProcessor.java:65)

    at oracle.cloud.bots.kafka.consumer.DiagnosticRecordProcessor.lambda$process$0(DiagnosticRecordProcessor.java:34)

    at oracle.cloud.bots.diagnostic.DiagnosticUtils.execute(DiagnosticUtils.java:76)

    at oracle.cloud.bots.kafka.consumer.DiagnosticRecordProcessor.process(DiagnosticRecordProcessor.java:32)

    at oracle.cloud.bots.kafka.consumer.RecordListenerThread.lambda$run$0(RecordListenerThread.java:107)

    at java.util.concurrent.FutureTask.run(FutureTask.java:266)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

    at java.lang.Thread.run(Thread.java:748)]]

     

    How can I solve this issue? If more resources are needed (Screenshots, logs, etc...) let me know and I'll provide them.

    Thanks in advance.

    Comment

     

    • Ga Marini

      [

        {

          "responses": [

            {

              "messagePayload": {

                "text": "Ciao come posso esserti utile?",

                "type": "text",

                "channelExtensions": {

                  "debugInfo": {

                    "variables": {

                      "profile.updatedOn": "2018-03-14T15:34:48.946Z",

                      "profile.lastName": "***",

                      "social": null,

                      "greeting": null,

                      "iResult": null,

                      "birthDate": null,

                      "other_phone": null,

                      "profile.locale": "it-IT",

                      "lastname": null,

                      "profile.timezoneOffset": -3600000,

                      "outputMessage": null,

                      "phone": null,

                      "profile.firstName": "***",

                      "name": null,

                      "servizio": null,

                      "mat_inarcassa": null,

                      "email": null

                    },

                    "currentDialogState": "helloState",

                    "executedStates": [

                      "helloState",

                      "setName",

                      "setLastname",

                      "interactiveState",

                      "System.DefaultErrorHandler"

                    ]

                  }

                }

              },

              "userId": "7531933"

            },

            {

              "messagePayload": {

                "text": "Oops I'm encountering a spot of trouble. Please try again later...",

                "type": "text",

                "channelExtensions": {

                  "debugInfo": {

                    "variables": {

                      "profile.updatedOn": "2018-03-14T15:34:48.946Z",

                      "profile.lastName": "***",

                      "social": null,

                      "greeting": null,

                      "iResult": null,

                      "birthDate": null,

                      "other_phone": null,

                      "system.CallbackToken": "6ba4ab61-8b77-4cf3-88d6-5ad2a67b98e4",

                      "profile.locale": "it-IT",

                      "lastname": "cognome",

                      "profile.timezoneOffset": -3600000,

                      "outputMessage": null,

                      "phone": null,

                      "profile.firstName": "***",

                      "name": "nome",

                      "servizio": null,

                      "mat_inarcassa": null,

                      "email": null

                    },

                    "errorState": "interactiveState",

                    "errorMessage": "javaException:Schema specific part is opaque.",

                    "currentDialogState": "System.DefaultErrorHandler",

                    "executedStates": [

                      "helloState",

                      "setName",

                      "setLastname",

                      "interactiveState",

                      "System.DefaultErrorHandler"

                    ]

                  }

                }

              },

              "userId": "7531933"

            }

          ]

        }

      ]

    • Ga Marini

      Version 18.1.2_1801190318

    • Marcelo Jabali

      Could you please provide the resulting JSON you get in the Bots UI Tester when you hit this issue?

    • Marcelo Jabali

      Thanks. Could you confirm what version are you on? You can get that by clicking the user's icon in the top right and selecting About. I'd need the Version string listed there.

    • Marcelo Jabali

      Thanks. We've found a bug during the stack provisioning that causes this condition. I'd suggest you open an SR with support as we'll need the hostnames for your environment. It should be a quick fix.

      Please provide the SR # either here or you can send me an email to marcelo [DOT] jabali [AT] oracle [DOT] com

    • Marcelo Jabali

      I'd also recommending taking a look at the following workaround in case you hit this issue: https://docs.oracle.com/en/cloud/paas/mobile-autonomous-cloud/known-issues/index.html#MSAKI-GUID-4BFA28B8-AF66-4A43-84A9-07EF603CAC91