Can weblogic  handle user defined subclass of HttpServletRequest?

i implemented HttpServletRequest and am trying to pass it to
          requestDispatcher.forward
          but get the following error.
          i'm trying o give developer unifiorn way of accessing request parameter
          irrespective
          the html form is urlencoded or multipart.
          Is is possible to do in WLS.
          Thanks
          Wasiq
          java.lang.ClassCastException: com.ibos.util.RequestWrapper
          at
          weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
          l.java:112)
          at CHandler.doPost(CHandler.java:133)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:772)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
          at
          weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
          , Compiled Code)
          at weblogic.servlet.ServletServlet.service(ServletServlet.java:46)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
          at
          weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
          , Compiled Code)
          at
          weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
          l.java, Compiled Code)
          at
          weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
          l.java, Compiled Code)
          at
          weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
          Manager.java, Compiled Code)
          at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java,
          Compiled Code)
          at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java,
          Compiled Code)
          at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
          IBOS, Inc.
          Buyer Driven e-Commerce Solutions
          Wasiq Hasan
          http://www.ibos.com
          p. 877.464.IBOS
          f. 714.685.3988
          

I think you are looking for HttpServletRequestWrapper...
          "John gurdes" <[email protected]> wrote in message
          news:[email protected]...
          >
          >
          > Any workaround for this one? Finding the class taht implements the
          interface in
          > weblogic and subclassing it?
          >
          > >No, the implementation of Weblogic is tightly bound to itself.
          > >
          > >Peace,
          > >
          > >--
          > >Cameron Purdy
          > >Tangosol, Inc.
          > >http://www.tangosol.com
          > >+1.617.623.5782
          > >WebLogic Consulting Available
          > >
          > >
          > >"wasiq" <[email protected]> wrote in message
          > >news:[email protected]...
          > >> i implemented HttpServletRequest and am trying to pass it to
          > >> requestDispatcher.forward
          > >> but get the following error.
          > >> i'm trying o give developer unifiorn way of accessing request parameter
          > >> irrespective
          > >> the html form is urlencoded or multipart.
          > >>
          > >> Is is possible to do in WLS.
          > >>
          > >>
          > >> Thanks
          > >> Wasiq
          > >>
          > >>
          > >> java.lang.ClassCastException: com.ibos.util.RequestWrapper
          > >> at
          > >>
          >
          >weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherIm
          p
          > >> l.java:112)
          > >> at CHandler.doPost(CHandler.java:133)
          > >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:772)
          > >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
          > >> at
          > >>
          >
          >weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.jav
          a
          > >> , Compiled Code)
          > >> at weblogic.servlet.ServletServlet.service(ServletServlet.java:46)
          > >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
          > >> at
          > >>
          >
          >weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.jav
          a
          > >> , Compiled Code)
          > >> at
          > >>
          >
          >weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextIm
          p
          > >> l.java, Compiled Code)
          > >> at
          > >>
          >
          >weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextIm
          p
          > >> l.java, Compiled Code)
          > >> at
          > >>
          >
          >weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContex
          t
          > >> Manager.java, Compiled Code)
          > >> at
          > >weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java,
          > >> Compiled Code)
          > >> at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java,
          > >> Compiled Code)
          > >> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
          > >Code)
          > >>
          > >> --
          > >> IBOS, Inc.
          > >> Buyer Driven e-Commerce Solutions
          > >>
          > >> Wasiq Hasan
          > >> http://www.ibos.com
          > >> p. 877.464.IBOS
          > >> f. 714.685.3988
          > >>
          > >>
          > >
          > >
          >
          

