• N
    Nurr

    Hi @CraigWeb ,

    We check all context points, none of them is disabled. Although all context points are enabled, we get an error.

    Thanks in advance,

    posted in User help read more
  • N
    Nurr

    Hi All!

    We are getting an error while using meta points. We calculate meta points by combining Modbus, SNMP, Virtual, and Meta type points. We get a data source event like below when we restart mango or save/edit meta points. When we check the context points of meta point, context points are neither disabled nor null.

    What could cause to this event? How can we solve ?

    Error:
    'DataSource1': A context point is unavailable in point "Device1 - Point1" because Point with xid DP_d9934f8a-6e3e-48e6-b033-1488500d0b4a for variable named 'P1' is disabled.

    Thanks!

    posted in User help read more
  • N
    Nurr

    Hi All,

    A day ago I have been trying to start mango as a service when the server shut down and startup. For this purpose first of all, I have created a task via Windows Task Scheduler in order to start mango automatically whenever server startup. In this way, I couldn't start mango after restarting the server. Then I created a shortcut of ma-start.bat in the folder C:\Users\user1\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup, mango did not start again after restarting the server.
    Then, I have deleted both windows schedular task and shortcut. Before all, method 1 was working properly.

    What could cause to that? How can I solve it?

    Method 1:

    1. Open C:\Program Files (x86)\mango\bin

    2. Click ma-start.bat
      or

    3. Open cmd window

    4. Run command : cd C:\Program Files (x86)\BMS\bin

    5. Run command ma-start.bat

      Result: Mango gives error like below
      Error: ERROR Null object returned for RollingRandomAccessFile in Appenders.
      ERROR Unable to locate appender "logfile" for logger config "root"

    Method 2

    1. Run cmd as an administrator.
    2. Run command cd C:\Program Files (x86)\BMS\bin
    3. Run commandma-start.bat

    Result: Mango works properly.

    Thanks in advance.

    posted in User help read more
  • N
    Nurr

    Hi! @MattFox @terrypacker

    Is there any update about it?

    Thanks

    posted in How-To read more
  • N
    Nurr

    @MattFox , I have tested via swagger-ui page. When I use datapoint xids it responses properly on swagger-ui.

    I have used the code below in the global script, and getting response like below.

    Response:

    {"cause":"MismatchedInputException: Cannot deserialize instance of `java.lang.String[]` out of START_OBJECT token\n at [Source: (PushbackInputStream); line: 1, column: 1]","mangoStatusName":null,"mangoStatusCode":-1,"localizedMessage":"Bad Request — com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.lang.String[]` out of START_OBJECT token\n at [Source: (PushbackInputStream); line: 1, column: 1]"}
    
    function httpReq(url,method,callback,headers,params)
    {//Second format, full request
        if(headers===undefined){headers={};}
        if(params===undefined){params={};}
        if(method=="get")
        {
        HttpBuilder.get(url,headers,params)
    	.err(function(status, headers, content) { //setErrorCallback for linguistic completion
    		  //setErrorCallback for linguistic completion
                	print(status);	print(content);
    	}).resp( 
    	 callback
    
     ).excp(function(exception) { //setExceptionCallback
    		throw exception.getMessage();
    	}).execute();
        }
        else
        {
             HttpBuilder.post(url,headers,params)
    	.err(function(status, headers, content) { //setErrorCallback for linguistic completion
    		  //setErrorCallback for linguistic completion
                	print(status);	print(content);
    	}).resp( 
    	 callback
    	
    	 ).excp(function(exception) { //setExceptionCallback
    		throw exception.getMessage();
    	}).execute();
        }
    }
    
    var url = "http://10.167.35.76:8080/rest/v2/events/data-point-summaries";
    var method = "post";  //Or "post"
    var headers = {ContentType : "application/json", Authorization: "Bearer eyJhbGciOiJFUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTU5MjQ1OTMyNiwiaWQiOjEsInYiOjEsInR5cCI6ImF1dGgifQ.AZBrTRgtnP7W-88iiNbTn8oHFtjAMieGzEtC-Lr2uLRcZsDftzHKqct-gABlixlEErQqrmTRxF-y8aTprxld59tYAVdcggptg-jyJ-tPHqKSiaIY9VwNnefsxDf-qUTRQ9WeGi95jf1pQDhDQnSqsNsJ_HAFrD_Z0DiFoQwY9Z01iWcE" };
    
    var parameters ={xids:["DP_c244739c-86cd-43e3-95c5-b76acf4730b2"]}; /* If needed exclude if not*/
    
    var handleResponse = function(status, headers, content)
    {
       var data = JSON.parse(content);
    
      print(data);
    
    }
    
    httpReq(url, method, handleResponse , headers);
    

    posted in How-To read more
  • N
    Nurr

    @MattFox yes I have done this as you said. When I post, still couldn't get a response. Are we posting parameters in true format?

    We use Mango core version 3.7.5.

    posted in How-To read more
  • N
    Nurr

    @terrypacker Mango core version is 3.7.5 and I have tested on new UI. We are looking forward to seeing Mango 4.0 release, when it will be available for us?

    Thanks!

    posted in Mango feedback read more
  • N
    Nurr

    Hello All!

    We faced with error 1 while configuration import.

    Steps we have done is shown below.

    1. Open Configuration import/export page
    2. Select Event Handlers
    3. Click Export
    4. Click Import, without any change
    5. Then, Error 1 is seen on the screen.

    When we check the event handler, which gives an error, in the event handlers import JSON file, we see that some detectorsXID and dataPointXID is null shown like below.

    For Situation 1 , we have defined an event detector to the point "DP_74d73b67-41d1-49c1-a0fc-1b29d6921bb3" and selected the event handler for this event detector. After that, we directly deleted the event detector. Although we deleted the event detector, the point is seen as below in the event handler JSON export.

    For Situation2, we deleted point which has an event detector that we selected an event handler. Although we deleted point, the point is seen as below in the event handler JSON export.

    We solved the problem by deleting objects with null properties. How we can prevent from this problem, not to have the problem again?

    //Situation 1
            {
              "sourceType": "DATA_POINT",
              "dataPointXID": "DP_74d73b67-41d1-49c1-a0fc-1b29d6921bb3",
              "detectorXID": null
            },
    //Situation 2
            {
              "sourceType": "DATA_POINT",
              "dataPointXID": null,
              "detectorXID": null
            },
    

    Error 1:
    Event handler 'EH_086295d6-da94-4714-b350-3104832ca77e': saved
    Event handler 'EH_20bb44aa-cc63-417d-9781-92934af4b6ff': saved
    Event handler 'EH_d290da12-b346-4d0f-99fc-9dbfa160ab7a': Event type must have a 'detectorXID'
    Event handler 'EH_8ca1bc17-18b9-4ec1-a92e-0f94c9f35a7b': Event type must have a 'detectorXID'
    Event handler 'EH_33742af8-5d69-435f-8d2d-1493e91aa2dd': Event type must have a 'dataPointXID'
    Event handler 'EH_f0ff4774-bc57-4612-b3e5-b6fdaf151fa9': Event type must have a 'detectorXID'
    Event handler 'EH_1fb091b1-ea9a-4092-8172-799f677676e0': Event type must have a 'detectorXID'
    Event handler 'EH_a89c16f2-336a-438e-a8dd-58ca2fefd86d': Event type must have a 'dataPointXID'

    Thanks a lot!

    posted in Mango feedback read more
  • N
    Nurr

    @MattFox Thank you for your time and solution. I did what you have said and it works !!

    posted in How-To read more