Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-6117

Fix nodejs example

    XMLWordPrintable

Details

    • Bug Report
    • Resolution: Fixed
    • L3 - Default
    • 7.5.0
    • 7.5.0-alpha5
    • sdk-js
    • None

    Description

      The example throws different exceptions.

      1.)
      Steps to reproduce:

      • start nodejs example
      • choose 'start a process'

      Error message:

      camunda-bpm-examples\sdk-js\nodejs\index.js:37
          throw err;
          ^
      
      Error: Internal Server Error
          at Request.callback (E:\Git\camunda-bpm-examples\sdk-js\nodejs\node_modules\camunda-bpm-sdk-js\node_modules\superagent\lib\node\index.js:792:17)
          at IncomingMessage.<anonymous> (E:\Git\camunda-bpm-examples\sdk-js\nodejs\node_modules\camunda-bpm-sdk-js\node_modules\superagent\lib\node\index.js:990:12)
          at emitNone (events.js:72:20)
          at IncomingMessage.emit (events.js:166:7)
          at endReadableNT (_stream_readable.js:913:12)
          at nextTickCallbackWith2Args (node.js:442:9)
          at process._tickCallback (node.js:356:17)
      

      2.)
      Steps to reproduce:

      • start nodejs example
      • choose 'List process instances'

      Error message:

      camunda-bpm-examples\sdk-js\nodejs\index.js:171
          instances.items.forEach(function (instance) {
                         ^
      
      TypeError: Cannot read property 'forEach' of undefined
          at E:\Git\camunda-bpm-examples\sdk-js\nodejs\index.js:171:20
          at E:\Git\camunda-bpm-examples\sdk-js\nodejs\node_modules\camunda-bpm-sdk-js\lib\api-client\http-client.js:68:5
          at Request.callback (E:\Git\camunda-bpm-examples\sdk-js\nodejs\node_modules\camunda-bpm-sdk-js\node_modules\superagent\lib\node\index.js:785:12)
          at IncomingMessage.<anonymous> (E:\Git\camunda-bpm-examples\sdk-js\nodejs\node_modules\camunda-bpm-sdk-js\node_modules\superagent\lib\node\index.js:990:12)
          at emitNone (events.js:72:20)
          at IncomingMessage.emit (events.js:166:7)
          at endReadableNT (_stream_readable.js:913:12)
          at nextTickCallbackWith2Args (node.js:442:9)
          at process._tickCallback (node.js:356:17)
      
      

      3.)
      Steps to reproduce:

      • start nodejs example
      • choose 'List tasks by filter' -> 'My Tasks' or 'My Group Tasks'

      Error Message:

      camunda-bpm-examples\sdk-js\nodejs\index.js:37
          throw err;
          ^
      
      Error: Unable to invoke method 'taskAssignee' on class 'org.camunda.bpm.engine.impl.TaskQueryImpl'
          at Request.callback (E:\Git\camunda-bpm-examples\sdk-js\nodejs\node_modules\camunda-bpm-sdk-js\node_modules\superagent\lib\node\index.js:792:17)
          at IncomingMessage.<anonymous> (E:\Git\camunda-bpm-examples\sdk-js\nodejs\node_modules\camunda-bpm-sdk-js\node_modules\superagent\lib\node\index.js:990:12)
          at emitNone (events.js:72:20)
          at IncomingMessage.emit (events.js:166:7)
          at endReadableNT (_stream_readable.js:913:12)
          at nextTickCallbackWith2Args (node.js:442:9)
          at process._tickCallback (node.js:356:17)
      

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

              michael.schoettes Michael Schoettes
              polenz Kristin Polenz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce