Runtime exceptions in custom taglib

I am getting errors of the type:
          javax.servlet.ServletException: runtime failure in custom tag
          The problem is the error is happening in a taglib, but Weblogic is hiding the
          original stack trace, and substituting it's own, which is useless in this case. Is
          there any way to get the original stack trace?
          -Jeff
          

With custom tags, each interface method needs to be entirely in a try..catch
          to support debugging. WL hides the exact exception information. For
          example:
          public int doEndTag() throws JspException
          try
          catch (Throwable e)
          throw e instanceof JspException ? (JspException) e : new
          JspTagException(e.getMessage());
          Cameron Purdy
          [email protected]
          http://www.tangosol.com
          WebLogic Consulting Available
          "Brian Homrich" <[email protected]> wrote in message
          news:[email protected]...
          > I'm getting the same type of error in the situation where an error has
          occured
          > in a page, my client uses "Back" on the browser, then tries another page
          > (which uses a custom taglib).
          >
          > If I stop, then restart WL, all is ok. The page where the runtime
          failure
          > occured is ok now.
          >
          > Have you made any progress getting a stack trace, and have you found
          anything
          > interesting?
          >
          > Does anyone know why a failure on one page would cause the custom tags
          > on another to fail like this? (Both pages use the same tag, but aren't
          calls
          > to a tag done independently?)
          >
          > Brian
          >
          > Jeff Nowakowski wrote:
          >
          > > I am getting errors of the type:
          > >
          > > javax.servlet.ServletException: runtime failure in custom tag
          > >
          > > The problem is the error is happening in a taglib, but Weblogic is
          hiding the
          > > original stack trace, and substituting it's own, which is useless in
          this case. Is
          > > there any way to get the original stack trace?
          > >
          > > -Jeff
          >
          

