• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SSL configuration for standalone JMS client

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have created a JMS client which will call websphere MQ. Now i am trying to configure SSL in my client.

jars used

com.ibm.ws.messagingClient.jar,
com.ibm.ws.orb_8.0.0.jar,
com.ibm.ws.sib.client.thin.jms_8.0.0.jar,
com.ibm.ws.ejb.thinclient_8.0.0.jar,
com.ibm.ws.jpa.thinclient_8.0.0.jar.

My config.properties file has "com.ibm.ssl.protocol=SSL".

Java Code

Hashtable properties = new Hashtable();
properties.put(javax.naming.Context.PROVIDER_URL, "iiop://localhost:2809");
properties.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory");
properties.put("java.naming.corba.orb",org.omg.CORBA.ORB.init((String[])null,null));
InitialContext initialContext = new InitialContext(properties);

Properties configFile = new Properties();
FileInputStream input = new FileInputStream("config.properties");
configFile.load(input);
System.setProperties(configFile);


Error

com.ibm.rmi.ras.Utility.newWriter: could not write to orbtrc.09042015.1201.07.txt : java.lang.NullPointerException
com.ibm.rmi.ras.Utility.newWriter: could not write to orbtrc.09042015.1201.07.txt : java.lang.NullPointerException
com.ibm.rmi.ras.DefaultOrbTrcLogger.traceFormat: caught exception

Please help me to resolve this issue.

Thanks
 
Wanna see my flashlight? How about this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic