RMI over SSL under Web Start can't find trusted certificate

I have implemented RMI over SSL to get a Java EJB Client application talking to a JRun server over SSL. It works fine from the command line, but when I try to run it as a Web Start application, I get
java.security.cert.CertificateException: Couldn't find trusted certificate
(More complete stack trace below)
I am using a test certificate, not one from a bona fide CA.
I have tried putting the key store file in one of the jars used by the application, and adding:
<argument>-Djavax.net.ssl.trustStore=jssecacerts</argument>
and
<argument>-Djavax.net.ssl.trustStore=jar:http://ip/app/xxx/lib/JarWithCacs.jar!/jssecacerts</argument>
to no avail.
If I copy the jssecacerts to Web Start's jre/lib/security directory, it works fine.
I have seen other postings that say to use keytool to update the JRE used by Web Start, but that kind of defeats the purpose of Web Start: zero admin client. I can't touch each user's machine.
I have seen other posts saying to implement a more relaxed trust manager, but that doesn't seem right either.
I am using JDK 1.4.1_02b6 on Win2k. This should be irrelevant: JRun 4 sp1a.
Is there a way to specify the jssecacerts file in the jnlp file so Web Start will recognize it?
Thanks for any help,
John

I think I have an answer:
1) Package the truststore file in the client JAR file
2) Add code to the client to copy the truststore from the JAR file to the client hard drive
3) Add code to the client to set the truststore properties to refer to the file on the client hard drive
<<code>>
private void setupTrustStore() {
try {
// save truststore file to local disk
File homeDir = new File(System.getProperty("user.home"));
File trustStoreFile = new File(homeDir, "mytruststore");
URL url =
this.getClass().getClassLoader().getResource("mytruststore");
BufferedInputStream in =
new BufferedInputStream(url.openStream());
BufferedOutputStream out =
new BufferedOutputStream(new FileOutputStream(trustStoreFile));
while(true) {
int data = in.read();
if(data < 0) break;
out.write(data);
in.close();
out.flush();
out.close();
// set truststore properties
System.setProperty("javax.net.ssl.trustStore",
trustStoreFile.getPath());
System.setProperty("javax.net.ssl.trustStorePassword", "mypasswd");
} catch(Exception e) {
e.printStackTrace();
}

Similar Messages

  • Rmi over ssl in jdk1.5.0

    hi,
    i am trying to connect a remote machine with rmi over ssl. but i got the following exceptions;
    java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
    Caused by: javax.net.ssl.SSLKeyException: RSA premaster secret error
    Caused by: java.security.NoSuchAlgorithmException: Cannot find any provider supporting RSA/ECB/PKCS1Padding
    Caused by: java.lang.IllegalArgumentException: can't support mode ECB
    i am using jdk1.5.0. i have tried many samples but i have not run them successfully however they were running successfully in j2sdk1.4.2.
    also i downloaded the bouncycastle provider but it did not work.
    is there anybody who knows about a running sample about rmi and ssl in jdk1.5.0? please send me....
    email: [email protected]

    Hi!
    I know it's not the exactly right topic, but I've nearly the same problem with a https connection for a webService. I'm not using turkish locale, I'm using BouncyCastle and the "Unlimited Strength" policy files. I've no problems if i start my application with eclipse, starting it with jdk1.5.0_03\jre\bin\java or jre1.5.0_03\bin\java form commandline i get the same stacktrace:
    javax.net.ssl.SSLKeyException: RSA premaster secret error
    Caused by: javax.net.ssl.SSLKeyException: RSA premaster secret error
    Caused by: java.security.NoSuchAlgorithmException: Cannot find any provider supporting RSA/ECB/PKCS1Padding
    Caused by: java.lang.IllegalArgumentException: can't support mode ECB
    if i try to get the cipher with
    Cipher c = Cipher.getInstance("RSA/ECB/PKCS1Padding");
    I'll get the same stacktrace, with
    Cipher c = Cipher.getInstance("RSA/ECB/PKCS1Padding", "BC");
    i works fine, but I've no idea how to run this code out of axis...
    Thanks & Regards
    Helmut

  • Java 7 Update 25 Client App Downloaded From Web Start Can't Connect Out

    Since Java 7 update 25, I have an issue where my client Java application, downloaded with Java Web Start, can no longer connect to a remote server. (The client uses remote EJB to connect various servers). The issue I believe is that the client application is being blocked by security features of this Java update.
    A very quick (random?) fix around the problem is to show the Java console. If the Java console is enabled to be shown, the client application can connect fine.
    Although showing the Java console is a quick fix, it's not one we particularly want to keep asking customers to do. I understand we may need to define the Codebase and Permissions in the manifest file as described here: http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/no_redeploy.html..
    I have defined the Codebase and Permissions in the manifest of the client jar's we build ourselves. I believe this has worked as we no longer see "Missing Codebase manifest attribute for...." in the console for our own jar's. However, the application still cannot connect out. I'm stumbling around somewhat on this issue and trying various things in an attempt to get this to work. Assuming i'm on the right lines and the problem is some jars missing the Codebase and Permissions in their manifests, my question is, should I and how can I modify the manifest of 3rd party jars to include this information? For example, the client app requires many JBoss and EJB client jars - do I need to somehow modify the manifest of all of these jars to include the codebase and permissions?
    It goes without saying that all the jars are signed - the application would not start at all if there was a problem here. So the application starts with it's login box - but it simply cannot connect out to the servers.
    If anybody can offer any help on this issue i'd be most grateful. As a quick fix, is there a way to get this to work via adjusting Control Panel settings (other than showing the console)? I have played with a lot but not stumbled on a way to get this to work other than showing the console, although ideally i'd like to be able to get this to work without having to do any tweaks to clients Java control panel.

    We're also seeing this. The 7u25 update completely derailed a trial program we were conducting, because no one could log in to our application via WebStart once they upgraded Java.
    Our login code crashes because SwingUtilities.isEventDispatchThread() throws an NPE.
    We tried theskad81's fix but it didn't work for us. We worked around the issue by hosting u21 on our site and pointing our WebStart page there instead of at Oracle's update site.
    *** ORACLE: PLEASE FIX THIS ISSUE USING APPLE'S FIX (mentioned in an earlier post - see above) ***
    Slightly edited stack trace:
         javax.security.auth.login.LoginException: java.lang.NullPointerException
        at sun.awt.SunToolkit.getSystemEventQueueImplPP(Unknown Source)
        at sun.awt.SunToolkit.getSystemEventQueueImplPP(Unknown Source)
        at sun.awt.SunToolkit.getSystemEventQueueImpl(Unknown Source)
        at java.awt.Toolkit.getEventQueue(Unknown Source)
        at java.awt.EventQueue.isDispatchThread(Unknown Source)
        at javax.swing.SwingUtilities.isEventDispatchThread(Unknown Source)
        at com.abc.ConsoleAuthUI.handle(ConsoleAuthUI.java:43)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
        at sun.rmi.transport.Transport$1.run(Unknown Source)
        at sun.rmi.transport.Transport$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
        at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
        at sun.rmi.server.UnicastRef.invoke(Unknown Source)
        at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(Unknown Source)
        at java.rmi.server.RemoteObjectInvocationHandler.invoke(Unknown Source)
        at com.sun.proxy.$Proxy1.handle(Unknown Source)
        at com.abc.ms.rmi.MsLogin$1.handle(MsLogin.java:100)
        at javax.security.auth.login.LoginContext$SecureCallbackHandler$1.run(Unknown Source)
        at javax.security.auth.login.LoginContext$SecureCallbackHandler$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.login.LoginContext$SecureCallbackHandler.handle(Unknown Source)
        at com.abc.ms.auth.abcLoginModule.login(abcLoginModule.java:35)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at javax.security.auth.login.LoginContext.invoke(Unknown Source)
        at javax.security.auth.login.LoginContext.access$000(Unknown Source)
        at javax.security.auth.login.LoginContext$4.run(Unknown Source)
        at javax.security.auth.login.LoginContext$4.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.login.LoginContext.invokePriv(Unknown Source)
        at javax.security.auth.login.LoginContext.login(Unknown Source)
        at com.abc.ms.rmi.MsLogin.authenticate(MsLogin.java:111)
        at com.abc.ms.rmi.MsLogin.login(MsLogin.java:92)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
        at sun.rmi.transport.Transport$1.run(Unknown Source)
        at sun.rmi.transport.Transport$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
        at javax.security.auth.login.LoginContext.invoke(Unknown Source)
        at javax.security.auth.login.LoginContext.access$000(Unknown Source)
        at javax.security.auth.login.LoginContext$4.run(Unknown Source)
        at javax.security.auth.login.LoginContext$4.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.login.LoginContext.invokePriv(Unknown Source)
        at javax.security.auth.login.LoginContext.login(Unknown Source)
        at com.abc.ms.rmi.MsLogin.authenticate(MsLogin.java:111)
        at com.abc.ms.rmi.MsLogin.login(MsLogin.java:92)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
        at sun.rmi.transport.Transport$1.run(Unknown Source)
        at sun.rmi.transport.Transport$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
        at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
        at sun.rmi.server.UnicastRef.invoke(Unknown Source)
        at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(Unknown Source)
        at java.rmi.server.RemoteObjectInvocationHandler.invoke(Unknown Source)
        at com.sun.proxy.$Proxy0.login(Unknown Source)
        at com.abc.abc.ui.console.Main.attemptLogin(Main.java:488)
        at com.abc.abc.ui.console.LoginDialog$7.run(LoginDialog.java:182)
        at com.abc.util.GrayTimer$GrayTimerTaskWrapper.run(GrayTimer.java:84)
        at java.util.TimerThread.mainLoop(Unknown Source)
        at java.util.TimerThread.run(Unknown Source)

  • HT1657 How do I watch my iTunes rented movie on my iPad I downloaded it over night and now I can't find it

    I have downloaded a movie through iTunes onto my iPad over night and now I can't find it its not under iTunes purchases like my music is and I don't know where else to look for it and I don't know how to play it. Help?

    It should be in the Videos app - iTunes on the iPad is just the iTunes store, so videos and tv shows should be in the Videos app and music and audiobooks in the Music app

  • Trying to access my family pack email addresses to correct before moving over to icloud.  I can't find how to access it.

    I'm trying to access my family pack email addresses to correct before moving over to icloud.  I can't find how to access it. Can someone help me? 

    Welcome to the Apple Community.
    Connect it to iTunes with a USB cable and update it from the iTunes application.
    I have asked for your email address to be edited out. Posting your address in an open thread is a sure way to be bombarded by unwanted email, remember it will be here long after you have resolved your problem, for automated detection software to find.
    If you want people to contact you, enable others to see your email address in your profile.

  • Web Start - Can't Connect To App Modules

    Has anyone had the problem of on being able to connect to their application modules deployed to Ora AS 10g when using web start? We can successfully use the tester on our local and deployed configurations for the app modules. We can also successfully run our JClient application locally and use our app modules deployed on the app server (and locally). We recently upgraded our containers from jdev 9.0.5.2 level to 10.1.2 level. Here is the stack trace I get:
    JBO-30003: The application pool (net.nighthawk.talon.model.bc.portal.PortalModuleAS) failed to checkout an application module due to the following exception:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.ApplicationModuleCreateException, msg=JBO-25222: Unable to create application module.
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1743)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2576)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:441)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:411)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:406)
         at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1370)
         at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1328)
         at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1300)
         at net.nighthawk.talon.jclientview.login.utility.LoginUtils.CreatePortalAppModule(LoginUtils.java:308)
         at net.nighthawk.talon.jclientview.login.utility.LoginUtils.LoadBackgroundImage(LoginUtils.java:222)
         at net.nighthawk.talon.jclientview.TalonDashBoard.jbInit(TalonDashBoard.java:148)
         at net.nighthawk.talon.jclientview.TalonDashBoard.<init>(TalonDashBoard.java:128)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at net.nighthawk.talon.jclientview.ObjectInstanceCreator.CreateObjectInstance(ObjectInstanceCreator.java:41)
         at net.nighthawk.talon.jclientview.Talon.main(Talon.java:21)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.sun.javaws.Launcher.executeApplication(Unknown Source)
         at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
         at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    ## Detail 0 ##
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.ApplicationModuleCreateException, msg=JBO-25222: Unable to create application module.
         at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:532)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:1830)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1711)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2576)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:441)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:411)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:406)
         at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1370)
         at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1328)
         at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1300)
         at net.nighthawk.talon.jclientview.login.utility.LoginUtils.CreatePortalAppModule(LoginUtils.java:308)
         at net.nighthawk.talon.jclientview.login.utility.LoginUtils.LoadBackgroundImage(LoginUtils.java:222)
         at net.nighthawk.talon.jclientview.TalonDashBoard.jbInit(TalonDashBoard.java:148)
         at net.nighthawk.talon.jclientview.TalonDashBoard.<init>(TalonDashBoard.java:128)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at net.nighthawk.talon.jclientview.ObjectInstanceCreator.CreateObjectInstance(ObjectInstanceCreator.java:41)
         at net.nighthawk.talon.jclientview.Talon.main(Talon.java:21)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.sun.javaws.Launcher.executeApplication(Unknown Source)
         at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
         at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    ## Detail 0 ##
    oracle.jbo.ApplicationModuleCreateException: JBO-25222: Unable to create application module.
         at oracle.jbo.client.remote.ejb.AbstractApplicationModuleHomeImpl.createRemoteEJBApplicationModuleProxy(AbstractApplicationModuleHomeImpl.java:75)
         at oracle.jbo.client.ejb.ApplicationModuleHomeImpl.create(ApplicationModuleHomeImpl.java:63)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:140)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:81)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.instantiateResource(ApplicationPoolImpl.java:2184)
         at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:523)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:1830)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1711)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2576)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:441)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:411)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:406)
         at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1370)
         at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1328)
         at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1300)
         at net.nighthawk.talon.jclientview.login.utility.LoginUtils.CreatePortalAppModule(LoginUtils.java:308)
         at net.nighthawk.talon.jclientview.login.utility.LoginUtils.LoadBackgroundImage(LoginUtils.java:222)
         at net.nighthawk.talon.jclientview.TalonDashBoard.jbInit(TalonDashBoard.java:148)
         at net.nighthawk.talon.jclientview.TalonDashBoard.<init>(TalonDashBoard.java:128)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at net.nighthawk.talon.jclientview.ObjectInstanceCreator.CreateObjectInstance(ObjectInstanceCreator.java:41)
         at net.nighthawk.talon.jclientview.Talon.main(Talon.java:21)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.sun.javaws.Launcher.executeApplication(Unknown Source)
         at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
         at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    ## Detail 0 ##
    java.lang.NullPointerException
         at oracle.jbo.client.remote.ejb.ApplicationModuleProxy.createClientAdapter(ApplicationModuleProxy.java:181)
         at oracle.jbo.client.remote.ejb.ApplicationModuleProxy.doCreate(ApplicationModuleProxy.java:135)
         at oracle.jbo.client.remote.ejb.ApplicationModuleProxy.create(ApplicationModuleProxy.java:59)
         at oracle.jbo.client.remote.ejb.AbstractApplicationModuleHomeImpl.createRemoteEJBApplicationModuleProxy(AbstractApplicationModuleHomeImpl.java:44)
         at oracle.jbo.client.ejb.ApplicationModuleHomeImpl.create(ApplicationModuleHomeImpl.java:63)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:140)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:81)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.instantiateResource(ApplicationPoolImpl.java:2184)
         at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:523)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:1830)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1711)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2576)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:441)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:411)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:406)
         at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1370)
         at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1328)
         at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1300)
         at net.nighthawk.talon.jclientview.login.utility.LoginUtils.CreatePortalAppModule(LoginUtils.java:308)
         at net.nighthawk.talon.jclientview.login.utility.LoginUtils.LoadBackgroundImage(LoginUtils.java:222)
         at net.nighthawk.talon.jclientview.TalonDashBoard.jbInit(TalonDashBoard.java:148)
         at net.nighthawk.talon.jclientview.TalonDashBoard.<init>(TalonDashBoard.java:128)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at net.nighthawk.talon.jclientview.ObjectInstanceCreator.CreateObjectInstance(ObjectInstanceCreator.java:41)
         at net.nighthawk.talon.jclientview.Talon.main(Talon.java:21)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.sun.javaws.Launcher.executeApplication(Unknown Source)
         at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
         at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

    Hi,
    Did you have a look at
    http://www.oracle.com/technology/products/jdev/collateral/papers/10g/adfjclientbcwebstart.pdf
    If you are deploying your BC modules as EJB then this document also contains information of how to test this deployment within the BC tester.
    Frank

  • [Java 1.4.2] Rmi over SSL : bind/rebind hangs

    Hello everybody,
    I am trying to test client/server communication with RMI over an SSL layer, as explained here .
    Here is my server class :
    package rmitest.server;
    import java.rmi.registry.*;
    import java.rmi.*;
    import rmitest.client.RMISSLClientSocketFactory;
    import java.rmi.server.RMIClientSocketFactory;
    import java.rmi.server.RMIServerSocketFactory;
    import java.rmi.registry.LocateRegistry;
    import java.rmi.server.*;
    import java.io.IOException;
    public class Hello extends UnicastRemoteObject implements HelloInterface
        public Hello(RMIClientSocketFactory csf, RMIServerSocketFactory ssf) throws RemoteException
            //super();
            super(1099, csf, ssf);
            System.out.println("Initialisation de Hello OK.");
        public int sayHello()
            try {
            System.out.println("Hello, World !");
            return 0;
            catch (Exception e)
                e.printStackTrace();
                return 1;
        public static void main(String[] args)
            try
                System.setSecurityManager(new RMISecurityManager());
                RMIClientSocketFactory csf = new RMISSLClientSocketFactory();
                RMIServerSocketFactory ssf = new RMISSLServerSocketFactory();
                HelloInterface myHello = new Hello(csf, ssf);
                Registry reg = LocateRegistry.getRegistry("lat203", 1099, csf);
                reg.rebind("HelloInterface", myHello);
                System.out.println("The server is ready.");
            catch (RemoteException e)
                e.printStackTrace();
            catch (Exception e)
                e.printStackTrace();
    }My problem is, the program hangs in the rebind(...) instruction. Would anybody have a clue ?
    Here is the stack just before it hangs :
    {codeThread [main] (Stepping)
    UnicastRef2(UnicastRef).newCall(RemoteObject, Operation[], int, long) line: 313
    RegistryImpl_Stub.rebind(String, Remote) line: not available
    Hello.main(String[]) line: 56
    Thread [Thread-1] (Running) }Thank you by advance.
    Edited by: le_barde on Oct 17, 2008 6:45 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Ok I settled that in the client socket factory. Here is what it looks like :
    package com.infotel.rmitest.client;
    import java.io.*;
    import java.net.*;
    import java.rmi.server.*;
    import javax.net.ssl.*;
    import sun.security.util.Debug;
    public class RMISSLClientSocketFactory
        implements RMIClientSocketFactory, Serializable {
        public Socket createSocket(String host, int port)
        throws IOException
            SSLSocketFactory factory = (SSLSocketFactory)SSLSocketFactory.getDefault();
            SSLSocket socket = (SSLSocket)factory.createSocket(host, port);
            String[] strtab = {"TLSv1", "SSLv3"};
            socket.setEnabledProtocols(strtab);
            System.out.println("---> before handshake");
            socket.startHandshake();
            System.out.println("---> after handshake.");
            return socket;
        public int hashCode()
            return getClass().hashCode();
        public boolean equals(Object obj)
            if (obj == this)
                return true;
            else if (obj == null || getClass() != obj.getClass())
                return false;
            return true;
    }I haven't modified my Server socket factory.
    The client still hangs but the messages are different as I have removed the SSLv2ClientHello :
    >
    (lots of trusted certificates...)
    init context
    trigger seeding of SecureRandom
    done seeding SecureRandom
    ---> before handshake
    %% No cached client session
    *** ClientHello, TLSv1
    RandomCookie: GMT: 1225125230 bytes = { 150, 101, 222, 255, 92, 207, 52, 204, 48, 37, 184, 89, 56, 39, 207, 230, 8, 210, 1, 235, 137, 48, 202, 242, 203, 4, 61, 91 }
    Session ID: {}
    Cipher Suites: [SSL_RSA_WITH_RC4_128_MD5, SSL_RSA_WITH_RC4_128_SHA, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA,       TLS_DHE_DSS_WITH_AES_128_CBC_SHA, SSL_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA, SSL_RSA_WITH_DES_CBC_SHA, SSL_DHE_RSA_WITH_DES_CBC_SHA, SSL_DHE_DSS_WITH_DES_CBC_SHA, SSL_RSA_EXPORT_WITH_RC4_40_MD5, SSL_RSA_EXPORT_WITH_DES40_CBC_SHA, SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA, SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA]
    Compression Methods: { 0 }
    [write] MD5 and SHA1 hashes: len = 73
    0000: 01 00 00 45 03 01 49 06 ED 6E 96 65 DE FF 5C CF ...E..I..n.e..\.
    0010: 34 CC 30 25 B8 59 38 27 CF E6 08 D2 01 EB 89 30 4.0%.Y8'.......0
    0020: CA F2 CB 04 3D 5B 00 00 1E 00 04 00 05 00 2F 00 ....=[......../.
    0030: 33 00 32 00 0A 00 16 00 13 00 09 00 15 00 12 00 3.2.............
    0040: 03 00 08 00 14 00 11 01 00 .........
    main, WRITE: TLSv1 Handshake, length = 73
    (Here the client hangs; this is the point when I kill the JVM)>
    Now my server output (I don't give the verbose certificates):
    >
    trigger seeding of SecureRandom
    done seeding SecureRandom
    Finalizer, called close()
    Finalizer, called closeInternal(true)
    Finalizer, SEND TLSv1 ALERT: warning, description = close_notify
    Finalizer, WRITE: TLSv1 Alert, length = 2
    Finalizer, called close()
    Finalizer, called closeInternal(true)
    Finalizer, SEND TLSv1 ALERT: warning, description = close_notify
    Finalizer, WRITE: TLSv1 Alert, length = 2
    Finalizer, called close()
    Finalizer, called closeInternal(true)
    Finalizer, SEND TLSv1 ALERT: warning, description = close_notify
    Finalizer, WRITE: TLSv1 Alert, length = 2
    Finalizer, called close()
    Finalizer, called closeInternal(true)
    Finalizer, SEND TLSv1 ALERT: warning, description = close_notify
    Finalizer, WRITE: TLSv1 Alert, length = 2
    Finalizer, called close()
    Finalizer, called closeInternal(true)
    Finalizer, SEND TLSv1 ALERT: warning, description = close_notify
    Finalizer, WRITE: TLSv1 Alert, length = 2
    Finalizer, called close()
    Finalizer, called closeInternal(true)
    Finalizer, SEND TLSv1 ALERT: warning, description = close_notify
    Finalizer, WRITE: TLSv1 Alert, length = 2
    Finalizer, called close()
    Finalizer, called closeInternal(true)
    Finalizer, SEND TLSv1 ALERT: warning, description = close_notify
    Finalizer, WRITE: TLSv1 Alert, length = 2
    Finalizer, called close()
    Finalizer, called closeInternal(true)
    Finalizer, SEND TLSv1 ALERT: warning, description = close_notify
    Finalizer, WRITE: TLSv1 Alert, length = 2
    Finalizer, called close()
    Finalizer, called closeInternal(true)
    Finalizer, SEND TLSv1 ALERT: warning, description = close_notify
    Finalizer, WRITE: TLSv1 Alert, length = 2
    Finalizer, called close()
    Finalizer, called closeInternal(true)
    Finalizer, SEND TLSv1 ALERT: warning, description = close_notify
    Finalizer, WRITE: TLSv1 Alert, length = 2
    Finalizer, called close()
    Finalizer, called closeInternal(true)
    Finalizer, SEND TLSv1 ALERT: warning, description = close_notify
    Finalizer, WRITE: TLSv1 Alert, length = 2
    * SERVER INITIALIZED *
    Finalizer, called close()
    Finalizer, called closeInternal(true)
    Finalizer, SEND TLSv1 ALERT: warning, description = close_notify
    Finalizer, WRITE: TLSv1 Alert, length = 2
    Finalizer, called close()
    Finalizer, called closeInternal(true)
    Finalizer, SEND TLSv1 ALERT: warning, description = close_notify
    Finalizer, WRITE: TLSv1 Alert, length = 2
    Finalizer, called close()
    Finalizer, called closeInternal(true)
    Finalizer, SEND TLSv1 ALERT: warning, description = close_notify
    Finalizer, WRITE: TLSv1 Alert, length = 2
    etc.

  • RMI,Servlets and Java Web Start

    I am a new developer working on a java application. My java GUI will access one server where a user will have an account. This server will store data, execute programs and access other servers for information. I have completed the GUI and I am beginning to build the client-server communication with RMI. There appear to be several tools for doing client-server communication, and while I have read much, I don't understand which is the best to explore. For applets I have read that a good method to use is servlets with RMI. But is this also true for a stand-alone application? If not, what is the best/preferred method? What if I choose to use Java Web Start (which I have not read up on, yet) will the best method of client-server communication change?
    Thanks in advance, shawn

    It depends on your budget too. To me the optimim way to communicate is to use SERVLET/JSP combination for client/server communication.

  • [web module] can't find my existing web module !

    Hi, I got a strange problem...
    I give to oc4j my enterprise archive "next.ear" containing a web module "config.war" who is an exploded archive, so it's a directory.
    In my application.xml, I got that :
         <module>
              <web>
                   <web-uri>config.war</web-uri>
                   <context-root>config</context-root>
              </web>
         </module>
    I have traced OC4J and take a look to "C:\oc4j_extended_101310\j2ee\home\applications\next\" which is the directory containing the "next.ear" unpacked.
    So, in that directory, I can see my web module "config.war" which is a directory ...
    BUT, when deploying, I got that error :
    2007-04-27 15:13:01.904 NOTIFICATION DΘbut de l'initialisation de config...
    2007-04-27 15:13:01.904 NOTIFICATION l'application next est dans l'Θtat FAILED
    07/04/27 15:13:01 ATTENTION: Application.setConfig Application: next is in faile
    d state as initialization failed.
    java.lang.InstantiationException: Error finding web-app 'config' at C:\oc4j_extended_101310\j2ee\home\applications\next\config: No such file or directory
    So, it can't find the "config" file or directory, but it's strange because the module is under "config.war"... it miss the extention, so what must I do ???
    Rename my directory or add somthing to files descriptor ?
    Thank

    Hello,
    OracleAS does not officially support exploded archive deployment.
    Can you try to package your war as a real war an check if it is working correctly?
    btw: if you rename the deployed directory config.war to config i think it will work, but not supported...
    Regards
    Tugdual Grall

  • Firefox won't start can't find firefox.exe in processes

    I recently was having problems with my computer where it would crash and I had to do a system restore. I am now not able to open firefox, I found this page explaining how to fix the problem:http://support.mozilla.com/en-US/kb/Firefox+will+not+start?s=icon+won%27t+open&as=s The solution says to delete the process of firefox.exe in the task manager, however I can't find this process. Any help?
    == This happened ==
    Every time Firefox opened
    == Today: July, 7. 2010 ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30729; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0C; AskTB5.6)

    thanks for the reply mehok, but I have tried restarting my computer numerous times and also reinstalling firefox but still no luck!

  • "I would like to know how to set the default view for the columns. Somewhere I read it could be done in by music icon under Library.  Can't find it.  Thanks

    "I would like to know how to set the default view for the columns that are shown in iTunes. Every time I open it, I have to either go to the options, or right-click to get the pop-up options, and delete "rating" and add "composer." I'd really like to just do it once and be done with it."  Somewhere I read you could do this by clicking on the Music icon under LIBRARY then arramge the columns.  Trouble is, I can't find a Musi Folder or icon in my user library.
    Any help would be appreiated.  OSX 10.9.2  iTunes version 11.1.5  Thanks!!! CW!

    From the iTunes menu bar try View>Show View Options.  Make sure what you want to see is checked and what you don't is unchecked.  You can do this (may need to do this) for any playlists, your main Library, etc.
    Good luck
    srb

  • Web browser can not find my iweb page

    Hi there,
    I need some help. I published my website onto the internet,and for a while it was accessible. But since I have my own domain name, I am unable to view it on the web. Every-time I try to view my web-page an error message appears saying "safari cant open the page because it can't find the server"
    Please could somebody help me because I really need it to work!
    Thanks alot!

    Tom,
    I'm having a similar problem to the one below. MM is hosting my website through a personal domain name (Doteasy is the domain provider). The url of my site is www.saginor.com. The mobile me version is http://web.me.com/shiplair. When I type into my browser http://web.me.com/shiplair/Saginor.com I get to the site. But when I simply type in saginor.com I get the message, "Safari cant open the page because it can't find the server". I tried the suggestions you gave below and none worked. I also checked with my domain provider, and the forward destination is indeed listed as http://web.me.com/shiplair. I checked the settings in my MM account and the domain is indeed listed as www.saginor.com. Then I tried "publish all to mobile me" in iweb. It didn't work. I hope this is enough information for you to offer a fresh perspective. Many thanks in advance for your help. --Shiplair

  • Can't find Root certificate update (KB931125) in SCCM

    Hi!
    As the thread title says, i can't find the update for new root certificate in the SCCM console but i can see it in the WSUS console. I am in the middle of migrating from 2007 to 2012 so i have two envrionments and in 2007 i can see one update. Windows 7[April
    2012] which is expired. If i check in WSUS console i can see that there is one for March 2014.
    In my 2012 environment I can see the same updates in WSUS but no one appear in SCCM console.
    I synchronize Windows 7 products and all classifications but Tools and drivers.
    I have created a searchfolder where with the criteria where ArticleID equals to 931125 and i can only find the expired update from April 2012.
    I'm not sure how I can troubleshoot this? 
    Thanks!
    EDIT: I forgot to mention that the synchronization of new updates is working just fine, its just this update i can't get into the sccm console.

    Honestly, I think this is a bug and should be reported to CSS. The November 2013 edition of this update is valid but they unfortunately expired a later revision of the update (April 2014) and I think that this is/may be throwing off the sync between
    ConfigMgr and WSUS as it's not a normal scenario.
    Jason | http://blog.configmgrftw.com

  • I need to create public and private keys for security certificate and I can't find the certificate. Where is it?

    I purchased a security certificate, and the site tells me that it was successfully installed. I need to export the certificate so that I can create the public and private keys, but I cannot find the certificate to do so.

    Thank you.

  • Where can I find my certificate number

    First of all, I want to ask about the requirement that needs to fill up the Warranty page, and they ask for "Certificate or agreement number" so what kind of number is this and where can I find it exactly and, they are using a small page with a picture but it's not offer at this time. So I hope anyone can help me in this.
    Another question regarding registering my Laptop Toshiba that I bought 9 months ago to get the warranty for 3 years. So how can I do this process? Thanks to you all

    RomeoX wrote:
    First of all, I want to ask about the requirement that needs to fill up the Warranty page, and they ask for "Certificate or agreement number" so what kind of number is this and where can I find it exactly and, they are using a small page with a picture but it's not offer at this time. So I hope anyone can help me in this.
    Another question regarding registering my Laptop Toshiba that I bought 9 months ago to get the warranty for 3 years. So how can I do this process? Thanks to you all
    I suggest you call Toshiba Customer Support (800-457-7777) and ask these questions to get the official Toshiba response.  This forum is just users helping other users.

Maybe you are looking for

  • Sharing iphoto libraries on different computers

    Hi, I'm trying to move all my files from one mac to another. I have a ton of photos in my iPhoto on Old Computer, but only some of them show up on New Computer. I took my last import, and made a photo stream out of it, but I can't give it a name, and

  • Colored objects in black and white pictures?

    How can i take a white and green dress to have just the green pop out but yet have the reamining picture be in black and white? Thanks

  • Is there a good application to make books?

    Can someone recommend one that will work well within LR? This seems lie something that will be built-in in later editions of LR , but for now, what are my options? and what ones integrate best with LR? thanks, Joe LeMonnier

  • File Adapter-Creating a temporary file

    Hi, I got an requirement to place only completed file(With 100% data) in the target directory. So  i need to gather the data in  a temporary file first before final file is put on the target directory. I know we have an option in the File adapter (Pu

  • Call external audio file into timeline

    I'm creating training programs that will be translated into many languages. I create the text in external XML files, and then I use dynamic text frames to call in the text. The translators need only translate the XML Files and Flash is automatically