5 Replies Latest reply on Jun 4, 2003 4:44 PM by 394767

    Debugging portlets and log files

    394767
      I ran through and successfully built the sample application for "How to Build a URL-Based Portlet"

      I utilized this sample application to build a URL-Based Portlet for a J2EE application that I have running.

      When I add the Portlet to a Page and refresh, the title comes back, but there is no content within that portlet box.

      What log files should I look at to see the problem? Is there any standard method of debugging such an issue?

      Thanks,
        • 1. Re: Debugging portlets and log files
          394767
          Actually it looks like in the application.log file that I am getting the following error:

          What does this mean to me?

          6/2/03 3:41 PM jpdk: [id=(null), instance=(null)] WARNING: Request has exceeded its warning timeout of 20000ms. Request details are: id=(null) providerId=393373 portletId=1 portletName=LicenseLookupPortlet portletInstance=1913_LICENSELOOKUPPORTLET_393373 user=ORCLADMIN
          6/2/03 3:41 PM jpdk: [id=(null), instance=(null)] WARNING: Request has exceeded its warning timeout of 20000ms. Request details are: id=(null) providerId=393373 portletId=2 portletName=TesterPortlet portletInstance=1912_TESTERPORTLET_393373 user=ORCLADMIN
          6/2/03 3:41 PM jpdk: [id=(null), instance=(null)] Authenticaion tag cannot be null. Please provide authentication details in provider.xml or make the provider login frequency as 'Never'Authenticaion tag cannot be null. Please provide authentication details in provider.xml or make the provider login frequency as 'Never'
          6/2/03 3:41 PM jpdk: [id=(null), instance=(null)] Unhandled exception in SOAP call
          oracle.webdb.provider.v2.utils.soap.SOAPException: Error: Failed to authenticate user with external application
               at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.initSession(Unknown Source)
               at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.initSession(Unknown Source)
               at java.lang.reflect.Method.invoke(Native Method)
               at oracle.webdb.provider.v2.utils.soap.SOAPProcessor.doMethodCall(Unknown Source)
               at oracle.webdb.provider.v2.utils.soap.SOAPProcessor.processInternal(Unknown Source)
               at oracle.webdb.provider.v2.utils.soap.SOAPProcessor.process(Unknown Source)
               at oracle.webdb.provider.v2.adapter.SOAPServlet.doSOAPCall(Unknown Source)
               at oracle.webdb.provider.v2.adapter.SOAPServlet.service(Unknown Source)
               at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
               at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
               at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
               at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
               at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
               at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
               at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
               at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
          • 2. Re: Debugging portlets and log files
            311382
            Jay,

            Here is the problem,
            "Authenticaion tag cannot be null. Please provide authentication details in provider.xml or make the provider login frequency as 'Never'"

            To understand url services v2 tags for provider.xml, please refer the document understanding.the.provider.xml.for.pdkurlservices.v2.html at %PDK_ZIP_EXTRACT%/pdk/articles

            Regards,
            Abhinav
            • 3. Re: Debugging portlets and log files
              394767
              I added the line just like the tutorial suggests, then I received an error that that element does not exist:

              <?xml version="1.0" encoding="UTF-8"?>
              <?providerDefinition version="3.1"?>
              <provider class="oracle.portal.provider.v2.http.URLProviderDefinition">
                   <!--providerInstanceClass>oracle.portal.provider.v2.http.URLProviderInstance</providerInstanceClass-->
                   <authentication>
                        <authType>none</authType>
                   </authentication>
                   <!--proxyInfo class="oracle.portal.provider.v2.ProxyInformation">
                        <httpProxyHost>www-proxy.us.oracle.com</httpProxyHost>
                        <httpProxyPort>80</httpProxyPort>
                   </proxyInfo-->
                   <portlet class="oracle.portal.provider.v2.http.URLPortletDefinition">

              6/3/03 10:24 AM jpdk: [id=(null), instance=1912_TESTERPORTLET_393373] ERROR: SOAPServlet.service() - Unhandled ServletException...
              javax.servlet.ServletException: XML processing error: Could not determine class for object represented by element "authentication"
                   at oracle.webdb.provider.v2.adapter.SOAPServlet.doHTTPCall(Unknown Source)
                   at oracle.webdb.provider.v2.adapter.SOAPServlet.service(Unknown Source)
                   at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
                   at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
                   at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
                   at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
                   at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
                   at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
                   at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
                   at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
              Root cause is; oracle.portal.utils.xml.v2.NodeHandlerException: XML processing error: Could not determine class for object represented by element "authentication"
                   at oracle.portal.utils.v2.ContainerException.fillInStackTrace(Unknown Source)
                   at java.lang.Throwable.<init>(Throwable.java:90)
                   at java.lang.Exception.<init>(Exception.java:38)
                   at oracle.portal.utils.v2.ContainerException.<init>(Unknown Source)
                   at oracle.portal.utils.xml.v2.NodeHandlerException.<init>(Unknown Source)
                   at oracle.portal.utils.xml.v2.DefaultNodeHandler.processNode(Unknown Source)
                   at oracle.portal.provider.v2.http.DefaultProviderLoader.getProviderDefinition(Unknown Source)
                   at oracle.portal.provider.v2.http.DefaultProviderLoader.init(Unknown Source)
                   at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.init(Unknown Source)
                   at oracle.webdb.provider.v2.utils.soap.SOAPProcessor.locateService(Unknown Source)
                   at oracle.webdb.provider.v2.adapter.SOAPServlet.doHTTPCall(Unknown Source)
                   at oracle.webdb.provider.v2.adapter.SOAPServlet.service(Unknown Source)
                   at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
                   at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
                   at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
                   at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
                   at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
                   at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
                   at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
                   at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
              • 4. Re: Debugging portlets and log files
                311382
                Hi,

                authentication is a complex tag & so requires a handler class. It should be as follows,
                <authentication class="oracle.portal.provider.v2.security.Authentication">
                <authType>none</authType>
                </authentication>

                Regards,
                Abhinav
                • 5. Re: Debugging portlets and log files
                  394767
                  Thanks for the help. I did what was suggested and now it seems to move onto a different issue. The log file prints out the following:

                  6/4/03 8:57 AM jpdk: [id=(null), instance=1913_LICENSELOOKUPPORTLET_393373] CONFIGURATION: Default container renderer not specified
                  6/4/03 8:57 AM jpdk: [id=(null), instance=1913_LICENSELOOKUPPORTLET_393373] CONFIGURATION: defaulting container renderer to DefaultContainerRenderer
                  6/4/03 8:57 AM jpdk: [id=(null), instance=1912_TESTERPORTLET_393373] CONFIGURATION: Default container renderer not specified
                  6/4/03 8:57 AM jpdk: [id=(null), instance=1912_TESTERPORTLET_393373] CONFIGURATION: defaulting container renderer to DefaultContainerRenderer

                  Any suggestions on what this means?

                  Thanks for your help!