Similar Messages

  • JSP custom taglib

    Hi, I've a big problem:
    I tried to realize my first custom taglib for converting a .jasper file (a precompilated formatted meta-document) into a PDF file but I poorly failed... :(
    Unfortunatly, although the code run correctly into a main class into a stand alone sample application, the same code (opportunely adapted) doesen't work correctly if used by a JSP with its relative custom tag library.
    The error message is:
    javax.servlet.ServletException: Error loading expression class : report_semplice
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:872)
         org.apache.jasper.runtime.PageContextImpl.access$1100(PageContextImpl.java:114)
         org.apache.jasper.runtime.PageContextImpl$12.run(PageContextImpl.java:792)
         java.security.AccessController.doPrivileged(Native Method)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:790)
         org.apache.jsp.reportPDF_jsp._jspService(reportPDF_jsp.java:82)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:141)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:306)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         sun.reflect.GeneratedMethodAccessor178.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:324)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:205)
    root cause
    javax.servlet.jsp.JspTagException: Error loading expression class : report_semplice
         com.tag.GeneratePDF.doEndTag(GeneratePDF.java:72)
         org.apache.jsp.reportPDF_jsp._jspx_meth_JR_GeneratePDF_0(reportPDF_jsp.java:99)
         org.apache.jsp.reportPDF_jsp._jspService(reportPDF_jsp.java:71)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:141)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:306)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         sun.reflect.GeneratedMethodAccessor178.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:324)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:205)
    The code of the taglib class is:
    package com.tag;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    import net.sf.jasperreports.engine.*;
    import net.sf.jasperreports.engine.export.*;
    import net.sf.jasperreports.engine.util.*;
    import net.sf.jasperreports.view.*;
    import java.sql.*;
    import org.apache.commons.logging.*;
    import java.io.*;
    import java.util.*;
    public class GeneratePDF extends TagSupport
      private String sourceFileName = "C:\\default.jasper";
      private String destinationFileName = "C:\\default.pdf";
      public void setSourceFileName(String sourceFileName)
        this.sourceFileName = sourceFileName;
      public void setDestinationFileName(String destinationFileName)
        this.destinationFileName = destinationFileName;
      public int doStartTag()
          return SKIP_BODY;
      public int doEndTag() throws JspTagException
        try
            //Passaggio parametri da passare al jasper.
            Map parameters = new HashMap();
            parameters.put("param1", new Integer(1));
            //Preparazione del file da stampare (in questa fase si esegue la query e si inseriscono
            //i valori estratti dalla query)
            JasperPrint jasperPrint=JasperFillManager.fillReport(sourceFileName, parameters, getConnection());
            // a schermo
            // JasperViewer.viewReport(jasperPrint);
           // test
           //pageContext.getOut().println("Destination File:" + destinationFileName);       
        //Creazione del PDF
            JasperExportManager.exportReportToPdfFile(jasperPrint, destinationFileName);
        //    System.exit(0);
           catch(Exception e)
                { throw new JspTagException(e.getMessage());
        return EVAL_PAGE;
    /**Metodo per creare la connessione al DB*/
    private static Connection getConnection() throws ClassNotFoundException, SQLException {
    //Change these settings according to your local configuration
    String driver = "sun.jdbc.odbc.JdbcOdbcDriver";
    String connectString = "jdbc:odbc:gecoware";
    String user = "admin";
    String password = "password";
    Class.forName(driver);
    Connection conn = DriverManager.getConnection(connectString, user, password);
    return conn;
    The .TLD file is:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
    <taglib>
        <tlibversion>1.0</tlibversion>
        <jspversion>1.1</jspversion>
        <shortname>JR</shortname>
        <uri>ReportTags</uri>
        <info>Tag library per la generazione di report a partire da files .jasper</info>
        <tag>
            <name>GeneratePDF</name>
            <tagclass>com.tag.GeneratePDF</tagclass>
            <bodycontent>empty</bodycontent>
            <info>Tag per la generazione di PDF</info>
            <attribute>
              <name>sourceFileName</name>
            </attribute>
            <attribute>
              <name>destinationFileName</name>
            </attribute>
        </tag>
    </taglib>
    And the JSP code is:
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <%@ taglib uri="ReportTags" prefix="JR" %>
    <html>
    <head>
    <title>GeneratePDF</title>
    </head>
    <body>
    <JR:GeneratePDF sourceFileName="c:\\report_semplice.jasper" destinationFileName="c:\\report1.pdf"/>
    </body>
    </html>
    I hope that someone could help me...
    Thank you,
    AleX

    Hi,
              I think that the container can not identify the tag's ,what you are trying to use.
              As per the j2ee specification , we need to follow the procedure to use the taglib as given below
              Procedure for using a Tag Lib :
              â€¢ Copy tag lib jar files under WEB-INF/lib ( if tag handler supplied as classes without package a jar file then we need to copy the classes under WEB_INF/classes.
              â€¢ Copy the tld files files under WEB-INF or create a directory under WEB-INF and copy tld files under this directory.
              â€¢ We need to give the information about the tag libraries in web.xml by adding the following lines to it as,
              <taglib>
              <taglib-uri>http://www.inet.com/taglibs/bodytags</taglib-uri>
              <taglib-location>/WEB-INF/tlib/tlib1.tld </taglib-location>
              </taglib>
              To use tags in jsp file we need to add taglib directive as ,
              <%@ taglib uri="http://www.inet.com/taglibs/samptags" prefix=“abc"%>
              Every tag can support zero or more number of attributes and a tag may or may not support body content.
              weblogic server try to parse the .tld file whenever the tags are encountered in jsp files.
              As per the .tld file the container identify the attributes of the tags which were defined in .tld file.
              ------ Anilkumar kari

  • Custom taglibs w/ JSP features

    Hello Together,
    I am currently facing a little problem:
    I use custom taglibs for rendering certain web elements (lets say widgets etc.). The reason is greater reusability and full integration into the runtime. However, what do you recommend on how to render such components?
    As far as i know, there are only two solutions:
    - embedding markup (e.g. XHTML, XML...) into the tag class (not so good, especially when large chunks of markup)
    - reading from markup templates located on the file system and populating them w/ data (slow?).
    What do you use for custom taglibs that are to render markup contents (thus, no flow taglibs)?
    I know that i can fallback to pure JSPs, but there is no elegant way calling them with parameters. The reason is that i have "abstract control classes" with some properties. According to these properties, my taglib renders the control. When doing this with a JSP fragment, there is no "cool" way:
    the class proto: an GUI class with properties
    - id
    - caption
    - state
    - etc.
    -- taglib example --
    <some:guiElement obj="${controls.current}" method="xml" />
    This taglib can query all properties by the obj reference and render.
    -- JSP equivalent w/ JSTL call --
    <c:import url="/base/guiElement.jsp?id=${controls.current.id}&caption=${controls.current.caption}[...]" />
    This is bad design, and all params have to be passed seperately (or not?).
    You see, Taglibs are quite more handy to use, as you know. But i am missing JSP features in taglibs, such as how to do an <c:import /> from within an taglib etc.
    Another thing in mind is themeability. One can use a copy of the JSP fragment and modify its visual appearance, but w/ taglibs, that is more harder (except when using markup templates).
    Does anyone knoe how to marry JSP featires into custom taglibs?
    Sorry for that long posting :-)
    Greetings, Timo

    Hello,
    Just an answer to myself and anyone who is interested:
    The solution to my problem is migrating to JSP 2.0 where you can use tag template files.
    Thus, if possible, upgrading to JSP 2.0 + Servlet 2.4 does the job.
    Greetings, Timo

  • Javax.servlet.ServletException: runtime failure in custom tag 'content'

    Hi When iam trying to click on a link which takes to an another JSP.
              iam getting this error after few minutes and that page doesnt display at
              all.
              can anybody help me out????
              ==vasan++;
              <Jan 9, 2001 11:50:10 AM PST> <Error> <HTTP>
              <[WebAppServletContext(627219,console)] exception raised on
              '/console/panels/mbean/Server.jsp'
              javax.servlet.ServletException: runtime failure in custom tag 'content'
              at
              weblogic.management.console.pages._panels._mbean._server._jspService(_server
              .java:9798)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :208)
              at
              weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
              ntext.java:1127)
              at
              weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
              :1529)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >
              <Jan 9, 2001 11:50:10 AM PST> <Error> <HTTP>
              <[WebAppServletContext(627219,console)] Root cause of ServletException
              java.net.SocketException: Connection reset by peer: socket write error
              at java.net.SocketOutputStream.socketWrite(Native Method)
              at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
              at
              weblogic.servlet.internal.ChunkUtils.writeHeaderChunk(ChunkUtils.java:127)
              at
              weblogic.servlet.internal.ResponseHeaders.writeHeaders(ResponseHeaders.java:
              345)
              at
              weblogic.servlet.internal.ServletResponseImpl.writeHeaders(ServletResponseIm
              pl.java:683)
              at
              weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamI
              mpl.java:124)
              at
              weblogic.servlet.internal.ServletOutputStreamImpl.flushWithCheck(ServletOutp
              utStreamImpl.java:451)
              at
              weblogic.servlet.internal.ServletOutputStreamImpl.print(ServletOutputStreamI
              mpl.java:243)
              at
              javax.servlet.ServletOutputStream.println(ServletOutputStream.java:286)
              at
              weblogic.servlet.jsp.JspWriterImpl.println(JspWriterImpl.java:204)
              at
              weblogic.management.console.pages._common._requestinfo.print(_requestinfo.ja
              va:68)
              at
              weblogic.management.console.pages._common._requestinfo._jspService(_requesti
              nfo.java:224)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :208)
              at
              weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
              l.java:249)
              at
              weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
              l.java:167)
              at
              weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:104)
              at
              weblogic.management.console.pages._common._error._jspService(_error.java:162
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :208)
              at
              weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
              l.java:149)
              at
              weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:100)
              at
              weblogic.management.console.pages._panels._mbean._server._jspService(_server
              .java:9830)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :208)
              at
              weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
              ntext.java:1127)
              at
              weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
              :1529)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >
              

    I just started getting this error after a year in production environment without any problems. Did you every find out what caused this or better yet how to prevent this?
              Dan.
              

  • Runtime failure in custom tag

              I was curious if you knew what specifically you did to remove the runtime error.
              I am also getting the runtime failure. The try/catch that another discussion thread
              suggested does not catch the error since the exception is thrown prior to the
              doStart and doEnd Tag methods. I know that the exception is thrown immediately
              after the constructor is called for the tag and before the setParent method is
              called.
              Anyway, thank you in advance for any suggestions you might have.
              try { // begin instantiate/release try/catch/finally block... //[ /wattage/wtgMainMenu.jsp;
              Line: 36]
                   westerncommon_jsptag_HeaderTag_0 = (western.common.jsptag.HeaderTag)java.beans.Beans.instantiate(getClass().getClassLoader(),
              "western.common.jsptag.HeaderTag"); //[ /wattage/wtgMainMenu.jsp; Line: 36]
              westerncommon_jsptag_HeaderTag_0.setPageContext(pageContext); //[ /wattage/wtgMainMenu.jsp;
              Line: 36]
              westerncommon_jsptag_HeaderTag_0.setParent(null); //[ /wattage/wtgMainMenu.jsp;
              Line: 36]
                   westerncommon_jsptag_HeaderTag_0.setNavMenuHREF(weblogic.utils.StringUtils.valueOf("wtgLogout.jsp"));
              //[ /wattage/wtgMainMenu.jsp; Line: 36]
              westerncommon_jsptag_HeaderTag_0.setNavMenu(weblogic.utils.StringUtils.valueOf("Logout"));
              //[ /wattage/wtgMainMenu.jsp; Line: 36]
              westerncommon_jsptag_HeaderTag_0.setTitle(weblogic.utils.StringUtils.valueOf("Main
              Menu")); //[ /wattage/wtgMainMenu.jsp; Line: 36]
              int int0 = westerncommon_jsptag_HeaderTag_0.doStartTag(); //[ /wattage/wtgMainMenu.jsp;
              Line: 36]
                   if (_int_0 == BodyTag.EVAL_BODY_TAG) { //[ /wattage/wtgMainMenu.jsp; Line: 36]
                        throw new JspTagException("Since tag class western.common.jsptag.HeaderTag does
              not implements BodyTag, it cannot return BodyTag.EVAL_BODY_TAG"); //[ /wattage/wtgMainMenu.jsp;
              Line: 36]
              } //[ /wattage/wtgMainMenu.jsp; Line: 36]
              /*** sync AT_BEGIN TagExtra Vars here ***/ //[ /wattage/wtgMainMenu.jsp;
              Line: 36]
              if (_int_0 != Tag.SKIP_BODY) { // begin !SKIP_BODY... //[ /wattage/wtgMainMenu.jsp;
              Line: 36]
                        //[ /wattage/wtgMainMenu.jsp; Line: 36]
                        out.print("\r\n");
                             //[ /wattage/wtgMainMenu.jsp; Line: 37]
                   } // end !SKIP_BODY //[ /wattage/wtgMainMenu.jsp; Line: 37]
              if (_western_common_jsptag_HeaderTag_0.doEndTag() == Tag.SKIP_PAGE) return;
              //[ /wattage/wtgMainMenu.jsp; Line: 37]
              } catch (java.lang.Exception javalang_Exception_0) { // instantiate/release
              try/catch/finally //[ /wattage/wtgMainMenu.jsp; Line: 37]
                   throw new ServletException("runtime failure in custom tag 'HeaderTag'", javalang_Exception_0);
              //[ /wattage/wtgMainMenu.jsp; Line: 37]
              } finally { // instantiate/release try/catch/finally block... //[ /wattage/wtgMainMenu.jsp;
              Line: 37]
                   if (_western_common_jsptag_HeaderTag_0 != null) westerncommon_jsptag_HeaderTag_0.release();
              //[ /wattage/wtgMainMenu.jsp; Line: 37]
              } //[ /wattage/wtgMainMenu.jsp; Line: 37]
              ----------CONSOLE OUTPUT-------------
              Getting Page permissions for page: wtgMainMenu.jsp user: 0
              Page Permissions: Insert-1 View-1 Update-1 Delete-1
              HeaderTag -- Constructing
              Thu Apr 05 11:19:00 CDT 2001:<E> <ServletContext-General> exception raised on
              wattage/wtgMainMenu.jsp'
              javax.servlet.ServletException: runtime failure in custom tag 'HeaderTag'
              at jsp_servlet.wattage.wtgmainmenu._jspService(wtgmainmenu.java:398)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:124)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:744)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:692)
              at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
              ContextManager.java:251)
              at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
              a:363)
              at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              

    I just started getting this error after a year in production environment without any problems. Did you every find out what caused this or better yet how to prevent this?
              Dan.
              

  • Throwing Runtime Exceptions from BPM. How?

    Hi !
    I want to make appear a red flag in the SXMB_MONI as a result of a custom condition inside a BPM. I tried with the control step, but it makes no "red flag".
    Should I make a transform step between 2 dummy message types with a UDF that throws the runtime exception there?? is there another way ?? We want a red flag as a result of a expired deadline while waiting a file adapter transport acknowledgement.
    Thanks !!
    Matias.

    Matias,
    As you said before you want the BPM to be errored out if it reach the deadline, am I right. In control step if u say cancel process it equivalent to logically deleting the work items, so obviously you will get an succesfull message. What I suggest you to do is in  Deadline branch - control branch select throw exception. The exception name has to be defined in Block level. So if you throw an exception it will look for the exception branch in the same block level if not the higher(super)block level, if it couldn't find the exception branch it will run out to error. Actually the exception branch is used to catch that exception and continue the rest of the process, so i think there is no need for defining the exception branch itself.
    Hope it helps you!!!
    Best regards,
    raj.

  • DMSConsole Runtime Exception stack trace: java.lang.NoClassDefFoundError

    I think this is the right place to post the problem.
    I've already posted my problem here ->
    https://forums.oracle.com/forums/thread.jspa?threadID=2386699&tstart=0
    Can you please let me know where am I missing?
    Thanks.
    It is removed from this link.
    Edited by: OraNew2 on May 9, 2012 9:12 AM

    Here is the post again ->
    Hi All,
    I'm not sure whether this is a right area to post this problem or not. Not finding any suitable site to post.
    Kindly direct me in case if it is the wrong area.
    Let start my problem.
    We are configuring our cognos in Linux environment. And, our DB is Oracle 11g Release 2.
    Kindly find the details are as follows -
    *1. Oracle version ->*
    [oracle@pult ~]$ sqlplus xx/xx@BPI
    SQL*Plus: Release 11.2.0.1.0 Production on Wed May 9 20:07:33 2012
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, Oracle Label Security, OLAP, Data Mining
    and Real Application Testing options
    SQL>
    SQL>
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    SQL>
    SQL>*2. Kindly find the Java version ->*
    [cognos@pult ~]$ which java
    /opt/jdk1.6.0_32/bin/java
    [cognos@pult ~]$ java -version
    java version "1.6.0_32"
    Java(TM) SE Runtime Environment (build 1.6.0_32-b05)
    Java HotSpot(TM) Server VM (build 20.7-b02, mixed mode)
    [cognos@pult ~]$*3. Kindly find the JAVA path details ->*
    #Java Settings
    export JAVA_HOME=/opt/jdk1.6.0_32
    export PATH=$PATH:/opt/jdk1.6.0_32/bin:/opt/jdk1.6.0_32/lib:/home/cognos/c8:/home/cognos/c8/webapps/p2pd/WEB-INF/lib
    export CLASSPATH=$CLASSPATH:/home/cognos:/opt/jdk1.6.0_32/bin:/opt/jdk1.6.0_32/lib:/home/cognos/c8:$ORACLE_HOME/lib:/home/cognos/c8/webapps/p2pd/WEB-INF/lib*4. To start the cognos we have to copy few files from Oracle lib directory to under the following cognos directory ->*
    /home/cognos/c8/webapps/p2pd/WEB-INF/lib*5. And, those copied files are ->*
    -rwxr-xr-x 1 cognos cognos8  168461 Oct 30  2009 CognosCCL4J.jar
    -rwxr-xr-x 1 cognos cognos8   20355 May  7 12:17 simplefan.jar
    -rwxr-xr-x 1 cognos cognos8 2111220 May  7 12:17 ojdbc6.jar
    -rwxr-xr-x 1 cognos cognos8 3401519 May  7 12:17 ojdbc6_g.jar
    -rwxr-xr-x 1 cognos cognos8 2655741 May  7 12:17 ojdbc6dms.jar
    -rwxr-xr-x 1 cognos cognos8 3423263 May  7 12:17 ojdbc6dms_g.jar
    -rwxr-xr-x 1 cognos cognos8 1996228 May  7 12:17 ojdbc5.jar
    -rwxr-xr-x 1 cognos cognos8 3081328 May  7 12:17 ojdbc5_g.jar
    -rwxr-xr-x 1 cognos cognos8 2429777 May  7 12:17 ojdbc5dms.jar
    -rwxr-xr-x 1 cognos cognos8 3101875 May  7 12:17 ojdbc5dms_g.jar
    [cognos@pult lib]$
    [cognos@pult lib]$*6. Linux version (32 bit) ->*
    [cognos@pult ~]$ cat /proc/version
    Linux version 2.6.18-274.7.1.el5PAE ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)) #1 SMP Mon Oct 17 12:05:46 EDT 2011
    [cognos@pult ~]$
    [cognos@pult ~]$*7. Cognos Version ->*
    Cognos 8.4.1 Linux (32 bit)Now, the problem is ->
    Whenever we tries to start the cognos service - It throws the following errors ->
    Successfully launched a test JVM with the memory setting of '768'. Note that this does not guarantee that IBM Cognos 8 will start and run successfully.
    To see which JVM options are based on this setting, view c8_location/bin/bootstrap_<OS>.xml and see your JVM documentation for an explanation of those options.
    10:57:12, 'LogService', 'StartService', 'Success'.
    10:57:15, 'ContentManager', 'getActiveContentManager', 'Failure'.
    DPR-CMI-4006 Unable to determine the active Content Manager. Will retry periodically.
    10:57:15, 'ContentManager', 'getActiveContentManager', 'Failure'.
    DPR-CMI-4006 Unable to determine the active Content Manager. Will retry periodically.
    10:57:16, 'AgentService', 'StopService', 'Success'.
    10:57:16, 'AgentService', 'StopService', 'Success'.
    10:57:16, 'MonitorService', 'StopService', 'Success'.
    10:57:16, 'MonitorService', 'StopService', 'Success'.
    10:57:16, 'DeliveryService', 'StopService', 'Success'.
    10:57:16, 'DeliveryService', 'StopService', 'Success'.
    10:57:16, 'JobService', 'StopService', 'Success'.
    10:57:16, 'JobService', 'StopService', 'Success'.
    10:57:16, 'com.cognos.pogo.services.DefaultHandlerService', 'pogo', 'Failure'.
    DPR-DPR-1035 Dispatcher detected an error.
    10:57:16, 'com.cognos.pogo.services.DefaultHandlerService', 'pogo', 'Failure'.
    DPR-DPR-1035 Dispatcher detected an error.
    10:57:16, 'CPS Producer Registration Service', 'StopService', 'Success'.
    10:57:16, 'CPS Producer Registration Service', 'StopService', 'Success'.
    10:57:15, 'com.cognos.pogo.contentmanager.coordinator.ActiveCMControl', 'pogo', 'Failure'.
    DPR-DPR-1035 Dispatcher detected an error.
    10:57:15, 'com.cognos.pogo.contentmanager.coordinator.ActiveCMControl', 'pogo', 'Failure'.
    DPR-DPR-1035 Dispatcher detected an error.
    10:57:15, CM-SYS-5007 Content Manager build 8.4.6013.0 failed to start!
    Review the Content Manager log files and then contact your system administrator or customer support.
    Cause: oracle/dms/console/DMSConsole Runtime Exception stack trace:
    java.lang.NoClassDefFoundError: oracle/dms/console/DMSConsole
    at oracle.jdbc.driver.DMSFactory.<clinit>(DMSFactory.java:45)
    at oracle.jdbc.driver.PhysicalConnection.createDMSSensors(PhysicalConnection.java:4203)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:629)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:218)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:29)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:538)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:185)
    at com.cognos.cm.dbstore.CMDbStoreFactory.getJDBCConnection(CMDbStoreFactory.java:2087)
    at com.cognos.cm.dbstore.CMDbStoreFactory.getInitialConnection(CMDbStoreFactory.java:1937)
    at com.cognos.cm.dbstore.CMDbStoreFactory.initContentIndependentBeforeLock(CMDbStoreFactory.java:2111)
    at com.cognos.cm.dbstore.CMDbStore.initializeContentIndependentBeforeLock(CMDbStore.java:4596)
    at com.cognos.cm.server.CMServlet.initializeContentStoreContentIndependentBeforeLock(CMServlet.java:2321)
    at com.cognos.cm.server.CMServlet.init(CMServlet.java:2046)
    at com.cognos.cm.server.ContentManager.start(ContentManager.java:314)
    at com.cognos.cm.server.ContentManagerLifecycleHandler.start(ContentManagerLifecycleHandler.java:73)
    at com.cognos.pogo.services.DefaultHandlerService.start(DefaultHandlerService.java:111)
    at com.cognos.pogo.services.DispatcherServices.startInititalServices(DispatcherServices.java:426)
    at com.cognos.pogo.transport.PogoServlet$PogoStartup.run(PogoServlet.java:688)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: java.lang.ClassNotFoundException: oracle.dms.console.DMSConsole at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1444)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1289)
    at com.cognos.pogo.isolation.ParanoidClassLoader.findClassParentLast(ParanoidClassLoader.java:186)
    at com.cognos.pogo.isolation.ParanoidClassLoader.loadClass(ParanoidClassLoader.java:164)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    ... 20 more
    10:57:15,
    CM-SYS-5007 Content Manager build 8.4.6013.0 failed to start!
    Review the Content Manager log files and then contact your system administrator or customer support.
    Cause: oracle/dms/console/DMSConsole Runtime Exception stack trace: java.lang.NoClassDefFoundError: oracle/dms/console/DMSConsole
    at oracle.jdbc.driver.DMSFactory.<clinit>(DMSFactory.java:45)
    at oracle.jdbc.driver.PhysicalConnection.createDMSSensors(PhysicalConnection.java:4203)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:629)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:218)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:29)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:538)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:185)
    at com.cognos.cm.dbstore.CMDbStoreFactory.getJDBCConnection(CMDbStoreFactory.java:2087)
    at com.cognos.cm.dbstore.CMDbStoreFactory.getInitialConnection(CMDbStoreFactory.java:1937)
    at com.cognos.cm.dbstore.CMDbStoreFactory.initContentIndependentBeforeLock(CMDbStoreFactory.java:2111)
    at com.cognos.cm.dbstore.CMDbStore.initializeContentIndependentBeforeLock(CMDbStore.java:4596)
    at com.cognos.cm.server.CMServlet.initializeContentStoreContentIndependentBeforeLock(CMServlet.java:2321)
    at com.cognos.cm.server.CMServlet.init(CMServlet.java:2046)
    at com.cognos.cm.server.ContentManager.start(ContentManager.java:314)
    at com.cognos.cm.server.ContentManagerLifecycleHandler.start(ContentManagerLifecycleHandler.java:73)
    at com.cognos.pogo.services.DefaultHandlerService.start(DefaultHandlerService.java:111)
    at com.cognos.pogo.services.DispatcherServices.startInititalServices(DispatcherServices.java:426)
    at com.cognos.pogo.transport.PogoServlet$PogoStartup.run(PogoServlet.java:688)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: java.lang.ClassNotFoundException: oracle.dms.console.DMSConsole
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1444)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1289)
    at com.cognos.pogo.isolation.ParanoidClassLoader.findClassParentLast(ParanoidClassLoader.java:186)
    at com.cognos.pogo.isolation.ParanoidClassLoader.loadClass(ParanoidClassLoader.java:164)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    ... 20 more
    10:57:16, 'ContentManagerService', 'StopService', 'Success'.
    10:57:16, 'ContentManagerService', 'StopService', 'Success'.
    10:57:16, 'MetadataService', 'StopService', 'Success'.
    10:57:16, 'MetadataService', 'StopService', 'Success'.
    10:57:16, 'SystemService', 'StopService', 'Success'.
    10:57:16, 'SystemService', 'StopService', 'Success'.
    10:57:16, 'BatchReportService', 'StopService', 'Success'.
    10:57:16, 'BatchReportService', 'StopService', 'Success'.
    10:57:16, 'ReportDataService', 'StopService', 'Success'.
    10:57:16, 'ReportDataService', 'StopService', 'Success'.
    10:57:16, 'EventService', 'StopService', 'Success'.
    10:57:16, 'EventService', 'StopService', 'Success'.
    10:57:16, 'ReportService', 'StopService', 'Success'.
    10:57:16, 'ReportService', 'StopService', 'Success'.
    10:57:16, 'LogService', 'StopService', 'Success'.
    10:57:16, 'LogService', 'StopService', 'Success'.
    [ ERROR ] CFG-ERR-0103 Unable to start IBM Cognos 8 service.
    Execution of the external process returns an error code value of '1'.Not sure where went wrong. Already followed many suggestions are already there in different sites. But, so far no luck.
    Is there any path I need to add in CLASSPATH other than what I have?
    Also, check few oracle docs regarding the same. But, nothing can eliminate this problem.
    Can you please suggest?
    Really appreciate your time for reading this.
    Thanks.

  • Portal.runtime.exception.errorcomponent

    Is property "portal.runtime.exception.errorcomponent" working in CE NetWeaver Administrator v7.20?
    NWA -> Configuration Management -> Infrastructure -> Java System Properties
    Services -> Portal Runtime Container Extension -> portal.runtime.exception.errorcomponent
    This property is meant for customizing error message for runtime exception.
    When click on Show Details button, all the values cannot be changed. Please refer to attachment. Not sure if this is still under development. Please advise.

    Hi Both,
    Thank you for your reply. I have developed a webdynpro app for the custom message. But, not sure what value should I entered for "<portal application name>.<application component name>". Referring to this app below, should I enter "saesapp.SAESAPP_base" for the Property Value? But, it does not seem to work by entering this.

  • Handling Exceptions in Custom Tags??

    Hi,
              what is the preferred way to handle an exception that is thrown from jsp
              code in the body of a custom tag? The code below obviously causes a null
              pointer exception inside of the custom tag. When the code executes, a
              ServletException ( javax.servlet.ServletException: runtime failure in custom
              tag 'golfPage' ) is thrown back. Is there any way to structure code so that
              you get a better idea of what actually went wrong in the body of the custom
              tag?
              <golf:golfPage navRoot="admin_overview" title="Admin Overview" >
              <br>
              <%
              Hashtable ht = null;
              ht.put("test","test null pointer");
              %>
              </golf:golfPage>
              

    Never mind... got the answer to my question:
    http://www.ajug.org/archive/ajug-members/10306/msg00030.html
    The encode methods are executed in the JSP which is why the implicit exception object is available... while the decode methods are executed as part of the Faces Servlet lifecycle and hence the exception object must be gotten from the request attribute...
    I guess I need to take Servlet 101 all over again...

  • ADS: SOAP Runtime Exception

    Hi All
       I am trying to excute adobe form using function modules fp_job_open , fp_job_close and the function module for adobe form inside a custom program.
    when I run the program it gives the below error message
    "ADS: SOAP Runtime Exception: CSoapExceptionTransport :(100101)" .
    why does this error come . How to resolve this issue.
    Regards

    Hello;
    I am new to Interactive Forms by ADOBE, but I did run into this error when trying to activate a form. SAP told me  to run test according to note 944221 and config RFC connection to ADS. Then we fixed-The two users for Adobe (ADSUSER & ADS_AGENT) were set as dialog users. 
    This dorrected the issue.

  • Runtime exception while I connect to SAP using JCO

    I am getting this error when I am trying to write a Java DC Project using NWDS.
    I have added all the JCO API DC to my project and all the classes are available in that.
    I am getting runtime exception class not found - com.sap.mw.jco.JCO$Repository
    I am deploying the java dc in the SAP J2EE Server by making Java Lib DC & deploy that.
    Is it possible to connect to SAP R/3 from Java DC? or we need to have Portal Projects like PAR or Webdynpro only?
    I want to use Background Callable object using GP API here.

    Thank you Venkat. One more question - in one of my java library, I want to make a class a public part and I added as public part but it is not accessible from SAP Portal GP as Background callable object,  getting message: cannot find this class name
    Do you have any idea ?
    see my post:Custom Email Template in GP
    Thank you once again.

  • Run-Time expression evaluation does not work with custom TagLib

              Hi,
              Using "WebLogic EJB to JSP Integration Tool", we have created a custom TagLib.
              We can properly deploy/start our Web application (a WAR file), but whenever we
              go to the JSP page that is using the custom Tag, we get the following exception:
              java.lang.ClassCastException: java.lang.Object
              at javax.servlet.jsp.tagext.TagData.getAttributeString(TagData.java:165)
              Here is what we have in our JSP page:
              <%@ taglib uri="Students-tags" prefix="students" %>
              <%
              String studentID = (String)session.getAttribute("studentID");
              %>
              <students:Register studentID="<%=studentID%>" />
              <%
              And the TLD file looks like this:
              <?xml version="1.0" encoding="ISO-8859-1" ?>
              <!DOCTYPE taglib
              PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
              <taglib>
              <tlibversion>1.0</tlibversion>
              <shortname>ejb2jsp generated tag library</shortname>
              <tag>
              <name>Register</name>
              <tagclass>EJBs.Students.jsp_tags._Students_RegisterTag</tagclass>
              <teiclass>EJBs.Students.jsp_tags._Students_RegisterTagTEI</teiclass>
              <info>
              attribute 'studentID' expects java type 'java.lang.String'
              </info>
              <attribute>
              <name>studentID</name>
              <required>true</required>
              <rtexprvalue>true</rtexprvalue>
              </attribute>
              </tag>
              </taglib>
              and Web.xml file does have the following entry:
              <taglib>
              <taglib-uri>
              Students-tags
              </taglib-uri>
              <taglib-location>
              /WEB-INF/Students-tags.tld
              </taglib-location>
              </taglib>
              Does anybody knows whay Do I get such an exception ?
              

    You might want to ask this in a servlet/jsp interest group.

  • Handling Exception/Runtime Exception in JSF

    Hi,
    Any good pointers to documents describing proper error handling.
    Not just navigation rules to an error.jsp file but also handling of runtime exceptions and exceptions in backing beans where you cannot use navigation rules (calling a method from JSF EL etc.).
    I am developing jsr 168 portlets using jsf on websphere portal.
    I can't get the error handling via web.xml to function and other places I can't manually make it go to an error.jsp in case of exceptions.
    How to handle the runtime exception in JSF.
    1. By including following tags in web.xml
    <error-type>
    <error-exception></error-exception>
    <error-loaction>/error.jsp</error-loaction>
    </error-type>
    its not working.
    2. If include the
    <%@page errorPage="../error/GenericError.jsp" %>
    in jsp page then
    it is not forwading to error page giving asaertion failure exception
    If we change the GenericError.jsp tag like
    <f:view>
    </f:view>
    to
    <f:subview>
    </f:subview>
    then it is going to error page but the
    action inside the error page is not getting called its backing bean
    Here is code of error.jsp
    <%-- jsf:pagecode language="java" location="/JavaSource/pagecode/JSPs/ErrorPage1.java" --%><%-- /jsf:pagecode --%>
    <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
    <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ page isErrorPage="true" %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    </head>
    <body>
    <div class="errorMessage"><%= exception.getLocalizedMessage() %></div>
    <f:subview id="name">
    <h:commandButton action="#{OSPMTASecurityBean.cancel}" value="submit"/>
    </f:subview>
    </body>
    </html>

    If you would like to handle and navigate based on the exception type, this code would help you. btw I'm not familiar with portlet though.
    http://sourceforge.net/projects/optionzero
    http://sourceforge.net/forum/forum.php?forum_id=666191
    You can declare exception type and navigation in faces-config.xml in declarative manner like Struts global exception notion.
    Please let me know it's useful or not.
    thanks,

  • Weblogic Commerce Server 3.5 runtime failure in custom tag

    An error occurred:
    javax.servlet.ServletException: runtime failure in custom tag 'process'
         at jsp_compiled._tools._property._propset_create._jspService(_propset_create.java:641)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:208)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:149)
         at com.beasys.commerce.foundation.flow.ServletDestinationHandler.handleDestination(ServletDestinationHandler.java:51)
         at com.beasys.commerce.foundation.flow.FlowManager.service(FlowManager.java:540)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:208)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1127)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1529)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

    I just started getting this error after a year in production environment without any problems. Did you every find out what caused this or better yet how to prevent this?
              Dan.
              

  • Crystal Runtime exception: Missing parameter values

    Our company did a PeopleTools upgrade at one of our clients recently. We upgraded them to PeopleTools 8.50.08. We had to convert all the Crystal Reports to the 2008 format using the RPT converter which is included in the Client install of PeopleTools.
    The only problem now is that a lot of the Crystal processes in PeopleSoft are failing with the following error:
    Crystal Runtime exception: Missing parameter values.
    I've checked the parameters which are being passed to the report and I see both parameters are filled:
    E:\HR881\BIN\CLIENT\WINX86\PSCRRUN.EXE -CTORACLE -CDHRMKPDEV -COPSDUT -CPOPRPSWD -I218609 -RP"PUP202K" -OT6 -OP"G:\PS\PSPRCS\log_output\HRMKPDEV\CRW_PUP202K_218609" -LGDUT -OF2 -ORIENTL "2000-10-01" "2002-06-30"
    Database type is Oracle. HRMS version is 8.8. I can run the Query which gets the data in just fine and I can also run the report from Crystal fine. This only happens with Crystal reports which have a date field as a parameter/prompt in the report.
    There's currently an SR open at Oracle, but I was hoping that someone here can help me nail this issue. I'm not too happy with the quallity of Oracle support, but that's a whole different story.

    <s>Just to be sure, did you put a space after each parameter name or is it a typo over here ?
    E:\HR881\BIN\CLIENT\WINX86\PSCRRUN.EXE -CT ORACLE -CD HRMKPDEV -CO PSDUT -CP OPRPSWD -I 218609 -RP "PUP202K" -OT 6 -OP "G:\PS\PSPRCS\log_output\HRMKPDEV\CRW_PUP202K_218609" -LG DUT -OF 2 -OR IENTL "2000-10-01" "2002-06-30"</s>
    Nicolas.
    sorry, it was wrong assumption.
    Edited by: N Gasparotto on Jun 2, 2010 5:11 PM

