Sun.security.x509.X509CertInfo Doc & Examples?

I am trying to parse some X509 certs with sun.security.x509.X509CertInfo and I get "java io exception: java.io.IOException: DerValue.getInteger, not an int 48". I know the cert is good because other cert tools display its contents properly.
Does anyone know where I can get docs on the security classes and perhaps some examples? The Sun site does not appear to document these classes, so I suspect they have been tweeked by Oracle.
Best regards,
Michael

Hi Bill,
My problem is solved. I was using DP3 which was causing the problem. Now I am using DP4 and its working fine.
Thanks a lot.
Regards,
Pramod

Similar Messages

  • Keytool error: sun.security.x509.X500Name

    hello ... im using jre 1.3.1 and wanna generate my csr ...
    first i do
    keytool -genkey -keyalg RSA -keystore keystore -storepass 123456 -validity 360
    then
    keytool -certreq -keyalg RSA -file juan.com.csr -keystore keystore
    and then i get one of these error:
    keytool error: sun.security.x509.X500Name

    You should specify the correct value for -dname option of -genkey command in the following format "CN=Mark Smith, OU=JavaSoft, O=Sun, L=Cupertino, S=California, C=US".
    http://java.sun.com/j2se/1.4.1/docs/tooldocs/windows/keytool.html#DName
    Case does not matter for the keyword abbreviations. For example, "CN", "cn", and "Cn" are all treated the same.
    Order matters; each subcomponent must appear in the designated order. However, it is not necessary to have all the subcomponents. You may use a subset, for example:
    CN=Steve Meier, OU=SunSoft, O=Sun, C=US
    If a distinguished name string value contains a comma, the comma must be escaped by a "\" character when you specify the string on a command line, as in
    cn=peter schuster, o=Sun Microsystems\, Inc., o=sun, c=us
    It is never necessary to specify a distinguished name string on a command line. If it is needed for a command, but not supplied on the command line, the user is prompted for each of the subcomponents. In this case, a comma does not need to be escaped by a "\".

  • NoClassDefFoundError: sun/security/x509/CertificateSerialNumber

    Hi!
    I have the following installed -
    JDK5, Tomcat for JWSDP and JWSDP.
    Now as per the docs for "Integrating the Java WSDP Component Technologies with the Tomcat 5.0 for Java WSDP Container" I execute the bat file "jwsdpontomcat.bat <tomcat5 installation dir>" but I am getting the following error -
    NoClassDefFoundError: sun/security/x509/CertificateSerialNumber
    I have the JAVA_HOME, CATALINA_HOME and JWSDP_HOME properly set but still I get this error. The class "CertificateSerialNumber" is in
    %JAVA_HOME%\jre\lib\rt.jar and this jar is in the classpath but still I get the error on executing the bat file.
    Any idea/suggestion/pointer what could be missing would be very helpful?
    TIA

    Hi,
    Sorry I can't answer your qustion but, as you can see, you are much further ahead of me in using this particular package. In fact, I have been trying to locate a copy of the sun.security package for downloading and have had no luck whatsoever! I have been just about everywhere imaginable on the Sun site and the only mention of it is here under the forums and a description located under http://java.sun.com/products/commerce/docs/ssl/packages.html. Judging by where you are, I was hoping that you could point me in the right direction via an appropriate URL.
    Thanks,
    Louis P. Civitello

  • Sun.security.validator.ValidatorException: No trusted certificate found

    Hello,
    I am using Java 1.6.0_04 (JBoss-4.2.2.GA application). My application implements a WS client which needs to integrate with an external Web Service. This communication needs to be handled through https.
    I have created a jks keystore with the server certificate, and passed its details to JBoss through the System Properties:
    -Djavax.net.ssl.trustStore=/Path-to-file  -Djavax.net.ssl.trustStorePassword=password     On my development environment I can call the Web Service correctly.
    Although, on the production environment, I am getting the following exception:
    javax.xml.ws.WebServiceException: java.io.IOException: Could not transmit message
         at org.jboss.ws.core.jaxws.client.ClientImpl.handleRemoteException(ClientImpl.java:317)
         at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:255)
         at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164)
         at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
         at $Proxy171.send(Unknown Source)
         at com.xpto.integration.SmsHelper.send(SmsHelper.java:57)
         at com.xpto.services.sms.SMSSenderServiceMBean.run(SMSSenderServiceMBean.java:106)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: java.io.IOException: Could not transmit message
         at org.jboss.ws.core.client.RemotingConnectionImpl.invoke(RemotingConnectionImpl.java:204)
         at org.jboss.ws.core.client.SOAPRemotingConnection.invoke(SOAPRemotingConnection.java:77)
         at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:337)
         at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243)
         ... 6 more
    Caused by: org.jboss.remoting.CannotConnectException: Can not connect http client invoker.
         at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:
    333)
         at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:135)
         at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
         at org.jboss.remoting.Client.invoke(Client.java:1634)
         at org.jboss.remoting.Client.invoke(Client.java:548)
         at org.jboss.ws.core.client.RemotingConnectionImpl.invoke(RemotingConnectionImpl.java:183)
         ... 9 more
    Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No truste
    d certificate found
         at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1591)
         at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:187)
         at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:181)
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:975)
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:123)
         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 sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:405)
         at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLCo
    nnection.java:166)
         at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:832)
         at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:23
    0)
         at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:
    275)
         ... 14 more
    Caused by: sun.security.validator.ValidatorException: No trusted certificate found
         at sun.security.validator.SimpleValidator.buildTrustedChain(SimpleValidator.java:304)
         at sun.security.validator.SimpleValidator.engineValidate(SimpleValidator.java:107)
         at sun.security.validator.Validator.validate(Validator.java:218)
         at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:126)
         at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:2
    09)
         at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:2
    49)
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:954)
         ... 26 more     Both systems are configured with the same JBoss, JVM, ...
    The certificate details are:
    Owner=
      CN=*...., OU=..., O=..., L=..., ST=..., C=PT
    Issuer=
      CN=..., O=..., C=PT
    Version=3
    Serial Number=BC81A81843E26C2597CD10354588F61E
    Valid From=Monday, 3 March 2008 18:50
    Valid Until=Tuesday, 3 March 2009 18:50
    Signature Algorithm=SHA1withRSA
    Fingerprints=
        MD5:     0A:A6:89:92:A4:CF:17:74:7C:4E:20:63:6B:81:AE:85
        SHA1:    35:01:74:8C:35:AB:9F:02:7B:23:3F:15:5E:73:C6:4D:DD:BB:C0:7A
    Key Usage= critical
        List:
        . digitalSignature
        . keyEncipherment
        . dataEncipherment
        . keyAgreement
    Extended Key Usage= none
         On production I have also tried adding the following properties:
    -Djavax.net.ssl.keyStore=/Path-to-file  -Djavax.net.ssl.keyStorePassword=password     But I still get the error.
    Any one has any hint for this problem? Is there any property which I can define to ignore untrusted certificates?
    Any help would really be welcome.
    Thanks in advance.
    Best regards,
    Victor Batista

    Hi,
    Thanks for your prompt reply.
    I have also tried to add all the chain of certificates on my truststore, although I get the exception:
    Caused by: java.security.cert.CertificateExpiredException: NotAfter: Fri Mar 07 12:54:22 WET 2008
         at sun.security.x509.CertificateValidity.valid(CertificateValidity.java:256)
         at sun.security.x509.X509CertImpl.checkValidity(X509CertImpl.java:570)
         at sun.security.validator.SimpleValidator.engineValidate(SimpleValidator.java:123)
         at sun.security.validator.Validator.validate(Validator.java:218)
         at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:126)
         at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:209)
         at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:249)
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:954)
         ... 26 moreAnd all the certificates are valid.
    I really don't understand what is going on.
    Can I Ignore expired certificates? Any property?
    When I use -Djavax.net.ssl.trustStore pointing to my keystore, will cacerts be also used?
    Do I need to import all the certificates in the chain of the server, or the top most is sufficient?
    The server where I am having the problem has limited connectivity. It should have connectivity to the issuers of the certificates, in order to validate them, or not?
    Thanks in advance,
    Victor

  • From where can I download the sun.security Classes?

    I am interested in using the sun.security.x509.CertAndKeyGen class? Could somebody provide me some assistance on downloading this?
    Thanks,
    Louis P. Civitello

    http://java.sun.com/security/index.html

  • Sun.security.smartcardio.PCSCException: Unknown error 0x8010002f

    Hi All
    I am writing java application to talk with smart card
    every thing is ok till i reach to this command:
    private static byte[] COMMAND2 = {(byte) 0xEF, (byte) 0xFA, (byte) 0xCE, (byte) 0x00, (byte) 0xFF};
    private static CommandAPDU COMMAND2_APDU = new CommandAPDU(COMMAND2);
    connectWithCard();
    sendAPDU1();
    card.disconnect(true); //Reset must occur before
    try{
    Thread.sleep(1000);
    catch(InterruptedException e)
    System.out.println("Exception for sleep : "+e.getMessage());
    connectWithCard();
    ra=ch.transmit(COMMAND2_APDU);//Exception occur here
    System.out.println("Response due to COMMAND2_APDU : " + arrayToHex(ra.getBytes()));
    JOptionPane.showMessageDialog(null,"Response due to COMMAND2_APDU : " + arrayToHex(ra.getBytes()), "Status", JOptionPane.ERROR_MESSAGE);
    //implementation for connectwithCard()
    try {
    card = c.connect("T=0");
    // System.out.println("Terminal connected");
    JOptionPane.showMessageDialog(null,"Terminal connected", "Status", JOptionPane.ERROR_MESSAGE);
    } catch (Exception e) {
    //  System.out.println("Terminal NOT onnected: " + e.toString());
    JOptionPane.showMessageDialog(null,"Terminal NOT onnected: " + e.toString(), "Status", JOptionPane.ERROR_MESSAGE);
    System.out.println("ATR: " + arrayToHex(((ATR) card.getATR()).getBytes()));
    JOptionPane.showMessageDialog(null,"ATR: " + arrayToHex(((ATR) card.getATR()).getBytes()), "Status", JOptionPane.ERROR_MESSAGE);
    ch = card.getBasicChannel(); Exception is:
    javax.smartcardio.CardException: sun.security.smartcardio.PCSCException: Unknown error 0x8010002f
    What should i do ?
    Thanks in Advance
    Edited by: Nabil_ on Aug 7, 2008 3:23 AM
    Edited by: Nabil_ on Aug 7, 2008 3:31 AM

    I make some changes like:
    1. make sending Command in separated Thread to take its time.
    2. change P3 from FF to 00
    the result was :
    -NO Exception incase P3=00 , but the returned status was 6E 00
    -When i put P3 any value except 0 , The Exception occur in all cases (even separate Thread or in the main thread)
    The problem now :
    I must send 9 commands (Card Recyle Command) to format my card , first eight commands (1---->8) should return
    9F 20 as status byte , but when i made P3=00 the returned status was 6E 00
    but the last command returned 90 00 (P3=00) as it is expected
    the Card OS was Bantry OS
    -Question can i make format the card in different way ?
    -According to Reader:
    I use 3 different readers (PC/SC)
    - Dell USB Keyboard Smart Card Reader
    -SCM Microsystems SCR33x USB Smart Card Reader (http://www.crownhill.co.uk/product.php?prod=1786)
    -SCM Microsystems SCR24x PCMCIA Smart Card Reader
    if u recommend reader for me
    -Can i use Linux (to use different stack rather than PC/SC) ?
    Another thing could be is that some of card readers do no support 255 bytes data field in one command. In this case data shouold be transfered by smaller portions.How can i do this (data should be transfered by smaller portions.) ?
    give me example if possible.
    Thanks in Advance.
    Nabil

  • Com.sun.security.auth.module.NTSystem compilation issues in Unix

    Hi ,
    I m using com.sun.security.auth.module.NTSystem in one my java application to get the current domain. The application and app server are running on windows OS.
    Now i want to switch my OS to Unix, where i m getting compilation issues with com.sun.security.auth.module.NTSystem ,
    1)Do i need to change the module from NTSystem to UnixSystem?
    2) I m developing the java application in Eclipse 3.2 with java 1.4 , when i m trying to import the below statment com.sun.security.auth.module.UnixSystem i couldn't? Could you please let me how i can import the UnixSystem or NTSystem will work?
    Appreciate your help!!!!
    Regards,
    Ravi.

    Unix, where i m getting compilation issues with com.sun.security.auth.module.NTSystemOf course.
    Do i need to change the module from NTSystem to UnixSystem?Of course.

  • Firefox 3.6.3 crashes randomly when used throught SUN Secure Global Desktop. I have a Solaris core dump. Is there a way to get the dump read?

    Running FF 2.0.0.8 with Sun Secure Global Desktop - no issues. Upgraded to V3.6.2, then 3.6.3. Both upgrades failed. Browser randomly crashes at different times, different pages. FF works if directly ssh'ing into application sever. When accessing FF after loging in using SGD, I get random crashes. I have a Solaris core dump generated by FF. Is there anyone that can read/diagnos the core dump?

    I have identified the issue and received a 'fix' from the
    Oracle Secure Global Desktop support team.
    The issue - firefox is crashing when attempting to talk to the sound server which is not active. All activity within the window works fine, except ff hangs the second you move the mouse in to the top level menu.
    We disabled the audio under the SGD configuration and that ficed the issue.

  • Weblogic.security.X509 alternative in WLS 9.1

    Hi All
    We have setup IIS 5.0 with 2 way SSL for client connection. We have also configured IIS weblogic proxy for Weblogic 9.1 using iisproxy.dll. The connection between IIS and WebLogic 9.1 is HTTP based. We are trying to get the client certificate in Weblogic 9.1 using the following code
    java.security.cert.X509Certificate certs [];
    certs = (java.security.cert.X509Certificate [])
    request.getAttribute("javax.servlet.request.X509Certificate");
    However the returned certificates are NULL.
    We have also enabled Client Cert Proxy and Weblogic Plug-in in Weblogic 9.1 configuration.
    We are trying to migrate from weblogic 8 to 9.1 and our previous code was as follows
    weblogic.security.X509 [] certs = (weblogic.security.X509[])req.getAttribute("javax.net.ssl.peer_certificates");
    This code work fine with the same IIS setup. Since weblogic.security.X509 is removed in WLS 9.1 we are forced to change our code.
    Please help!
    Message was edited by:
    rmkandan

    hi
    Currently I am using
    req.getHeader("WL-Proxy-Client-Cert")
    to get the client certificate and then i do the following to get the X509 cert format
         if (pemCert != null && pemCert.length() > 0 ){
              pemCertBuff.append("-----BEGIN CERTIFICATE-----");
              pemCertBuff.append(pemCert);
              pemCertBuff.append("-----END CERTIFICATE-----");
         System.out.println("CertificateUtil:getFingerPrint: pemCertBuff --"+pemCertBuff.toString());
         X509Certificate certs = null;
         try {
              CertificateFactory cf = CertificateFactory.getInstance("X.509");
              ByteArrayInputStream bis = new ByteArrayInputStream(pemCertBuff.toString().getBytes());
              weblogic.security.PEMInputStream pemIs = new weblogic.security.PEMInputStream(bis);
              BufferedInputStream bufis = new BufferedInputStream(pemIs);
              certs = (X509Certificate)cf.generateCertificate(bufis);
         } catch (CertificateException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
         } catch (IOException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
    And I am able to get the certificate, but I need to know is there any other elegant way to get the certificate as we did using weblogic.security.X509 class?
    Please help!!
    Message was edited by:
    rmkandan

  • Weblogic.security.X509 API

    Hello All,
    Is the API documentation for the weblogic.security.X509 class, or for
    that matter the entire package, documented somewhere?
    Thanks,
    Dan
    [dan.vcf]

    Hello All,
    I would like a client java program to communicate with a WLS over a t3s
    connection with two-way SSL.
    We have generated certificates for browsers that work fine for the two-way SSL.
    I have access to the base 64 encoded certificate that the java client program
    can use. I am assuming I need a private key also for use in the
    setSSLClientCertificate(InputStream[] chain) method for decryption of data
    coming to to the client. For a WLS server, this is no problem.
    Question(s): Am I correct in this private key assumption? If I do need the
    private key, how could I get it.
    Thanks
    [dan.vcf]

  • Sun Secure Global Desktop 4.40 Shadow Doesn't Work

    I try to make a shadow to one of my users from the administration console session,application session i select my user and press the shadow button but no open another windows and no send a warning to my user like the version 4.3
    need some to do for the shadow works ?

    Hi,
    I'm getting the same problem, Versions are:
    [root@tarantella tta_images]# tta version
    Sun Secure Global Desktop Software for Intel Linux kernel 2.4+ (4.40.907)
    Architecture code: i3li0206
    This host: Linux tarantella.audismar.es 2.6.9-11.ELsmp #1 SMP Fri May 20 18:26:27 EDT 2005 i686 i686 i386 GNU/Linux
    Red Hat Enterprise Linux ES release 4 (Nahant Update 1)
    Any Clue?
    Thanks in advance,
    Angel Lopez

  • Error "java.lang.NoClassDefFoundError: sun/security/provider/Sun" in 10.1.2

    Hi,
    I developed an ADF UIX application in JDeveloper 10.1.2. It works fine when I run on embedded oc4j in my machine.
    I deployed it to Oracle Application Server 10g in AIX. When I run the application from the Application Server and try to open a uix page with data I get the following error:
    500 Internal Server Error
    java.lang.NoClassDefFoundError: sun/security/provider/Sun     at oracle.jbo.common.ampool.PoolMgr.createPool(PoolMgr.java:280)     at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:482)     at oracle.jbo.common.ampool.ContextPoolManager.findPool(ContextPoolManager.java:165)     at oracle.adf.model.bc4j.DataControlFactoryImpl.findOrCreateSessionCookie(DataControlFactoryImpl.java(Compiled Code))     at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java(Compiled Code))     at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java(Compiled Code))     at oracle.adf.model.BindingContext.get(BindingContext.java(Compiled Code))     at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:228)     at oracle.adf.model.binding.DCUtil.findContextObject(DCUtil.java:308)     at oracle.adf.model.binding.DCIteratorBinding.<init>(DCIteratorBinding.java:127)     at oracle.jbo.uicli.binding.JUIteratorBinding.<init>(JUIteratorBinding.java:59)     at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:58)     at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:47)     at oracle.adf.model.binding.DCBindingContainerDef.createIterBindings(DCBindingContainerDef.java(Compiled Code))     at oracle.adf.model.binding.DCBindingContainerDef.createBindingContainer(DCBindingContainerDef.java(Compiled Code))     at oracle.adf.model.binding.DCBindingContainerReference.getBindingContainer(DCBindingContainerReference.java(Inlined Compiled Code))     at oracle.adf.model.BindingContext.get(BindingContext.java(Compiled Code))     at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:228)     at oracle.adf.model.binding.DCUtil.findContextObject(DCUtil.java:308)     at oracle.adf.model.binding.DCUtil.findBindingContainer(DCUtil.java:536)     at oracle.adf.controller.lifecycle.LifecycleContext.initialize(LifecycleContext.java:121)     at oracle.adf.controller.lifecycle.LifecycleContext.initialize(LifecycleContext.java:77)     at oracle.adf.controller.struts.actions.DataActionContext.initialize(DataActionContext.java:51)     at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:150)     at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)     at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)     at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))     at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java(Compiled Code))     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java(Compiled Code))     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java(Compiled Code))     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java(Compiled Code))     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java(Compiled Code))     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java(Compiled Code))     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java(Compiled Code))     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java(Compiled Code))     at java.lang.Thread.run(Thread.java:568)
    Can anybody tell/help why I am getting this error?
    Thanks
    Syed

    I believe this counts to be a bug in adf. I met with such errors as well in migration 1012 from NT to AIX platform, and after decompiling adf jar code and tak a look at it, the following code block indicates that In class- oracle.jbo.client.Configuration
    , it is hard coded to get secure provider- sun/security/provider/Sun, as listed below...
    import sun.security.provider.Sun;
    static void checkSecurityProviders()
    Provider aprovider[] = Security.getProviders();
    boolean flag = false;
    for(int i = 0; i < aprovider.length; i++)
    if(!aprovider.getName().equals("SUN"))
    continue;
    flag = true;
    break;
    if(!flag)
    try
    Sun sun = new Sun();
    Security.addProvider(sun);
    catch(Exception exception)
    exception.printStackTrace();
    Adam

  • Sun.security.validator.ValidatorException: Netscape cert type does not perm

    Hi,
    I am getting the following exception when clientAuthentication is enabled for ssl connection.
    I am using tomcat and a java client in my application.
    Please let me know how do i get through this.
    Thanks in advance
    -Sanjeev
    Below trace is from catalina.out
    ===========================
    http-8443-Processor24, SEND TLSv1 ALERT: fatal, description = certificate_unknown
    http-8443-Processor24, WRITE: TLSv1 Alert, length = 2
    http-8443-Processor24, called closeSocket()
    http-8443-Processor24, handling exception: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: Netscape cert type does not permit use for SSL client
    http-8443-Processor24, called close()
    http-8443-Processor24, called closeInternal(true)
    ===================================
    I get the below exception in my java client application.
    ==========================================
    : 68 42 6F FD E9 35 AB E5 C7 48 31 2C 78 31 BA F0 hBo..5...H1,x1..
    0020: EB 97 10 1F F9 B2 03 B7 7D CE 8A 04 73 37 07 A1 ............s7..
    0030: 9D 46 5A A2 B7 99 EE 86 1D EE A1 E4 D6 64 73 9B .FZ..........ds.
    0040: 6B FA D1 19 44 54 C0 47 DC F8 E1 4B 33 F6 0D 2D k...DT.G...K3..-
    0050: C9 04 B7 E8 8F 67 00 99 78 67 CC BE 26 C4 73 B5 .....g..xg..&.s.
    0060: 88 26 F6 08 B7 A3 89 A0 28 29 79 DD 16 B0 86 8F .&......()y.....
    0070: DE AA EA D3 1F 9F 8B 5B E7 B4 51 3B C8 90 67 0D .......[..Q;..g.
    0080: 68 46 F1 CC 10 D9 hF....
    main, WRITE: TLSv1 Handshake, length = 134
    main, WRITE: TLSv1 Change Cipher Spec, length = 1
    main, handling exception: java.net.SocketException: Software caused connection abort: socket write error
    main, SEND TLSv1 ALERT: fatal, description = unexpected_message
    main, WRITE: TLSv1 Alert, length = 2
    Exception sending alert: java.net.SocketException: Software caused connection abort: socket write error
    main, called closeSocket()
    Exception
    =================================================

    Netscape cert type does not permit use for SSL clientTry using another certificate. Your certificate can't be used as a web browser client certificate.

  • Bug in 'sun.security.provider.MD5'

    I have created a non-blocking server and a blocking client using NIO and SSLEngine.
    I have put the two in an endless read/write loop, i.e
    - the client writes to the server
    - the server reads
    - the server writes to the client
    - the client reads
    and so on...
    Everything works fine for a while, the "while" being almost constant, the I get the following exception:
    Exception in thread "Thread-0" java.lang.StackOverflowError
            at sun.security.provider.MD5.implCompress(MD5.java:129)
            at sun.security.provider.MD5.implDigest(MD5.java:92)
            at sun.security.provider.DigestBase.engineDigest(DigestBase.java:169)
            at sun.security.provider.DigestBase.engineDigest(DigestBase.java:148)
            at java.security.MessageDigest$Delegate.engineDigest(MessageDigest.java:545)
            at java.security.MessageDigest.digest(MessageDigest.java:323)
            at com.sun.crypto.provider.HmacCore.b(DashoA13*..)
            at com.sun.crypto.provider.HmacMD5.engineDoFinal(DashoA13*..)
            at javax.crypto.Mac.doFinal(DashoA13*..)
            at com.sun.net.ssl.internal.ssl.MAC.compute(MAC.java:172)
            at com.sun.net.ssl.internal.ssl.MAC.compute(MAC.java:136)
            at com.sun.net.ssl.internal.ssl.EngineInputRecord.checkMAC(EngineInputRecord.java:193)
            at com.sun.net.ssl.internal.ssl.SSLEngineImpl.readRecord(SSLEngineImpl.java:881)
            at com.sun.net.ssl.internal.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:791)
            at com.sun.net.ssl.internal.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:667)
            at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:607)
            at pt.jmdsc.coms.SSLChannel.read(SSLChannel.java:126)This seems to be a bug in the MD5 class of the provider, has anyone come across the same issue?

    Yip I did shorten the post, the last 4 lines below keep repeating
    Exception in thread "Thread-0" java.lang.StackOverflowError
            at sun.security.provider.MD5.implCompress(MD5.java:129)
            at sun.security.provider.DigestBase.engineUpdate(DigestBase.java:116)
            at java.security.MessageDigestSpi.engineUpdate(MessageDigestSpi.java:97)
            at java.security.MessageDigest$Delegate.engineUpdate(MessageDigest.java:541)
            at java.security.MessageDigest.update(MessageDigest.java:311)
            at com.sun.crypto.provider.HmacCore.a(DashoA13*..)
            at com.sun.crypto.provider.HmacMD5.engineUpdate(DashoA13*..)
            at javax.crypto.Mac.update(DashoA13*..)
            at com.sun.net.ssl.internal.ssl.MAC.compute(MAC.java:167)
            at com.sun.net.ssl.internal.ssl.MAC.compute(MAC.java:136)
            at com.sun.net.ssl.internal.ssl.EngineInputRecord.checkMAC(EngineInputRecord.java:193)
            at com.sun.net.ssl.internal.ssl.SSLEngineImpl.readRecord(SSLEngineImpl.java:881)
            at com.sun.net.ssl.internal.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:791)
            at com.sun.net.ssl.internal.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:667)
            at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:607)
            at pt.jmdsc.coms.SSLChannel.read(SSLChannel.java:126)
            at pt.jmdsc.coms.Client.read(Client.java:92)
            at pt.jmdsc.coms.Client.write(Client.java:85)
            at pt.jmdsc.coms.Client.read(Client.java:92)
            at pt.jmdsc.coms.Client.write(Client.java:85)
            ....

  • Java plugin crashes when creating a new sun.security.pkcs11.SunPKCS11 object

    Hi,
    I have created an applet which signs pdf files and works fine.
    Applet is used in a website that needs client authentication with the same smart card wich is used to sign the documents.
    The java plugin crashes at this line of code. The message showed - The java applet plugin has failed
    sunpkcs11 = new sun.security.pkcs11.SunPKCS11(pkcs11);
    I think it crashes because the pkcs11 module is still used, the light of the smart card reader is not blinking is a fixed light.
    I haven't got an error log because the java plugin crashes. Only shows the log lines before that line of code.
    Later the sunpkcs11 provider is added if the smarcard is unplugged and java plugin don't crashes.
    Security.addProvider(sunpkcs11);
    If I unplug the smart card after client authentication and before sign a document, the java plugin don't crashes and later, the provider is added, and the document is signed and the light of the smart card reader is blinking before signing.
    Firefox 27 version.
    Java Standar Edition version 7 update 51 compilation 1.7.0_51-b13
    I'm using mac os x v10.9 64 bits system
    I have seen:
    http://bugs.java.com/view_bug.do?bug_id=8026833
    I have tested the same applet with firefox, in windows 7, windows 8, ubuntu 13.10 and fedora 19, and works and signs documents after client authentication.
    when applet is loaded in windows is not using pkcs11. But I haven't got the same problem.
    But in mac os x v10.8 and v10.9 java plugin crashes.
    Is there a way to disconnect programatically the pkcs11 module or any other solution?
    I'm not sure why the java plugin crashes. Has got any relationship with the bug 8026833?
    Any suggestion?.
    Thank you.

    Hi,
    According to your post, my understanding is that you had Errors TF30162 and TF250025 when creating a New Team Project in TFS2012 with Sharepoint Site on Visual Studio.
    The Errors TF30162 seemed that the reports for TFS could not be uploaded due a permission problem. The fix was really easy.
    Go to your team foundation server 
    Open the administration console. 
    Click on Reporting
    Click on Edit
    Click on Reports Tab
    Enter the credential for the Reports
    Save
    Click on Start Jobs
    In addtion, the problem may be due to the caching done by Team Explorer in Visual Studio. Exiting the copy of VS on the client and reloading it will fix the problem as the updated team process settings will cached locally.
    To resolve the Errors TF250025, you will need to register a new internal URL for the SharePoint site using Alternate Access Mappings.
    Here are two great blogs for you to take a look at:
    http://blogbaris.blogspot.in/2012_08_01_archive.html
    http://petersullivan.com.au/2009/11/23/tf250025-and-tf262600-errors-on-team-foundation-server-tfs-2010-project-portal-dashboard/
    If still no help, for quick and accurate answers to your questions, it is recommended that you initial a new thread in Visual Studio Team Foundation Server forums.
    Team Foundation Server – General:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=tfsgeneral
    Thank you for your understanding.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

