SSL related exceptions on visiting https pages with OC4J 10.1.3.1.0

I have a standalone oc4j version 10.1.3.1.0 that I configured for SSL by following instructions of this link: http://technology.amis.nl/blog/268/quick-and-easy-ssl-in-oc4j-standalone.
<OC4J_HOME/j2ee/home/config/secure-web.xml is as follows:
<?xml version="1.0"?>
<web-site xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/web-site-10_0.xsd" secure="true" display-name="OC4J 10g (10.1.3) Default Web Site" schema-major-version="10" schema-minor-version="0" >
     <web-app application="app" name="app" load-on-startup="true" root="/app" shared="true"/>
     <ssl-config factory="com.evermind.ssl.JSSESSLServerSocketFactory" keystore="sslfile" keystore-password="abc123" truststore-password=""/>
</web-site>
As I interact with https pages, I start to see below exceptions in the oc4j log that I like to know what are those exceptions
are all about. Any thoughts on that and could it be that I am missing some SSL settings that may explain the below exceptions ?
and how about the below java.lang.NullPointerException ?
Mar 31, 2009 7:59:26 PM oracle.oc4j.network.NIOServerSocketDriver$SelectorThreadTask selectForRead
WARNING: Exception in NIOServerSocketDriver:selectForRead
java.nio.channels.ClosedChannelException
at java.nio.channels.spi.AbstractSelectableChannel.configureBlocking(AbstractSelectableChannel.java:252)
at oracle.oc4j.network.NIOServerSocketDriver$SelectorThreadTask.selectForRead(NIOServerSocketDriver.java:331)
at oracle.oc4j.network.NIOServerSocketDriver.selectForRead(NIOServerSocketDriver.java:58)
at oracle.oc4j.network.ServerSocketAcceptHandler.persistConnection(ServerSocketAcceptHandler.java:396)
at oracle.oc4j.network.ServerSocketAcceptHandler.endReadHandlerRun(ServerSocketAcceptHandler.java:416)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:275)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:619)
Mar 31, 2009 7:59:42 PM oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse run
WARNING: IOException in ServerSocketAcceptHandler$AcceptHandlerHorse:run
javax.net.ssl.SSLException: Unexpected end of handshake data
at com.sun.net.ssl.internal.ssl.HandshakeInStream.read(HandshakeInStream.java:81)
at java.io.InputStream.read(InputStream.java:85)
at com.sun.net.ssl.internal.ssl.UnknownExtension.<init>(HelloExtensions.java:204)
at com.sun.net.ssl.internal.ssl.HelloExtensions.<init>(HelloExtensions.java:69)
at com.sun.net.ssl.internal.ssl.HandshakeMessage$ClientHello.<init>(HandshakeMessage.java:252)
at com.sun.net.ssl.internal.ssl.ServerHandshaker.processMessage(ServerHandshaker.java:135)
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:516)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:454)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:884)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1096)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1123)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1107)
at oracle.oc4j.network.ServerSocketAcceptHandler.doSSLHandShaking(ServerSocketAcceptHandler.java:250)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:868)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:619)
Mar 31, 2009 7:59:42 PM oracle.oc4j.network.ServerSocketAcceptHandler$IdleHandlers closeIdleHandler
WARNING: Exception in SelectionKey cancel
java.lang.NullPointerException
at oracle.oc4j.network.ServerSocketAcceptHandler$IdleHandlers.closeIdleHandler(ServerSocketAcceptHandler.java:
3)
at oracle.oc4j.network.ServerSocketAcceptHandler$IdleHandlers.expireHandlers(ServerSocketAcceptHandler.java:60
at oracle.oc4j.network.ServerSocketAcceptHandler.selectorThreadHouseKeeping(ServerSocketAcceptHandler.java:217
at oracle.oc4j.network.NIOServerSocketDriver.selfHouseKeeping(NIOServerSocketDriver.java:129)
at oracle.oc4j.network.NIOServerSocketDriver.run(NIOServerSocketDriver.java:149)
at com.evermind.server.http.HttpConnectionListener.run(HttpConnectionListener.java:294)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
at java.lang.Thread.run(Thread.java:619)
Mar 31, 2009 8:00:30 PM oracle.oc4j.network.NIOServerSocketDriver$SelectorThreadTask selectForRead
WARNING: Exception in NIOServerSocketDriver:selectForRead
java.nio.channels.ClosedChannelException
at java.nio.channels.spi.AbstractSelectableChannel.configureBlocking(AbstractSelectableChannel.java:252)
at oracle.oc4j.network.NIOServerSocketDriver$SelectorThreadTask.selectForRead(NIOServerSocketDriver.java:331)
at oracle.oc4j.network.NIOServerSocketDriver.selectForRead(NIOServerSocketDriver.java:58)
at oracle.oc4j.network.ServerSocketAcceptHandler.persistConnection(ServerSocketAcceptHandler.java:396)
at oracle.oc4j.network.ServerSocketAcceptHandler.endReadHandlerRun(ServerSocketAcceptHandler.java:416)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:275)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:619)
Mar 31, 2009 8:00:31 PM oracle.oc4j.network.NIOServerSocketDriver$SelectorThreadTask selectForRead
WARNING: Exception in NIOServerSocketDriver:selectForRead
java.nio.channels.ClosedChannelException
at java.nio.channels.spi.AbstractSelectableChannel.configureBlocking(AbstractSelectableChannel.java:252)
at oracle.oc4j.network.NIOServerSocketDriver$SelectorThreadTask.selectForRead(NIOServerSocketDriver.java:331)
at oracle.oc4j.network.NIOServerSocketDriver.selectForRead(NIOServerSocketDriver.java:58)
at oracle.oc4j.network.ServerSocketAcceptHandler.persistConnection(ServerSocketAcceptHandler.java:396)
at oracle.oc4j.network.ServerSocketAcceptHandler.endReadHandlerRun(ServerSocketAcceptHandler.java:416)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:275)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:619)
Mar 31, 2009 8:00:48 PM oracle.oc4j.network.ServerSocketAcceptHandler$IdleHandlers closeIdleHandler

