During development, I sometimes make a mistake in my code (yes I know that is had to believe :) ) and when the page attempted to be displayed in the browser, the browser just sits and spins trying to load the page but the page never loads.
After this occurs, no other pages in that db react the same and this is true for all users of the database. No other users can use the database during this "lockup" period.
Pages in the problem db will not work for any user. Xpages in other databases on that server continue to work fine. Http from traditional forms and view work fine in the problem db. It seems only xpages are affected.
It seems over a period of time, the pages for the problem db will work again.
What would be causing the lockup issue and is there and way to fix it immediately?
Bruce you know that you will roast in hell for developing on a production database on a production server :-)
The steps to remedy:
check all errors (in the error pane in designer) and fix them
do a clean build of your app
restart the http server
Optional action: Compact -c
Hope that helps
P.S.: We all will join you down there ;-)
Related
Load any xPage
Refresh db design
Reload the xPage by either F5 or Ctrl+F5.
then almost all functions stop working without any errors. E.g. nothing happen if you click buttons or menu items. After restarting web browser some functions come back but some still doesn't work. After cleaning browser's cache almost 90% UI start working but some still need to reload the page few times. Is there any xPage app properties or Domino properties to adjust to fix that problem and make xPage app work smooth even after design refresh
Design Refresh didn't reload custom Java classes when refreshing with 8.5.3 FP1. This was fixed, I believe, in FP2. But that doesn't sound like it's causing the problem here.
Design Refresh will not reload jar files. That requires issuing "restart task http" to the console. ("tell http restart" doesn't properly reload everything XPages needs.)
If your application is using a Single Copy XPage Design to hold its XPages design, that too will not update until you issue "restart task http" to the server. The design seems to be cached by the server for better performance, but refreshing the design of the SCXD database doesn't reload that design. It's unclear if that's your scenario here.
XPiNC may also not update immediately, but I've not tried that. The runtime there is basically in the Notes Client itself, so I could understand that it would not update.
Otherwise, I would echo Thomas's experience, I've not seen any other issues (and my applications heavily use Java). I haven't needed to clean the application following a design refresh. Existing browser sessions will have problems with partial refresh calls, I would expect that. But a refresh of the page make all functionality work.
There are two scenarios I would expect to have problems.
The first is if you are storing anything in sessionScope or applicationScope variables that are required by your application, but your code only loads those on a specific page. If you refresh the design, the scopes will get dumped and so not reloaded until you go to the specific page. Typically I put such initialisation code on my layout custom control, so a page reload will always initialise it if it's dumped by a design refresh.
The second is if another user accesses the application and has Build Automatically switched on, which could result in the application being rebuilt without you realising it. It doesn't sound like this is happening for you though.
I have a complex form in my webpart. It has JS, JQuery, Bootstrap and form is too complex. I have deployed the form in farm solutions. It works fine.
Then I tried to deploy it to sharepoint online. It has been done. After I have inserted webpart and try to save page shows message "Saving", and it never ends.
I tried several times and failed.
How to overcome this issue?
Is there any shortcut to save and close rather than waiting?
Have a look in the browser's developer tools to see what's going on. Could be a JavaScript error that causes the page to hang or that a ressource isn't being properly loaded. Also run Fiddler to see what goes over the wire and the HTTP status codes.
You can't assume that something that previously worked in a farm solution (a full-trust environment) will just work in SharePoint Online (low-trust environment). That's highly unlikely to be the case.
I had a strange issue from one of my customers this morning, who use my web application. Apparently they are getting "ads" within the browser window when using my application.
I do not put ads in at all. It a straight forward asp.net web application.
What I believe is happening in this case is that the end user has some malware on their pc which "hops" onto their browser session to display their "wares". It could happen to any website they are perusing I guess. I recommended they scan their pc with Malwarebytes.
Is this something that is under the control of the end user, or are there things web application developers can do to prevent this happening. Also some pointers as to how these "ad browser hijackers" work would be good.
Thanks.
When no users have the any pages in an application open, it will unload the application from the server after a while.
When a user loads a page in the app after it's been unloaded, it can take quite a while to load.
The simplest way to work around the issue is to have an agent that polls a page in the application each morning before any users are online. Is there a better way to do this?
Starting with Notes and Domino 8.5.3, you can use the following ini parameters:
XPagesPreload=1
Preloads XPages java code at server startup so that they are already in memory when a user access an xpages app for the first time.
XPagesPreloadDB=servername!!path/mydb.nsf/myxpage.xsp,servername!!path/anotherdb.nsf
Preloads XPages engine for a specific XPage in a specific database or for all XPages in a database.
Both parameters can be used on the Domino Server and on the Notes client.
As far as I know, the application will be kept in memory even if no user doe access it.
I have recently installed a website project on Azure and that was relatively easy to do thanks to great docs online. We are having a problem with the back office (admin) login though, it's a bit strange, as it didn't happen straight away, I shall elaborate....
When I go to http://www.keelycattschoolofdance.co.uk/umbraco/ it takes me to the login page, which seems fine.
(The url at this point becomes www.keelycattschoolofdance.co.uk/.../login.aspx)
I then login, which works and it starts to display the admin panels but then bounces back to the login and the URL becomes www.keelycattschoolofdance.co.uk/.../login.aspx
I am running this on Azure using the Accelerator, latest version of Umbraco and using SQL CE 4.0 rather than SQL Server.
has anyone seen this before?
Please let me know if you need more information, I shall respond :-)
Thanks in advance
Nick
It sounds like it may be a Session error. This is a problem for Azure and Umbraco because Azure uses round robin load balancing.
The normal way of setting up an Umbraco site using the accelerator would be to have a separate session DB where the shared session state is stored.
Make sure you are using this accelerator for Umbraco on Azure as it's the latest and best.
http://waacceleratorumbraco.codeplex.com/
We have several large production sites using this and I can confirm they all work fine (including the backend editing environment).
Things to watch out for are that you need to follow the instructions closely as they are easy to get wrong :-)
Make sure you don't have dashes in your db names as this makes things go wrong as well.
Finally if you are using more than one web role the Umbraco preview can sometimes yellow screen, as the preview XML may not be on the server that gets to the preview request. This is again because of the round robin load balancing.