Bug in oracle embedded http listener

Hi there,
I've discovered a bug in the Oracle embedded http listener for our Oracle on RHEL database version 11.1.0.6 where it will return HTTP-400 bad request errors if a cookie is created with a bare comma in the cookie value. To see for yourself, simply create an apex application with an open door authentication and enter a username with a comma in it - page 101 writes the username to a cookie, and then you get HTTP-400 errors.
I'll raise this as a bug at Oracle, but in the meantime I'm frantically trying to figure out a workaround. We have a production site using a standard Apache frontend that we link to Apex applications using mod_rewrite. There are other applications on the site (invision powerboard) which create cookies with bare commas, so we have no control over the creation of these maligned cookies. My thinking is that we might be able to use mod_rewrite rules to weed out the offending cookies and encode the commas so that things continue to work.
Can anyone assist with a workaround?
Many thanks,
Mike

Hi Mike,
perhaps you can try to modify the cookies on the client?
http://scripts.franciscocharrua.com/javascript-cookies.php
Or is it already too late so that you cannot even run the first procedure to inject the javascript code into the first page?
Or, you could configure the DAD to run a stored procedure before anything else:
PlsqlBeforeProcedure
http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_epg.htm
If this is already too late, your only option seems to be to use an Apache as a proxy and modify the cookie value there.
Regards,
~Dietmar.

