Error: Constructor for "InternalError" not found

Discuss all problems you have with Servoy here. It might help to mention the Servoy version and Operating System version you are using

Error: Constructor for "InternalError" not found

Postby rossent » Thu Nov 21, 2013 1:04 pm

Hi Servoy,

Under some "uncertain" conditions, we get the following error:

Code: Select all
org.mozilla.javascript.EvaluatorException: Constructor for "InternalError" not found


The suspect is that this condition happens after some forms are unloaded automatically by Servoy and then reloaded.

"InternalError" does not appear anywhere in our code. What could be causing this issue?
Rossen Totev
Argos Software
rossent
 
Posts: 288
Joined: Wed Dec 31, 2008 2:03 pm

Re: Error: Constructor for "InternalError" not found

Postby jcompagner » Thu Nov 21, 2013 1:14 pm

that shouldn't really happen. Because InternalError constructor is at the top level scope of rhino, that is created when the scriptengine is created.

having said that, we did add some extra synchronization for the next release of servoy 7.x (and 6.0) so that that shouldn't happen.
If you still see that please report back
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Error: Constructor for "InternalError" not found

Postby rossent » Thu Nov 21, 2013 1:19 pm

jcompagner wrote:that shouldn't really happen. Because InternalError constructor is at the top level scope of rhino, that is created when the scriptengine is created.

having said that, we did add some extra synchronization for the next release of servoy 7.x (and 6.0) so that that shouldn't happen.
If you still see that please report back



When did you add that? The issue is happening on a server running Servoy version 7.3.0 i1- releaseNumber 2019
Rossen Totev
Argos Software
rossent
 
Posts: 288
Joined: Wed Dec 31, 2008 2:03 pm

Re: Error: Constructor for "InternalError" not found

Postby jcompagner » Thu Nov 21, 2013 2:02 pm

no its not in that release, don't know if it is currently in the 7.3.1 "branch', will ask, its on 7.4 for sure
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Error: Constructor for "InternalError" not found

Postby rossent » Thu Nov 21, 2013 3:25 pm

jcompagner wrote:that shouldn't really happen


Unfortunately it does happen...
Rossen Totev
Argos Software
rossent
 
Posts: 288
Joined: Wed Dec 31, 2008 2:03 pm

Re: Error: Constructor for "InternalError" not found

Postby jcompagner » Thu Nov 21, 2013 4:34 pm

7.3.0i2 should have the changed code.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Error: Constructor for "InternalError" not found

Postby rossent » Tue Nov 04, 2014 4:00 pm

Hi Johan,

This issue is still happening even on 7.4.2.
This is from the server log:


Code: Select all
Server log:
2014-11-04 14:55 http-18080-4 ERROR com.servoy.j2db.util.Debug InternalError: Constructor for “InternalError” not found. (app_shell/forms/app_shell_BaseForm/processBeforeActionContext#591) at app_shell/forms/app_shell_BaseForm/processBeforeActionContext:591 (processBeforeActionContext) at app_shell/forms/app_shell_BaseForm/requestBeforeActionContext:566 (requestBeforeActionContext) at app_shell/forms/app_shell_BaseForm/performBaseFormAction:1632 (performBaseFormAction) at app_shell/forms/app_shell_BaseForm/performSaveAndCloseAction:4381 (performSaveAndCloseAction) at argos_abelisk_client/forms/BOTTOM_TOOLBAR_x77ba54b7bc79491a8cb40bb0a5d2dd59/handleToolBarButtonClick:315 (handleToolBarButtonClick)
Rossen Totev
Argos Software
rossent
 
Posts: 288
Joined: Wed Dec 31, 2008 2:03 pm

Re: Error: Constructor for "InternalError" not found

Postby jcompagner » Fri Nov 07, 2014 6:21 pm

are you using 3th party plugins like velocity plugin or something like that?

Or maybe are you trying to destroy a form that you want to alter again in the solution model, but the current execution context is on that form?
There should be safe guards in it that then the form really can't be destroyed/removed from history. Because if that does happen then the complete state of the form or the method of that from that is running is bogus. (the parent hierarchy is destroyed)
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Error: Constructor for "InternalError" not found

Postby ptalbot » Fri Nov 07, 2014 6:33 pm

FYI I've released a Velocity v3.3.7 lately that fixes any issue with the plugin's usage of the Rhino context that could have happened before.
It has been confirmed to be working for people who had issues with previous versions.
Patrick Talbot
Freelance - Open Source - Servoy Valued Professional
https://www.servoyforge.net
Velocity rules! If you don't use it, you don't know what you're missing!
User avatar
ptalbot
 
Posts: 1654
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC


Return to Discuss possible Issues and Bugs

Who is online

Users browsing this forum: No registered users and 7 guests

cron