JUnit 4 Extension for 10.1.3?

Hi, are there any plans to update the JUnit Extension for JDeveloper 10.1.3 to support JUnit 4?
Using the current extension with JUnit 4 has two main drawbacks: a) one loses the ability to run a single test method, and b) successes and failures are not shown for each test, but only summarily.
If not, is the source code for the current extension freely available, so anyone could try to fix it up?
Or does anyone know of a third-party extension to do the job?
-- Sebastian

Junit 4 integration is planned for release 11.
If you want it before that you can write your own extension:
http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/index.html

Similar Messages

  • Still JUnit extension download to JDeveloper 9.0.3 doesn't work

    Still 404 message trying to download the Junit extension for JDeveloper 9.0.3

    Thanks. When I got to the link in that message, the downgraded version of Skype
    is not available. WHen I go to Google Play to get the version from Dec 9, 2014,
    "Already Installed" is displayed, even though I don't have that version.
    It won't give me the option to upgrade to the release from Dec 9, 2014

  • Adding JUnit Extension to 10.1.3

    I'm looking for a way to add the JUnit extension to JDeveloper 10.1.3 production release (not EA) while I don't have direct internet access from my terminal.
    I read this forum posting: Re: adding JUnit extension to 10.1.3EA
    and it seemed to address the issue for 10.1.3 EA, but I tried to add the extension by both suggested methods in the article.
    When trying to add the extension using the local check for updates option, I got this error: "Required Updates Not Installed: The JUnit Integration update in this bundle requires one or more extensions that are not currently installed."
    When extracting the extension zip file into the jdev/extensions directory, I received this error: "Severe: No class def found for addin oracle.jdevimpl.wizard.junit.JUnitAddin"
    Can anyone point me in the right direction?
    Thanks

    You'll need to download the JUnit extension for the production version (you can't use the one from EA), and then just point the check for update to the zip file.

  • Can't download JUNIT extension via "check for updates"

    Hi,
    since a few weeks (with jdev 11.1.1.1.0 and jdev 11.1.1.2.0) I can't download e.g. JUNIT extensions via "check for updates".
    I have to enter a password but authentication is not possible.
    Even when I reset the passord (via "find password") it does not work any more.
    Im 100% sure that this worked some time ago without problems.
    I can access http://www.oracle.com/technology/products/jdev/101/update/center.xml#oracle.jdeveloper.junit and download the extension manually.
    regards
    Peter

    Peter,
    no problems on my side with my account. I did it yesterday without any problem.
    Timo

  • Component Extension for EHSM 3.0: Webdynpro Error

    Hi,
    I have installed Component Extension for EHSM 3.0 and its business package in EP 7.3.
    Some of the links of the application are giving webdynpro error.
    Can anyone please help me in fixing this error?
    Regards,
    Kapil

    Hey Jun,
    I could not find the wda in the ABAP system, like what the error message suggests.
    But the wda is supposed to come with the Component Extension for EHSM 3.0, which is installed in ECC.
    Regards,
    Kapil

  • JDev 10.1.2 - JUnit Extension Does not work

    When migrating from JDev 9.0.5.2 to 10.1.2 I get an error on startup the indicates that the JUnit extension is not working:
    Error: <Line 2, Column 71>: XML-24538: (Error) Can not find definition for element 'extensions'
    Converting JDeveloper 9.0.5 extension manifest to 10.1.2
    C:\Oracle\JDev\jdev\lib\ext\jalopy-jdeveloper-1.1.4.jar!\META-INF\jdev-ext.xml
    Error: <Line 3, Column 21>: XML-24534: (Error) Element 'feature' not expected.
    Error: <Line 11, Column 14>: XML-24521: (Error) Element not completed: 'extensions'
    C:\Oracle\JDev\jdev\lib\ext\bc4j_junit_addin.jar!\meta-inf\jdev-ext.xml
    Error: <Line 3, Column 21>: XML-24534: (Error) Element 'feature' not expected.
    Error: <Line 22, Column 14>: XML-24521: (Error) Element not completed: 'extensions'

    I am actually working with JDev10.1.2 and I recently created a new Extension. Since then, when I load jdev I get the error
    "C:\oracle10bis\jdev\lib\ext\DBExtension.jar!\meta-inf\jdev-ext.xml
    Error: <Line 2, Column 71>: XML-24538: (Error) Can not find definition for element 'extensions'
    Converting JDeveloper 9.0.5 extension manifest to 10.1.2"
    I followed your advice, downloaded and installed the JUnit component, but the error is still present. Moreover, if i try using the "Check for updates" functionality, I always get:
    "Unable to connect to OTN
    Details: Connection timeout: connect"
    Any ideas?
    Thanks in advance

  • JDev 10.1.2 : JUnit extension

    hi
    While trying to setup the ADF Toy Store demo (*1) in JDeveloper 10.1.2 I downloaded the JUnit extension (*2).
    There is an extension available for JDeveloper 9.0.5.2 and one for JDeveloper 9.0.5.1, there is none for JDeveloper 10.1.2 so I chose the 9.0.5.2 version.
    Each time I start JDeveloper I get these messages:
    D:\jdev1012\jdev\lib\ext\bc4j_junit_addin.jar!\meta-inf\jdev-ext.xml
    Error: <Line 3, Column 21>: XML-24534: (Error) Element 'feature' not expected.
    Error: <Line 22, Column 14>: XML-24521: (Error) Element not completed: 'extensions'
    D:\jdev1012\jdev\lib\ext\junit_addin.jar!\meta-inf\jdev-ext.xml
    Error: <Line 3, Column 21>: XML-24534: (Error) Element 'feature' not expected.
    Error: <Line 66, Column 14>: XML-24521: (Error) Element not completed: 'extensions'Although the RunAllTests class of the ADF Toy Store demo seems to run fine, I wonder if I am going to get into trouble if I use JUnit in JDeveloper 10.1.2 like this.
    Maybe I should wait for a JUnit extension packaged specifically for JDeveloper 10.1.2 ?
    thanks
    Jan Vervecken
    (*1) http://www.oracle.com/technology/products/jdev/collateral/papers/10g/adftoystore.html
    (*2) http://www.oracle.com/technology/software/products/jdev/htdocs/junit10g/junitsoft.html

    thanks Shay
    No more errors, it works.
    Jan
    related thread:
    - "JDev 10.1.2 : Check for Updates"
    JDev 10.1.2 : Check for Updates

  • Could not download JUnit extension to JDeveloper 9.0.3

    I tried to download the JUnit extension to JDeveloper 9.0.3 from http://otn.oracle.com/software/products/jdev/htdocs/junitsoft.html
    and got the 'Sorry this page does not exist' page
    http://otn.oracle.com/errors/404.htm

    This is a JHeadStart issue, please post to the JHeadStart forum for assistance.
    Forums Home >> Oracle Technology Network (OTN) >> Products >> Developer Suite >> JHeadStart
    Kind Regards.

  • Adding JUnit extension to 10.1.3EA

    Is there a way to add the JUnit extension without using Help/Check for Updates? My work computer is not directly connected to the Internet.
    Thanks,
    Robert

    Shay,
    Yes, I do see the Oracle extensions when I do a remote Help/Check for Updates..., but I don't see the 10.1.3 extensions on the Extensions Exchange webpage. However, I just saw a previous post from you regarding the manual download of extensions in which you provided a URL to an XML file that contains, among other things, the links to the extensions.
    http://www.oracle.com/technology/products/jdev/101/update/center.xml
    Thanks,
    Robert

  • Problem:JDeveveloper 11g and JUnit Extension against a JDK 5 Project

    We've got a project that requires JDK 5, and would like to run our JUnit tests using the integrated JUnit Extension in Jdeveloper 11g.
    However, we are getting the following error: java.lang.UnsupportedClassVersionError: Bad version number in .class file
    Presumabily, this is because the JUnit classes are JDK 6, since the tests work if we switch our project to use JDK 6.
    Of course, the problem is: Our project requires JDK 5. =)
    Anyone have a workaround?
    Thanks,
    - Bill

    Hi,
    JDeveloper is on JDK 1.5, How can I configure it to be 1.4??
    I had the JDeveloper 10.1.3 also and it went ahead with some updates and now even that shows me that it's version is JDK 1.5
    The latest error I get from JDeveloper(From both 11g and 10.1.3) is here,
    Invoking loadjava on connection 'HR_CapRock_DEV' with arguments:
    -order -resolve -thin
    errors : class package1/mypackage/JavaStoredProc
    ORA-29521: referenced name java/lang/StringBuilder could not be found
    The following operations failed
    class package1/mypackage/JavaStoredProc: resolution
    oracle.aurora.server.tools.loadjava.ToolsException: Failures occurred during processing
         at oracle.aurora.server.tools.loadjava.LoadJava.process(LoadJava.java:863)
         at oracle.jdeveloper.deploy.tools.OracleLoadjava.deploy(OracleLoadjava.java:116)
         at oracle.jdeveloper.deploy.tools.OracleLoadjava.deploy(OracleLoadjava.java:46)
         at oracle.jdevimpl.deploy.OracleDeployer.deploy(OracleDeployer.java:97)
         at oracle.jdevimpl.deploy.StoredProcHandler.doDeploy(StoredProcHandler.java:473)
         at oracle.jdevimpl.deploy.StoredProcHandler.doDeploy(StoredProcHandler.java:360)
         at oracle.jdevimpl.deploy.StoredProcHandler.doDeploy(StoredProcHandler.java:284)
         at oracle.jdevimpl.deploy.StoredProcProfileDt$Action$1.run(StoredProcProfileDt.java:383)
    #### Deployment incomplete. #### Jun 18, 2007 10:17:31 AM
    *** Note ***
    One possibility for the deployment failure is that the target Database may not support JDK version 1.5. Updating your Project Properties compiler Source & Target to an earlier release could fix this problem.
    How can I either downgrade JDK on the compiler(JDeveloper) to be 1.4 or, How can I resolve the error,
    ORA-29521: referenced name java/lang/StringBuilder could not be found
    Thanks,
    Sujith

  • Installating JUnit extension

    I have just spent the whole morning trying to install the JUnit extension into JDev 10.1.3.1. Most of that time was spent trying to find where to get the extension,when you can't use check for updates...
    OK so now I have the extension downloaded and use Check for Updates on the local file, it tells me that it can't install it because it depends on some other extension which I don't have installed. But it doesn't tell me which extension ...
    How do I find out dependencies for extensions?
    I'm on the point of giving up and using Eclipse like everyone else on my project ...

    Shay,
    I followed your fix and be able to continue installing it.
    However, after restarting I saw the extension has error
    D:\Oracle\jdevstudio10133\jdev\extensions\junit_doc_for_java.jar
    Severe(0,0): file:/D:/Oracle/jdevstudio10133/jdev/extensions/junit_doc_for_java.jar does not contain an extension manifest.
    D:\Oracle\jdevstudio10133\jdev\extensions\oracle.jdeveloper.junit.10.1.3.jar
    Severe(6,80): Missing required attribute 'version'
    D:\Oracle\jdevstudio10133\jdev\extensions\junit_doc_for_j2ee.jar
    Severe(0,0): file:/D:/Oracle/jdevstudio10133/jdev/extensions/junit_doc_for_j2ee.jar does not contain an extension manifest.
    D:\Oracle\jdevstudio10133\ is where I place my jDev.
    Please let me know how to fix it

  • Warranty extension for Satellite U400

    Hello!
    I have a question about possibility to extend warranty for my laptop.
    On the official web-ste there is information about my device and it;s written over there:
    "Standard Warranty
    Coverage: International Days:365 Expiration Date: 2010-05-25
    Extended Warranty
    Servicename: International Warranty Extension from 1 to 2 years Service Coverage: International Days: 730 Expiration Date: 2011-05-25 "
    It's written that I have already an extended warranty, but i've just register the standard warranty of my new laptop!
    Anyway, the question is: can i buy a warranty extansion in my cause and what type of extension i have to buy (from 2 to 4, from 2 to 3 e.t.c.)
    Thank you in advance!
    P.S. And one more question: my friend is going to buy Toshiba Satellite A500-1F2. The same question: which kind of warranty extension is he able to purchase?
    Thank you!
    Best regards,
    Dmitry

    Hi
    Usually all notebooks are covered by standard warranty for a 1 year.
    If you register the notebook on the Toshiba page, you will get an additional warranty year (altogether 2 years).
    I think this is what you can see on the Toshiba page.
    I think you can extend the warranty too.
    You have to look here:
    http://eu.computers.toshiba-europe.com -> Peripherals & Services -> Services -> Warranty extensions
    There you will have to check available Warranty Extensions for your notebook model.
    Greets

  • Custom service (using Reader Extensions) for REST invocation

    Hello,
    is it possible to implement and configure a custom service (using Reader Extensions) for REST invocation?
    Best regards
    CommanderPeek

    Yes LiveCycle does support REST as an endpoint http://help.adobe.com/en_US/livecycle/9.0/programLC/help/index.htm?content=000562.html

  • Using JSSE : "Invalid Netscape CertType extension for SSL client" Error

    Hi all,
    Im using the sample code given sun site for JSSE with Client Authentication. The sample as such it worked with the testkeys provided in that. But it didn't workout when I tried using other certificates.
    Both client and server certificates I generated from our internal Netscape Certificate Manager.
    Function of the server :
    The server will read a private key from the given keystore and starts listening on a port. This server will server only GET request.
    Function of the client :
    The Client sends a GET request to the server and gets the response back.
    I simply changed the key store name alone in the working sample code.
    It is not working.
    The Exception thrown on client side :
    D:\users\Jp\java\jssesamples\sockets\client\class>java SSLSocketClientWithClientAuth1 localhost 1089 /urls
    localhost
    1089
    /urls
    java.net.SocketException: Software caused connection abort: socket write error
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
    at com.sun.net.ssl.internal.ssl.OutputRecord.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SunJSSE_az.j(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275)
    at SSLSocketClientWithClientAuth1.main(SSLSocketClientWithClientAuth1.java:119)
    Exception thrown on server side :
    D:\users\Jp\java\jssesamples\sockets\server\class>java ClassFileServer 1089 . TLS true
    USAGE: java ClassFileServer port docroot [TLS [true]]
    If the third argument is TLS, it will start as
    a TLS/SSL file server, otherwise, it will be
    an ordinary file server.
    If the fourth argument is true,it will require
    client authentication as well.
    javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Invalid Netscape CertType extension for SSL client
    at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SunJSSE_aw.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SunJSSE_aw.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.AppInputStream.read(DashoA6275)
    at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:406)
    at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:446)
    at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:180)
    at java.io.InputStreamReader.read(InputStreamReader.java:167)
    at java.io.BufferedReader.fill(BufferedReader.java:136)
    at java.io.BufferedReader.readLine(BufferedReader.java:299)
    at java.io.BufferedReader.readLine(BufferedReader.java:362)
    at ClassServer.getPath(ClassServer.java:162)
    at ClassServer.run(ClassServer.java:109)
    at java.lang.Thread.run(Thread.java:536)
    Caused by: java.security.cert.CertificateException: Invalid Netscape CertType extension for SSL client
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkClientTrusted(DashoA6275)
    at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkClientTrusted(DashoA6275)
    ... 17 more
    error writing response: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateExce
    ption: Invalid Netscape CertType extension for SSL client
    javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: java.security.cert.Certificate
    Exception: Invalid Netscape CertType extension for SSL client
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.d(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.e(DashoA6275)
    at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
    at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
    at java.io.DataOutputStream.writeBytes(DataOutputStream.java:256)
    at ClassServer.run(ClassServer.java:128)
    at java.lang.Thread.run(Thread.java:536)
    Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Invalid Netscape CertType extension
    for SSL client
    at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SunJSSE_aw.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SunJSSE_aw.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.AppInputStream.read(DashoA6275)
    at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:406)
    at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:446)
    at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:180)
    at java.io.InputStreamReader.read(InputStreamReader.java:167)
    at java.io.BufferedReader.fill(BufferedReader.java:136)
    at java.io.BufferedReader.readLine(BufferedReader.java:299)
    at java.io.BufferedReader.readLine(BufferedReader.java:362)
    at ClassServer.getPath(ClassServer.java:162)
    at ClassServer.run(ClassServer.java:109)
    ... 1 more
    Caused by: java.security.cert.CertificateException: Invalid Netscape CertType extension for SSL client
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkClientTrusted(DashoA6275)
    at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkClientTrusted(DashoA6275)
    ... 17 more
    The Client code :
    * @(#)SSLSocketClientWithClientAuth.java     1.5 01/05/10
    * Copyright 1995-2002 Sun Microsystems, Inc. All Rights Reserved.
    * Redistribution and use in source and binary forms, with or
    * without modification, are permitted provided that the following
    * conditions are met:
    * -Redistributions of source code must retain the above copyright
    * notice, this list of conditions and the following disclaimer.
    * -Redistribution in binary form must reproduct the above copyright
    * notice, this list of conditions and the following disclaimer in
    * the documentation and/or other materials provided with the
    * distribution.
    * Neither the name of Sun Microsystems, Inc. or the names of
    * contributors may be used to endorse or promote products derived
    * from this software without specific prior written permission.
    * This software is provided "AS IS," without a warranty of any
    * kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND
    * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,
    * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY
    * EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY
    * DAMAGES OR LIABILITIES SUFFERED BY LICENSEE AS A RESULT OF OR
    * RELATING TO USE, MODIFICATION OR DISTRIBUTION OF THE SOFTWARE OR
    * ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE
    * FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT,
    * SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
    * CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF
    * THE USE OF OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN
    * ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
    * You acknowledge that Software is not designed, licensed or
    * intended for use in the design, construction, operation or
    * maintenance of any nuclear facility.
    import java.net.*;
    import java.io.*;
    import javax.net.ssl.*;
    import javax.security.cert.X509Certificate;
    import java.security.KeyStore;
    * This example shows how to set up a key manager to do client
    * authentication if required by server.
    * This program assumes that the client is not inside a firewall.
    * The application can be modified to connect to a server outside
    * the firewall by following SSLSocketClientWithTunneling.java.
    public class SSLSocketClientWithClientAuth1 {
    public static void main(String[] args) throws Exception {
         String host = null;
         int port = -1;
         String path = null;
         for (int i = 0; i < args.length; i++)
         System.out.println(args);
         if (args.length < 3) {
         System.out.println(
              "USAGE: java SSLSocketClientWithClientAuth " +
              "host port requestedfilepath");
         System.exit(-1);
         try {
         host = args[0];
         port = Integer.parseInt(args[1]);
         path = args[2];
         } catch (IllegalArgumentException e) {
         System.out.println("USAGE: java SSLSocketClientWithClientAuth " +
              "host port requestedfilepath");
         System.exit(-1);
         try {
         * Set up a key manager for client authentication
         * if asked by the server. Use the implementation's
         * default TrustStore and secureRandom routines.
         SSLSocketFactory factory = null;
         try {
              SSLContext ctx;
              KeyManagerFactory kmf;
              KeyStore ks;
              char[] passphrase = "passphrase".toCharArray();
              ctx = SSLContext.getInstance("TLS");
              kmf = KeyManagerFactory.getInstance("SunX509");
              ks = KeyStore.getInstance("JKS");
    //          ks.load(new FileInputStream("testkeys"), passphrase);
              ks.load(new FileInputStream("clientkey"), passphrase);
              kmf.init(ks, passphrase);
              ctx.init(kmf.getKeyManagers(), null, null);
              factory = ctx.getSocketFactory();
         } catch (Exception e) {
              throw new IOException(e.getMessage());
         SSLSocket socket = (SSLSocket)factory.createSocket(host, port);
         * send http request
         * See SSLSocketClient.java for more information about why
         * there is a forced handshake here when using PrintWriters.
         socket.startHandshake();
         PrintWriter out = new PrintWriter(
                        new BufferedWriter(
                        new OutputStreamWriter(
                        socket.getOutputStream())));
         out.println("GET " + path + " HTTP/1.1");
              /* Some internet sites throw bad request error for HTTP/1.1 req if hostname is not specified so the foll line */
              out.println("Host: " + host);
         out.println();
         out.flush();
         * Make sure there were no surprises
         if (out.checkError())
              System.out.println(
              "SSLSocketClient: java.io.PrintWriter error");
         /* read response */
         BufferedReader in = new BufferedReader(
                        new InputStreamReader(
                        socket.getInputStream()));
         String inputLine;
         while ((inputLine = in.readLine()) != null)
              System.out.println(inputLine);
         in.close();
         out.close();
         socket.close();
         } catch (Exception e) {
         e.printStackTrace();
    The Server code :
    * @(#)ClassFileServer.java     1.5 01/05/10
    * Copyright 1995-2002 Sun Microsystems, Inc. All Rights Reserved.
    * Redistribution and use in source and binary forms, with or
    * without modification, are permitted provided that the following
    * conditions are met:
    * -Redistributions of source code must retain the above copyright
    * notice, this list of conditions and the following disclaimer.
    * -Redistribution in binary form must reproduct the above copyright
    * notice, this list of conditions and the following disclaimer in
    * the documentation and/or other materials provided with the
    * distribution.
    * Neither the name of Sun Microsystems, Inc. or the names of
    * contributors may be used to endorse or promote products derived
    * from this software without specific prior written permission.
    * This software is provided "AS IS," without a warranty of any
    * kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND
    * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,
    * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY
    * EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY
    * DAMAGES OR LIABILITIES SUFFERED BY LICENSEE AS A RESULT OF OR
    * RELATING TO USE, MODIFICATION OR DISTRIBUTION OF THE SOFTWARE OR
    * ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE
    * FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT,
    * SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
    * CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF
    * THE USE OF OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN
    * ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
    * You acknowledge that Software is not designed, licensed or
    * intended for use in the design, construction, operation or
    * maintenance of any nuclear facility.
    import java.io.*;
    import java.net.*;
    import java.security.KeyStore;
    import javax.net.*;
    import javax.net.ssl.*;
    import javax.security.cert.X509Certificate;
    /* ClassFileServer.java -- a simple file server that can server
    * Http get request in both clear and secure channel
    * The ClassFileServer implements a ClassServer that
    * reads files from the file system. See the
    * doc for the "Main" method for how to run this
    * server.
    public class ClassFileServer extends ClassServer {
    private String docroot;
    private static int DefaultServerPort = 2001;
    * Constructs a ClassFileServer.
    * @param path the path where the server locates files
    public ClassFileServer(ServerSocket ss, String docroot) throws IOException
         super(ss);
         this.docroot = docroot;
    * Returns an array of bytes containing the bytes for
    * the file represented by the argument <b>path</b>.
    * @return the bytes for the file
    * @exception FileNotFoundException if the file corresponding
    * to <b>path</b> could not be loaded.
    public byte[] getBytes(String path)
         throws IOException
         System.out.println("reading: " + path);
         File f = new File(docroot + File.separator + path);
         int length = (int)(f.length());
         if (length == 0) {
         throw new IOException("File length is zero: " + path);
         } else {
         FileInputStream fin = new FileInputStream(f);
         DataInputStream in = new DataInputStream(fin);
         byte[] bytecodes = new byte[length];
         in.readFully(bytecodes);
         return bytecodes;
    * Main method to create the class server that reads
    * files. This takes two command line arguments, the
    * port on which the server accepts requests and the
    * root of the path. To start up the server: <br><br>
    * <code> java ClassFileServer <port> <path>
    * </code><br><br>
    * <code> new ClassFileServer(port, docroot);
    * </code>
    public static void main(String args[])
         System.out.println(
         "USAGE: java ClassFileServer port docroot [TLS [true]]");
         System.out.println("");
         System.out.println(
         "If the third argument is TLS, it will start as\n" +
         "a TLS/SSL file server, otherwise, it will be\n" +
         "an ordinary file server. \n" +
         "If the fourth argument is true,it will require\n" +
         "client authentication as well.");
         int port = DefaultServerPort;
         String docroot = "";
         if (args.length >= 1) {
         port = Integer.parseInt(args[0]);
         if (args.length >= 2) {
         docroot = args[1];
         String type = "PlainSocket";
         if (args.length >= 3) {
         type = args[2];
         try {
         ServerSocketFactory ssf =
              ClassFileServer.getServerSocketFactory(type);
         ServerSocket ss = ssf.createServerSocket(port);
         if (args.length >= 4 && args[3].equals("true")) {
              ((SSLServerSocket)ss).setNeedClientAuth(true);
         new ClassFileServer(ss, docroot);
         } catch (IOException e) {
         System.out.println("Unable to start ClassServer: " +
                   e.getMessage());
         e.printStackTrace();
    private static ServerSocketFactory getServerSocketFactory(String type) {
         if (type.equals("TLS")) {
         SSLServerSocketFactory ssf = null;
         try {
              // set up key manager to do server authentication
              SSLContext ctx;
              KeyManagerFactory kmf;
              KeyStore ks;
              char[] passphrase = "passphrase".toCharArray();
              ctx = SSLContext.getInstance("TLS");
              kmf = KeyManagerFactory.getInstance("SunX509");
              ks = KeyStore.getInstance("JKS");
    //          ks.load(new FileInputStream("testkeys"), passphrase);
              ks.load(new FileInputStream("serverkey"), passphrase);
              kmf.init(ks, passphrase);
              ctx.init(kmf.getKeyManagers(), null, null);
              ssf = ctx.getServerSocketFactory();
              return ssf;
         } catch (Exception e) {
              e.printStackTrace();
         } else {
         return ServerSocketFactory.getDefault();
         return null;
    Could anyone help ?
    thanks in advance
    Jayaprakash

    The same thing.
    I have found the place where the exception throws.
    It is com.sun.net.ssl.internal.ssl.AVA class.
    It has a constructor AVA(StringReader)
    There is a check in this constructor of different certificate extensions
    (if-else). If it sees no familiar extension it throws exception and handshake fails.
    It is not difficult to fix this problem: just ignore unknown extension.
    Everything works fine with this "improved" class (under VA 3.5).
    But the problem is - the using of this class in applets.
    How can I say the browser to use my "improved" class and not the one it downloaded with java plug-in?

  • How to Package Photoshop Extension for cs4/cs5 with manifest.xml

    Hello,
    tl;dr: How can I package my extension for both cs4 and cs5 in a way that respects the extension's window geometry?
    I have a panel that specifies window geometry in it's manifest.xml. When the panel is installed into Photoshop's panels/ folder, the geometry gets ignored, so I'm trying to package the panel as an extension to be installed via the Extension Manager. I have run into different problems for each CS version. I've read quite a few pdfs about the Extension Manager, UCF command line packaging, etc, and have not been able to find a solution that works for both platforms.
    My understaning
    My trial and error research has lead me to understand that the extension's files must eventually end up in the (mac) /Library/Application Support/Adobe/<CSversion>ServiceManager/extensions/ directory. In CS5, if the extension's folder contains a manifest.xml file (ex: /extensions/GuideGuide/CSXS/manifest.xml) that specifies window geometry, Photoshop will respect that window geometry when the panel opens. However, in CS4, this is not enough. From my tests, Photoshop CS4 doesn't seem to do anything with the manifest.xml file. Instead, I had to modify /Library/Application Support/Adobe/CS4ServiceManager/ServiceManifest.xml and add my extension to it's contents. Once I did this, Photoshop CS4 launches my panel and respects it's window geometry.
    The problem with this is that it's a manual installation. I can't ask my users to dig around in their system files to install my panel. In addition, since it's unsigned using this method, it won't work if they're not flagged for debugging. I've started exploring using the Extension Manager, but I have run into problems that I cannot find ansers in the few pdfs about packaging that I've been able to find.
    CS5 Problems
    If I use the UCF command line tool, I can package and sign my file. It installs fine and does what I want. However, using this method, I haven't been able to find a way to specify the author and description that shows up in the Extension Manager.
    CS4 Problems
    The UCF command line tool doesn't appear to make packages that can be installed by CS4, and I haven't been able to find one that is compatable. I've had to result to using the Extension Manager to package my extension based on a .mxi file. The problem I have here is that installing files this way limits me to putting them in the /panels directory, which then causes the panel to ignore the indow geometry. Is there a way with an .mxi file to install in the /Library/Application Support/Adobe/<CSversion>ServiceManager/extensions/ directory and modify the /Library/Application Support/Adobe/CS4ServiceManager/ServiceManifest.xml file?
    There must be, because Kuler and other extensions are installed there.
    Thank you SO much for any help you might provide. I've spent weeks trying to get this to work and have run into nothing but dead ends and wild goose chases.

    Your extension is a CSXS extension. For CSXS extension it's introduced in Extension Manager 2.1. (You can download Extension manager 2.1 from http://www.adobe.com/exchange/em_download/em20_download.html)
    In Extension Manager CS2.1 only MXP package is supported. In Extension Manager CS5 CSXS extension must be packaged by ZXP format. So you have to generate two packages for CS4(mxp) and CS5(zxp)
    For CS5, you can use ucf.jar to generate the zxp package.
    For CS4, you have to create an MXI file and package it by Extension Manager 2.1 to mxp package. Here is a sample CSXS mxi file:
    <macromedia-extension
               name="CSXS_TEST_EXTENSION"
               version="1.0.0"
               type="Command"
               requires-restart="true">
              <author name="Macromedia" />
              <products>
                        <product name="Dreamweaver" version="10" primary="true" />
                        <product name="Fireworks" version="10" primary="true" />
                        <product name="Flash" version="10" primary="true" />
                        <product name="" version="11" familyname="Photoshop" primary="true" />
                        <product name="Illustrator" version="14" primary="true" />
                        <product name="CSXS" version="1" />
              </products>
              <description>
              <![CDATA[
              CSXS extension sample.
              ]]>
              </description>
              <ui-access>
              <![CDATA[
              Extension Name: kuler
              ]]>
              </ui-access>
              <license-agreement>
              <![CDATA[
              ]]>
              </license-agreement>
              <files>
                        <file source="test_extension" destination="" />
              </files>
    </macromedia-extension>

Maybe you are looking for

  • Is there a way to make Lync 2013 Thinner

    Not certain if this is the right Forum, please let me know if I need to change it/delete remake :) Hello, I just switched over to Lync 2013 from 2010 and I was curious if there was a few things I could change. Lync 2010 took up less space on the scre

  • Is Premiere Pro CC trial comptible "Classroom in a Book?"

    Is it possible to use Premiere Pro CC trial with the lesons on the book "Classroom in a Book?"

  • Hi, gurus ABC PROBLEM

    HI, WHERE  WE CAN SEE DOWNPAYMENT CONFIGURATION IN SPRO. ANY CLUES PLZ

  • Installing the AIR extension for DreamWeaver CC

    I have tried to follow the instruction on the Adobe site but they don't work. Tried to find: http://www.adobe.com/products/air/tools/ajax/. You can't get there. Are there correct instructions? Thanks.

  • Is Mobile Me Necessary?

    I am really considering buying Mobile Me when/if I buy the Ipad. Is the $60/$100 a year (whatever it is) worth it or can I buypass it? Also, all my computers are Windows..I read a disclaimer somewhere that Mobile Me is not that compatible with Window