Server side changes not taking effect

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

Segi
Ebase User
Posts: 649
Joined: Mon Dec 09, 2013 6:37 pm

Server side changes not taking effect

#1

Postby Segi » Wed Sep 03, 2014 8:23 pm

Ever since the latest version of eBase was released, I've had a problem where I make a change to a client or server side script but the changes do not immediately go into effect after I reload the form.

Whenever I make a change to a form I reload the URL but the changes are obviously not present. When this happens, I can even confirm that this is the case by adding gibberish to the script. Rather than crashing the form (as it should do) it appears as if an older cached copy of the script is being used. When this happens the only way to resolve it is to restart the server which can be difficult to do at any given time since we always have users actively using an eBase application.

I have seen this error on both Firefox on Chrome and have deleted the browser cache on both browsers and still have this issue.
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Thu Sep 04, 2014 6:41 am

We are aware of this problem, but at the moment don't know what's causing it. Hopefully we'll get it sorted out in the next service pack. For anybody else viewing this post, steps to address this issue are:

1. Restart the server
2. If that doesn't work, delete all the cache files (*.data) in UfsServer/tomcat/work/Catalina/localhost/<webapp> then restart the server
0 x

alexmcclune
Ebase User
Posts: 95
Joined: Wed Feb 27, 2013 5:16 pm

#3

Postby alexmcclune » Tue Sep 16, 2014 10:27 am

We have just encountered something very similar to this (we are running ebase 4.5.1) and deleting the tomcat /tmp files did the trick for us.

We have been making lots of changes without any problem until adding a grid to a page and programmatically hiding/unhiding it (we don't use many) - then the problems occurred - after tomcat restart (and /tmp files deletion) the problems went away.

We noticed the changes were picked up when running the form from Ebase but any other call to the form didn't pick the changes up.
0 x

Segi
Ebase User
Posts: 649
Joined: Mon Dec 09, 2013 6:37 pm

#4

Postby Segi » Thu Oct 23, 2014 9:46 pm

I am still having this problem. I can't try Alex' solution since that temp folder is always empty.

Do you guys think that this issue will be resolved in 5.0 ?
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#5

Postby Jon » Fri Oct 24, 2014 6:25 am

Should be before V5.0. We would hope to fix this with a service pack release for V4.5.
0 x

Segi
Ebase User
Posts: 649
Joined: Mon Dec 09, 2013 6:37 pm

#6

Postby Segi » Fri Jul 10, 2015 6:14 pm

What is the status of this bug ? Has it been addressed in one of the 4.5 service packs ? I am still experiencing this issue.
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#7

Postby Jon » Mon Jul 13, 2015 7:55 am

This was fixed in V4.5.3, released in February 2015.
0 x

Segi
Ebase User
Posts: 649
Joined: Mon Dec 09, 2013 6:37 pm

#8

Postby Segi » Mon Jul 13, 2015 3:07 pm

Jon,

I am on 4.5.3.

I have a form that has a table that is initially hidden until after I call fetchTable. After fetchTable(). I do tables.mytable.control.setHidden(false);

The table does not appear after I display it. If I press F5 in the browser window, the table appears as it should. It sounds like the exact same behavior where there's caching going on.
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#9

Postby Jon » Tue Jul 14, 2015 8:06 am

Doesn't sound like a caching problem to me. Instead of tables.mytable.control.setHidden(false), you might try controls.TABLECONTROLNAME.setHidden(false).
0 x

Segi
Ebase User
Posts: 649
Joined: Mon Dec 09, 2013 6:37 pm

#10

Postby Segi » Tue Jul 14, 2015 8:23 pm

Jon,

I have a somewhat similar issue where I have a button that is marked as Hidden and is not supposed to be displayed when my form is initially presented to the user but is still being displayed unless I call setHidden(true) in the Before Page event. This does sound like a caching issue to me.

By the way, I am on 4.5.3
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#11

Postby Jon » Wed Jul 15, 2015 8:22 am

Perhaps I should explain something about the caching problem that was fixed: the problem was that changes made in the designer were not being picked up by the server, and forms would continue to execute with an older version or some of the scripts might be older versions. These older versions were being loaded from a cache incorrectly. This problem could always be resolved by stopping the server, removing the cache files in tomcat/work/Catalina/localhost/webapp and restarting the server - this forces the system to ignore any cached entities and reload everything from the database.
0 x


Who is online

Users browsing this forum: No registered users and 21 guests