System Message - "Application [EPOWERDOC] is busy or not responding!"

All,

 

I have a little log in screen that is located on an IIS box and gets called from the SB1 from the "Application Screen".(Screen Shot 2)

 

Page loads no problem and within 5 seconds it throws the below error(Screen Shot 1), the weird thing is if I click "WAIT" I can continue using the application with no issues, WELL for 5 seconds until it throws the error again...

 

Is the SB1 waiting on a parameter that flags page has loaded or loaded complete?

 

Any advice would be helpful!

 

Marcel

 

LogIn Screen.jpg

LogIn Code.jpg

Venkatasubbaiah...
AlolikaI suspect that in your

Alolika

I suspect that in your page you might have not included asl.js

Please copy undermentioned line in your web page under HEAD section and try.

<script type="text/javascript" src="http://127.0.0.1:83/Application/www/sapp/src/asl.js"></script>

thanks

Chenna

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Alolika Lanke
HelloThank you for reply.OS

Hello

Thank you for reply.

OS version:02.01.39

App Folder version:39.06

Shell version:2.9.2

RhoElement version:2.1.1.23

fist page is loaded after clicking on Start button next Menu page not loaded it gives above error Application not responding .

Thank you,

Alolika

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Marcel Pertile
SOLVED! The sui.apps.js file

SOLVED!

The sui.apps.js file expects a parameter from the webpage when it loads… and if you do not pass the parameter this message pops on the screen

   /*
     * When we start application, we start a countdown for the app to load,
     * if the app loads, we receive a hiAcceped message and remove the timer,
     * otherwise, create a notification to inform the user, and give him two chices: Wait and Quit
     */
    app.loadTimeoutHandler = function() {
  var notificationMessage = 'Application ' + app.name + ' is busy or not responding!';
  if(!sui.apps.signal){
   notificationMessage = 'Application ' + app.name + ' cannot load due to lost connectivity!';
  }
 
  sys.fn.notify({
             type: sys.notifications.system,
             priority: sys.priority.high,
             title: 'System Message',
             message: notificationMessage,
             buttons: ['Wait', 'Quit'],
             actions: [function() {
                 if(app.loadTimeout){
      clearTimeout(app.loadTimeout);
      delete app.loadTimeout;
 
      app.loadTimeout = window.setTimeout(app.loadTimeoutHandler, config.waitForResponseTimeout);
     }
             }, function() {
     clearTimeout(app.loadTimeout);
     delete app.loadTimeout;
     var id = app.id;
     sys.mi.kill(id);
    
     sui.apps.startedApps[id] = null;
     delete sui.apps.startedApps[id];

     sys.apps.running[id] = null;
     delete sys.apps.running[id];

                 sui.apps.showLauncher();
             }]
     });
    };
    app.loadTimeout = window.setTimeout(app.loadTimeoutHandler, config.waitForResponseTimeout);

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Alolika Lanke
PFA

PFA

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Venkatasubbaiah...
Which version of SB1 you are

Which version of SB1 you are using?

I am able to load your app. Please let me know how to reproduce your issue?.

Chenna

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Venkatasubbaiah...
Hello AlolikaI have made a

Hello Alolika

I have made a change in your login.html login function. You need not use asl.auth() function.


Please use the modified login function in login.html


function login()

           {

               try {

              

                   var username = "admin"

                   var password = "admin"

                   for (var i in users) {

                       if (users[i].username == username && users[i].password == password) {

                         

                           window.location = "http://127.0.0.1:83/UserDrive/apps/app4/Menu.html";

                           return;

                       }

                   }

               }

                catch(e)

                 {

                     alert("Unable to connect network."+e+"");

                 }

             }

.

Thanks

Chenna

+91 9980754564

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


vinothini balak...
Hi Marcel,This happens when

Hi Marcel,

This happens when you call external html page (asp.net on iis or such) inside SB1 app. This is a bug that is happening for us as well. We use SB1 OS 31.

If your html stays inside SB1 userdrive folder then it should work fine.

Best option is to use HTML/JS/CSS inside your sb1 app and call your IIS resources using RESTFul services.

Vinothini B

Spritle Software

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Venkatasubbaiah...
Please send me your UserDrive

Please send me your UserDrive folder?

In your apps.json URL may be wrong.

Chenna

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Alolika Lanke
Hello Chenna,I am doing  that

Hello Chenna,

I am doing  that but still issue not solved. Same error again and again.

This is the code.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html lang="en">

<head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <title></title>

    <meta http-equiv="scanner" content="DecodeEvent:url('javascript:decodeEvent(%s, %s, %s);')" />

    <link href="../css/asl.css" rel="stylesheet" type="text/css" media="screen, projection" />

    <link href="../css/styles.css" rel="stylesheet" type="text/css" media="screen, projection" />

     <script type="text/javascript" src="http://127.0.0.1:83/Application/www/sapp/src/asl.js"></script>

    <!--<script type="text/javascript" src="../app1/js/cfg.js"></script>-->

    <script type="text/javascript">

        asl.title('Application');

        asl.events.subscribe(asl.events.types.loaded, function () {

            asl.options([

              {

                  title: 'Exit',

                  callback: function () {

                      asl.exit();

                  }

              }

            ]);

        });

    </script>

</head>

<body>

    <div class="list">

       <ul class="list">

            <li>

                <a href="ProductDesc.html"><span>Price Check</span></a>

            </li>

             <li>

                 <a href="Scan.html"><span>Product Search</span></a>

             </li>

             <li>

                <a href="login.html"><span>Back</span></a>

            </li>

            </ul>

       <!-- <a href="login.html" class="button" style="width:100px;"><span>Login</span></a><br />-->

                <!--<a href="Mannual.html" class="button" style="width:100px;"><span>Manual</span></a>-->

        <!--<table align="center">

        <tr>

            <td>-->

     

           

            <!--</td>

        </tr>

        </table>-->

    </div>

</body>

</html>

Thank you

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Alolika Lanke
Hi Marcel,I also getting same

Hi Marcel,

I also getting same error message again and again what to do.

Thank you,

Alolika

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


vinothini balak...
Hi Marcel,Thanks for posting

Hi Marcel,

Thanks for posting the solution. I will try it out tomorrow.

May I know how you got to know it has to do with sui.apps.json ?

Vinothini B

Spritle Software

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Alolika Lanke
please reply urgently. I have

please reply urgently. I have to give Demo to Client.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Alolika Lanke
Thank you very much it is

Thank you very much it is working fine.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Topic locked