How can you troubleshoot to try to resolve common HTTP errors that occur when working with Lotus Dom

来源:互联网 发布:淘宝拖鞋批发 编辑:程序博客网 时间:2024/05/28 16:26
 转自“http://www-01.ibm.com/support/docview.wss?uid=swg21327868”。 

    How can you troubleshoot to try to resolve common HTTP errors that occur when working with Lotus Domino XPages? 
   
   1. Error 403 - You are forbidden to perform this operation 
    The ID that was used to create or sign the XPage you are attempting to access may not have 
sufficient rights on the server. 
    Ensure that the XPage is signed by an ID that, depending on the level of access that you want this user to have, is listed in either the " Sign or run unrestricted methods and operations " or " Sign agents or XPages to run on behalf of the invoker " fields (Server Document --> Security tab). 
    One way to test to see if insufficient rights may be causing the problem is to sign the XPages generating the error with the server's ID. The server ID should have "Sign or run unrestricted methods and operations" rights by default (with no entry in the Server Document). A quick way to sign all design elements in an application with the Server's ID is to: 
1. Launch your Administrator Client and switch to the Files tab. 
2. Locate the Time-off Requests database and click to select it. 
3. Under the Tools panel, select Database --> Sign. 
4. Choose to sign all design documents with the active server's ID. 
     More detailed information on configuring runtime access for XPages is available in the Domino Information Center topic, Controlling agents and XPages that run on a server. 

2. Error 404 - Item Not Found Exception 

    1. Be sure that you are using the correct URL for the XPage, including the .xsp extension. For example, if you are trying to access an XPage named "myxpage" in an application named myapp.nsf on a server with the URL, http: //myserver.mydomain.com, then the URL to access the XPage would be as follows: 
http: //myserver.mydomain.com/ myapp.nsf/ myxpage.xsp 
    2. If you are using the correct URL but still receive a 404 error when accessing a specific XPage, the XPage may not have been built automatically by Domino Designer. 
    Refer to Document #1327454, HTTP 404 Errors when accessing a new XPage from a web browser," for more information on configuring the "Build Automatically" option in Domino Designer. 

3. Error 500 - Command Not Handled Exception 

1. This error can occur if a computed property or control on the XPage contains code that results in an error when executed. A common cause for this is not using the correct case in an @Function used on an XPage. 

One way to obtain more information about the error is to enable the "Display default error page" in the Application Properties --> XPages tab --> Errors and Timeouts section. 

2. If the XPage is not using any computed properties or controls or if you are certain that all of the code on the page is correct, try opening the XPage generating the error in Domino Designer. Make a minor edit and resave the XPage. This has resolved the error even when a "Compare with" in Domino Designer shows no difference between the original and resaved XPage. 

   500的错误多半是因为Xpage中出现了不合理的元素,为空,或者不存在,可以在Notes的Data目录下(如C:/Program Files/IBM/Lotus/Notes/Data/ IBM_TECHNICAL_SUPPORT )找最近修改的日志文件,可以查看抛出的异常,从而检查到底是哪里出了差错。 
  
----- Added ----- 
  4 . Unable to bind port 80, port may be in use or user needs net-privaddr privilege 
   80端口绑定失败,肯定是被别的进程给占用了,打开“CMD”窗口,使用“ netstat -ano ”命令产看谁占用了80端口,记下进程号PID,然后使用“ ntsd -c q -p PID ”命令kill进程号为PID的进程,释放80端口。 
   然后在Domino的Console中使用“ load http ”命令重新加载HTTP Web Server,如果已经加载,则使用“ tell http restart ”命令,重新启动HTTP Web Server即可。
0 0