Error running web app on Ubuntu

Hi there,

I have a Web App developed as follow:

  • IDE is on Mac OSX 10.8.5
  • Web server running Ubuntu Server 12.04 with Apache

When running the Web app from the IDE everything’s ok.

After deploying to the Web server (Linux CGI), here is what’s happening when running the app:

  • first page running ok
  • showing a second page throw a “This application has encountered an error and cannot continue” error, see details below
  • if I press “Do not send” the app seems to work correctly
  • if I switch back to first page: ok
  • if I switch back again to second page, no error occurs

Info:

  • switching back and forth is just via a single webbutton
  • switching from 1st to 2nd page requires a password, password prompt is in a WebDialog (dialogAdmin)

I don’t have any clue where to search to find the reason of this error.

Any help ?
Where can I find the logs server side ?
Is there any way to debug server side execution ?

Thanks and regards,

Olivier

[quote]Unhandled NilObjectException
Message:

Stack:
ccParam.ccParam.prmLoadProj%%o<ccParam.ccParam>
ccParam.ccParam.Event_Open%%o<ccParam.ccParam>
WebContainer.Event_Open%%o
WebView.Event_Open%%o
WebControl.Event_Open%%o
WebObject._ExecuteEvent%b%osA1v
WebControl._ExecuteEvent%b%osA1v
WebContainer._ExecuteEvent%b%osA1v
WebControl.!_ExecuteEvent%b%ssA1v
WebControl.!_ExecuteEvent%b%ss
Admin.Admin.Constructor%%o<Admin.Admin>
Session.Session.Admin%o<Admin.Admin>%o<Session.Session>
Admin.Admin%o<Admin.Admin>%
dialogAdmin.dialogAdmin.bLogin_Action%%o<dialogAdmin.dialogAdmin>o
Delegate.IM_Invoke%%o
AddHandler.Stub.28%%
WebButton._ExecuteEvent%b%osA1v
WebControl.!_ExecuteEvent%b%ssA1v
WebSession._HandleEvent%%oso<HTTPServer.HTTPRequestContext>
WebSession._HandleRequest%i4%oso<HTTPServer.HTTPRequestContext>
WebApplication.HandleHTTPRequest%%oo<HTTPServer.HTTPRequestContext>
_CGIGateway.GatewayRequestThread.Event_Run%%o<_CGIGateway.GatewayRequestThread>[/quote]

Apache error logs are usually in /var/log/httpd, but the error above probably won’t be in there, as it’s an error in the app, not Apache.

I would guess the problem has to do with trying to access a control or other object that hasn’t been instantiated yet. When running it on the server, the latency between the app and the browser reveals the problem that you don’t see when running locally. Pages and dialogs stay in memory unless specifically closed, which is probably why it works correctly the second time.

Do you have code in a page or dialog Open event that accesses other controls?

[quote=41196:@Jay Madren]Apache error logs are usually in /var/log/httpd, but the error above probably won’t be in there, as it’s an error in the app, not Apache.

I would guess the problem has to do with trying to access a control or other object that hasn’t been instantiated yet. When running it on the server, the latency between the app and the browser reveals the problem that you don’t see when running locally. Pages and dialogs stay in memory unless specifically closed, which is probably why it works correctly the second time.

Do you have code in a page or dialog Open event that accesses other controls?[/quote]

Hi Jay,

Yes ! You saved my day.
I had some code in the Open event to refresh a ListBox, moving the code to the Shown event seems to solve the issue.

Many thanks and best regards