RE: httptunneling/callback problem once again

"Tim Anderson" <[email protected]>
Newsgroups gmane.comp.java.openjms.user
Message-ID <000401c55181$e5f4e4b0$3f7dfddc@xerces>
Your client keystore contains a certificate whose name differs from the
server hostname (soap.handicaddy.dk).
They must be the same in order for the connection to be established.
 
For more background, http://www.google.com/search?hl=en
<http://www.google.com/search?hl=en&q=java.io.IOException%3A+HTTPS+hostname+
wrong&btnG=Google+Search&meta>
&q=java.io.IOException%3A+HTTPS+hostname+wrong&btnG=Google+Search&meta=
 
-Tim

-----Original Message-----
From: openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Laszlo
Schaffer personal
Sent: Friday, 6 May 2005 12:32 AM
To: [email protected]
Subject: [openjms-user] httptunneling/callback problem once again



This is root of the stacktrace 

 

java.io.IOException: HTTPS hostname wrong:  should be <soap.handicaddy.dk>

            at sun.net.www.protocol.https.HttpsClient.b(DashoA12275)

            at
sun.net.www.protocol.https.HttpsClient.afterConnect(DashoA12275)

            at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(DashoA
12275)

            at
com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.connec
t(DashoA12275)

            at
org.exolab.jms.net.http.TunnelHelper.connect(TunnelHelper.java:114)

            at
org.exolab.jms.net.http.HTTPEndpoint.getConnection(HTTPEndpoint.java:242)

            at
org.exolab.jms.net.http.HTTPEndpoint.<init>(HTTPEndpoint.java:168)

            at
org.exolab.jms.net.http.AbstractHTTPManagedConnection.<init>(AbstractHTTPMan
agedConnection.java:108)

            at
org.exolab.jms.net.http.HTTPSManagedConnection.<init>(HTTPSManagedConnection
.java:76)

            at
org.exolab.jms.net.http.HTTPSManagedConnectionFactory.createManagedConnectio
n(HTTPSManagedConnectionFactory.java:124)

            at
org.exolab.jms.net.connector.DefaultConnectionPool.createManagedConnection(D
efaultConnectionPool.java:166)

            at
org.exolab.jms.net.connector.AbstractConnectionManager.allocateConnection(Ab
stractConnectionManager.java:132)

            at
org.exolab.jms.net.connector.AbstractConnectionFactory.getConnection(Abstrac
tConnectionFactory.java:167)

            at
org.exolab.jms.net.connector.AbstractConnectionManager.getConnection(Abstrac
tConnectionManager.java:200)

            at org.exolab.jms.net.orb.Locator.getProxy(Locator.java:129)

            at org.exolab.jms.net.orb.Locator.getRegistry(Locator.java:101)

            at
org.exolab.jms.net.orb.DefaultORB.getRegistry(DefaultORB.java:228)

            at
org.exolab.jms.client.net.SharedORB.getRegistry(SharedORB.java:183)

            at
org.exolab.jms.jndi.InitialContextFactory.getInitialContext(InitialContextFa
ctory.java:107)

            at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)

            at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)

            at javax.naming.InitialContext.init(InitialContext.java:219)

            at javax.naming.InitialContext.<init>(InitialContext.java:195)

            at
com.actiwise.jmstest.MessageController.connect(MessageController.java:62)

            at
com.actiwise.jmstest.ui.TestViewController.connect(TestViewController.java:1
01)

            at
com.actiwise.jmstest.ui.TestViewController$1.actionPerformed(TestViewControl
ler.java:66)

            at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)

            at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButto
n.java:1839)

            at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:4
20)

            at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)

            at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener
.java:245)

            at java.awt.Component.processMouseEvent(Component.java:5100)

            at java.awt.Component.processEvent(Component.java:4897)

            at java.awt.Container.processEvent(Container.java:1569)

            at java.awt.Component.dispatchEventImpl(Component.java:3615)

            at java.awt.Container.dispatchEventImpl(Container.java:1627)

            at java.awt.Component.dispatchEvent(Component.java:3477)

            at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)

            at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)

            at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)

            at java.awt.Container.dispatchEventImpl(Container.java:1613)

            at java.awt.Window.dispatchEventImpl(Window.java:1606)

            at java.awt.Component.dispatchEvent(Component.java:3477)

            at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)

            at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:201)

            at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:151)

            at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)

            at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)

            at
java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

 

attached the configuration  (web.xml from /openjms-tunnel/)

 

 

 

 

-----Original Message-----
From: openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Tim Anderson
Sent: 2005. május 3. 15:17
To: [email protected]
Subject: RE: [openjms-user] httptunneling/callback

 

The stacktrace isn't much help, as it doesn't show the root cause -

which is probably an IOException. Did you truncate the stack trace?

Also make sure the webserver's public key is in your keystore.

 

If you're still having problems, try interrogating the nested exceptions to
get 

the root, and print it.

E.g:

import javax.naming.NamingException;

import java.rmi.RemoteException;

import org.exolab.jms.net.connector.ResourceException;

 

//....

try {

    Context initial = new InitialContext(....);

} catch (NamingException exception) {

    Throwable root =  getNested(exception);

    root.printStackTrace();

}

 

//....

 

Throwable getNested(Throwable throwable) {

    Throwable result = throwable;

    if (throwable instanceof NamingException) {

        NamingException naming = (NamingException) throwable;

        if (naming,getRootCause() != null) {

            result = getNested(naming.getRootCause());

        }

    } else if (throwable instanceof RemoteException) {

        RemoteException remote = (RemoteException) throwable;

        if (remote.detail != null) {

            result = getNested(remote.detail);

        }

    } else if (throwable instanceof ResourceException) {

        ResourceException resource = (ResourceException) throwable;

        if (resource.getTargetException() != null) {

            result = getNested(resource.getTargetException());

        }

    }

    return result;

}

 

-Tim
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.