Skip Headers

Oracle® Application Server Portal Configuration Guide
10g (9.0.4)

Part Number B10356-01
Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Go to previous page Go to next page

13 Troubleshooting OracleAS Portal

This chapter shows you how to use various tools to diagnose problems, and lists possible causes and solutions to errors that you may encounter while installing or using OracleAS Portal.

More On Portal Center

You can find the most up-to-date troubleshooting information on Portal Center, http://portalcenter.oracle.com. Click the Search icon in the upper right corner of any Portal Center page.

This chapter contains the following sections:

13.1 Common Issues

This section contains some troubleshooting information for common issues that you may experience while running OracleAS Portal. These are:

13.1.1 OracleAS Portal is Not Accessible

If you cannot access your OracleAS Portal instance through the internet/intranet, follow these steps to help diagnose the cause of the problem:

  1. Display the portal's target page in the Oracle Enterprise Manager Application Server Control.

    See Section 7.1, "Using the Application Server Control".

  2. Check to see if Web Cache is up.

    The Web Cache status is displayed in the portal's Component Status table.

    • If 'Up', continue to next step.

    • If 'Down', start Web Cache using the Application Server Control, or the command line.

      To access Web Cache monitoring and administration pages in the Application Server Control, click the Web Cache link in the:

      - Portal's Component Status table, or

      - Application Server's Component table.

      If Web Cache starts successfully, check to see if your portal is now accessible.

      If Web Cache fails to start, investigate Web Cache error log files and try to determine the problem. See Section 13.6, "Using Application Server Control Log Viewer". If you are not using Log Viewer, check the relevant error log files in ORACLE_HOME/opmn/logs.

  3. Check to see if the HTTP Server is up.

    The HTTP Server status is displayed in the portal's Component Status table.

    • If 'Up', continue to next step.

    • If 'Down', start HTTP Server using the Application Server Control, or the command line.

      To access HTTP Server monitoring and administration pages in the Application Server Control, click the HTTP Server link in the:

      - Portal's Component Status table, or

      - Application Server's Component table.

      If HTTP Server starts successfully, check to see if your portal is now accessible.

      If HTTP Server fails to start, investigate HTTP Server error log files and try to determine the problem. See Section 13.6, "Using Application Server Control Log Viewer". If you are not using Log Viewer, check the relevant error log files in the following directories:

      - ORACLE_HOME/opmn/logs

      - ORACLE_HOME/Apache/Apache/logs/error_log

  4. Check the status and configuration of the portal DAD.

    Check the DAD status using the DADs table, displayed on the mod_plsql Services page. Click the mod_plsql Services link in the portal's Component Status table to access this page. See also Section 4.5.3, "Configuring a Portal DAD".

    • If 'Up', continue to next step.

    • If 'Down', click the name of the DAD in the DADs table and verify that all properties are set correctly. Save any changes and restart HTTP Server for any change to take effect.

      Check to see if your portal is now accessible.

  5. Check to see if the portal's Metadata Repository database is running.

    The status is displayed on the portal's target page in the Enterprise Manager Application Server Control. Look under the section 'OracleAS Metadata Repository Used By Portal'.

    • If 'Up', continue to next step.

    • If 'Down', start the database using the Application Server Control (if this functionality is available), or use SQL*Plus.

      If the database starts successfully, check to see if your portal is now accessible.

      If the database fails to start, investigate further to establish what is wrong with this component.

  6. Check to see if the OC4J_Portal service is up.

    The OC4J_Portal status is displayed in the portal's Component Status table.

    • If 'Up', continue to next step.

    • If 'Down', start OC4J_Portal using the Application Server Control, or the command line.

      To access OC4J_Portal monitoring and administration pages in the Application Server Control, click the OC4J_Portal link in the:

      - Parallel Page Engine Services page (available from the portal's Component Status table), or

      - Application Server's Component table.

      If OC4J_Portal starts successfully, check to see if your portal is now accessible. If you are not using Log Viewer, check the relevant error log files in ORACLE_HOME/opmn/logs.

      If OC4J_Portal fails to start, investigate OC4J_Portal error log files and try to determine the problem. See Section 13.6, "Using Application Server Control Log Viewer".

  7. Run the OracleAS Portal Diagnostic Assistant.

    You can diagnose portal-related issues by reviewing the report generated from the OracleAS Portal Diagnostic Assistant. See also Section 13.5, "Using the OracleAS Portal Diagnostics Assistant".

  8. Contact Oracle Support.

    If you are unable to establish why your portal is not accessible, contact Oracle Support. To help Oracle Support troubleshoot the problem, provide the following information:

    • ZIP file generated by the OracleAS Portal Diagnostic Assistant.

    • Details of any command line scripts you have run (for example, ptlasst.csh, orasso.cfg, ossoref.jar, and so on) including the full parameters used.

    • A rough network diagram, showing how your Oracle Application Server components are configured.

13.1.2 OracleAS Single Sign-On is Not Accessible

If the OracleAS Single Sign-On (SSO) is not accessible you cannot login to OracleAS Portal. Follow these steps to help diagnose the cause of this problem:

  1. Display the SSO's target page in the Oracle Enterprise Manager Application Server Control.

    See Section 7.1, "Using the Application Server Control".

  2. Check to see if the HTTP Server is up.

    Click the HTTP Server link, displayed in the Related Links section.

    • If 'Up', continue to next step.

    • If 'Down', start HTTP Server using the Application Server Control, or the command line.

      To access HTTP Server monitoring and administration pages in the Application Server Control, click the HTTP Server link in the:

      - OracleAS Single Sign-On target page, or

      - Application Server's Component table.

      If HTTP Server starts successfully, check to see if your OracleAS Single Sign-On is now accessible.

      If HTTP Server fails to start, investigate HTTP Server error log files and try to determine the problem. See Section 13.6, "Using Application Server Control Log Viewer". If you are not using Log Viewer, check the relevant error log files in the following directories:

      - ORACLE_HOME/opmn/logs

      - ORACLE_HOME/Apache/Apache/logs/error_log

  3. Check the status and configuration of the SSO DAD.

    Check the DAD status using the DADs table, displayed on the mod_plsql Services page. Click the mod_plsql Services link in the portal's Component Status table to access this page. See also Section 4.5.3, "Configuring a Portal DAD".

    • If 'Up', continue to next step.

    • If 'Down', click the name of the DAD in the DADs table and verify that all properties are set correctly. Save any changes and restart HTTP Server for any change to take effect.

      Check to see if your OracleAS Single Sign-On is now accessible.

  4. Check to see if the database containing the SSO schema is running.

    Database information is displayed on the OracleAS Single Sign-On's target page in the Enterprise Manager Application Server Control. Drill down for further information.

    • If 'Up', continue to next step.

    • If 'Down', start the database using the Application Server Control (if this functionality is available), or use SQL*Plus.

      If the database starts successfully, check to see if your OracleAS Single Sign-On is now accessible.

      If the database fails to start, investigate further to establish what is wrong with this component.

  5. Check to see if the OC4J_Security service is up.

    The OC4J_Security status is displayed in Application Server's page. Alternatively, you can establish its status using the following command line:

    ORACLE_HOME/dcm/bin/dcmctl getstate
    
    

    See Also:

    Oracle Application Server 10g Administrator's Guide for more information on the Distributed Configuration Management (DCM) utility, dcmctl.

    • If 'Up', continue to next step.

    • If 'Down', start OC4J_Security using the Application Server Control, or the command line.

      To access OC4J_Security monitoring and administration pages in the Application Server Control, click the OC4J_Security link in the Application Server's Component table.

      If OC4J_Security starts successfully, check to see if your OracleAS Single Sign-On is now accessible.

      If OC4J_Security fails to start, investigate OC4J_Security error log files and try to determine the problem. See Section 13.6, "Using Application Server Control Log Viewer". If you are not using Log Viewer, check the relevant error log files in ORACLE_HOME/opmn/logs.

  6. Check to see if the Oracle Internet Directory service is up.

    The Oracle Internet Directory status is displayed in Application Server's page.

    • If 'Up', continue to next step.

    • If 'Down', start Oracle Internet Directory using the Application Server Control, or the command line.

      To access Oracle Internet Directory monitoring and administration pages in the Application Server Control, click the Oracle Internet Directory link in the Application Server's Component table.

      If Oracle Internet Directory starts successfully, check to see if your OracleAS Single Sign-On is now accessible.

      If Oracle Internet Directory fails to start, investigate the Oracle Internet Directory error log files and try to determine the problem. See Section 13.6, "Using Application Server Control Log Viewer".

  7. Run the OracleAS Portal Diagnostic Assistant.

    You can diagnose OracleAS Single Sign-On and portal-related issues by reviewing the report generated from the OracleAS Portal Diagnostic Assistant. See also Section 13.5, "Using the OracleAS Portal Diagnostics Assistant".

  8. Contact Oracle Support.

    If you are unable to establish why you cannot login to OracleAS Portal, contact Oracle Support. To help Oracle Support troubleshoot the problem, provide the following information:

    • ZIP file generated by the OracleAS Portal Diagnostic Assistant.

    • Details of any command line scripts you have run (for example, ptlasst.csh, orasso.cfg, ossoref.jar, and so on) including the full parameters used.

    • A rough network diagram, showing how your Oracle Application Server components are configured.

13.1.3 Issues Creating Category/Perspective Pages

When you create a category in a page group, a category page is created based on the category template. Similarly, when you create a perspective, a perspective page is created based on the perspective template.

If changes are made to these underlying category/perspective templates, you may see one of these messages when you create a new category/perspective:

If either of these errors is displayed, you must first delete the current category/perspective template and then run scripts to:

This ensures that all new category/perspective pages are created without errors and that all existing category/perspective pages display their associated items and pages as expected.

The scripts required are available at:

ORACLE_HOME/portal/admin/plsql/wws/pstdefin.sql
ORACLE_HOME/portal/admin/plsql/wws/pstpgshw.sql
ORACLE_HOME/portal/admin/plsql/wws/pstundef.sql
ORACLE_HOME/portal/admin/plsql/wws/pstpgcre.sql
ORACLE_HOME/portal/admin/plsql/wws/pstprcpg.sql

To run these scripts:

  1. Delete the current category or perspective templates.

  2. Connect to OracleAS Portal using SQL*Plus as the Portal schema user.

  3. Configure the pstdefin.sql file with:

    • Page group information. You can re-create the pages in a single page group, several page groups or all page groups.

    • Page information. You can re-create category pages only, perspective pages only, or both.

    Descriptions for these settings are in the file pstdefin.sql.

  4. If necessary, use the script pstpgshw.sql to retrieve information from OracleAS Portal to configure the pstdefin.sql file.

  5. Run the script pstpgcre.sql to apply the changes. For example:

    SQL> @pstpgcre.sql
    
    

13.1.4 Multi-language Support for Help

In OracleAS Portal, there is multi-language support for the online help. However, only context sensitive Help topics are translated.

13.2 Miscellaneous Issues

This section contains some troubleshooting information for less common issues that you may experience while running OracleAS Portal. These are:

13.2.1 Remote Web Providers Time Out in a Dynamic DNS Environment

A remote Web provider that is located on a different machine from the OracleAS Portal middle-tier, works when the OC4J_Portal service is first started, but stops working after some time. After a long timeout, the message Error: the portlet could not be contacted is shown in the place of each portlet from the same provider. You can also find portlet timeout errors in the OC4J_Portal application.log. On restarting OC4J_Portal, the Web provider works again, but only for a limited period of time.

The possible cause for this problem can be that the Web provider is using dynamic DNS (DDNS) for its Domain Name to IP Address mapping. This means that the IP address that the Web provider's domain name resolves to, changes over time. Java's default caching policy caches IP addresses forever, once it has resolved them, which means it keeps using an outdated IP address of the Web provider if the IP address of the Web provider has changed because of using DDNS.

To resolve this problem, you need to perform additional configuration in OC4J_Portal to prevent remote Web providers from timing out. You must change the sun.net.inetaddr.ttl system property for OC4J_Portal. On JDK 1.3 and later, the sun.net.inetaddr.ttl system property can be used to specify the "time to live" (TTL) in seconds for cached IP addresses.


Note:

It is important that this system property is passed as a command line option to Oracle Application Server Containers for J2EE (OC4J). Setting the property in oc4j.properties will not help because the system property is read first before OC4J reads this file. Therefore, it is best to modify the <java-option> line in the OC4J_Portal section of ORACLE_HOME/opmn/conf/opmn.xml.


Usage Example

  1. Edit opmn.xml as follows:

    <java-option value="-server -Xincgc -Xnoclassgc -Xms256m -Xmx512m 
    -Dsun.net.inetaddr.ttl=120"/>
    
    
  2. Shut down opmn and all its sub-processes and restart it for the latest configuration changes to take effect.

    To do this, run the following commands:

    ORACLE_HOME/opmn/bin/opmnctl stopall
    ORACLE_HOME/opmn/bin/opmnctl startall
    
    

13.2.2 Memory Intense Operations Cause Problems

By default, the shared_pool_size value in Oracle Application Server is 32 MB. This can cause problems if you are performing memory intense operations such as:

The typical error you will see is "ORA-04031: unable to allocate 30192 bytes of shared memory." To facilitate memory intense operations, you must increase the value of the shared_pool_size parameter.

To change the value of the shared_pool_size parameter:

  1. Edit the shared_pool_size parameter in the init.ora file for the database instance. The init.ora file can be found in your database's ORACLE_HOME.


    Note:

    This can be done only after the Infrastructure database is installed.


  2. Change the value to 64.

  3. Restart the database for the changes to reflect.

13.3 Verifying the Portal Dependency Settings File

When troubleshooting OracleAS Portal, one of the first things to do is to review the contents of the Portal Dependency Settings file iasconfig.xml. This file stores configuration data from all the dependent components in a central place and the content of the file is updated when there are configuration changes. Therefore, the file should reflect the current configuration of OracleAS Portal with OracleAS Web Cache, Oracle Internet Directory, and Oracle Enterprise Manager. If the file does not accurately reflect your configuration settings, you must update the file and run the Portal Dependency Settings tool ptlconfig to update the Oracle Application Server Metadata Repository.

If you make configuration changes using the OracleAS Portal Configuration Assistant (OPCA) in MIDTIER mode (using the WEBCACHE, OHS, or OID type), the iasconfig.xml file is not updated to reflect these changes. This can cause your site to be misconfigured, and is therefore not recommended. Instead, the Portal Dependency Settings file and tool should be used to update the configuration, whenever possible. Refer to Appendix A, "Using the Portal Dependency Settings File" for more information about the Portal Dependency Settings file, and examples of the iasconfig.xml file.

13.4 Diagnosing OracleAS Portal Problems

OracleAS Portal consists of middle and database tiers each of which consist of numerous components. Not only can components be distributed across many machines, but they may also handle a large number of requests simultaneously.

To facilitate diagnosis, components can record information relating to the requests they receive, in log files. This section details how to configure and use various log files to diagnose problems. We will also see how an individual request can be traced from start to finish, using the Execution Context Identifier (ECID).

Execution Context Identifier

Because OracleAS Portal can satisfy a large number of requests simultaneously, tracing a single request through the various OracleAS Portal components can be difficult, as information relating to these requests is intermingled.

OracleAS Portal makes use of an ECID, a unique number that is assigned to a request and attached to information recorded for that request. As a request is passed from one component to another, the ECID can be incremented to form a sequence. This means that an individual request can be tracked through any number of components by following this ECID sequence.

An ECID is generated by the first Oracle Application Server component to receive a request without an ECID. We can observe this generation and propagation in Figure 13-1, where a solid arrow depicts a request with an ECID.

Figure 13-1 Request Flow with ECID Generation and Propagation

Text description of cg_diag_ecidgen.gif follows.

Text description of the illustration cg_diag_ecidgen.gif

ECID generation is present in Web Cache, Oracle HTTP Server (OHS) and the Parallel Page Engine (PPE). An ECID is only generated if not already present.

Enabling ECID Logging

Oracle Application Server Containers for J2EE (OC4J) can include the ECID with each log entry it writes and this can be useful for debugging purposes. For more information about ECIDs and how they can help you to correlate messages from application server components, refer to the Oracle Application Server 10g Administrator's Guide.

If you want to log ECID information in OC4J logs, edit the file opmn.xml as follows:

  1. In Oracle Enterprise Manager Application Server Control, navigate to the middle-tier Oracle Application Server target home page.

  2. Click the Process Management link, to see the file opmn.xml.

  3. Locate the "OC4J_Portal" entry.

  4. Add the entry "-Doracle.dms.transtrace.ecidenabled=true" to the "java-options" property in the "start-parameters" category.

    Here is an example:

    <process-type id="OC4J_Portal" module-id="OC4J">
       <environment>
          <variable id="DISPLAY" value="localhost:0"/>
          <variable id="LD_LIBRARY_PATH" value="/export/home/ias/pwhome/lib"/>
       </environment>
       <module-data>
          <category id="start-parameters">
          <data id="java-options" value="-server 
          -Djava.security.policy=/export/home/ias/pwhome/j2ee/OC4J_Portal/conf
          ig/java2.policy -Djava.awt.headless=true
          -Doracle.dms.transtrace.ecidenabled=true -Xmx256m "/>
          <data id="oc4j-options" value="-properties"/>
          </category>
          <category id="stop-parameters">
          <data id="java-options"
          value="-Djava.security.policy=/export/home/ias/pwhome/j2ee/OC4J_Port
          al/config/java2.policy -Djava.awt.headless=true"/>
          </category>
       </module-data>
       <start timeout="900" retry="2"/>
       <stop timeout="120"/>
       <restart timeout="720" retry="2"/>
       <port id="ajp" range="3301-3400"/>
       <port id="rmi" range="3201-3300"/>
       <port id="jms" range="3701-3800"/>
       <process-set id="default_island" numprocs="1"/>
    </process-type>
    
    
  5. Click Apply.

  6. Navigate back to the Oracle Application Server target home page

  7. Select the OC4J_Portal target check box.

  8. Click the Restart button.

13.4.1 Components and Their Diagnostic Output

The various OracleAS Portal components can have their diagnostic output configured. The following are the components:

13.4.1.1 Java Portal Developers Kit

The Java Portal Developers Kit (JPDK) provides a framework for the construction of Java-based portlets and portlet providers. A Java-based provider or Web provider is one that is written as a Web application. The JPDK includes a logging mechanism that is controlled based on each Provider Adapter.

The acceptable logging level values range from 1 to 7 and build incrementally. For example, at logging level 3, the output for logging levels 1 and 2 are also recorded.

Table 13-1  Logging Levels
Logging Level Description

1

Configuration

2

Severe Errors

3

Warnings

4

Exceptions

5

Performance

6

Information

7

Debug

13.4.1.1.1 JPDK Log File Contents

A Provider Adapter's diagnostic information is recorded in the servlet context log file named application.log.

There are two types of JPDK messages:

Standard JPDK Messages

Here is an example of a standard JPDK message that you might find in a Provider Adapter's application.log file:

03/12/31 02:58:59 jpdk: [instance=1926_EXPIRESSAMPLE_886361, 
id=1024597399815ApplicationServerThread-12,4] Beginning rendering of 
portlet: 1926_EXPIRESSAMPLE_886361

Its content is as follows:

The portlet instance identifier, identifies a specific portlet instance on a specific page and can be broken down as follows:

Additional details relating to some of these values are shown in Table 13-2.

Table 13-2  JPDK Standard Message Attributes
Value Detail

ECID

Some messages carry null ECID and portlet instance identifier values. These are typically SOAP messages from the repository.

Portlet instance identifier

Some messages carry null ECID and portlet instance identifier values. These are typically SOAP messages from the repository. The portlet instance identifier is null in this case, because the message does not relate to a particular portlet instance.

13.4.1.2 mod_plsql

mod_plsql is an Oracle HTTP Server module that enables a user to invoke PL/SQL applications over HTTP. Because mod_plsql is an Oracle HTTP Server module, its logging is performed through the Oracle HTTP Server.

Logging is controlled by the LogLevel parameter found in the configuration file httpd.conf, usually located at:

ORACLE_HOME/Apache/Apache/conf

The values for LogLevel are:

The values build incrementally. For example, if LogLevel is set to notice then notice, warn, error, crit, alert and emerg messages are recorded.

If the value of LogLevel is altered, the Oracle HTTP Server must be restarted for this change to take effect.

13.4.1.2.1 mod_plsql Log File Contents

The location of mod_plsql's diagnostic information is dictated by the Oracle HTTP Server parameter ErrorLog found in the file httpd.conf. While this parameter is called ErrorLog, the file it describes can contain more than just error messages. A typical value for the Oracle HTTP Server parameter ErrorLog is:

ORACLE_HOME/Apache/Apache/logs/error_log

Two types of mod_plsql messages appear in the Oracle HTTP Server error log:

Standard mod_plsql Messages

Here is an example of a standard mod_plsql message found in the Oracle HTTP Server error log:

[Thu Aug 22 08:34:20 2002] [warn] mod_plsql: 'PlsqlCacheCleanupSize' is 
deprecated.

The content is as follows:

13.4.1.3 Parallel Page Engine

The Parallel Page Engine (PPE) is a shared server process servlet that accepts data representing a page layout and then converts this data into a page containing portlets.

PPE logging can be controlled at the servlet and request level. If a request logging level is not specified then the servlet level is used for the request. If both servlet and request logging levels are specified, then the higher of the two is used for the request.

Servlet Level Logging

PPE servlet level logging is controlled by the logmode servlet initialization argument. The values for logmode are:

The values build incrementally. For example, if logmode is set to content then content, request, debug and perf messages are also recorded. The default value is none. A value of all allows every logging message to be included.

As the PPE is a servlet, configuration varies with the Servlet container on which it is deployed. Under OracleAS Portal, the servlet container is OC4J and logmode can be found in the portal's web.xml file. This XML file contains properties for more than just the PPE and, consequently, logmode can appear more than once. It is important to modify the correct logmode value:

<init-param>
     <param-name>logmode</param-name>
     <param-value>perf</param-value>
</init-param>

This can be found inside the page servlet clause:

<servlet>
     <servlet-name>page</servlet-name>
     <servlet-class>oracle.webdb.page.ParallelServlet</servlet-class>
     .
     .
     <init-param>
          <param-name>logmode</param-name>
          <param-value>perf</param-value>
     </init-param>
     .
     .     .
</servlet>

If the value of logmode is altered, OC4J must be restarted for this change to take effect. The web.xml file can be found at:

ORACLE_HOME/j2ee/OC4J_Portal/applications/portal/portal/WEB-INF

Request Level Logging

PPE request level logging is controlled by the _debug URL parameter. For example, to specify request level logging for the following URL:

http://myserver.myplace.com:3000/portal/page?_pageid=111&_dad=myDAD&_
schema=mySchema

You must manually insert:

&_debug=3

To make:

http://myserver.myplace.com:3000/portal/page?_pageid=111&_dad=myDAD&_
schema=mySchema&_debug=3

The values for _debug are shown in Table 13-3.

Table 13-3  PPE Request Log Levels
Value Detail

0

Activates page-debugging information.

1

Activates page-debugging information.

2

Log to page and set the request logmode to debug.

3

Log to page and set the request logmode to request.

4

Log to page and set the request logmode to content.

5

Log to page and set the request logmode to parsing.

Page Logging

With _debug set to 2, 3, 4, or 5, page logging is activated. This means that messages logged for the request are recorded in the PPE's log file as well as in the page returned.

Page logging is a simple means by which to obtain detailed information relating to a request. As a result, it is also a security issue, for which the urlDebugMode servlet initialization argument is provided.

urlDebugMode can be found alongside logmode in the portal's web.xml file:

<init-param>
     <param-name>urlDebugMode</param-name>
     <param-value>4</param-value>
</init-param>

Both urlDebugMode and logmode can be found inside the page servlet clause:

<servlet>
     <servlet-name>page</servlet-name>
     <servlet-class>oracle.webdb.page.ParallelServlet</servlet-class>
     .
     .
     <init-param>
          <param-name>urlDebugMode</param-name>
          <param-value>4</param-value>
     </init-param>
     .
     .     .
</servlet>

The values for urlDebugMode are shown in Table 13-4.

Table 13-4  PPE urlDebugMode Levels
Value Detail

None

Ignore the _debug URL parameter.

0

Only allow _debug to be 0.

1

Only allow _debug to be 0 or 1.

2

Only allow _debug to be 0, 1, or 2.

3

Only allow _debug to be 0, 1, 2, or 3.

4

Only allow _debug to be 0, 1, 2, 3, or 4.

5

Only allow _debug to be 0, 1, 2, 3, 4, or 5.

13.4.1.3.1 PPE Log File Contents

PPE diagnostic messages are recorded in the servlet context application.log file. This file can be found at:

ORACLE_HOME/j2ee/OC4J_
Portal/application-deployments/portal/<island>/application.log

There are two types of PPE messages:

Standard PPE Messages

Here is an example of a standard PPE message found in its log file:

03/12/31 11:54:35 portal: id=22020914339,0 DEBUG: active=53  ContentFetcher 
Unexpected Exception Request Failed:java.lang.IllegalArgumentException 
name=content-fetcher52 label=dbPortlet url=https://abc.company.com:5001/pls/ptl_
9_0_4_0_87/!PTL_9_0_4_0_87.wwpro_app_provider.execute_portlet/391497559/4 
time=38975ms timeout=15000ms process=ResponseHeaders

The content is as follows:

Additional details relating to some of these values are shown in Table 13-5.

Table 13-5  PPE Standard Message Attributes
Value Detail

logmode flag

Indicates that logmode is debug or higher. If logmode is set to perf and is therefore lower than debug, the logmode flag is not included in the message.

Active count

The number of threads in the PPE's thread group. If logmode is set to perf and is therefore lower than debug, the active count is not included in the message.

ECID

The ECID value can be null. A message with such a value relates to a PPE background task (such as clearing pooled objects). Background tasks do not relate to a request and therefore do not have an ECID specified.

13.4.1.4 Oracle Application Server Portal Developer Kit

The Oracle Application Server Portal Developer Kit (PDK) provides a framework for the construction of portlets and portlet providers in a variety of Web languages including Java, Web Services, XML, ASP, PERL and PL/SQL. The PDK therefore encompasses the JPDK.

The PDK provides a core logging mechanism, which is augmented by logging in specific Developers Kits. PDK logging is controlled through a Web-based user interface as shown in Figure 13-2.

Figure 13-2 PDK Logging Page

Text description of cg_diag_pdkui.gif follows.

Text description of the illustration cg_diag_pdkui.gif

This can be found at:

http://<host>:<port>/pls/<dad>/<schema>.wwpro_log.render

For example:

http://myserver.myplace.com:3000/pls/portal/PORTAL.wwpro_log.render

From this page you can apply the following logging levels:

Table 13-6  PDK Log Levels
Level Detail

No debugging

No logging.

PROHTTPJ

Provider framework logging only.

PROGRP

Provider logging only.

ADAPTER

Federated portal adapter logging only.

CACHE

Cache logging only.

FORCE

Internal to Oracle.

INVAL

Invalidation logging only.

PROREG

Provider registration logging only.

PROLOGIN

Page metadata generation, login and session initialization logging only.

PROPROV

Provider communication logging only.

PROPMR

Portlet repository metadata logging only.

PROHTTP

Web provider framework logging only.

All

Every logging level is activated.

13.4.1.4.1 PDK Log File Contents

You can view PDK log entries from the same page used to configure PDK logs, as shown in Figure 13-3.

Figure 13-3 Log Entries in the PDK Logging Page

Text description of cg_diag_pdklog.gif follows.

Text description of the illustration cg_diag_pdklog.gif

13.4.1.5 OracleAS Metadata Repository

The OracleAS Metadata Repository consists of all the metadata, portal content and PL/SQL code that reside in the OracleAS Portal database schema. The PL/SQL code that executes in the OracleAS Portal schema also generates diagnostic output that can be correlated with diagnostics output generated from the other components of OracleAS Portal.

Since the log file is output from the OracleAS Metadata Repository, the database running OracleAS Portal needs to be configured to allow this. To do this, you must update the database's init.ora file, adding the following line:

UTL_FILE_DIR=<directory where you want to write the log file>

There can be many UTL_FILE_DIR entries, so if the directory you wish to write to is already defined, there is no need to modify this file.


Notes:

  • On installation of OracleAS Metadata Repository, if the database you are installing into has the UTL_FILE_DIR parameter set, the OracleAS Portal installer will configure the OracleAS Metadata Repository such that it uses the first directory defined by the database parameter as the location for the OracleAS Metadata Repository log file. If UTL_FILE_DIR is not configured, OracleAS Metadata Repository logging is not set up on installation.

  • If you update the init.ora file, you must also create an SPFILE and restart the database. Refer to the Oracle9i Database Server documentation library for more information.


OracleAS Metadata Repository logging is performed through a logging package. This logging package is controlled using the script logcfg.sql which you must run from SQL*Plus.

The script logcfg.sql can be found at:

ORACLE_HOME/portal/admin/plsql/wwc

The logcfg.sql script can take five parameters in the following order: log_level, log_state_level, log_format, log_file, and log_directory. If less than five parameters are supplied, then one or more values are requested. If no value is received in response to this request, the current value is maintained.

Table 13-7 details logcfg.sql parameters.

Table 13-7  Repository Logging Package Parameters
Parameter Detail

log_level

Describes the level of messages recorded. The values are:

  • 0 - None

  • 1 - Error

  • 2 - Warning

  • 3 - Information

  • 4 - Trace

  • 5 - Debug

The values build incrementally. The default value is 1.

log_state_level

Describes the level of messages for which state information will automatically be logged. The values are:

  • 0 - None

  • 1 - Error

  • 2 - Warning

  • 3 - Information

  • 4 - Trace

  • 5 - Debug

The values build incrementally.

log_format

Describes the format that automatically recorded context information, which is different from state information. The values are:

  • 0 - Simple

  • 1 - Detailed

log_file

The name of the log file to write to. An attempt is made to create this file if it does not already exist.

log_directory

The directory in which the log_file exists. This directory must be defined in the init.ora database file under the UTL_FILE_DIR property. For example:

utl_file_dir=/export/home/oracle/iAS904/dblogs

If the init.ora file is modified, the database must be restarted for this change to take effect.

For example, you can run the script logcfg.sql from SQL*Plus as follows:

@logcfg.sql 3 3 1 portal.log /export/home/oracle/iAS904/logs

On running logcfg.sql, the usage is displayed:

Configure Portal diagnostics
usage:
logcfg.sql <log_level> <log_state_level> <log_format> <log_file> <log_
directory>
If for any of the params a null value is specified the existing value will 
be maintained.
Log levels:
0 - None (turn diagnostics off)
1 - Error
2 - Warning
3 - Information
4 - Trace
5 - Debug
Log formats:
0 - Simple
1 - Detailed

The current values are also displayed:

Current settings:
Log level:     3
Log state level:     3
Log format:     1
Log file:     portal.log
Log directory:     /export/home/oracle/iAS904/dblogs

To truncate the OracleAS Metadata Repository diagnostics log file, run the SQL script logtrunc.sql located at:

ORACLE_HOME/portal/admin/plsql/wwc

13.4.1.5.1 Repository Log File Contents

The location of the OracleAS Metadata Repository's diagnostic information is dictated by the Repository diagnostic package parameters log_file and log_directory.

Here is an example of a message found in the OracleAS Metadata Repository's log file:

[06-AUG-2002 15:02:15] [ERROR] id=(null) ctx=wwsrc_simple_edit.render_
simple_edit_prefs user=PORTAL subscriberId=1 language=us 
userAgent="Mozilla/5.0" ip=192.0.0.1
ORA-30625: method dispatch on NULL SELF
[START-CALL-STACK]
----- PL/SQL Call Stack -----
object          line          object
handle          number        name
81b35e6c        350           package body PORTAL.WWLOG_API_DIAG
81b35e6c        443           package body PORTAL.WWLOG_API_DIAG
81b35e6c        526           package body PORTAL.WWLOG_API_DIAG
86765ac8        259           package body PORTAL.WWSRC_SIMPLE_EDIT
86765ac8        334           package body PORTAL.WWSRC_SIMPLE_EDIT
84317130        19            package body PORTAL.WWSBR_BASIC_SEARCH
88857980        713           package body PORTAL.WWSBR_SITEBUILDER_PROVIDER
8323ad18        1             anonymous block
87e53d5c        648           package body PORTAL.WWPRO_API_PROVIDER
81ae1e50        2644          package body PORTAL.WWPOB_PAGE
877a0d9c        12            anonymous block
[END-CALL-STACK]
[START-ERROR-STACK]
ORA-30625: method dispatch on NULL SELF
[END-ERROR-STACK]
[START-QUERY-STRING]
_providerid=102274117
_portletid=14
_mode=5
_title=Basic%20Search
_referencepath=1875_BASICSEARCH_102274117
_back_url=http%3A%2F%2Fmyserver.myplace.com%3A3000%2Fpls%2Fportal%
_portlet_reference=33_31293_33_1_1
[END-QUERY-STRING]

Its content is as follows:

Along with its context and state information.

Context Information

Context information is produced in one of two formats, detailed or simple, as specified by log_format. In the given example, the format is detailed:

The simple format is a subset of the detailed format and includes the following information:

Additional details relating to some of these values are included in Table 13-8.

Table 13-8  Repository Context Attributes
Value Detail

Client IP address

Typically, this is the IP address of the client browser or HTTP proxy in use. Since the portal page assembly process makes use of loop back calls, the IP address can also represent the middle-tier itself.

Subscriber identifier

Identifies which subscriber has been accessed.

User agent

A description of the browser in use.

State Information

State information consists of the call stack:

[START-CALL-STACK]
----- PL/SQL Call Stack -----
object          line        object
handle          number      name
81b35e6c        350         package body PORTAL.WWLOG_API_DIAG
81b35e6c        443         package body PORTAL.WWLOG_API_DIAG
81b35e6c        526         package body PORTAL.WWLOG_API_DIAG
86765ac8        259         package body PORTAL.WWSRC_SIMPLE_EDIT
86765ac8        334         package body PORTAL.WWSRC_SIMPLE_EDIT
84317130        19          package body PORTAL.WWSBR_BASIC_SEARCH
88857980        713         package body PORTAL.WWSBR_SITEBUILDER_PROVIDER
8323ad18        1           anonymous block
87e53d5c        648         package body PORTAL.WWPRO_API_PROVIDER
81ae1e50        2644        package body PORTAL.WWPOB_PAGE
877a0d9c        12          anonymous block
[END-CALL-STACK]

Error stack:

[START-ERROR-STACK]
ORA-30625: method dispatch on NULL SELF
[END-ERROR-STACK]

And query string:

[START-QUERY-STRING]
_providerid=102274117
_portletid=14
_mode=5
_title=Basic%20Search
_referencepath=1875_BASICSEARCH_102274117
_back_url=http%3A%2F%2Fmyserver.myplace.com%3A3000%2Fpls%2Fportal%
_portlet_reference=33_31293_33_1_1
[END-QUERY-STRING]

13.4.1.5.2 Repository Diagnostics Log File Registration

Oracle Enterprise Manager provides a Log Reader and Log Viewer. The Log Reader allows administrators to upload log files to a file-based log repository. The Log Viewer allows administrators to view and query log entries loaded into the repository. For more information, see Section 13.6, "Using Application Server Control Log Viewer".

To load and view the Repository Diagnostics log file entries, you must first register the log file with Oracle Enterprise Manager. To do this, edit the following file:

ORACLE_HOME/diagnostics/config/registration/PORTAL.xml

In this file, there is a template entry that you can copy and expand to reflect details of your log file. The template is as follows:

<logs xmlns="http://www.oracle.com/iAS/EMComponent/ojdl" helpIDLogs="psm_cs_xml_
log_info">

<!-- 
<log path="<PATH>" componentId="PORTAL"> 
<logreader type="SimpleTextLog"> 
    <property name="ComponentId" value="PORTAL"/> 
    <property name="ModuleId" value="Portal:<INSTANCE>"/> 
    <property name="TimestampFormat" value="[dd-MMM-yyyy HH:mm:ss]"/> 
    <property name="TimestampLocale" value="en_US"/> 
</logreader> 
<logviewer ComponentName="ID_VLOGS_PORTAL_REP@ResourceBundle" 
           LogType="ERROR" 
           LogName="Diagnostics for Portal instance <INSTANCE>"/> 
</log> 
--> 

</logs>

Modify the following information in the copied template entry:

Once you have saved the new PORTAL.xml entry, the Log Reader starts uploading the log file periodically, and you can use the Log Viewer to view and query this log file.

Since the OracleAS Metadata Repository can be accessed through many middle-tiers, you need to:

13.4.1.6 OracleAS Web Cache

Oracle Application Server Web Cache events and errors are stored in an event log. The event log can help you determine which documents or objects have been inserted into the cache. It can also identify listening port conflicts or startup and shutdown issues. By default, the event log has a file name of event_log and is stored in ORACLE_HOME/webcache/logs on UNIX and ORACLE_HOME\webcache\logs on Windows.

See Also:

Oracle Application Server Web Cache Administrator's Guide

13.5 Using the OracleAS Portal Diagnostics Assistant

Use the OracleAS Portal Diagnostic Assistant to gather information if you are troubleshooting issues after OracleAS Portal installation. Problems can vary from accessing the portal, to users getting errors at different levels within the portal.

You can diagnose issues by reviewing the results from the OracleAS Portal Diagnostic Assistant. Alternatively, you can upload the results to Oracle Support so they can troubleshoot the problem for you.

The generated report includes the following:

In addition, all OracleAS Portal-related configuration files and log files are collected and zipped for your convenience. For a detailed description of all the information collected, refer to the readme file located in the directory ORACLE_HOME/portal/admin/utils/tshoot.

Each time you run the OracleAS Portal Diagnostic Assistant a new directory is created for the generated files, under the directory ORACLE_HOME/portal/admin/utils/tshoot. The directory names have a timestamp format, for example, 20030623132344 which means:

After running the OracleAS Portal Diagnostic Assistant, locate the appropriate directory and open the HTML report named pda.htm in a Browser window. You can use the links provided to navigate through the report and review the diagnostic information.

If you want Oracle Support to troubleshoot the problem, upload the generated ZIP file named PDA<directory_name>.zip, for example, PDA20030623132344.zip.

Refer to readme.htm in the ORACLE_HOME/portal/admin/utils/tshoot directory for detailed information on using the OracleAS Portal Diagnostic Assistant.

Running the OracleAS Portal Diagnostic Assistant

To generate diagnostics information using the OracleAS Portal Diagnostic Assistant, follow these steps:

  1. Check the Support/Upgrade section on Portal Center, http://portalcenter.oracle.com for the latest update/patch information for the OracleAS Portal Diagnostic Assistant.

    Download the latest OracleAS Portal Diagnostic Assistant script. The Support/Upgrade link is located in the Product Information section.

  2. Ensure that the ORACLE_HOME environment variable is set to the correct OracleAS Portal middle-tier Oracle home directory.

    If you try to run the OracleAS Portal Diagnostic Assistant from a database ORACLE_HOME it fails and no diagnostics information is collected.

  3. Go to the directory ORACLE_HOME/portal/admin/utils/tshoot and run the Perl script ptshoot.pl as follows:

    ORACLE_HOME/perl/bin/perl ptshoot.pl
    
    

    Run ptlshoot.pl without any arguments to get help information.

  4. Open the latest HTML report (pda.htm) in a Browser window and use the information to help diagnose what is wrong with OracleAS Portal.

13.6 Using Application Server Control Log Viewer

You can use the Oracle Enterprise Manager Application Server Control to view and query entries from the following Oracle Application Server log files to diagnose issues relating to OracleAS Portal. The relevant Oracle Application Server component log files include:

Before you can use the OracleAS Metadata Repository log file with the Application Server Control Log Viewer, you must complete a registration process. For instructions, see Section 13.4.1.5.2, "Repository Diagnostics Log File Registration".

If your JPDK OC4J instance is not located in the OracleAS Portal middle-tier Oracle home, then its log file may only be viewed through the local Application Server Control instance. If you want to perform diagnostic correlation (see subsequently), you will need to follow a similar remote registration process to that described for the OracleAS Metadata Repository log file when it is remotely located.

In addition to viewing the log file entries with the Application Server Control Log Viewer, you can also perform advanced diagnostics by correlating entries across log files using the ECID value discussed in Section 13.4, "Diagnosing OracleAS Portal Problems". This drill-down correlation is automatically provided by the Application Server Control Log Viewer.

To view log file entries, click the Logs link in the Application Server Control. This link is located at the top and bottom of every Application Server Control component home page.

See Also:

For detailed instructions on how to use the Log Viewer, see Oracle Application Server 10g Administrator's Guide, chapter Managing Diagnostic Log Files. This chapter also describes how to perform advanced queries for diagnostic log file information, search through diagnostic messages (collected from selected Oracle Application Server components) in the Log Repository and correlate messages across log files and components.

Figure 13-4 shows an example of Oracle Application Server components selected in the View Logs page.

Figure 13-4 Application Server Control View Logs Page

Text description of cg_monit_sshot_console_logs.gif follows.

Text description of the illustration cg_monit_sshot_console_logs.gif

13.7 Troubleshooting Export and Import

For discussions on import and export, visit the Oracle Technology Network Discussion Forums site and look for export/import, accessible from the same URL.

For detailed error message descriptions, cause and actions, refer to the export/import error messages chapter of the Oracle Application Server Portal Error Messages Guide.


Note:

Look for documentation specific to OracleAS Portal 10g (9.0.4), as procedures and best practices for subsequent and prior releases of OracleAS Portal do vary.


13.8 Troubleshooting Search Functionality

This section provides information on the common problems encountered while using the Search functionality in OracleAS Portal, or Oracle Text.

13.8.1 Problems If Too Many Page Groups or Search Attributes Selected

Search functionality can become inconsistent if the search criteria includes a large number of attributes and the user can choose which page groups to search and the list of available page groups is very long. This problem is due to URL size constraints.

Here are examples of issues that can occur:

A workaround is to reduce the number of attributes, or page groups, or both, available for user selection.

13.8.2 Cannot Search PL/SQL Attributes

If you define search criteria for a PL/SQL attribute, it is ignored and therefore search results are not returned as expected.

13.8.3 Troubleshooting Oracle Text Installation Problems

If you are experiencing Oracle Text-related problems, use the TEXTTEST utility to check that Oracle Text functionality is installed and setup correctly. See Appendix H, "Using TEXTTEST to Check Oracle Text Installation".

13.9 Troubleshooting Federated Portal Adapter

This section lists the issues you may encounter while working with the Federated Portal Adapter, and their workarounds.

Known Restrictions Showing Page Portlets with the Federated Portal Adapter

13.10 OracleAS Portal Errors

Refer to the book Oracle Application Server Portal Error Messages Guide, for more information on error messages. This book contains the following sections:


Go to previous page Go to next page
Oracle
Copyright © 2002, 2003 Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index