zoukankan      html  css  js  c++  java
  • Portal Server 7 Swallows Up Portlet Exceptions: The Useless MISC_ERROR

    Portal Server 7 Swallows Up Portlet Exceptions: The Useless MISC_ERROR
    Alert to portlet developers using Sun Portal Server 7!  There is a pretty serious bug in the 7.0 release that will make it appear the Portal Server is swallowing up exceptions thrown by your portlet.  This will make debugging your portlet very difficult.

    For instance, have you been debugging a portlet in PS7 only to find a useless message like "Exception thrown - EntityID = TestPortletTestPortletTestPortletChannel, Error Code = MISC_ERROR"?  Not very helpful. :(  Well the problem is the Portal Server is actually capturing the portlet's exception in the portlet container and failing to log it at a level that will be presented by default in the Portal Server logs.  The bug will be fixed in PS7.1 (as part of Java ES 5).

    To workaround in the short-term, you will have to set the logging level correctly for the portlet container so that the portlet's exception is logged to the Portal Server log file.  This can be done with the psadmin command-line tool, like so:

    /opt/sun/portal/bin/psadmin set-logger -v -u amadmin -f <password-file>  -m portal -p <portal-id> -i <instance-id> -80 --name debug.com.sun.portal.portletappengine --level FINEST

    The other option is to use the Portal Server Console.

    Choose your portal, and instance and the Logging tab.
    Choose the Specific Logger Settings tab.
    Choose your instance.
    Scroll down to find debug.com.sun.portal.portletappengine.
    Set Log Level to FINEST.
    Choose Apply to Selected Instance.

    If you are viewing the portal log in the Portal Server Console, you should log out and log back into the console.  When you go to view the log (Log Viewer), you will now have to select Log Level FINEST to view the portlet exceptions.  You will see them listed near the useless MISC_ERROR message and they will be labeled something like "Error occured while processing portlet request. javax.portlet.PortletException..."
  • 相关阅读:
    rpm命令详解
    Linux基础提高_系统性能相关命令
    Day004_Linux基础命令之特殊符号与正则表达式通配符
    Linux基础_网站权限规划
    Day005_Linux基础之文件权限
    Day003_linux基础_系统启动过程及系统安装后优化
    win7旗舰版安装不了mysql问题-------win7系统版本选择问题的一点探索
    Java程序结构
    NCRE Java二级备考方案
    NCRE的JAVA二级考试大纲
  • 原文地址:https://www.cnblogs.com/kentyshang/p/1237957.html
Copyright © 2011-2022 走看看