9 Ответы Последний ответ: 25.05.2018 21:00, автор: Marcelo Jabali-Oracle

    JavaException when calling Instant App from a bot

    3666220

      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.

        • 1. Re: JavaException when calling Instant App from a bot
          Marcelo Jabali-Oracle

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

          • 2. Re: JavaException when calling Instant App from a bot
            3666220

            [

              {

                "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"

                  }

                ]

              }

            ]

            • 3. Re: JavaException when calling Instant App from a bot
              Marcelo Jabali-Oracle

              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.

              • 4. Re: JavaException when calling Instant App from a bot
                3666220

                Version 18.1.2_1801190318

                • 5. Re: JavaException when calling Instant App from a bot
                  Marcelo Jabali-Oracle

                  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

                  • 6. Re: JavaException when calling Instant App from a bot
                    julianandrade

                    Marcelo Jabali-Oracle, I'm getting the same error using a trial OCME account and I know that I cannot create a SR to solve the issue. I tried to follow the workaround defined here https://support.oracle.com/epmos/faces/DocumentDisplay?id=2386733.1 but without success. What can I do to solve it?

                    • 7. Re: JavaException when calling Instant App from a bot
                      Marcelo Jabali-Oracle

                      Why can't you open an SR for that? That's my suggestion for resolving this type of issue . 

                      • 8. Re: JavaException when calling Instant App from a bot
                        julianandrade

                        I don't have the cloud product available when choosing the SR type and I assume it's because I don't have a cloud subscription.

                        • 9. Re: JavaException when calling Instant App from a bot
                          Marcelo Jabali-Oracle

                          I've asked someone to have a look on that. Thanks!