Similar Messages

  • IPlanet as Oracle AS HTTP Listener?

    Hello!
    One of our customer wants and Oracle Application made with
    Oracle Application Server, but somehow they only accept
    iPlanet Web Server on the WWW side or as HTTP listener in
    Oracle terminology.
    Could any iPlanet WWW server be used as a HTTP front-end
    on Oracle AS?
    thanks
    Robert

    Hello,
    Although this setup is not tested, I believe iPlanet Web Server(iWS)
    will work with OAS. If you still think you would require more
    information, I think it's best to verify with http://technet.oracle.com
    and click on documentation. You must have registered with otn, which is
    free, for accessing the documents.
    Regards
    Raj
    Robert Kuszinger wrote:
    Hello!
    One of our customer wants and Oracle Application made with
    Oracle Application Server, but somehow they only accept
    iPlanet Web Server on the WWW side or as HTTP listener in
    Oracle terminology.
    Could any iPlanet WWW server be used as a HTTP front-end
    on Oracle AS?
    thanks
    Robert

  • SDO API Bug? Oracle are you listening?

    In the Javadoc for the JGeometry it states the following for the createLinearPolygon...
    Creates a JGeometry that is a simple linear Polygon without holes. Note that if the supplied coordinate array does not close itself, meaning the last coordinate is not the same as the first, a new coordinate will be appended to the end of the input coordinates array. the new coordinate repeats the first one.
    Any time I add a geometry to the database that does not close itself I get a coordinate of 0,0 appended to the SDO object in the database.
    Anyone else have the experience? Am I doing something wrong or are the API's incorrect? Easy fix just was curious.
    Thanks

    Siva,
    Pardon my newbie like question, but I am assuming you mean Oracle 10.1.0.3 (10g?) and not API version 10.1.0.3?
    Thanks much

  • Oracle HTTP listener not working...

    hi
    i have configured Oracle App Svr 4.0.8 on a Windows NT machine.
    (sorry for putting this Qs in 9iAS forum, but i thought this was better than putting on forms forum).
    i am trying to deploy oracle forms on the web using OAS and forms server.
    my machine is named appsvr on the Intranet and 202.54.41.36 is its IP address on the Internet.
    i have configured http listener in the OAS at port 80.
    Using CGI method, i have a static1.html file created and this shows the form in the browser when accessed on the intranet.
    ie. http://appsvr:80/forms60/static1.html gives desired results - shows working form.
    however, when accessed from the Internet, http://202.54.41.36:80/forms60/static1.html, i get http 400 - Bad Request error. The full message text is given below.
    Pls advice where i may be going wrong...
    ==================
    The page cannot be found
    The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
    Please try the following:
    If you typed the page address in the Address bar, make sure that it is spelled correctly.
    Open the 202.54.41.36 home page, and then look for links to the information you want.
    Click the Back button to try another link.
    Click Search to look for information on the Internet.
    HTTP 400 - Bad Request
    Internet Explorer
    =========================
    thanks
    ashwin

    corrected the problem...
    it was due to settings in the Network part of the listener which did not give the IP address of the Internet...

  • Errors when trying to start HTTP Listener (Oracle Developer Suite 10g)

    Good day everyone,
    I'm trying to do development on some forms in Oracle Forms Developer 10g and I'm having issues creating a local development environment. When I try to run a form in Oracle Forms Developer 10g, I get an error message telling me that my HTTP Listener can not be found. When I try to run my HTTP Listener, I get two error messages:
    Error initializing server: IO error reading system
    Fatal error: server exiting
    Would someone help me with the configuration of my local development environment? I need the environment so I can utilize the debugging tools in Oracle Forms Developer 10g (currently I deploy the form to the Development environment and trouble shoot any issues I have).

    Take a look at Forms: How to Configure Forms Builder to run forms locally. After you have configured your system, then you will need to start the OC4J instance before you can run your form.
    Craig...
    Edited by: CraigB on Apr 17, 2012 12:16 PM

  • Post instal Rapidwiz linux64 bit errors RW-50015 HTTP Listener

    New Installation of R12.1.1 on Linux x86-64
    using zip files from e-delivery
    created staging dir successfully
    Ran rapidwiz
    selected new Installation and Express Installation
    Rapidwiz worked and installed all files but it failed at the end during validation for post install
    when showed screen for Validate System Config the post-install check:
    I had error in HTTP (RW-50015: Error: - HTTP Listener is not responding)
    details of error:
    HTTP
    checking URL = http://localhost.localdomain:8000
    RW-50015: Error: - HTTP Listener is not responding. The service might not have started on the port yet. Please check the service and use the retry button.
    some other facts,
    I cannot run sqlplus, no access to database.
    it seems environemt variables are not set as echo shows empty value.
    since the HTTP RW-50015 error is known issue, i have tried several solutions, but no luck:
    tried solution 1:
    I was able to run APPSVIS_localhost.env
    however i canNOT connect to sqlplus
    therefore no access to database:
    pwd
    /d01/oracle/VIS/apps/apps_st/appl
    [root@localhost appl]# chmod 777 APPSVIS_localhost.env
    [root@localhost appl]# ./APPSVIS_localhost.env
    [oracle@localhost appl]$ ./APPSVIS_localhost.env
    [applmgr@localhost appl]$ ./APPSVIS_localhost.env
    [applmgr@localhost appl]$ cd /d01/oracle/VIS/db/tech_st/11.1.0/bin
    [applmgr@localhost bin]$ ./sqlplus
    ./sqlplus: error while loading shared libraries: /d01/oracle/VIS/db/tech_st/11.1.0/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
    [applmgr@localhost bin]$
    when echo oracle env variables they are all empty:
    for example:
    [oracle@localhost scripts]$ echo $APPL_TOP
    Then I tried commands $ADMIN_SCRIPTS_HOME/adstpall.sh apps/apps and restart with adstrtal.sh:
    couldn't even use script v as I got error:
    [oracle@localhost VIS_localhost]$ cd /d01/oracle/VIS/inst/apps/VIS_localhost/admin/scripts
    [oracle@localhost scripts]$ ls adst*
    adstpall.sh adstrtal.sh
    [oracle@localhost scripts]$ ./adstpall.sh apps/apps
    You are running adstpall.sh version 120.10
    adstpall.sh: Database connection could not be established. Either the database is down or the APPS credentials supplied are wrong.
    USAGE:      adstpall.sh <appsusername/appspassword>
    adstpall.sh: exiting with status 1
    also in another question in forum
    RW-50015: Error: post R12 installation on Oracle EL 5 (X64)
    it is asked to try this:
    ... commented out the following line:
    #eval ohs_start -DSSL "$args"
    ... and replaced it with:
    eval ohs_start "$args"
    I have not tried this, i think my issue is with database and sql which cannot be accessed.
    solution 2:
    Tried workaround from Note 943443.1
    but first i cannot see any file with # ls libdb*:
    [root@localhost inst]# cd /usr/lib
    [root@localhost lib]# ls libdb*
    ls: cannot access libdb*: No such file or directory
    after running the command from the Note:
    [root@localhost lib]# pwd
    /usr/lib
    [root@localhost lib]# ln -s /usr/lib/libgdbm.so.2.0.0 /usr/lib/libdb.so.2
    now, I can see libdb.so.2:
    [root@localhost lib]# pwd
    /usr/lib
    [root@localhost lib]# ls libdb*
    libdb.so.2
    then click on Retry in the rapidwiz screen where it showed the error (Validate System Config)
    but still fails with same error:
    HTTP
    checking URL = http://localhost.localdomain:8000
    RW-50015: Error: - HTTP Listener is not responding. The service might not have started on the port yet. Please check the service and use the retry button.
    solution 3:
    tried to stop and restart services:
    [oracle@localhost VIS_localhost]$ pwd
    /d01/oracle/VIS/db/tech_st/11.1.0/appsutil/scripts/VIS_localhost
    [oracle@localhost VIS_localhost]$ ls -ltr add*
    -rwx------. 1 oracle oracle 2785 2009-12-02 17:37 addbctl.sh
    -rwx------. 1 oracle oracle 4119 2009-12-02 17:37 addlnctl.sh
    [oracle@localhost VIS_localhost]$ ./addbctl.sh stop
    You are running addbctl.sh version 120.1
    Shutting down database VIS ...
    sqlplus: error while loading shared libraries: /d01/oracle/VIS/db/tech_st/11.1.0/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
    addbctl.sh: exiting with status 127
    [oracle@localhost VIS_localhost]$ ./addbctl.sh stop
    You are running addbctl.sh version 120.1
    Shutting down database VIS ...
    sqlplus: error while loading shared libraries: /d01/oracle/VIS/db/tech_st/11.1.0/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
    addbctl.sh: exiting with status 127
    your help is highly appreciated
    thank you!

    Thank you
    items 1, 2 and 3 are answers to your questions,
    I think you pointed to an important section as i have feeling something is
    wrong with this simple default choice of localhost.localdomain.
    please also see #4 as it has new information (the rapidwiz error are fixed now
    but i still don't have access to anything)
    1-) file: /etc/hosts
    i have 2 lines in this file
    [oracle@localhost etc]$ pwd
    /etc
    [oracle@localhost etc]$ cat hosts
    127.0.0.1 localhost.localdomain localhost
    ::1 localhost.localdomain localhost localhost6.localdomain6
    [oracle@localhost etc]$
    2-) file: /etc/sysconfig/network
    i have 2 lines in this file:
    [oracle@localhost sysconfig]$ pwd
    /etc/sysconfig
    [oracle@localhost sysconfig]$ cat network
    NETWORKING=yes
    HOSTNAME=localhost.localdomain
    3-) per step 3- of note 761564.1 I deleted file (using root accout):
    /etc/sysconfig/networking/profiles/default/network
    (before deleting i made a backup network-bak, just in case):
    [oracle@localhost default]$ pwd
    /etc/sysconfig/networking/profiles/default
    [oracle@localhost default]$ ls -ltr
    total 16
    -rw-r--r--. 3 root root 230 2009-11-29 19:12 ifcfg-eth0
    -rw-r--r--. 2 root root 112 2009-12-02 16:42 hosts
    -rw-r--r-- 1 root root 53 2009-12-03 21:31 resolv.conf
    -rw-r--r-- 1 root root 31 2009-12-04 02:37 network-bak
    [oracle@localhost default]$
    4-)
    I made so many changes to dir access permissions using chmod 777,
    also i checked mark some of the apache entries in Linux > System > Admin > SE Linux Management.
    after that i accidently clicked on the "Back" button (on the rapidwiz screen where it had
    the errors),
    then I clicked Next button ( which of course went to the same screen I had error on )
    then I clicked on Retry button and it appeared it fixed errors.
    Rapidwiz confirmed all sections are ok,
    no errors anymore.
    (Previously i always clicked on Retry button only, but this time, clicked on Back, then, Next button,
    then Retry button).
    I am not even sure changes i made fixed the errors or this is just a bug in rapidwiz,
    but right now, I completed rapidwiz and all errors are fixed,
    however I still don't have access to anything:
    Started firefox and try to go to:
    http://localhost.localdomain:8000/QA_HTML/AppsLogin
    it says Unable to connect
    (by the way do I have to download IE and try in there or should it work in Firefox as well ?)
    I am unable to run sqlplus
    I don't have anyvalue in the environment variables, they are still empty.
    I also ran steps 2.2 and 2.3 from note 3877859.1 (using AutoConfig to manage System Config EBS R12):
    2.2
    [oracle@localhost /]$ sh /d01/oracle/VIS/db/tech_st/11.1.0/appsutil/scripts/VIS_localhost/adautocfg.sh
    AutoConfig completed with errors.
    2.3
    [oracle@localhost /]$ sh /d01/oracle/VIS/inst/apps/VIS_localhost/admin/scripts/adautocfg.sh
         Configuring IES_TOP.......COMPLETED
         Configuring CSD_TOP.......COMPLETED
         Configuring IGC_TOP.......COMPLETED
    AutoConfig completed with errors.
    still same problem, didn't change results.
    Thank you for your help!

  • Bug in Oracle JDBC Pooling Classes - Deadlock

    We are utilizing Oracle's connection caching (drivers 10.2.0.1) and have found a deadlock situation. I reviewed the code for the (drivers 10.2.0.3) and I see the same problem could happen.
    I searched and have not found this problem identified anywhere. Is this something I should post to Oracle in some way (i.e. Metalink?) or is there a better forum to get this resolved?
    We are utilizing an OCI driver with the following setup in the server.xml
    <ResourceParams name="cmf_toolbox">
    <parameter>
    <name>factory</name>
    <value>oracle.jdbc.pool.OracleDataSourceFactory</value>
    </parameter>
    <parameter>
    <name>driverClassName</name>
    <value>oracle.jdbc.driver.OracleDriver</value>
    </parameter>
    <parameter>
    <name>user</name>
    <value>hidden</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>hidden</value>
    </parameter>
    <parameter>
    <name>url</name>
    <value>jdbc:oracle:oci:@PTB2</value>
    </parameter>
    <parameter>
    <name>connectionCachingEnabled</name>
    <value>true</value>
    </parameter>
    <parameter>
    <name>connectionCacheProperties</name>
    <value>(InitialLimit=5,MinLimit=15,MaxLimit=75,ConnectionWaitTimeout=30,InactivityTimeout=300,AbandonedConnectionTimeout=300,ValidateConnection=false)</value>
    </parameter>
    </ResourceParams>
    We get a deadlock situation between two threads and the exact steps are this:
    1) thread1 - The OracleImplicitConnectionClassThread class is executing the runAbandonedTimeout method which will lock the OracleImplicitConnectionCache class with a synchronized block. It will then go thru additional steps and finally try to call the LogicalConnection.close method which is already locked by thread2
    2) thread2 - This thread is doing a standard .close() on the Logical Connection and when it does this it obtains a lock on the LogicalConnection class. This thread then goes through additional steps till it gets to a point in the OracleImplicitConnectionCache class where it executes the reusePooledConnection method. This method is synchronized.
    Actual steps that cause deadlock:
    1) thread1 locks OracleImplicitConnectionClass in runAbandonedTimeout method
    2) thread2 locks LogicalConnection class in close function.
    3) thread1 tries to lock the LogicalConnection and is unable to do this, waits for lock
    4) thread2 tries to lock the OracleImplicitConnectionClass and waits for lock.
    ***DEADLOCK***
    Thread Dumps from two threads listed above
    thread1
    Thread Name : Thread-1 State : Deadlock/Waiting on monitor Owns Monitor Lock on 0x30267fe8 Waiting for Monitor Lock on 0x509190d8 Java Stack at oracle.jdbc.driver.LogicalConnection.close(LogicalConnection.java:214) - waiting to lock 0x509190d8> (a oracle.jdbc.driver.LogicalConnection) at oracle.jdbc.pool.OracleImplicitConnectionCache.closeCheckedOutConnection(OracleImplicitConnectionCache.java:1330) at oracle.jdbc.pool.OracleImplicitConnectionCacheThread.runAbandonedTimeout(OracleImplicitConnectionCacheThread.java:261) - locked 0x30267fe8> (a oracle.jdbc.pool.OracleImplicitConnectionCache) at oracle.jdbc.pool.OracleImplicitConnectionCacheThread.run(OracleImplicitConnectionCacheThread.java:81)
    thread2
    Thread Name : http-7320-Processor83 State : Deadlock/Waiting on monitor Owns Monitor Lock on 0x509190d8 Waiting for Monitor Lock on 0x30267fe8 Java Stack at oracle.jdbc.pool.OracleImplicitConnectionCache.reusePooledConnection(OracleImplicitConnectionCache.java:1608) - waiting to lock 0x30267fe8> (a oracle.jdbc.pool.OracleImplicitConnectionCache) at oracle.jdbc.pool.OracleConnectionCacheEventListener.connectionClosed(OracleConnectionCacheEventListener.java:71) - locked 0x34d514f8> (a oracle.jdbc.pool.OracleConnectionCacheEventListener) at oracle.jdbc.pool.OraclePooledConnection.callImplicitCacheListener(OraclePooledConnection.java:544) at oracle.jdbc.pool.OraclePooledConnection.logicalCloseForImplicitConnectionCache(OraclePooledConnection.java:459) at oracle.jdbc.pool.OraclePooledConnection.logicalClose(OraclePooledConnection.java:475) at oracle.jdbc.driver.LogicalConnection.closeInternal(LogicalConnection.java:243) at oracle.jdbc.driver.LogicalConnection.close(LogicalConnection.java:214) - locked 0x509190d8> (a oracle.jdbc.driver.LogicalConnection) at com.schoolspecialty.cmf.yantra.OrderDB.updateOrder(OrderDB.java:2022) at com.schoolspecialty.cmf.yantra.OrderFactoryImpl.saveOrder(OrderFactoryImpl.java:119) at com.schoolspecialty.cmf.yantra.OrderFactoryImpl.saveOrder(OrderFactoryImpl.java:67) at com.schoolspecialty.ecommerce.beans.ECommerceUtil.saveOrder(Unknown Source) at com.schoolspecialty.ecommerce.beans.ECommerceUtil.saveOrder(Unknown Source) at com.schoolspecialty.ecommerce.beans.UpdateCartAction.perform(Unknown Source) at com.schoolspecialty.mvc2.ActionServlet.doPost(ActionServlet.java:112) at com.schoolspecialty.ecommerce.servlets.ECServlet.doPostOrGet(Unknown Source) at com.schoolspecialty.ecommerce.servlets.ECServlet.doPost(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at com.schoolspecialty.ecommerce.servlets.filters.EcommerceURLFilter.doFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534)

    We used a documented option to abandon connects in the case of an unforeseen error. The consequence of using this option was not a graceful degradation in performance but a complete lockup of the application. The scenario in which we created a moderate number of abandoned connections was a rare error scenario but a valid test.
    How could this not be a bug in the Oracle driver? Is dead-lock a desireable outcome of using an option? Is dead-lock ever an acceptable consequence of using a feature as documented?
    Turns out other Oracle options to recover from an unexpected error also incur a similar deadlock (TimeToLiveTimeout).
    I did a code review of the decompiled drivers and it clearly shows the issue, confirming the original report of this issue. Perhaps you have evidence to the contrary or better evidence to support your statement "not a bug in Oracle"?
    Perhaps you are one of the very few people who have not experience problems with Oracle drivers? I've been using Oracle since 7.3.4 and it seems that I have always been working around Oracle JDBC driver problems.
    We are using Tomcat with the OracleDataSourceFactory.

  • Bug in Oracle JDBC thin driver (parameter order)

    [ I'd preferably send this to some Oracle support email but I
    can't find any on both www.oracle.com and www.technet.com. ]
    The following program illustrates bug I found in JDBC Oracle thin
    driver.
    * Synopsis:
    The parameters of prepared statement (I tested SELECT's and
    UPDATE's) are bound in the reverse order.
    If one do:
    PreparedStatement p = connection.prepareStatement(
    "SELECT field FROM table WHERE first = ? and second = ?");
    and then bind parameter 1 to "a" and parameter to "b":
    p.setString(1, "a");
    p.setString(2, "b");
    then executing p yields the same results as executing
    SELECT field FROM table WHERE first = "b" and second = "a"
    although it should be equivalent to
    SELECT field FROM table WHERE first = "a" and second = "b"
    The bug is present only in "thin" Oracle JDBC driver. Changing
    driver to "oci8" solves the problem.
    * Version and platform info:
    I detected the bug using Oracle 8.0.5 server for Linux.
    According to $ORACLE_HOME/jdbc/README.doc that is
    Oracle JDBC Drivers release 8.0.5.0.0 (Production Release)
    * The program below:
    The program below illustrates the bug by creating dummy two
    column table, inserting the row into it and then selecting
    the contents using prepared statement. Those operations
    are performed on both good (oci8) and bad (thin) connections,
    the results can be compared.
    You may need to change SID, listener port and account data
    in getConnecton calls.
    Sample program output:
    $ javac ShowBug.java; java ShowBug
    Output for both connections should be the same
    --------------- thin Driver ---------------
    [ Non parametrized query: ]
    aaa
    [ The same - parametrized (should give one row): ]
    [ The same - with buggy reversed order (should give no answers):
    aaa
    --------------- oci8 driver ---------------
    [ Non parametrized query: ]
    aaa
    [ The same - parametrized (should give one row): ]
    aaa
    [ The same - with buggy reversed order (should give no answers):
    --------------- The end ---------------
    * The program itself
    import java.sql.*;
    class ShowBug
    public static void main (String args [])
    throws SQLException
    // Load the Oracle JDBC driver
    DriverManager.registerDriver(new
    oracle.jdbc.driver.OracleDriver());
    System.out.println("Output for both connections should be the
    same");
    Connection buggyConnection
    = DriverManager.getConnection
    ("jdbc:oracle:thin:@localhost:1521:ORACLE",
    "scott", "tiger");
    process("thin Driver", buggyConnection);
    Connection goodConnection
    = DriverManager.getConnection ("jdbc:oracle:oci8:",
    "scott", "tiger");
    process("oci8 driver", goodConnection);
    System.out.println("--------------- The end ---------------");
    public static void process(String title, Connection conn)
    throws SQLException
    System.out.println("--------------- " + title + "
    Statement stmt = conn.createStatement ();
    stmt.execute(
    "CREATE TABLE bug (id VARCHAR(10), val VARCHAR(10))");
    stmt.executeUpdate(
    "INSERT INTO bug VALUES('aaa', 'bbb')");
    System.out.println("[ Non parametrized query: ]");
    ResultSet rset = stmt.executeQuery(
    "select id from bug where id = 'aaa' and val = 'bbb'");
    while (rset.next ())
    System.out.println (rset.getString (1));
    System.out.println("[ The same - parametrized (should give one
    row): ]");
    PreparedStatement prep = conn.prepareStatement(
    "select id from bug where id = ? and val = ?");
    prep.setString(1, "aaa");
    prep.setString(2, "bbb");
    rset = prep.executeQuery();
    while (rset.next ())
    System.out.println (rset.getString (1));
    System.out.println("[ The same - with buggy reversed order
    (should give no answers): ]");
    prep = conn.prepareStatement(
    "select id from bug where id = ? and val = ?");
    prep.setString(1, "bbb");
    prep.setString(2, "aaa");
    rset = prep.executeQuery();
    while (rset.next ())
    System.out.println (rset.getString (1));
    stmt.execute("DROP TABLE bug");
    null

    Horea
    In the ejb-jar.xml, in the method a cursor is closed, set <trans-attribute>
    to "Never".
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name></ejb-name>
    <method-name></method-name>
    </method>
    <trans-attribute>Never</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    Deepak
    Horea Raducan wrote:
    Is there a known bug in Oracle JDBC thin driver version 8.1.6 that would
    prevent it from closing the open cursors ?
    Thank you,
    Horea

  • What should be configured as channel in Oracle CEP HTTP adapter for remote publishing?

    Hi,
    Below is the adapter configuration that I have for Oracle CEP HTTP adapter for remote publishing. What exactly should be configured in <channel> here? In the oracle documentation example, it only says /channel2 as an example.
    Below is the HTTP adapter configuration file that I have created.
    <?xml version="1.0" encoding="UTF-8"?>
    <wlevs:config xmlns:wlevs="http://www.bea.com/ns/wlevs/config/application">
        <http-pub-sub-adapter>
            <name>HttpPostAdapter</name>
            <server-url>http://localhost:8080/RESTfulWS/rest/UserInfoService/post/jsonstream</server-url>
            <channel>/RESTfulWS</channel>
            <event-type>com.wipro.event.ResultEvent1</event-type>
        </http-pub-sub-adapter>
    </wlevs:config>
    '/RESTfulWS' in my above configuration is the context-root of my rest service.But this is not working so I would like someone to help me understand this configuration.
    Many thanks.
    Regards
    Sowmya

    Hi, Sowmya,
    From your configuration
    Is the http://localhost:8080/RESTfulWS/rest/UserInfoService/post/jsonstream httppubsub server? I don't think the oep http pub adapter can publish event to rest service.
    For http pub adapter, you can take a look at fx sample, it publishes events to a embedded http pub/sub server of oep.
    Thanks,
    Gala

  • HTTP Listener Problem

    i write this post also Apex forum but i couldnt get any answer for weeks. I guess this is a hard question.
    Re: i can't reach the remote host
    as i posted above url, i cannot reach the remote host via typing host address in browser. I can connect in sqlplus, plsql, there is no browser. But i cannot reach that remote host from browser.
    I did:
    installed the apex 3.1.1 successfully and i validate it.
    i also run the apex_epg_config file.
    set the http port with dbms_xdb.sethttpport functionso, browser said to me "cannot find server". I am posting result of "lsnrctl status", so it might guide you.
    fatih@oracle $ lsnrctl status
    LSNRCTL for Solaris: Version 11.1.0.6.0 - Production on 11-AUG-2008 18:51:06
    Copyright (c) 1991, 2007, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=fatih)(PORT=1529)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Solaris: Version 11.1.0.6.0 - Production
    Start Date 01-AUG-2008 11:24:54
    Uptime 10 days 7 hr. 26 min. 12 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /dwh0/app/oracle/product/11.1.0.1/network/admin/listen
    er.ora
    Listener Log File /dwh0/app/oracle/product/diag/tnslsnr/fatih/listener/a
    lert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=fatih)(PORT=1529)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "owb11" has 1 instance(s).
    Instance "owb11", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    i think that a line that includes http listening is missing. Because i have another machine, i can connect it from sqlplus,plsql,browser. And i typed "lsnrctl status" in its terminal the http listener line is seeming as this :
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=XXXHOST.tcelldomain)(PORT=8082))(Presentation=HTTP)(Session=RAW))
    As i said, above line is not seeming first machine.
    What do you think about it?
    thanks for responses.

    In general, APEX can be accessed either by using the Listener/DBMS_XDB or the Apache HTTP server access.
    It appears that you want to use the Listener/DBMS_XDB access. In which case, the theory is:
    User requests connection to host:port
    Listener on 'host' listens on port, as directed by DBMS_XDB
    Listener passes request to DBMS_XDB (using shared server technique) which passes it to DBMS_EPGTo get listener to monitor the port, you need to use DBMS_XDB to register the http (or ftp) port to the listener. That is done using the dbms_xdb.gethttpport and verified using dbms_xed.gethttpport
    Refer to the DBMS_XDB docs for details. http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_xdb.htm#sthref8053
    Check the output of
    select dbms_xdb.gethttpport() from dual;
    C:\temp>sqlplus system/oracle
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Aug 11 11:07:34 2008
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> select dbms_xdb.gethttpport() from dual;
    DBMS_XDB.GETHTTPPORT()
                      8080
    SQL>

  • HTTP Listener connection problem

    Hi
    I am using Oracle 9i, and I'm trying to run a form using the Forms Builder application in the developer suite. I start the OC4J Instance before I start the Forms Builder application but when I try to run a form I get an error message displaying the following message:
    FRM-10142: The HTTP Listener is not running on [computer name] at port 8888. Please start your listener or check your runtime preferences.
    I have checked my runtime preferences thru the Edit> Preferences menu and I don't have anything entered on the "Runtime" tab in the Preferences dialog box, should I? If I should what should I have entered for this preference?
    I have administrator rights for my account. I am running Windows XP Pro with SP2.
    I would appreciate any help with this problem. Thank you in advance.
    Jo

    From Metalink:
    Note:234537.1
    Subject: Getting FRM-10142 Running a Form in Forms 9i Builder
    fact: Oracle Forms Developer 9.0.2
    fact: Oracle Forms 9i Builder
    symptom: Running forms fails
    symptom: FRM-10142: The HTTP Listener is not running on <host> at
    port 8888
    symptom: Please start the listener or check your runtime preferences
    cause: Unlike Forms 6i, Forms 9i does not support client-server. A fmb run
    from the Forms Builder is a 'web deployed form.'
    To do this Forms 9i Builder needs to integrate with some form of HTTP Listener.
    This is provided by another component of the Oracle 9iDS Rel 2 install - the
    OC4J (Oracle Container For J2EE). If there is no HTTP Listener started FRM-
    10142 occurs
    Once an OC4J instance has been started it acts as lightweight HTTP Listener
    enabling the developer to test the forms / reports application modules in a
    true web (even if only intranet) architecture.
    fix:
    1. Start the OC4J instance:
    -> In the Start menu click,
    Start\Programs\Oracle 9i Developer Suite\Reports Developer\Start OC4J Instance.
    OR
    -> Find and run the startinst.bat file in your Dev 9i home.
    It is usually in
    Dev9i home\j2ee\Oracle9iDS\
    On MS Windows an MS DOS dialogue should appear indicating that an OC4J instance
    has been started, simply minimize this DOS window to the taskbar
    2. Then try running the form again from Forms Builder
    3. Having finished with Forms Builder, to stop the OC4J instance:
    - use the Stop OC4J Instance shortcut, located in same place as the Start
    shortcut
    or shut the DOS window)
    Useful References
    Note 198297.1 How To Run Forms from Forms 9i Builder (9iDS Rel 2)?
    Note 234538.1 FRM-10063: Cannot find the help file, For Help on FRM-10142
    in Forms 9i
    Note 197481.1 Use Forms 9i Via Another OC4J Port Than The Default 8888

  • Http listener to port 8087, can't edit Database_homepage.url to fix link

    Installing Oracle XE on windows, I've used the instructions in the User Guide at "Changing the Listener Port Number for HTTP Connection Requests" to have the http listener run on port 8087. The last and optional step is to edit the file Database_homepage.url so that it knows about 8087. I'm not able to edit that file, I guess .url extension is a shortcut, and no text editor I have will open it. There must be a workaround, does anyone know what it is?

    I have no idea how I could not have figured that out...probably a good thing that I took most of the day off today. Thanks.

  • HTTP Listener problems

    Good day all,
    I have some problems regarding HTTP Listener:
    1. I cannot startup my www listener on port
    80, only Node Manager listener can be
    started. It gives out the errors:
    OWS-08811 & OWS-08851.
    2. I even cannot either view or edit the
    configuration for my HTTP listener.
    When I clicked on the properties such
    as Network, Server, etc, it just doesn't
    show up the configuration that I needed
    to see.
    I have already checked the environment variable: WV_GATEWAY_CFG, and it is in the right path. What could possibly went wrong?
    This is the specification of my installed products:
    Platform: Windows 2000
    DB: Oracle 8i Enterprise Edition 8.1.7.0.0
    Oracle 9ias 4.0.8.2.1a
    Any ideas? Thanks.
    - Alfian
    null

    As far as I know, there is no utilities to view the configuration as you have mentioned. All configurations are in configure files,
    they are
    httpd.conf
    jserv.conf
    jserv.properties
    zone.properties
    If someone does know such a utility, please tell me. :-)
    Regards,
    --tao                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Embedded HTTP Server Logging

    WebLogic's embedded HTTP server seems to buffer requests prior to dumping them to a log file. Documentation in previous releases indicated that this behavior could be controlled, however those options are missing from the current Oracle releases. How can I control the buffering of messages to the access.log file? I want to be able to watch requests in real-time as they are received by the server.

    Hi,
    Http Log Buffers improves the performance of the Server...still if you want to see the real time data at the same moment then you can try tuning the "*Log Buffer Size*".
    This attribute can be controlled from MBean: weblogic.management.configuration.WebServerMBean...which has Log Buffer Size attribute. The default value of this Attribute is "8 KB" ... Maximum value can be assigned upto "1024KB"....In your case if you want to see the immediate data then you can set it to "0 KB".
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com (WebLogic Wonders Are Here)
    Edited by: Jay SenSharma on Jan 31, 2010 10:30 PM

  • Oracle 10g DB listener does not work.

    I am in a terrible situation.
    My oracle 10g db listener often hang without any sign.
    For example , sometimes user sql select one minute ago , then the database could't be conected next minute .
    Even i command lsnrctl stop and start , the listener is over .
    I have to kill process then start listener.
    I try to find out what for , but i am don't know how to do .
    May any one tell my why or how ?
    Thank you .

    Thank you .
    I find how to happen the problem . It should be bug 4518443 .
    Now i have another question .
    I want to apply patch ,but fails.
    following is my command line :
    [oracle@localhost ~]$ opatch lsinventory
    -bash: opatch: command not found
    When I cd $oracle_home/OPatch , i find opatch file.
    Iam not sure why i can't apply patch .
    Thak you .

Maybe you are looking for