Maybe you are looking for

  • AUDIO PODCASTS ARE DOWNLOADING BACKWARDS "IN REVERSE ORDER"

    HELLO, I HAVE BEEN "DL (DOWNLOADING) "FREE AUDIO PODCASTS" FROM THE ITUNES STORE. I AM HAVING A HUGE PROBLEM WITH THE "EPISODES BEING DL TO MY IPOD CLASSIC "BACKWARDS". I HAVE TRIED DL FROM CHAPTER 1 THRU THE FINAL CHAPTER, AND HAVE IT DOWNLOADS ONTO

  • Reset Page Numbers for each group with XMLP 4.5

    I am currently working on the invoice report rtf template using XMLP 4.5 We cannot upgrade to new version at this stage. Our requirement is, i want to reset the page numbers for each invoice. I know that it can be achieved using @section. I think thi

  • Binding a schema to a form that contains a dynamic subform

    I just posted this thread below, but it would not allow me to add the attachments, so I will mail them to livecycle8. Hope that's ok.  Here's the original post Hi, I have a schema bound to a form that utilizes a dynamic subform (min=1, max= unlimited

  • How to make different photos come into a frame in a tile-like fashion?

    I've been using Final Cut Pro X for a few months, but mainly have been sticking to the basic stuff. Now, for a video I'm doing, I would like to show 4 or 5 different pictures that dynamically come into the frame in a tile-like fashion. I guess the be

  • SOA Siute 11g---bpel,business rules,bam

    Hi Experts, I am new to the SOA suite 11g world, i am attending training in my office. my technical background is java/j2ee . which i need to concentrate and how to master in SOA. please provide me guidance ,related documents/Url links and faq's. Ple