java.lang.OutOfMemoryError with TCPS on OpenJMS 0.7.7-alpha-3
"Montgomery, Colby" <[email protected]> Thu, 11 May 2006 16:30:15 -0400
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I was wondering if anyone has run across a java.lang.OutOfMemoryError
when attempting to connect to a OpenJMS server over TCPS. I have
configured my OpenJMS server to run over TCPS, and it seems to start up
fine. But when I attempt to connect, I get a java.lang.OutOfMemoryError
with no stack trace.
Here is a copy of my openjms.xml tcps configuration:
<Connectors>
<Connector scheme="tcps">
<ConnectionFactories>
<ConnectionFactory name="TCPSConnectionFactory"/>
</ConnectionFactories>
</Connector>
</Connectors>
I am using the defaults for the keystore location and password.
Also, here is a snipit of my client code...lifted almost exactally from
the OpenJMS examples...It seems to be failing on the Context context =
new InitialContext() call.
Hashtable properties = new Hashtable();
properties.put(Context.INITIAL_CONTEXT_FACTORY,
"org.exolab.jms.jndi.InitialContextFactory");
properties.put(Context.PROVIDER_URL, "tcps://147.81.54.70:3035/");
properties.put("org.exolab.jms.net.tcps.keyStore", "C:\\repo.keystore");
properties.put("org.exolab.jms.net.tcps.keyStorePassword", "security");
properties.put("org.exolab.jms.net.tcps.trustStore",
"C:\\j2sdk1.4.2_08\\jre\\lib\\security\\cacerts");
try{
Context context = new InitialContext(properties);
Any help with this is appreciated.
Best,
Colby Montgomery