Connecting to https with jdk1.5 throwing InvalidAlgorithmParameterException

Hi,
My current system has jdk1.3, weblogic7.1 and axis1.1.
I have a simple class in java which I use to connect to https://*.jsp.
Here is the sample code.
System.setProperty("javax.net.ssl.trustStore","/usr/local/client.keystore");
System.setProperty"java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());   
System.setProperty("java.security.egd", "file:/dev/urandom");
URL url = new URL("https://xyz.com/index.jsp");
InputStreamReader isr = new InputStreamReader(url.openStream());
   char[] buf = new char[1024];
    int nread;
    while ((nread = isr.read(buf, 0, buf.length)) > 0)
      System.out.print(new String(buf, 0, nread));
    System.out.flush();This code works well in jdk1.3 with jsse.jar, jnet.jar, jcert.jar in the classpath and a keystore which has a trusted entry for https://xyz.com/
I use the first 4lines of the code in a Axis Client to transfer SOAP msgs in https protocol.
Now I am migrating to JDK1.5, WebLogic9.1 and Axis1.3.
I have the same keystore. I do not have jsse.jar, jnet.jar, jcert.jar because jdk1.5 has JSSE.
This same set of code is giving exception in JDK1.5.
Any Solution?
Thanks
Senthil
Here is the exception from the stack trace
Exception in thread "main" javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trust
Anchors parameter must be non-empty
at com.sun.net.ssl.internal.ssl.Alerts.getSSLExceptionAlerts.java:166)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1476)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1443)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1426)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1045)
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:402)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:170)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:913)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234)
at java.net.URL.openStream(URL.java:1007)
at axistest.URLReader.main(URLReader.java:24)
Caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
at sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:56)
at sun.security.validator.Validator.getInstance(Validator.java:146)
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:105)
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:167)
at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(SSLContextImpl.java:320)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:840)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:106)
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:495)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:433)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:815)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1025)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1038)

I have se same problem.
I do a System.setProperty("javax.net.ssl.trustStore", <path_filetruststore>)
and I have the same error.
Can you tell me if you revolve this problem? how?