I enabled ssl handshake debugging and I see the following in the log:
09/04/05 17:36:37 HTTPThreadGroup-5, READ: TLSv1 Application Data, length = 599
09/04/05 17:36:37 HTTPThreadGroup-5, WRITE: TLSv1 Application Data, length = 246
09/04/05 17:36:37 HTTPThreadGroup-4, WRITE: TLSv1 Application Data, length = 304
09/04/05 17:36:37 HTTPThreadGroup-4, WRITE: TLSv1 Application Data, length = 4564
09/04/05 17:36:40 HTTPThreadGroup-6, READ: TLSv1 Application Data, length = 856
09/04/05 17:36:40 HTTPThreadGroup-6, READ: TLSv1 Application Data, length = 1071
09/04/05 17:36:40 HTTPThreadGroup-6, WRITE: TLSv1 Application Data, length = 299
09/04/05 17:36:40 HTTPThreadGroup-5, READ: TLSv1 Application Data, length = 753
09/04/05 17:36:40 HTTPThreadGroup-6, WRITE: TLSv1 Application Data, length = 19
09/04/05 17:36:40 HTTPThreadGroup-6, WRITE: TLSv1 Application Data, length = 18
09/04/05 17:36:40 HTTPThreadGroup-6, handling exception: java.io.IOException: An established connection was aborted by the software in your
09/04/05 17:36:40 %% Invalidated: [Session-3, SSL_RSA_WITH_RC4_128_MD5]
09/04/05 17:36:40 HTTPThreadGroup-6, SEND TLSv1 ALERT: fatal, description = unexpected_message
09/04/05 17:36:40 HTTPThreadGroup-6, WRITE: TLSv1 Alert, length = 18
09/04/05 17:36:40 HTTPThreadGroup-6, Exception sending alert: java.io.IOException: An established connection was aborted by the software in
09/04/05 17:36:40 HTTPThreadGroup-6, called closeSocket()
Apr 5, 2009 5:36:40 PM oracle.oc4j.network.NIOServerSocketDriver$SelectorThreadTask selectForRead
WARNING: Exception in NIOServerSocketDriver:selectForRead
java.nio.channels.ClosedChannelException
at java.nio.channels.spi.AbstractSelectableChannel.configureBlocking(AbstractSelectableChannel.java:252)
at oracle.oc4j.network.NIOServerSocketDriver$SelectorThreadTask.selectForRead(NIOServerSocketDriver.java:331)
at oracle.oc4j.network.NIOServerSocketDriver.selectForRead(NIOServerSocketDriver.java:58)
at oracle.oc4j.network.ServerSocketAcceptHandler.persistConnection(ServerSocketAcceptHandler.java:396)
at oracle.oc4j.network.ServerSocketAcceptHandler.endReadHandlerRun(ServerSocketAcceptHandler.java:416)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:275)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:619)
09/04/05 17:36:40 HTTPThreadGroup-5, WRITE: TLSv1 Application Data, length = 761
09/04/05 17:36:40 HTTPThreadGroup-5, WRITE: TLSv1 Application Data, length = 2175
09/04/05 17:36:40 HTTPThreadGroup-4, READ: TLSv1 Application Data, length = 572
09/04/05 17:36:40 HTTPThreadGroup-4, WRITE: TLSv1 Application Data, length = 288
09/04/05 17:36:40 HTTPThreadGroup-4, WRITE: TLSv1 Application Data, length = 8531
09/04/05 17:36:31 HTTPThreadGroup-6, WRITE: TLSv1 Handshake, length = 74
09/04/05 17:36:31 HTTPThreadGroup-6, WRITE: TLSv1 Change Cipher Spec, length = 1
09/04/05 17:36:31 *** Finished
09/04/05 17:36:31 verify_data: { 72, 81, 73, 209, 19, 180, 203, 41, 196, 20, 133, 206 }
09/04/05 17:36:31 ***
09/04/05 17:36:31 HTTPThreadGroup-6, WRITE: TLSv1 Handshake, length = 32
09/04/05 17:36:31 HTTPThreadGroup-6, READ: TLSv1 Change Cipher Spec, length = 1
09/04/05 17:36:31 HTTPThreadGroup-6, READ: TLSv1 Handshake, length = 32
09/04/05 17:36:31 *** Finished
09/04/05 17:36:31 verify_data: { 192, 244, 111, 12, 113, 174, 226, 171, 37, 22, 118, 17 }
09/04/05 17:36:31 ***
09/04/05 17:36:31 HTTPThreadGroup-6, READ: TLSv1 Application Data, length = 764
09/04/05 17:36:31 HTTPThreadGroup-6, WRITE: TLSv1 Application Data, length = 761
09/04/05 17:36:31 HTTPThreadGroup-6, WRITE: TLSv1 Application Data, length = 2176
Apr 5, 2009 5:36:31 PM oracle.oc4j.network.ServerSocketAcceptHandler$IdleHandlers closeIdleHandler
WARNING: Exception in SelectionKey cancel
java.lang.NullPointerException
at oracle.oc4j.network.ServerSocketAcceptHandler$IdleHandlers.closeIdleHandler(ServerSocketAcceptHandler.java:583)
at oracle.oc4j.network.ServerSocketAcceptHandler$IdleHandlers.expireHandlers(ServerSocketAcceptHandler.java:604)
at oracle.oc4j.network.ServerSocketAcceptHandler.selectorThreadHouseKeeping(ServerSocketAcceptHandler.java:217)
at oracle.oc4j.network.NIOServerSocketDriver.selfHouseKeeping(NIOServerSocketDriver.java:129)
at oracle.oc4j.network.NIOServerSocketDriver.run(NIOServerSocketDriver.java:149)
at com.evermind.server.http.HttpConnectionListener.run(HttpConnectionListener.java:294)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
at java.lang.Thread.run(Thread.java:619)
09/04/05 17:36:31 SystemThreadGroup-6, called close()
09/04/05 17:36:31 SystemThreadGroup-6, called closeInternal(true)
09/04/05 17:36:32 HTTPThreadGroup-4, READ: TLSv1 Application Data, length = 572
09/04/05 17:36:32 HTTPThreadGroup-4, WRITE: TLSv1 Application Data, length = 288
09/04/05 17:36:32 HTTPThreadGroup-4, WRITE: TLSv1 Application Data, length = 8531
09/04/05 17:36:33 HTTPThreadGroup-5, READ: TLSv1 Application Data, length = 868
09/04/05 17:36:33 HTTPThreadGroup-5, READ: TLSv1 Application Data, length = 494
09/04/05 17:36:33 HTTPThreadGroup-5, WRITE: TLSv1 Application Data, length = 293
09/04/05 17:36:33 HTTPThreadGroup-5, WRITE: TLSv1 Application Data, length = 19
09/04/05 17:36:33 HTTPThreadGroup-5, WRITE: TLSv1 Application Data, length = 18
09/04/05 17:36:33 HTTPThreadGroup-5, WRITE: TLSv1 Application Data, length = 316
09/04/05 17:36:33 HTTPThreadGroup-5, WRITE: TLSv1 Application Data, length = 18
09/04/05 17:36:33 HTTPThreadGroup-5, WRITE: TLSv1 Application Data, length = 21
09/04/05 17:36:33 HTTPThreadGroup-6, READ: TLSv1 Application Data, length = 753
09/04/05 17:36:33 HTTPThreadGroup-6, WRITE: TLSv1 Application Data, length = 755
09/04/05 17:36:33 HTTPThreadGroup-6, WRITE: TLSv1 Application Data, length = 2494

