Project

General

Profile

Defect #336

dialog not dismissing...

Added by Rafi Galibov almost 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
Start date:
06/28/2011
Due date:
% Done:

0%

Estimated time:
Browser (if web client):

Description

I am getting an error sometimes when using the module in web client...

Exception Object: java.lang.RuntimeException: Couldn't start the scheduler! Unable to store Job with name: '563283B7-A37D-4810-9E0D-9095866C5C1F' and group: '906FE0B4-9C99-4428-8FCD-118F6C38BCC8', because one already exists with this identification.
MSG: Couldn't start the scheduler! Unable to store Job with name: '563283B7-A37D-4810-9E0D-9095866C5C1F' and group: '906FE0B4-9C99-4428-8FCD-118F6C38BCC8', because one already exists with this identification.
Couldn't start the scheduler! Unable to store Job with name: '563283B7-A37D-4810-9E0D-9095866C5C1F' and group: '906FE0B4-9C99-4428-8FCD-118F6C38BCC8', because one already exists with this identification.
Wrapped java.lang.RuntimeException: Couldn't start the scheduler! Unable to store Job with name: '563283B7-A37D-4810-9E0D-9095866C5C1F' and group: '906FE0B4-9C99-4428-8FCD-118F6C38BCC8', because one already exists with this identification. (/Users/rafig/servoy_workspace5rnoh/mod_dialog/forms/dialogs_base.js#33)
    at /Users/rafig/servoy_workspace5rnoh/mod_dialog/forms/dialogs_base.js:33 (onHide)
    at /Users/rafig/servoy_workspace5rnoh/mod_dialog/forms/dialogs_base.js:51 (onButtonAction)

Can't remove dialog form '81010C7A-8808-4100-BBC2-E377919CE656' from history
Exception Object: java.lang.RuntimeException: Couldn't start the scheduler! Unable to store Job with name: '81010C7A-8808-4100-BBC2-E377919CE656' and group: '906FE0B4-9C99-4428-8FCD-118F6C38BCC8', because one already exists with this identification.
MSG: Couldn't start the scheduler! Unable to store Job with name: '81010C7A-8808-4100-BBC2-E377919CE656' and group: '906FE0B4-9C99-4428-8FCD-118F6C38BCC8', because one already exists with this identification.
Couldn't start the scheduler! Unable to store Job with name: '81010C7A-8808-4100-BBC2-E377919CE656' and group: '906FE0B4-9C99-4428-8FCD-118F6C38BCC8', because one already exists with this identification.
Wrapped java.lang.RuntimeException: Couldn't start the scheduler! Unable to store Job with name: '81010C7A-8808-4100-BBC2-E377919CE656' and group: '906FE0B4-9C99-4428-8FCD-118F6C38BCC8', because one already exists with this identification. (/Users/rafig/servoy_workspace5rnoh/mod_dialog/forms/dialogs_base.js#33)
    at /Users/rafig/servoy_workspace5rnoh/mod_dialog/forms/dialogs_base.js:33 (onHide)
    at /Users/rafig/servoy_workspace5rnoh/mod_dialog/forms/dialogs_base.js:51 (onButtonAction)

I am in an 'onDataChange' method, but it did happen as well after the code in my previous Issue, but I hadn't thought about raising it
@
function onDataChangeMsgType ( oldValue, newValue, event ) {
switch ( newValue ) {
case 'FAX':
elements.lbl_attachment_file_name.visible = true;
elements.lbl_send_msg_txt.visible = true;
elements.lbl_send_subject.visible = true;
elements.lbl_send_to.visible = true;
elements.send_to.visible = true;
elements.send_subject.visible = true;
elements.send_msg_txt.visible = true;
elements.attachment_file_name.visible = true;
elements.btn_choose.visible = true;
elements.lbl_send_to.text = 'FAX No';
elements.send_to.enabled = true;
elements.send_subject.enabled = true;
elements.send_msg_txt.enabled = true;
elements.attachment_file_name.enabled = true;
elements.btn_choose.enabled = true;
elements.lbl_chars_left.visible = false;
if ( globals.send_to != '' ) {
globals.send_to = plugins.fmp.trim ( plugins.fmp.substitute ( plugins.fmp.substitute ( plugins.fmp.substitute ( plugins.fmp.substitute ( globals.send_to, ')', '' ), '(', '' ), '-', '' ), ' ', '' ) );
if ( ( plugins.fmp.left ( globals.send_to, 2 ) '07' ) || ( plugins.fmp.left ( globals.send_to, 4 ) '+447' ) ) {
// seems to be a mobile no, not allowed for faxing
application.beep ( );
globals.DIALOGS.showErrorDialog ( "Error", "You can't send a fax to a mobile number!", "OK" );
elements.btn_send.visible = false;
elements.btn_send.enabled = false;
elements.send_to.requestFocus ( );
return false;
}
}
break;
@
Thanks


Related issues

Related to Dialogs module - Defect #335: Request for a 'close' functionResolved06/28/2011

Actions

History

#1

Updated by Robert Ivens almost 14 years ago

Each dialog (should) get a unique name (the UUID) and when closing (onHide) it sets a cronjob with that UUID as name to destroy the dialog blueprint.

Are these dialogs opened right after each other ? Or are these errors far apart (time-wise) ?
I.e. in what sort of situation does this occur ?

#2

Updated by Robert Ivens almost 14 years ago

Nevermind, you already explained the situation in the ticket.

I will look into this.

#3

Updated by Robert Ivens almost 14 years ago

  • Status changed from New to Closed
  • Target version set to 1.1.2

I added some more checks in there so it wouldn't error.

Also available in: Atom PDF