Similar Messages

  • How can we handle user defined exceptions in ejbStore() of entity bean

    Accroding to my knowledge in ejbStore we can not handle user defined exceptions. Can anybody help on this????

    In my case I am calling a method from ejbsotre() . In that method i wanted to put some checks according to that i wanted to throw exceptions.
    In this case how would I handle exceptions.
    Can you suggest in this case,please !!!

  • How to handle user defined exception from C#?

    Hi:
    I have some PL/SQL code that will throw a user defined exception if certain conditions are met. How do I handle user defined exceptions if this procedure/function is being called from C#? C# can handle a normal Oracle SQL error (e.g. ORA-XXXX) because they are defined in the proper class, but how do I get it to know about my user defined exception? Does anyone have any links to examples of doing this?
    Thanks.

    Hi Gaff,
    Is there a particular problem you're having doing this? It works as normal for me...
    Cheers
    Greg
    PLSQL
    =========
    create or replace procedure throwsomething as
    begin
    raise_application_error(-20001,'kaboom');
    end;
    ODP
    =====
        class Program
            static void Main(string[] args)
                using (OracleConnection con = new OracleConnection())
                    con.ConnectionString = "user id=scott;password=tiger;data source=orcl";
                    con.Open();
                    using (OracleCommand cmd = new OracleCommand())
                        cmd.CommandText = "begin throwsomething;end;";
                        cmd.Connection = con;
                        try
                            cmd.ExecuteNonQuery();
                        catch (OracleException oe)
                            Console.WriteLine("caught " + oe.Message);
    OUTPUT
    ========
    caught ORA-20001: kaboom
    ORA-06512: at "SCOTT.THROWSOMETHING", line 3
    ORA-06512: at line 1

  • How can I use User-Defined Aggregate Functions in Timesten 11? such as ODCI

    Hi
    we are using Timesten 11 version and as per the documentation, it doesn't support User-Defined Aggregate Functions.
    So we are looking for alternatives to do it. Could you please provide your expert voice on this.
    Thanks a lot.
    As the following:
    create or replace type strcat_type as object (
    cat_string varchar2(32767),
    static function ODCIAggregateInitialize(cs_ctx In Out strcat_type) return number,
    member function ODCIAggregateIterate(self In Out strcat_type,value in varchar2) return number,
    member function ODCIAggregateMerge(self In Out strcat_type,ctx2 In Out strcat_type) return number,
    member function ODCIAggregateTerminate(self In Out strcat_type,returnValue Out varchar2,flags in number) return
    number
    How can I use User-Defined Aggregate Functions in Timesten 11? such as ODCIAggregateInitialize ?

    Dear user6258915,
    You absolutely right, TimesTen doesnt support object types (http://docs.oracle.com/cd/E13085_01/doc/timesten.1121/e13076/plsqldiffs.htm) and User-Defined Aggregate Functions.
    Is it crucial for your application? Could you rewrite this functionality by using standart SQL or PL/SQL?
    Best regards,
    Gennady

  • Can I Add User Defined Tab Dialog From just like kTextFrameOptionsDialogBoss?

    Can I Add User Defined Tab Dialog At Build-In kTabSelectableDialogBoss, just like kTextFrameOptionsDialogBoss?
    If it is possible, How?
    Pls Help Me...

    Impliment IUnitOfMeasure with custom units.

  • Handling user defined HTML

    Hi,
    What is the best approach for handling user defined html?
    These are in converted ND apps.
    We do a lot of this, such as putting the html for the label in the
    user defined html, so that if no value is set, no label is displayed.
    I wanted to get the attribute for the field, and use the
    stringtokenizer2 to replace the original ND tag (**whatever**), thusly:
    =================================================================
    getSt_closeDate().setValue(
    StringTokenizer2.replace(
    getSt_closeDate().getDescriptor().getAttribute(
    DisplayFieldDescriptor.USER_DEFINED_HTML_PROP).toString(),
    "**st_closeDate**",
    getSt_closeDate().getValue().toString()));
    ==================================================================
    but the
    getSt_closeDate().getDescriptor() is coming up null.
    What am I doing wrong?
    Is their a better way to do this?
    John Hoskins

    Hi,
    What is the best approach for handling user defined html?
    These are in converted ND apps.
    We do a lot of this, such as putting the html for the label in the
    user defined html, so that if no value is set, no label is displayed.
    I wanted to get the attribute for the field, and use the
    stringtokenizer2 to replace the original ND tag (**whatever**), thusly:
    =================================================================
    getSt_closeDate().setValue(
    StringTokenizer2.replace(
    getSt_closeDate().getDescriptor().getAttribute(
    DisplayFieldDescriptor.USER_DEFINED_HTML_PROP).toString(),
    "**st_closeDate**",
    getSt_closeDate().getValue().toString()));
    ==================================================================
    but the
    getSt_closeDate().getDescriptor() is coming up null.
    What am I doing wrong?
    Is their a better way to do this?
    John Hoskins

  • How can i send user defined Object as a argument to the MBean methods in authentication provider to create user?

    I developed our own Authentication, Identity Assertion & Authorization providers
    for weblogic 8.1 SP1. In the authenticator MBean i have one method which takes
    user defined object as a argument and returns a user defined object. i am able
    to call all the methods which takes java objects(for example: String, int, ArrayList,
    HashMap, Etc...) as a argument and returns also a java object but when i user
    any user defined object then it gives exception. if in the argument i used user
    defined object then it is not able to call that method telling NoSuchMethodException.
    Is there any way to use user defined object as an argument to MBean method?
    can anyone please help us as we r in the final stage of the project?
    Thanks
    Lakshmi

    "Lakshmi Padhy" <[email protected]> wrote in message
    news:3fc2f50c$[email protected]..
    >
    I developed our own Authentication, Identity Assertion & Authorizationproviders
    for weblogic 8.1 SP1. In the authenticator MBean i have one method whichtakes
    user defined object as a argument and returns a user defined object. i amable
    to call all the methods which takes java objects(for example: String, int,ArrayList,
    HashMap, Etc...) as a argument and returns also a java object but when iuser
    any user defined object then it gives exception. if in the argument i useduser
    defined object then it is not able to call that method tellingNoSuchMethodException.
    >
    Is there any way to use user defined object as an argument to MBeanmethod?
    >
    I seem to remember that jmx only supports scalar datatypes. Ask in the
    weblogic.developer.interest.management newsgroup.

  • How to handle user-defined character in java??

    Dear all,
    i am new to internalization and localization.
    i am now porting an application from vb.net to java.
    the vb.net version can handle (input/output [to file, screen, database] ...etc) user defined character (charset is big5 + extra characters) transparantly.
    what i need to do is update the file EUDC.tte in windows (which seems have native charset codepoint to unicode codepoint info) ..
    could anybody tell me how can i achieve the same thing in java??
    thank you.
    lsp

    pslkwan wrote:
    Hi DrClap,
    it seems i need to write CharsetProvider, charsetdecoder, charsetencoder...etc...
    do you have example / sample for me to follow???? I googled for "java charsetprovider example" and got one as the first hit.
    btw, is it possible to replace the default big5 charset implementation with my own one so that the existing code can take advantage of the my own charset classes???You don't want to replace the default, just specify which one to use when needed. Pretty much any operation that involves charsets lets you specify which one to use. If your current code relies on the default, then you should change that.

  • Java: how to handle user-defined character (UDC)??

    Dear all,
    i am new to internalization and localization.
    i am now porting an application from vb.net to java.
    the vb.net version can handle (input/output [to file, screen, database] ...etc) user defined character (charset is big5 + extra characters) transparantly.
    what i need to do is update the file EUDC.tte in windows (which seems have native charset codepoint to unicode codepoint info) ..
    how can i achieve the same thing in java??
    thank you.
    lsp

    pslkwan wrote:
    Hi DrClap,
    it seems i need to write CharsetProvider, charsetdecoder, charsetencoder...etc...
    do you have example / sample for me to follow???? I googled for "java charsetprovider example" and got one as the first hit.
    btw, is it possible to replace the default big5 charset implementation with my own one so that the existing code can take advantage of the my own charset classes???You don't want to replace the default, just specify which one to use when needed. Pretty much any operation that involves charsets lets you specify which one to use. If your current code relies on the default, then you should change that.

  • Help! Can I have user defined extension function?

    Under SQL Sever XML, I can write a xsl script like this:
    <msxsl:script language="JScript" implements-prefix="myfunc">
    function getvalue(nodelist,name,istag){
    var subNode=nodelist.nextNode();
    if(subNode == null) return('?');
    if(istag == '') name = '@' + name;
    var value=subNode.getElementsByTagName(name);
    return((value == null)?'':value);
    </msxsl:script>
    and I can call this function in the xsl, obviously, msxsl supported by microsoft. I know that Oracle XML support Extension function, but you can tell here that I want a user defined function while not a predefined function. Can I have such feature with Oracle XML, and How? Thanks.

    Oracle XML support Extension function.
    For example:
    If we would like to import FAQDBUri.class with user-defined java functions, like TranslateDBUri(), we can write XSL file like this:
    <xsl:template match="/" xmlns:dburig="http://www.oracle.com/XSL/Transform/java/FAQDBuri">
    <xsl:variable name="urladd" select="dburig:TranslateDBUri($url)"/>

  • Handle user defined exception in stored procedure

    Dear all,
    I'm using JDev 11.1.1.4.0
    In my application I'm calling the stored procedure with only in parameters using the Example 37-9 http://download.oracle.com/docs/cd/E17904_01/web.1111/b31974/bcadvgen.htm#ADFFD1056
    In my stored procedure I have user defined exception, like:
    create or replace procedure ...
    AS
    e_otwarty     EXCEPTION;
    //some code
      EXCEPTION
        WHEN e_otwarty THEN
          dbms_output.put_line('Masz juz otwarty raport');
          // or what should I do here ??
    END;I want to display the message in the popup window in my ADF application. How can I do that ?
    Regards,
    Wojtek.

    raise_application_error(-20001, 'error message');
    Scott

  • How can I access user defined column(in query) inside the trigger?

    Hi
    I have 3 unions and each query displays different records on some criteria. I also have a column hard-coded
    Ex:
    select a.col1, a.col2,
    add as update
    from table1 a
    where ...
    union
    select a.col1, a.col2,
    change as update
    from table1 a
    where ...
    union
    select a.col1, a.col2,
    del as update
    from table1 a
    where ...
    And I need to display a column in the report only if update is Add. I was thinking of writing a format trigger for that field. But I do not know how can I access this user defined column named update in the trigger?
    Any help?

    Try ":update" minus the double-quotes. Ex:
        IF :update = 'add' THEN
          RETURN(TRUE);
        ELSE
          RETURN FALSE;
        END IF;
    You'll want to place your hard-coded values in single-quotes. Ex:
        select a.col1, a.col2,
        'add' as update
    - Brian

  • How can I set user-defined characteristics's range in pa cycle's receiver?

    I created user-defined characteristics in PA which have no check validation.
    When I create PA assessment cycle, I want to set it's range in cycle's receivers side.
    User-defined characteristics in PA which have no check validation don't have range selection function in cycle's receivers side.
    How can I set it's range in cycle's receivers side ?

    Hi,
    You can do the same by creating SETS. You can create the same from header menu at the time of entering receivers during creation of assessment cycles.
    Regards
    Hemant

  • Can I translate user defined table into mulilanguages

    Can I translate a particular field of my own data field into foreign languages in SAP B1?
    Actually I want to print shipping label in different langauages. And I want that address and the details of the shipping label transleted in a text file in order to print from command prompt.
    Pls help me . its urgent
    Thanks in advance

    Im not sure, if I understand you correct.
    I understood that you want to transalte the description of user defined field - ok?
    If yes, the only way is to move the UDF inside the form and based of selected language show correct description in label.

  • How can we add user defined fields in My Account Profile?

    Hi,
    When adding new field for user,user groups,my resource,organizations and request all exist in the drop down menu list but the MyAccount(In the page where we add user defined fields).
    Please help me to add user defined field in MyAccount also.
    Thanks in advance.

    Hi,
    As I said before it is not that straight forward.If you will decompile tcViewProfileAction .class using any java decompiler you will find out that data in setAccountProfile method is not getting set through formmetadata.xml . If you are well verse with struts then only you can achieve what you are trying to do.You need to extend tcViewProfileAction class and also tcViewProfileForm class and then you need to modify tjspViewProfileTiles.jsp .It will not be easy job.Usually in implementation we do not change action class until its absolutely required as oracle also do not recommend that so now its between you and your client to make a call if they want to go for such customization.I won't recommend you do that.
    Regards
    Nitesh

Maybe you are looking for

  • Problems with scrolling after mountain lion download.

    I just downloaded mountain lion today and ever since the download I am having issues with the scrolling for my magic mouse and trackpad. My problem is when I scroll down on my mouse or trackpad it actually goes up on the page and vice versa. I have s

  • Display Process Name in Form

    Hi, I have created one process with form scenario, i want to display the process name in my adobe form which i have created and i need the bind in form scenario Is there any ASR data element there?..for displaying process name in adobe form. Cheers,

  • UML modeling for class diagrams, could not generate code for modified diagr

    Hi, I'm using Java studio Enterprise for creating class diagrams and generating code from the UML using round trip engineering. I'm able to create class diagrams and generate code from the diagram. I tried modifying java code for classes and saved it

  • Adobe Flash keeps crashing for me!

    Hello! So this last week Firefox has been causing me to have some SERIOUS problems! From time to time I cant view any kind of videos or anything, it just makes my Firefox crash and not loading or anything. I cant even listen to my own music on my com

  • Query slow using SDO_GEOM package

    Hi, i've a query that extract this data from a table: SDO_GEOM.sdo_centroid (geometry, 0.5).sdo_point.x It's very, but very slow, about 15sec for 300 records. Remove this package from select it's very fast. Any ideas to how tuning spacial package?? T