Similar Messages

  • Can not seem to connect to an HTTPS with a port number

    Hello,
    I am building an application that needs to connect to an https with a port number...
    If the url is 'https://xxx.yyy.zzz' and the port is 5000 what would I use? I have found examples with out a port number but not with a port number...

    Ah... Like GET and SEND?
    That is definitely not correct in this situation.
    I think what is throwing me is that they specified
    the the host as 'https://xxx.yyy.zzz' where really
    they want an SSL connection... I think anyways...
    Generally there are two situations.
    1. There are two possible connections/protocols. One is SSL only and the other is https.
    2. They got carried away with the documentation. They added a section describing how SSL works. The protocol within SSL is still http. That is the definition of https though.

  • Apache is throwing NLS_LANG error when connecting via HTTPS using a DAD

    Our Apache server is throwing this error
    [Wed May  6 11:53:52 2009] [alert] [client 69.246.251.48] [ecid: 223452213192,1] mod_plsql: Unable to issue alter session : alter session set nls_language= "AMERICAN" ""
    every time we connect to the server using HTTPS (the connection is using DAD -- see below for the DAD configuration).
    If we run the same connection using HTTP it works fine.
    Anyone know why this would happen and how we can correct it?
    DAD configuration:
    <Location /plshes>
    SetHandler pls_handler
    Order allow,deny
    Allow from All
    AllowOverride None
    PlsqlDatabaseUsername hes
    PlsqlDatabasePassword @<password here>=
    PlsqlDatabaseConnectString hpprd NetServiceNameFormat
    PlsqlNLSLanguage AMERICAN_AMERICA_WE8ISO8859P1
    PlsqlAuthenticationMode PerPackageOwa
    PlsqlSessionStateManagement StatelessWithFastResetPackageState
    PlsqlErrorStyle ModPlsqlStyle
    PlsqlAlwaysDescribeProcedure Off
    </Location>

    @AMN -- I'm sort of in your camp in that I don't think I should have to remove that line (which I've not been able to test yet, by the way). It's possible removing the line might bypass the issue since the statement will never get issued in the first place, but I will know there is some sort of issue between HTTP and HTTPS that is throwing this error.
    To answer your questions:
    1. The portal database (IASDB) returns:
    PARAMETER VALUE
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CHARACTERSET WE8ISO8859P1
    2. What do you mean by "pls/hes"?
    3b. Which type of OAS? Can you clarify this question? OAS 10g (which means IASDB is version 9i). We run Apache using Webcache. This OAS serves up a custom application written largely in Forms and PL/SQL. Hmmm, maybe that's not what you mean by this question , though...
    3a. Explain our SSL configuration -- I'll try. I configfured this 4 to 5 years ago and haven't changed it at all other than to update the Oracle Wallet certificates every year or two. We have a single physical server that hosts our infrsastructure and mid-tier components and nothing more. As mentioned, Apache is our webserver and we run Oracle's Webcache. The twist in our configuration (and probably the source of this issue we are having is somewhere in this twist) is that we use one physical server and one Apache web server to serve up both HTTP and HTTPS using a virtual host within Apache and then we deifned multiple sites and origin servers with several redirects on various ports so we can handle SSL and non-SSL connections depending on whether they come to us externally (inTERnet) or internally (inTRAnet).
    Webcache sites (hes2 is the server name):
    Site Origin Server
    hes2:7778 hes2:7779
    www.OurWebSite.com:80 hes2:8000
    hes2:80 hes2:7779
    sso.OurWebSite.com:80 hes2:7777
    www.OurWebSite.com:443 hes2:4444
    Webcache origin servers:
    hes2:7777 HTTP
    hes2:7779 HTTP
    hes2:8000 HTTP
    www.OurWebSite.com:4444 HTTPS
    Webcache listen ports:
    443 HTTPS -- has Oracle wallet defined for it
    7778 HTTP
    80 HTTP
    Navigating to http://www.OurWebSite.com will redirect to hes2:8000, which is our virtual server (configuration below). Navigating to https://www.OurWebSite.com will redirect to hes2:4444.
    There is probably a little more I need to provide to answer the "SSL configuration" question, but I think that is enough for now as this is already a long response -- my apologies for that.
    Virtual host configuration in httpd.conf:
    <VirtualHost *:8000>
    ServerName www.OurWebsiteName.com
    ServerAdmin [email protected]
    Port 80
    DocumentRoot "/u01/app1/oracle/10gasm/Apache/Apache/htdocs"
    RewriteEngine on
    RewriteOptions inherit
    RewriteCond %{HTTP_HOST}!^www\.OurWebSite\.com [NC]
    RewriteRule ^/(.*) http://www.OurWebSite.com/$1 [L,R]
    OssoIpCheck off
    OssoConfigFile /u01/app1/oracle/10gasm/Apache/Apache/conf/osso/osso-www.conf
    <Location /portal>
    Order Deny,Allow
    Deny from all
    Allow from (list of allowed IP addresses)
    </Location>
    <Location /forms>
    Order Deny,Allow
    Deny from all
    Allow from (list of allowed IP addresses)
    </Location>
    <Location /discoverer>
    Order Deny,Allow
    Deny from all
    Allow from (list of allowed IP addresses)
    </Location>
    <Directory /u01/app1/oracle/10gasm/Apache/Apache/htdocs/docs>
    Order Deny,Allow
    Deny from all
    Allow from (list of allowed IP addresses)
    </Directory>
    <Directory /u01/app1/oracle/10gasm/Apache/Apache/htdocs/images>
    Order Deny,Allow
    Deny from all
    Allow from (list of allowed IP addresses)
    </Directory>
    <Directory /u01/app1/oracle/10gasm/Apache/Apache/htdocs/optiform>
    Order Deny,Allow
    Deny from all
    Allow from (list of allowed IP addresses)
    </Directory>
    LogLevel error
    ErrorLog "|/u01/app1/oracle/10gasm/Apache/Apache/logs/www_error_log 43200"
    </VirtualHost>

  • Oracle 8i connectivity with JDK1.4.2 - Failure - Help Needed

    I'm new to Java-ORACLE connectivity.
    I have installed Oracle 8i v8.1.5 in my Windows 2K Adv. Server with JDK1.4.2.
    But I could connect to Oracle from Java neither thru JDBC-ODBC nor JDBC thin drivers.
    What are the files ( or classes ) needed for connectivity and where can I download them.
    Do the Oracle8i 8.1.7 JDBC drivers have backward compatibility with Oracle8i 8.1.5 ?
    Please help me in this regard with utmost information possible and sample code.
    Thanks in Advance.
    Hara Gopal

    For your kind information (more)
    When I used JDBC-ODBC Bridge,
    It just gave an error message : [Microsoft ODBC for Oracle]
    and
    when I tried the command at DOS prompt,
    javap oracle.jdbc.driver.OracleDriver
    it gave message ERROR: javap oracle.jdbc.driver.OracleDriver could not be found
    Please Help me
    Hara Gopal

  • I have problem with the n500 with the sound throw the tv with the hdmi connection? any soluation

    hi there i have problem with the n500 when i connect the laptop to the TV throw hdmi cable it is start to make statics noise and it comes from the TV as long as it is connected to the AC POWER and it doesn't make this sound if it is running on battery . any solution please?

    Hi,
    have you tried to kill the session of the DA in the database?

  • HI i have macbook pro with OSX 10.8. I am facing typical problem with Wi- Fi , in school wi-fi it does'nt connects to http sites and connects only https  but in home wi-fi it connects to all all http and https sites. How fix this problem as I am new this

    HI i have macbook pro with OSX 10.8. I am facing typical problem with Wi- Fi , in school wi-fi it does'nt connects to http sites and connects only https as no security/proxy settings done but in home wi-fi it connects to all  http and https sites. How to fix this problem as I am new this operating system. Please any one help me in this as I have installed Delicious Library which is not working in school becoz it searches amzon http site.

    I would imagine that at school, you're required to connect through an HTTP proxy.
    From the menu bar, select
     ▹ System Preferences ▹ Network
    If the preference pane is locked, click the lock icon in the lower left corner and enter your password to unlock it. Then click the Advanced button and select the Proxies tab. Enter the proxy settings given to you by the network administrator. Click OK and then Apply.
    You may wish to create separate network locations for home and school. See the built-in help for instructions.

  • DB connection issue for Oracle 11g with jdk1.3

    Hi Experts,
    I have jdk1.3 installed. I need to connect to Oracle 11g, but there is no driver class for Oracle 11g with jdk1.3. I have Classes12.jar for Oracle 9i with jdk1.3. When I try to connect to Oracle 11g with jdk1.3 using Classes12.jar, I get the below error
    Error:
    java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=185599744)(ERR=12514)(ERROR_STACK=(ERROR=(CODE=12514)(EMFI=4))))
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:222)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:335)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:334)....
    Please help to solve this issue. This is urgent.
    Thanks.

    "connection refused" is quite a clear error message;
    - either you configure a wrong host name or port number
    - the database isn't even running
    - a firewall is blocking you
    In any case no connection can be made to the database, which is hardly a programming or driver problem. You'll have to figure out for whatever external reason you cannot create a connection to the database. Good luck.

  • HTTPS from JDK1.2.1 to JDK 1.4.1

    We are trying to connect application running on JDK1.2.1 to application in JDK 1.4.1. Both applications are in Oracle 9ias application server but with different JDK and different physical machines.
    We are getting following error while trying to access to application on JDK 1.4.1
    java.lang.ArrayStoreException
    at java.lang.System.arraycopy(System.java)
    at java.util.Vector.copyInto(Vector.java)
    at com.sun.net.ssl.internal.www.protocol.https.ChunkedInputStream.c(DashoA6275)
    at
    com.sun.net.ssl.internal.www.protocol.https.ChunkedInputStream.<init>(DashoA6275
    at com.sun.net.ssl.internal.www.protocol.https.HttpClient.b(DashoA6275)
    at com.sun.net.ssl.internal.www.protocol.https.HttpClient.a(DashoA6275)
    at
    com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.getInputStream(Da
    shoA6275)
    at Perc939CallServlet.callServlet(Perc939CallServlet.java:103)
    We are using Entrust certificate and we already put cacerts file from jdk1.4 to jdk1.2.1 in jdk/jre/lib/security.
    This application was working till we upgraded version from 1.3.1 to 1.4.1.
    Is this is problem of 1.4.1 and how do we resolve this?
    Small code that will help is as follows
    //Dynamic registration of SunJSSE provider
    System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
    Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
    System.setProperty("ssl.SocketFactory.provider", "com.sun.net.ssl.internal.ssl.Provider");
    //Create a URL object from the sURL String representation.
    uRemoteURL = new URL(sURL);
    //Get a connection to the remote object referred to by the URL
    ucConn = uRemoteURL.openConnection();
    //Set the DoOutput flag to true to use the URL connection for output
    ucConn.setDoOutput(true);
    ucConn.setRequestProperty("Pragma", "no-cache");
    oosToWrite = new ObjectOutputStream(ucConn.getOutputStream());
    //Write sInputString to the OutputStream which will be read from the remote servlet
    oosToWrite.writeObject(sInputString);
    oosToWrite.flush();
    oosToWrite.close();
    ucConn.connect();
    System.out.println("Connection " + ucConn.toString());
    if(ucConn==null)
         System.out.println("Connection is Null");
    System.out.println("getInputStream " + ucConn.getInputStream());
    if(ucConn.getInputStream()==null)
         System.out.println("ucConn.getInputStream() is Null");
    // Read the string object from the InputStream and return
    oisToRead = new ObjectInputStream(ucConn.getInputStream());
    Object oReadObject = oisToRead.readObject();
    sOutputString = oReadObject.toString();
    oisToRead.close();
    return (sOutputString);

    Basically ArrayStoreException comes :
    Indicate that an attempt has been made to store the wrong type of object into an array of objects.
    But in jdk1.4.1 it is said that
    No usage of java.lang.ArrayStoreException
    it may be problem of jdk1.4.1 and try to upgrade to 1.4.2
    Regards,
    Anand

  • Https with tomcat-page cannot be displayed error

    Hi,
    when trying to connect using https browser displays page cannot be displayed message
    I've created a self-signed certificate using the keytool program.
    I've uncommented the connecter element for port 8443 in the server.xml file. I'm using jdk1.6 and tomcat 5.5.
    please help as to what i might have done wrong
    thanks

    hi
    I am also facing the same problem. I have installed jre5 and tomcat 5.
    I am not getting any error in configuration. it is working when I am using
    http://localhost:8443
    but it is not working with
    https://localhost:8443
    please help me on this
    Thanks in Advance
    Dalwinder Kumar

  • XSQL with jdk1.2.2 - javai.dll error

    I successfully used the xsqlCommandLine utility with jdk1.1.7. When I try with jdk1.2.2, I get an error that javai.dll is not in the path. If I put javai.dll from the 1.1.7/jre/bin in my path, the xsqlCommandLine process runs without end, as if windows (NT) is searching for something else. I'm using the latest classes12.zip and the xmlparserv2.jar files. Any help?
    Thanks.

    robert strzelinski (guest) wrote:
    : Running a small sample program to test connection to Oracle
    : 7.3.4 server. Works OK using thin client connection mode. Using
    : OCI connection causes run-time exception labelled:
    : "java.exe - Unable To Locate DLL"
    : The text in the popup complains of not finding the dynamic link
    : library "javai.dll".
    : This DLL does not exist anywhere in my java distribution tree.
    : What is this library, where does it come from, and where should
    : it be found?
    : -- rjs
    no oracle jdbc oci driver for jdk 1.2 yet ---
    also --
    The only oracle JDBC driver that can run with JDK 1.2.x is in the
    OTN download area and is named "816SDK for JDK 1.2"
    it will work with the JDK 1.2.X using the JDBC 1.22 spec from JDK
    1.1.X.
    IT DOES NOT PROVIDE THE FULL JDBC 2.0 FEATURES/ FUNCTIONALITY
    THAT ARE INCLUDED IN THE JDK 1.2.X CLASSES.
    you're using a jdk 1.2.x/jdbc 2.0 feature -- which is anticipated
    to be included in the 816 driver later this year -- it's not in
    the "816SDK" JDBC driver you're using now..
    816SDK can be thought of as stepping stone between 815 using jdk
    1.1.x and 816 supporting jdk 1.1.x and 1.2.x.
    i think of it as "8.1.5 and a half" to avoid the naming confusion
    between "816sdk" and "816" .
    SEE the following FAQ link for additional details :
    http://technet.oracle.com/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm
    i hope this helps ...
    null

  • Problem with jdk1.3 and WLS5.1.0

    I have a problem a when I start WLS5.1.0 with jdk1.3.0
    I get AccessControlException when I try to create connection pool.
    <WebLogicServer> Failed to invoke startup
    class weblogic.jdbc.common.internal.JdbcStartup=weblogic.jdbc.common.inte
    rnal.JdbcStartup
    java.security.AccessControlException: access denied (java.sql.SQLPermission
    setLog)
    at
    java.security.AccessControlContext.checkPermission(AccessControlContext.java
    :272)
    at
    java.security.AccessController.checkPermission(AccessController.java:399)
    at
    java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
    at java.sql.DriverManager.setLogStream(DriverManager.java:397)
    at weblogic.jdbc.common.internal.JdbcInfo.initLog(JdbcInfo.java:66)
    atweblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:187)
    at
    weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
    at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java:109)
    at
    weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)Thanks in Advance,
    Anil
    RealPrompt, Inc.
    575 Harrison Street, Suite 206
    San Francisco, CA 94105
    415.546.5600 ext. 204
    415.546.0202 fax
    510.526.6508 Res.
    http://www.realprompt.com

    Check the documentation on how to correctly configure your policy file.
    Michael Girdley
    BEA Systems Inc
    "Anil Kumar Kona" <[email protected]> wrote in message
    news:39d29030$[email protected]..
    I have a problem a when I start WLS5.1.0 with jdk1.3.0
    I get AccessControlException when I try to create connection pool.
    <WebLogicServer> Failed to invoke startup
    class weblogic.jdbc.common.internal.JdbcStartup=weblogic.jdbc.common.inte
    rnal.JdbcStartup
    java.security.AccessControlException: access denied
    (java.sql.SQLPermission
    setLog)
    atjava.security.AccessControlContext.checkPermission(AccessControlContext.jav
    a
    :272)
    at
    java.security.AccessController.checkPermission(AccessController.java:399)
    at
    java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
    at java.sql.DriverManager.setLogStream(DriverManager.java:397)
    at
    weblogic.jdbc.common.internal.JdbcInfo.initLog(JdbcInfo.java:66)
    atweblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:187)
    at
    weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
    at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java:109)
    at
    weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)Thanks in Advance,
    Anil
    RealPrompt, Inc.
    575 Harrison Street, Suite 206
    San Francisco, CA 94105
    415.546.5600 ext. 204
    415.546.0202 fax
    510.526.6508 Res.
    http://www.realprompt.com

  • Oracle Connection Release Issue with Latest Driver not with the legacy one

    Hi
    I came across a scenario in the http://www.oracleutilities.com/Packages/dbms_alert.html, which discuss about the usage of the dbms_alert (Alert.java program). I used this example with classes12.jar and terminated the program abnormally without raising the signal. When i checked the oracle session in v$session table i didn't see any stale session, however when i used the ojdbc6_g.jar (followed the same step as i mentioned earlier for classses12.jar) i found the connection is not released. Any help/pointers would be highly appreciated
    More information of driver and db are given below
    classes12.jar
    Manifest-Version: 1.0
    Specification-Title: "Oracle JDBC driver classes for use with JDK1.2 and JDK1.3"
    Specification-Version: "Oracle JDBC Driver version - 9.0.2.0.0"
    Specification-Vendor: "Oracle Corporation" .
    Implementation-Title: "classes12 archives"
    Implementation-Version: "Oracle JDBC Driver version - 9.0.2.0.0"
    Implementation-Vendor: "Oracle Corporation"
    Implementation-Time: "Fri Jun 9 04:27:20 2006"
    ojdbc6_g.jar
    Manifest-Version: 1.0
    Implementation-Vendor: Oracle Corporation
    Implementation-Title: ojdbc6_g.jar
    Implementation-Version: Oracle JDBC Driver version - "11.1.0.7.0-Produ
    ction"
    Implementation-Time: Thu Aug 28 18:32:51 2008
    Specification-Vendor: Oracle Corporation
    Created-By: 1.6.0 (Sun Microsystems Inc.)
    Specification-Title: Oracle JDBC driver classes for use with JDK6
    Specification-Version: Oracle JDBC Driver version - "11.1.0.7.0-Produc
    tion"
    Main-Class: oracle.jdbc.OracleDriver
    Database & OS info
    OS : Linux bld-qa-ts26 2.6.32-200.13.1.el5uek #1 SMP Wed Jul 27 21:02:33 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
    ORACLE VERSION : 11GR2 ( 11.2.0.2.0 ) SE

    >
    I used this example with classes12.jar and terminated the program abnormally without raising the signal. When i checked the oracle session in v$session table i didn't see any stale session, however when i used the ojdbc6_g.jar (followed the same step as i mentioned earlier for classses12.jar) i found the connection is not released. Any help/pointers would be highly appreciated
    ORACLE VERSION : 11GR2 ( 11.2.0.2.0 ) SE
    >
    Let me see if I understand this right
    1. You are using an example from several years ago
    2. The example is for code that captures the LOGON to the database
    3. You don't mention anything about whether you got the LOGON notification but mention that you terminate the program abnormally.
    4. You use a jar file that has been obsolete for over 10 years
    5. You use the latest version of the Oracle database (which the jar file does not support)
    Did I get that right?
    And this surprises you?
    Why on Earth would you do this? You should be using an example and jar files that support and are supported by the Database and JDK that your are using. When you don't you can expect to have problems and many of them you will not be able to resolve.
    You don't provide the JDK version that you are using but there's a good chance it is the wrong version for this hodgepodge also.
    1. Use JDK 1.6
    2. Use OJDBC6 jar
    3. Use examples for Oracle 11g
    Here is the official Oracle JDBC page that shows the Oracle DB versions supported for each of the JDBC drivers available and also describes the JDBC jars and what JDK versions they support.
    http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-faq-090281.html#02_01
    >
    Which JDBC drivers support which versions of Oracle Database?
    JDBC 9.0.1 drivers can talk to RDBMS
    11.1.0
    classes12.jar
    Classes for the Thin and OCI drivers when using a Java 1.2 or 1.3 VM.
    >
    And here is the PL/SQL Packages and Types doc that has an example in Chap 18 DBMS_ALERT (not for LOGON)
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28419/d_alert.htm#BEHBCFCF
    >
    Examples
    Suppose you want to graph average salaries by department, for all employees. Your application needs to know whenever EMP is changed. Your application would look similar to this code:
    DBMS_ALERT.REGISTER('emp_table_alert');
    <<readagain>>:
    /* ... read the emp table and graph it */
    DBMS_ALERT.WAITONE('emp_table_alert', :message, :status);
    if status = 0 then goto <<readagain>>; else
    /* ... error condition */
    The EMP table would have a trigger similar to this:
    CREATE TRIGGER emptrig AFTER INSERT OR UPDATE OR DELETE ON emp
    BEGIN
    DBMS_ALERT.SIGNAL('emp_table_alert', 'message_text');
    END;
    When the application is no longer interested in the alert, it makes this request:
    DBMS_ALERT.REMOVE('emp_table_alert');
    This reduces the amount of work required by the alert signaller. If a session exits (or dies) while registered alerts exist, the alerts are eventually cleaned up by future users of this package.
    The example guarantees that the application always sees the latest data, although it may not see every intermediate value.

  • Hello all .. i have a big problem in my ipad version 5.1.1 that is when i connect the ipad with my computer the i tunes give me this message ( itunes couldnt connect to this ipad .an unknown error occurred (0xE8000012).) how i can solve this problem pleas

    hello all .. i have a big problem in my ipad version 5.1.1 that is when i connect the ipad with my computer the i tunes give me this message ( itunes couldnt connect to this ipad .an unknown error occurred (0xE8000012).) how i can solve this problem please
    and this is an pic for the problem

    There is some troubleshooting for 0xE8 error codes on this page : http://support.apple.com/kb/TS3221 - you could see if anything on that page fixes it

  • Satellite L500-13e connected to TV with HDMI cable - no sound on TV

    Hi! Sorry my English is bad.
    I have a problem, i tried to connect my notebook with TV through HDMI, but
    sound playing on notebook rather than TV ...
    In Realtek HD Manager i didn't find "HDMI Output options"
    Please, suggest what should I do?

    The whole story is a little bit strange now.
    As far as I know Satellite L500-13E is delivered with preinstalled Vista Home Premium and all drivers must be preinstalled.
    I don't understand how you can suddenly have this yellow question mark in device manager.
    What have you done with your notebook?
    Anyway, at first try to remove sound device from device manager and restart your notebook. If the yellow question mark is still there install Vista sound driver. You can find it on Toshiba download page - http://eu.computers.toshiba-europe.com

  • I have an airport extreme.  i am trying to connect a laptop with windows 7 to a wireless printer, with no luck.  any ideas?

    I have an airport extreme.  i am trying to connect a laptop with windows 7 to a wireless printer, with no luck.  any ideas?

    The problem is not the router.. the issue is the vpn has put your computer in a different IP range with a different gateway. When you turn off the vpn the computer returns to local lan and can print.
    Some vpn software allows you to set gateway to use local net instead of remote gateway or access to other webistes or local lan.
    Read up the issue.
    http://stevejenkins.com/blog/2010/01/using-the-local-default-gateway-with-a-wind ows-vpn-connection/
    Cisco vpn client..
    https://supportforums.cisco.com/thread/239113
    I did not search much.. just grabbed the first article I could find that explains the issue.
    The whole point of the vpn is whilst it is connected your computer is NOT part of the Local Lan .. it is part of the Remote LAN via the vpn tunnel.
    It is also a security risk using split tunnelling so often it will not be allowed.
    Plug the printer directly into the computer via usb or whatever.. Local connection will work.. not local lan.

Maybe you are looking for

  • Mophie Juice Pack for iPhone

    This is the first Apple certified "Works With iPhone 3G(S)" attached battery in the world! (Quote from their site) I read this and other reviews and decided to pick one up. I loved it at first and then found some reviews claiming it messes with the p

  • Know about page parameter

    Hi, I want is there any page parameter portlet if it is then where it is in oracle portal

  • Updating a Hardware RAID array

    I'm running a recent Mac Pro model with Hardware RAID and four 1TB SATA drives. Seagate 1.5TB drives are now available, and they're cheaper than the 1TB drives were just a few months ago. My Infrant/Netgear ReadyNAS NV+ implements a proprietary form

  • HT5521 MY USB cable has a error message UNknow Devise and my IPod Nano has stop working as I was downloading Itunes

    MY USB cable and Ipod Nano has stop working while I was dowloading a CD to  from my computer to Itune.  Error message is a Unknows Devise.  Unable to turn on Ipod nano

  • Lightroom 5 (Mac) stops importing.

    Lightroom stops importing, the progress bar stops moving. After quiting Lightroom and trying to sync the folder it happens again. There are no strange fileformats in the folder, just straight JPG and XMP. This is pretty annoying - such a basic functi