Maybe you are looking for

  • I can't find the Signature option in the Annotations menu in Preview

    I am trying to add a digital signature that I have already created to a PDF file but there is no Signature option showing up in the Annotations menu in Preview. The document I am trying to add the signature to is definitely a PDF but there is still n

  • Radius-Authentication / Cisco 2600 fails MiscError -1642

    Hi, Im trying to configure BM 3.8 SP3ir3, Radius (NMAS 2.3) to authenticate a Cisco 2600 against my BM. Under BM 3.7 this setup is working fine, but now with 3.8 I get the following error: Access rejected, Miscellaneous error (-1642) Ive configured t

  • "Baud Rate" AttrId not found for CAN frame API's ncGetAttr and ncSetAttr

    Hi, Well, everything is in the Subject : "Baud Rate" AttrId not found for CAN frame API's ncGetAttr and ncSetAttr Although it is listed in the LabVIEW Documentation,  it is not in the enum's items gotten from `right click` -> `create` -> `contsant` o

  • How to edit the Object Data pane inside PDF 3D?

    Hello, I'm wondering if it is possible to import Property and Value data to populate the Model Tree property pane associated with the 3D PDF data. If this is possible I would really appreciate some example code. My problem: I export a U3D file from A

  • N79 - Indepth User Manual?

    is there an online indepth user manual anywhere for the N79? I find that the manuals that came with it are not very detail. They do not teach or describe all the capabilities and functions of this phone. The user manual is so poor in details. Is ther