Similar Messages

  • Http Server with Oc4j

    Hi,
    I have installed oracle soa in one host and Http server in another host.(in windows 2003 server).
    I need to deploy the war files using Http server .
    I need to know, how to configure Http server with Oc4j.
    Regards,
    Latha

    BEST SOLUTION:
    Use Apache HTTPD that comes with the SOA Suite distribution. This includes a mod_oc4j which calls the OC4J installation.
    More information can be taken from the "Oracle® HTTP Server Administering a Standalone Deployment Based on Apache" guides.
    Here is one link http://download.oracle.com/docs/cd/B31017_01/web.1013/b28949/load.htm#sthref637
    MINIMAL SOLUTION:
    Implement a page redirect in your HTTP configuration.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Firefox crashs when visiting any page with flash content, how I can I stop that?

    HI all,
    Any page I visit with a flash video of some sort causes firefox to lockup, youtube is just the most prevalent. The page loads, then the program compatibility assistant pops up. I can't download,cancel or close out of that window and I have to ctrl-alt-delete and shut down the plug in container manually to be able to continue surfing. I have tried all three options on the firefox support page, tried using both 3.6.6 and 4.0 Beta 1, updating flash, no joy on any of those attempts.
    I can play videos using VLC normally and the video that starts up when I visited the 4.0 beta welcome page works fine if that helps any.
    Can anyone help?
    == URL of affected sites ==
    http://www.youtube.com

    If you close Firefox, then start Firefox in Safe Mode, does the problem still occur? For instructions on starting in Safe Mode, see [[Safe Mode]]. Or you can try creating a new profile. Your Firefox settings and info are kept in a folder separate from the Firefox program, called your profile folder. Try creating a test profile, to see if the problem still occurs. See [[Managing profiles]]. Also it can be a extension or plugin causing the problem. Extensions can sometimes be the cause of problems. If the problem does not occur in Safe Mode, then you can disable your extensions one-by-one until you find out which one is causing the problem. See [[Troubleshooting extensions and themes]]

  • Exception: TypeError on Blog Page with Firefox

    For some reason when viewing my blog entries in Firefox, I get a error message at the bottom of the page that says:
    *# Exception: TypeError*
    *# Message : contentDiv.getElementsByClassName("comment-manage-link").each is not a function*
    It works perfectly in Safari and Internet Explorer, and all of the comments can be read, but in Firefox, instead of the comments, I get the above message. I was using Firefox 2, then I started using 3 beta, and now I am using the new Firefox 3 release. I waited this long because I thought the problem might be fixed with version 3, but it wasn't, and I am starting to wonder whether this is a Firefox problem, or a iWeb problem?
    Any help would be appreciated.

    I got this fixed read on here to see how.
    http://web.mac.com/dgrunau/DarylGrunau/Blog/Entries/2008/6/19_Fix_iWeb_for_Firefox3.html

  • HTTPS mode for OC4J - Very Urgent

    Hi,
    I am trying to implement HTTPS mode with OC4J for our internal application. The Server Configuration and how I tried to implement is detailed below.
    The Server Configuration :
    Operating System     :     Linux 7.1
    Java Development Kit     :     j2sdk1.3 with j2sse 1.0.3
    Web Server          :     Oracle9iAS Containers for J2EE (OC4J) OC4J build# 020712.1645.
    The command for generating the CSR (for test certificate from Entrust)
    1. keytool -genkey -keyalg "RSA" -keystore keystore -storepass 123456 -keysize 512
    2. keytool -certreq -keyalg "RSA" -file gisl-dev -keystore keystore
    I had generated a CSR from the server and submitted the CSR online for a test certificate. On submission freecert.entrust.com had issued the web server certificate and the CA certificate successfully.
    After this I tryed to import the Web Server Certificate with this command:
    3. keytool -keystore -keyalg "RSA" -import -trustcacerts -file gisl-dev.cer
    I am getting an error:
    keytool error: java.security.cert.CertificateException: Unsupported encoding
    Is there anyway to come out of this problem, I think I can use Apache Server and tunnel the request for OC4J through Apache. But the sad thing is that I don't know how do it.
    Please help me out to solve this problem

    1/ try to add a LF to your reply certicate. (there is a bug on keytool import)
    2/ Also you need to check if your CA provider certicate is known on cacerts file. If not you need to import it.
    Hope this help

  • A fix for the Mozilla Firefox SSL Certificate Validation Security Weakness vulnerability? This appears to be an issue with not revalidating certificates when loading HTTPS pages from cache.

    We have to close vulnerabilities for PCI & Cybertrust certification. We have upgraded users running Firefox to version 7.0.1 but we are still receiving the message: Mozilla Firefox SSL Certificate Validation Security Weakness. Researching the issue, it appears to be related to certificates not being revalidated when loading HTTPS pages from cache. The bug report I found is:
    Bug 660749 - Firefox doesn't (re)validate certificates when loading a HTTPS page from the cache

    cookies.squite answer is Today at 5:15 PM .
    New profile, same problem.
    We've already established it is not a add-ons problem but obviously there will be less add-ons in this new profile to help exclude.
    Since there is two PC profiles on the PC, I tried the second profile, same problem. Used the RESET FF function on the second PC profile...same thing...even followed the instruct for uninstall &re-install...same problem.
    (3) different virus scanners, no hard core problems.
    Suspect how I have something in Windows setup that no one else is using?

  • How do i open a web page with VeriSign Class 3 Extended Validation SSL SGC SS CA certfificate i can't open web pages with this, how do i open a web page with VeriSign Class 3 Extended Validation SSL SGC CA certfificate i can't open web pages with this

    how do i open a web page with VeriSign Class 3 Extended Validation SSL SGC SS CA ?

    Hi
    I am not suprised no one answered your questions, there are simply to many of them. Can I suggest you read the faq on 'how to get help quickly at - http://forums.adobe.com/thread/470404.
    Especially the section Don't which says -
    DON'T
    Don't post a series of questions in  a single post. Splitting them into separate threads increases your  chances of a quick answer.
    PZ
    www.pziecina.com

  • SSL indicator disappears when page with video tag has been loaded

    I have a strange bug in Firefox, that was detected when site moved to SSL.
    There is single page site built on Backbone.
    When page with video tag loaded SSL indicator disappears.
    Firebug shows that Firefox create GET request connection to the server but it hangs.
    All site logic work correctly. And video on this page works perfect, I can click play and new connection will be created and video played but first connection still hangs.
    There is four page with video tag (four steps of wizard) and hanged connection appears randomly on this pages.
    Actually this issue exists without SSL, but detected only when we moved to SSL and lock icon began to disappear.

    The SSL indicator can disappear if there is mixed content on that page (i.e. coming via an unencrypted http connection).
    Did you click the Site Identity Button (globe/padlock) and proceeded to the Security tab in Page Info?
    *https://developer.mozilla.org/en/Security/MixedContent
    *https://developer.mozilla.org/en/Tools/Web_Console

  • Error code: sec_error_untrusted_issuer, after i add the exception, get the certificate i get a blank page with big letters NOT FOUND.

    www.google.com uses an invalid security certificate.
    The certificate is not trusted because it is self-signed.
    The certificate is only valid for 78-159-121-201.local
    (Error code: sec_error_untrusted_issuer)
    After i add an exception for the site, i get this:
    Certificate Status:
    This site attempts to identif itself with invalid information.
    Wrong site:
    Certificate belongs to a diffrent site, which could indicate an identity theft.
    Unknown Identity
    Certificate is not trusted, because it hasn't been verified by a recognized authority.
    And then a blank page with big letters "Not Found"
    == URL of affected sites ==
    http://google.com , www.youtube.com , www.omegle.com , www.lockerz.com

    Do NOT add a security exception: someone is tampering with your internet connection!
    When you ask to connect to these sites using https, Firefox gets a certificate from the website which responds. Anyone can make a certificate, but to be valid the certificate must be signed by an organization which Firefox trusts.
    The person responding provided a certificate with its response which which was not signed by anybody, so Firefox doesn't know who sent the response, and neither do you.
    In short: you asked to talk to google and google did NOT send the response.
    As this is happening for several different websites, the attacker is probably on the network between your computer and the internet. Ask the people you get your internet connection for help: they may have had their computers hacked, may discover that the problem exists further along in the network, or they may even be responsible themselves.

  • HTTPS post with certificate - certificate exception

    Hi,
    I am trying to create java program to do HTTPS post with certiticate.
    I get certificate in *.P12 file. When I open HttpsURLConnection I have received exception : javax.net.ssl.SSLException: No certificate authorities are registered for this secure application
    during startHandshake. I run java with properties
    -Djavax.net.ssl.keyStore=value -Djavax.net.ssl.keyStorePassword=value -Djavax.net.ssl.keyStoreType=pkcs12
    Shell I use JKS (trustStore properties) for server certificate ? Or I have to add some more code ?
    Thanks in advance
    M

    I am trying to create java program to do HTTPS post with certiticate.Do you mean that the server requires client authentication and the clients each have a keypair and signed certificate in their keystore?
    Shell I use JKS (trustStore properties) for server certificate?Yes. But you need to find out whether the server's certificate is self-signed or signed by a CA. If it is self-signed you will have to get them to export it, and import it into the truststore of each client. NB not the keystore of each client.
    Or I have to add some more code ?No.

  • Null pointer exception in Search page with ADF

    Hi,
    I have an entity and view object for table1. I created one more viewobject for the same entity object. And the viewobject has the following query with a bind variable.
    select * from table1 where table1.value = :bindVar
    I added this view object into my application module. I dragged and dropped the 'ExecutewithParams' option into my jsp page. I was trying to run this page to atleast get the search field. But I am getting following exception.
    javax.faces.el.EvaluationException: java.lang.NullPointerException     at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:190)     at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)     at com.sun.faces.util.Util.evaluateVBExpression(Util.java:974)     at com.sun.faces.taglib.jsf_core.ConvertNumberTag.evaluateExpressions(ConvertNumberTag.java:256)     at com.sun.faces.taglib.jsf_core.ConvertNumberTag.createConverter(ConvertNumberTag.java:219)     at javax.faces.webapp.ConverterTag.doStartTag(ConverterTag.java:130)     at com.sun.faces.taglib.jsf_core.ConvertNumberTag.doStartTag(ConvertNumberTag.java:205)     at resources.jsp._CRSCF001._jspService(_CRSCF001.java:149)     [resources/jsp/CRSCF001.jsp]
    I tried the same search page with a new workspace. But it worked well.
    I am not able to figure out what went wrong with the application.
    Could anyone please help me with this issue?
    Thanks,
    Priya.S

    Hi,
    drag it as a parameter form and it should work as you expect it.
    Frank

  • URL object with https string throws malformed url exception: unknown protocol: https

    In WebLogic I am trying to connect to an HTTPS url by passing that url
    string into the contructor for URL object. This throws a Malformed URL
    Exception : unknown protocol: https.
    When i run this same block of code outside of weblogic (in a stand-alone
    app), it runs perfectly. (not exceptions when creating the URL object).
    why do i get this exception in weblogic?
    could weblogic be loading its own URL class rather than the java.net.URL
    class (which supports ssl)? if so how do i override that classloading?
    is there a weblogic security "feature" that prevents opening an ssl
    connection?
    thanks for any help
    mike
    [email protected]

    You need to modify your weblogic.policy file to allow you to change the
    the property java.protocol.handler.pkgs ... and any other properties
    that you may probably change using JSSE (for example:
    javax.net.ssl.trustStore for storing certificates of servers that you
    want to connect to from WLS )
    Regards,
    John Salvo
    Michael Harrison wrote:
    >
    thanks for the help dennis, but still get the "unknown protocol https".
    the URL object sees that the URLStreamHandler ==null and get the value for
    java.protocol.handler.pkgs (which should be
    com.sun.net.ssl.internal.www.protocol) then it tries to load that class. i
    believe that the GetPropertyAction("java.protocol.handler.pkgs","") is not
    returning com.sun.net.ssl.internal.www.protocol. therefore the class is not
    getting loaded
    i think that my classpath is set up properly for classpath and
    weblogic_classpath so i think that i me calling
    System.setProperty("java.protocol.handler.pkgs",
    "com.sun.net.ssl.internal.www.protocol"); is not effective.
    do you know anyway i can trouble shoot this.
    thanks
    mike
    Dennis O'Neill <[email protected]> wrote in message
    news:39d23c28$[email protected]..
    Https is an add-in so to speak. Try this before you create your url:
    System.setProperty ("java.protocol.handler.pkgs",
    "com.sun.net.ssl.internal.www.protocol");
    // add the default security provider (again, in JSSE1.0.1)
    int iap = java.security.Security.addProvider(new
    com.sun.net.ssl.internal.ssl.Provider() );
    dennis

  • SSL Certificate Exception everytime a connection is established

    Hello guys!
    I am trying to authenticate a website running SharePoint 2010. But everytime a connection is established, an SSL/TLS exception is thrown. The following is the code I am using. Any idea??
    The exception is: "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel."
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using System.Runtime.InteropServices.WindowsRuntime;
    using Windows.Foundation;
    using Windows.Foundation.Collections;
    using Windows.UI.Xaml;
    using Windows.UI.Xaml.Controls;
    using Windows.UI.Xaml.Controls.Primitives;
    using Windows.UI.Xaml.Data;
    using Windows.UI.Xaml.Input;
    using Windows.UI.Xaml.Media;
    using Windows.UI.Xaml.Navigation;
    using System.Net;
    using System.Net.NetworkInformation;
    using Windows.Networking.Connectivity;
    using System.Net.Http;
    using System.Xml.Linq;
    using System.Text;
    using Windows.Web.Http.Filters;
    using Windows.Security.Cryptography.Certificates;
    // The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
    namespace TestApp
        /// <summary>
        /// An empty page that can be used on its own or navigated to within a Frame.
        /// </summary>
        public sealed partial class MainPage : Page
            public MainPage()
                this.InitializeComponent();
            private static HttpWebRequest CreateWebRequest(string url, NetworkCredential credentials)
                //Initialize new instance of HttpBaseProtocolFilter, which implements IHttpFilter.  
                string action = "http://schemas.microsoft.com/sharepoint/soap/GetWebCollection";
                HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
                req.Credentials = credentials;
                req.Headers["SOAPAction"] = action;
                req.ContentType = "text/xml;charset=\"utf-8\"";
                req.Accept = "text/xml";
                req.Method = "POST";
                return req;
            static string soapEnvelope = @"<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'><soap:Body></soap:Body></soap:Envelope>";
            //static string soapEnvelope =
              //         @"<?xml version=""1.0"" encoding=""utf-8""?> <soap:Envelope xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema""
    xmlns:soap=""http://schemas.xmlsoap.org/soap/envelope/""> <soap:Body> <Login xmlns=""http://schemas.microsoft.com/sharepoint/soap/""> <username>{0}</username> <password>{1}</password>
    </Login> </soap:Body> </soap:Envelope>";
            private static XDocument CreateSoapEnvelope(string content)
                StringBuilder sb = new StringBuilder(soapEnvelope);
                sb.Insert(sb.ToString().IndexOf("</soap:Body>"), content);
                XDocument soapEnvelopeXml = XDocument.Parse(sb.ToString());
                return soapEnvelopeXml;
            private static void InsertSoapEnvelopeIntoWebRequest(XDocument soapEnvelopeXml, HttpWebRequest webRequest)
            webRequest.BeginGetRequestStream((IAsyncResult asynchronousResult) =>
                    HttpWebRequest request = (HttpWebRequest)asynchronousResult.AsyncState;
                    Stream postStream = request.EndGetRequestStream(asynchronousResult);
                    soapEnvelopeXml.Save(postStream);
                    //postStream.Close();
                    request.BeginGetResponse(new AsyncCallback(GetResponseCallback), request);
                    }, webRequest);
            private static void GetResponseCallback(IAsyncResult asynchronousResult)
                HttpWebRequest request = (HttpWebRequest)asynchronousResult.AsyncState;
                HttpWebResponse response = (HttpWebResponse)request.EndGetResponse(asynchronousResult);
                Stream streamResponse = response.GetResponseStream();
                StreamReader streamRead = new StreamReader(streamResponse);
                string responseString = streamRead.ReadToEnd();
                //do whatever with the response 
                //streamResponse.Close();
                //streamRead.Close();
                //response.Close();
            private void Button_Click(object sender, RoutedEventArgs e)
                NetworkCredential credentials = new NetworkCredential("<user>", "<password>", "<domain>");
                HttpWebRequest request = CreateWebRequest("https://the_website_I_am_trying_to_connect_to", credentials);
                XDocument soapEnvelope = CreateSoapEnvelope("<GetWebCollection xmlns=\"http://schemas.microsoft.com/sharepoint/soap/\" />");
                InsertSoapEnvelopeIntoWebRequest(soapEnvelope, request);
                    

    Hi,
    According to your description, my understanding is that when you access a https web service, it occurs the “The underlying connection was closed. Could not establish trust relationship for the SSL/TLS secure channe” error.
    To overcome this error, you need to install the certificate that is used by the web service provider in the server that will be calling the web service.
    Open Microsoft Management Console (Start --> Run      --> mmc.exe);
    Choose File --> Add/Remove Snap-in;
    In the Standalone tab, choose Add;
    Choose the Certificates snap-in, and click Add;
    In the wizard, choose the Computer Account, and then      choose Local Computer. Press Finish to end the wizard;
    Close the Add/Remove Snap-in dialog;
    Navigate to Certificates (Local Computer)
    Choose a store to import:
    If you have the Root CA       certificate for the company that issued the certificate, choose Trusted       Root Certification Authorities;
    If you have the       certificate for the server itself, choose Other People
    Right-click the store and choose All Tasks -->      Import
    Follow the wizard and provide the certificate file you      have;
    Here are some detailed articles for your reference:
    http://www.c-sharpcorner.com/uploadfile/anavijai/could-not-establish-trust-relationship-for-the-ssltls-secure-channel/
    http://stackoverflow.com/questions/703272/could-not-establish-trust-relationship-for-ssl-tls-secure-channel-soap
    Thanks
    Best Regards
    Jerry Guo
    TechNet Community Support
    Hello Jerry,
    Thank you very much for your reply.
    But what about Windows Phone? I am running the same code on´WP 8.1 as a store app, and returns an exception at the same place: the GetResponseCallBack.
    Any workaround? Can I run a code from the app that uses the certificate or at least installs it?
    Thanks a lot. 

  • Saved .htm pages with hover content stopped working

    Hi,
    I save some web pages for offline viewing. Some of them have content that shows up only '''when you hover''' over them. Examples would be *.wikia.com (navigations) and danbooru (ex. http://danbooru.donmai.us/posts/1675488?pool_id=8335). I save them by '''Web page, complete''' option. They used to work but I just found out that now they don't.
    I checked with IE and Chrome but found out that it stopped working there too. I tried using Firefox with add-ons disabled and reverted to older versions (30.0 & 24.0) but it's not working there anymore. I even restarted my PC. I thought maybe it was cache related by even newly saved pages don't work.
    I am sure they did work because I usually save my files as mhtml to avoid too much clutter but hover content doesn't work there. The last time I saw it working was on '''September 25, 2014'''.
    Thank you in advance.

    I have checked the offline wikia page you provided. All the images are there. All the js files are there. But some script works and some doesn't. Unfortunately it is impractical to debug the page to see where the failure occurred.
    If all your save pages are based on the same template, by which I mean only the pictures vary, but the pages are based on the same underlying mechanism, then it might be worthwhile to learn some simple scripting. It takes just a few lines of code to re-enable the functionality you want (btw, it is not hovering -- you have to actually click the thumbnail).
    However, if the pages differ a lot, then I am not aware of any practical way of achieving what you want except trying some of these plugins to see if they work better:
    [http://stackoverflow.com/questions/2061311/firefox-plug-in-that-downloads-a-complete-webpage Firefox plug-in that downloads a complete webpage?]
    Or google and see if you can find more.
    Wikipedia is probably the most archaic website I use. Obviously, if even wikipedia doesn't save properly, as mentioned in cor-el's link, I don't think you can expect to have much luck with wikia. This is just to give you a realistic assessment of the difficulty level of what you are trying to accomplish.
    I used to think that my computer was the safest place to keep everything -- when I was using a dial-up connection. So I also carried out similar endeavors to preserve everything useful on my computer, just as what you are doing right now. I know how much work it takes, and I could never get things 100% correct, because webpages are generally not designed to be saved locally.
    Now I am sure most of the things on the internet will outlast my computer. And I have a broadband so everything is just one click away in firefox. So I am never bothering again.
    Sorry I wish I could help you more, but this is the best I can do. Good luck!

  • Https pages not loading on firefox browser.

    Hi,
    Am using Oracle Application server 4.0.8.2 version and configured PL/SQL cartridge code.
    After installing SSL certificate, could not able to load the HTTPS pages in Firefox browser.
    Error
    Unable to connect
    Firefox can't establish a connection to the server at <server name>
    The above error is browser specific.
    Any help? why the pages giving that error.Is there any relation with SSL certificate or Oracle Application Server?
    Regards,
    K

    This does not seem to be due to certificate. This seems like a site connection problem.
    There is a link between Security Certificates and these browsers. Newer browsers do not by default let you go to sites which use invalid certificates or are expired. But Certificate related errors talk about the error, such as whether the certifying authority is trustworthy, or the certificate is valid, or is current, etc. In that case, Firefox 3.0 stops from moving ahead but tells about the error based on certificate. IE7 should also behave similarly in that scenario.
    - Ensure that the site is up and running and the application server is not down for any reason.
    - How do you see it on IE6 and IE7?
    - Get HTTP trace and see what errors you get.
    update with the results.
    AMN

Maybe you are looking for

  • How to attach search help in a particular field in se80 screen

    Hi All, Can any one tell me how to attach a search help in a particular field in a screen. Wat search help is used to display material no and description Thanks in Advance Regards, Priya

  • Bridge cs3 preview and slideshow question

    Hi i have a question does bridge cs3 need cache (drive space) to preview a photo or to see my photo with the slideshow feature ? i mean does bridge need to render and store the photos in the database to let me see in the slideshow or browsing i don't

  • Screen layout Purchase Requisition

    Dear all gurus, I want to ask a question about Screen Layout PR in Purchase Requisition -> Define Screen Layout at Document Level. In "Field Selection" Quantity and Price for Price and price unit. I had filed Opt Entry in that field. But when i creat

  • Advanced Image Functionality

    This may sound off the wall: I need to take a pdf and display it a person over the internet. I need them to be able to add an image anywhere they want in that pdf (If I need to change the pdf to a jpeg or gif, that's fine). Imagine that they're looki

  • Converting an image to FrameMaker native vector drawing

    Is there a third-party utility that will covert an EPS graphic file to a FrameMaker native vector graphic? I would like to include a logo that appears on every page in my template but want to restrict the size of the empty template.