ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Program terminates when setting MQEnvironment

Post new topic  Reply to topic
 Program terminates when setting MQEnvironment « View previous topic :: View next topic » 
Author Message
cycotron69
PostPosted: Thu Jan 19, 2006 9:53 am    Post subject: Program terminates when setting MQEnvironment Reply with quote

Newbie

Joined: 19 Jan 2006
Posts: 1

Without going to too much detail, the section of my code that's generating the problem looks like this.

try {
MQEnvironment.hostname = mqConfiguration.getHostName();
MQEnvironment.port = mqConfiguration.getPort();
MQEnvironment.channel = mqConfiguration.getServerConnection();
...
...
} catch (Exception e) {
/* printing exception message here */
}

Right now the program exists when trying to set hostname. No exception is generated or caught. I've used print statement to verify that the mqConfiguration methods are not returning null values. This code works when ran from the IntelliJ IDE environment, but when it's put into a jar and ran from the command prompt using a DOS batch program, the code fails, and no exceptions are caught by the above catch block, I've verified that by putting print line statements in the above catch block. The only exceptions I get are from calling classes, indicating a javax/resource/ResourceException. I can only think of environment setting problems, but I'm not sure what. I will continue to explore, but any insight to why this is happening would be greatly appreciated.
Back to top
View user's profile Send private message
wschutz
PostPosted: Thu Jan 19, 2006 11:06 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

are the classpath's the same in both environments?
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Program terminates when setting MQEnvironment
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.