Author |
Message
|
GeneRK4 |
Posted: Mon Jul 22, 2013 7:49 am Post subject: Unable to connect to CMP for Remote broker |
|
|
Master
Joined: 08 Jul 2013 Posts: 220
|
I am not able to connect to Remote broker through CMP program.
At first I am getting updates as ,
     Successfully registered for <utils>.
16:46:20Â Â Â Â Â Successfully registered for <SUB_TO_QUEUE(S)>.
At the end,I am getting error as below,
java.lang.NullPointerException at com.ibm.broker.config.proxy.BarFile.equals(BarFile.java:1787) at java.util.Hashtable$Entry.equalsKey(Hashtable.java:129) at java.util.Hashtable.getEntry(Hashtable.java:535) at java.util.Hashtable.containsKey(Hashtable.java:381) at cmp.exerciser.CMPAPIExerciser.initialiseTreeNode(CMPAPIExerciser.java:1129) at cmp.exerciser.CMPAPIExerciser.calculateDeployedObjectGroupBranchOfTree(CMPAPIExerciser.java:1059) at cmp.exerciser.CMPAPIExerciser.calculateDeployedObjectGroupBranchOfTree(CMPAPIExerciser.java:1089) at cmp.exerciser.CMPAPIExerciser.calculateDeployedObjectGroupBranchOfTree(CMPAPIExerciser.java:1089) at cmp.exerciser.CMPAPIExerciser.calculateExecutionGroupBranchOfTree(CMPAPIExerciser.java:1109) at cmp.exerciser.CMPAPIExerciser.getTree(CMPAPIExerciser.java:864) at cmp.exerciser.CMPAPIExerciser.getTree(CMPAPIExerciser.java:877) at cmp.exerciser.CMPAPIExerciser.initWindow(CMPAPIExerciser.java:3225) at cmp.exerciser.ClassTesterForBrokerProxy.setupExerciserForConnectedBroker(ClassTesterForBrokerProxy.java:678) at cmp.exerciser.ClassTesterForBrokerProxy.doRemoteConnectAction(ClassTesterForBrokerProxy.java:582) at cmp.exerciser.ClassTesterForBrokerProxy.testConnectToRemoteBroker(ClassTesterForBrokerProxy.java:478) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:611) at cmp.exerciser.CommandThread.invokeCommand(CommandThread.java:317) at cmp.exerciser.CommandThread.run(CommandThread.java:261) at java.lang.Thread.run(Thread.java:736)
Could someone please help me? |
|
Back to top |
|
 |
lancelotlinc |
Posted: Mon Jul 22, 2013 8:04 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
What version of WMB are you on toolkit and runtime (version numbers have four digits)? What is the effective level of your runtime (note this is not the same as product version)? _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
GeneRK4 |
Posted: Wed Jul 24, 2013 8:07 am Post subject: |
|
|
Master
Joined: 08 Jul 2013 Posts: 220
|
Hi,
Toolkit Version is ,
Version: 8.0.0.1
Build id: 8.0.0.1-20120808-1331
Broker Runtime version is ,
8.0.0.2
Effective Runtime version is(hopefully 8.0.0.2 by the below command),
[mqbrkrs@mbphub01 ~]$ mqsiservice -v
BIPmsgs en_US
Console CCSID=1208, ICU CCSID=1208
Default codepage=UTF-8, in ascii=UTF-8
JAVA console codepage name=UTF-8
BIP8996I: Version: 8002
BIP8997I: Product: WebSphere Message Broker
BIP8998I: CMVC Level: S800-FP02
BIP8999I: Build Type: Production, 64 bit, amd64_linux_2
BIP8071I: Successful command completion. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Wed Jul 24, 2013 8:28 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
GeneRK4 |
Posted: Thu Jul 25, 2013 11:23 pm Post subject: |
|
|
Master
Joined: 08 Jul 2013 Posts: 220
|
Hi,
I have installed my toolkit to 8.0.0.2 now ,
Version: 8.0.0.2-IFix
Build id: 8.0.0.2-IFix-20130709-1003
(Is this ifix 1 as you suggested?I could get only the above one in the latest installables)
=====================================
I got below output for my production broker for mqsireportbroker command
Last mqsistart path = '/opt/ibm/mqsi/8.0.0.2'
mqsiprofile install path = '/opt/ibm/mqsi/8.0.0.2'
Work path = '/var/mqsi'
Broker UUID = '342b2a30-85af-11e2-b3db-0ae00a490000'
Process id = '8337'
Queue Manager = 'MBPHUB01'
User lil path = ''
User exit path = ''
Active user exits = ''
LDAP principal = ''
LDAP credentials = ''
ICU converter path = ''
Trusted (fastpath) Queue Manager application = 'false'
Configuration change timeout = '300' seconds
Internal configuration timeout = '60' seconds
Statistics major interval = '60' minutes
Operation mode = 'advanced'
Fixpack capability level = '' (effective level '8.0.0.1')
Broker registry format = 'v8.0'
Administration security = 'inactive'
Multi-instance Broker = 'false'
Shared Work Path = 'none'
Start as WebSphere MQ Service = 'undefined'
HTTP listener port = '7080'
Cache manager policy = 'none'
Cache manager port range = '2800-2819'
BIP8071I: Successful command completion.
Still I am getting the same error while connecting through CMP
 java.lang.NullPointerException at
com.ibm.broker.config.proxy.BarFile.equals(BarFile.java:1787) at java.util.Hashtable$Entry.equalsKey(Hashtable.java:129) at java.util.Hashtable.getEntry(Hashtable.java:535) at java.util.Hashtable.containsKey(Hashtable.java:381) at cmp.exerciser.CMPAPIExerciser.initialiseTreeNode(CMPAPIExerciser.java:1129) at cmp.exerciser.CMPAPIExerciser.calculateDeployedObjectGroupBranchOfTree(CMPAPIExerciser.java:1059) at cmp.exerciser.CMPAPIExerciser.calculateDeployedObjectGroupBranchOfTree(CMPAPIExerciser.java:1089) at cmp.exerciser.CMPAPIExerciser.calculateDeployedObjectGroupBranchOfTree(CMPAPIExerciser.java:1089) at cmp.exerciser.CMPAPIExerciser.calculateExecutionGroupBranchOfTree(CMPAPIExerciser.java:1109) at cmp.exerciser.CMPAPIExerciser.getTree(CMPAPIExerciser.java:864) at cmp.exerciser.CMPAPIExerciser.getTree(CMPAPIExerciser.java:877) at cmp.exerciser.CMPAPIExerciser.initWindow(CMPAPIExerciser.java:3225) at cmp.exerciser.ClassTesterForBrokerProxy.setupExerciserForConnectedBroker(ClassTesterForBrokerProxy.java:678) at cmp.exerciser.ClassTesterForBrokerProxy.doRemoteConnectAction(ClassTesterForBrokerProxy.java:582) at cmp.exerciser.ClassTesterForBrokerProxy.testConnectToRemoteBroker(ClassTesterForBrokerProxy.java:478) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:611) at cmp.exerciser.CommandThread.invokeCommand(CommandThread.java:317) at cmp.exerciser.CommandThread.run(CommandThread.java:261) at java.lang.Thread.run(Thread.java:736)
---------------------------------------------------
But I am able to connect to my dev broker through CMP.
The mqsireportbroker says,
BIP8927I: Broker Name 'MBDHUB01'
Last mqsistart path = '/opt/ibm/mqsi/8.0.0.2'
mqsiprofile install path = '/opt/ibm/mqsi/8.0.0.2'
Work path = '/var/mqsi'
Broker UUID = '26d1e7e0-8251-11e2-9406-0af50cc60000'
Process id = '1827'
Queue Manager = 'MBDHUB01'
User lil path = ''
User exit path = ''
Active user exits = ''
LDAP principal = ''
LDAP credentials = ''
ICU converter path = ''
Trusted (fastpath) Queue Manager application = 'false'
Configuration change timeout = '300' seconds
Internal configuration timeout = '60' seconds
Statistics major interval = '60' minutes
Operation mode = 'advanced'
Fixpack capability level = '' (effective level '8.0.0.1')
Broker registry format = 'v8.0'
Administration security = 'active'
Multi-instance Broker = 'false'
Shared Work Path = 'none'
Start as WebSphere MQ Service = 'undefined'
HTTP listener port = '7080'
Cache manager policy = 'disabled'
Cache manager port range = '2800-2819'
BIP8071I: Successful command completion.
Please help to solve this error |
|
Back to top |
|
 |
lancelotlinc |
Posted: Fri Jul 26, 2013 3:07 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Why does your fixpack capability level (ie the effective level) say 8.0.0.1?
Quote: |
Fixpack capability level = '' (effective level '8.0.0.1') |
What will you do to adjust this? _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Jul 26, 2013 4:53 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
lancelotlinc wrote: |
Why does your fixpack capability level (ie the effective level) say 8.0.0.1?
Quote: |
Fixpack capability level = '' (effective level '8.0.0.1') |
What will you do to adjust this? |
What does the effective level of the broker runtime have to do with what is likely a classpath issue for the shell running the CMP API Exerciser?
Particularly since they are on entirely separate machines.
GeneRK4 - are you really running the CMP API Exerciser or whatever it's called in v8? Or are you running your own program that uses the Admin API (which used to be called the CMP API) ? Did you include the necessary classes on the classpath?
The exception you've posted suggests that you're running the CMP API exerciser, and that it's having issues finding a class to represent some object that is deployed to the broker.
Can you be more specific about the steps you are taking within the API Exerciser, and at exactly what point in using the exerciser you see the exception? |
|
Back to top |
|
 |
lancelotlinc |
Posted: Fri Jul 26, 2013 5:20 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
mqjeff wrote: |
lancelotlinc wrote: |
Why does your fixpack capability level (ie the effective level) say 8.0.0.1?
Quote: |
Fixpack capability level = '' (effective level '8.0.0.1') |
What will you do to adjust this? |
What does the effective level of the broker runtime have to do with what is likely a classpath issue for the shell running the CMP API Exerciser?
Particularly since they are on entirely separate machines.
GeneRK4 - are you really running the CMP API Exerciser or whatever it's called in v8? Or are you running your own program that uses the Admin API (which used to be called the CMP API) ? Did you include the necessary classes on the classpath?
The exception you've posted suggests that you're running the CMP API exerciser, and that it's having issues finding a class to represent some object that is deployed to the broker.
Can you be more specific about the steps you are taking within the API Exerciser, and at exactly what point in using the exerciser you see the exception? |
How can any troubleshooting effort be reliable if the OP does not have a properly configured environment to begin with? Even given the fact that he started off posting when he was on buggy 8.0.0.1.
You are correct mqjeff - it may not do anything - but the important thing is to make sure the toolkit and runtime are most up-to-date before troubleshooting anything because the issue may already be fixed. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
GeneRK4 |
Posted: Fri Jul 26, 2013 11:30 pm Post subject: |
|
|
Master
Joined: 08 Jul 2013 Posts: 220
|
I am doing it in this way..
I have Websphere Message Broker runtime 8.0.0.1 in my local system.
Inside that,I could see Java Programming API where I could access CMP API Exerciser.
I am now trying to connect to my localbroker .I am able to do without issues.
I am trying to connect to Linux Development broker whic has broker runtime 8.0.0.2 but effective level as 8.0.0.1.I am able to connect without issues.
Now,I am trying to connect to Production broker after crossing firewall.This broker also has the same configurations as I have pasted above.But here I am getting the error reported above.
As Jedi suggested,I upgraded my toolkit to 8.0.0.2 still facing the same error.
Should I have to upgrade my local broker runtime also to 8.0.0.2? Is CMP accessing broker is related to local runtime version also? |
|
Back to top |
|
 |
Simbu |
Posted: Sat Jul 27, 2013 2:49 am Post subject: |
|
|
 Master
Joined: 17 Jun 2011 Posts: 289 Location: Tamil Nadu, India
|
GeneRK4 wrote: |
I am doing it in this way..
I have Websphere Message Broker runtime 8.0.0.1 in my local system.
Inside that,I could see Java Programming API where I could access CMP API Exerciser.
I am now trying to connect to my localbroker .I am able to do without issues.
I am trying to connect to Linux Development broker whic has broker runtime 8.0.0.2 but effective level as 8.0.0.1.I am able to connect without issues.
Now,I am trying to connect to Production broker after crossing firewall.This broker also has the same configurations as I have pasted above.But here I am getting the error reported above.
As Jedi suggested,I upgraded my toolkit to 8.0.0.2 still facing the same error.
Should I have to upgrade my local broker runtime also to 8.0.0.2? Is CMP accessing broker is related to local runtime version also? |
Please note that ConfigManagerProxy.jar is shipped with both broker runtime and toolkit. CMP API Exerciser is using broker runtime ConfigManagerProxy.jar,that means still you are using 8.0.0.1 CMP. Please correct me if i'm wrong. |
|
Back to top |
|
 |
mqjeff |
Posted: Sat Jul 27, 2013 4:45 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Simbu wrote: |
GeneRK4 wrote: |
I am doing it in this way..
I have Websphere Message Broker runtime 8.0.0.1 in my local system.
Inside that,I could see Java Programming API where I could access CMP API Exerciser.
I am now trying to connect to my localbroker .I am able to do without issues.
I am trying to connect to Linux Development broker whic has broker runtime 8.0.0.2 but effective level as 8.0.0.1.I am able to connect without issues.
Now,I am trying to connect to Production broker after crossing firewall.This broker also has the same configurations as I have pasted above.But here I am getting the error reported above.
As Jedi suggested,I upgraded my toolkit to 8.0.0.2 still facing the same error.
Should I have to upgrade my local broker runtime also to 8.0.0.2? Is CMP accessing broker is related to local runtime version also? |
Please note that ConfigManagerProxy.jar is shipped with both broker runtime and toolkit. CMP API Exerciser is using broker runtime ConfigManagerProxy.jar,that means still you are using 8.0.0.1 CMP. Please correct me if i'm wrong. |
This is correct. It likely has very little to do with the issue, unless there are specific fixes listed in the readme for 8.0.0.2 that address connectivity issues with the CMP API Exerciser or the CMP API itself.
It seems like the issue is with the connection across the firewall, or the permissions of the broker on the other side. It seems unlikely that 8.0.0.2 broker is returning information that can't be mapped to java objects on the 8.0.0.1 cmp api exerciser.
The CMP API Exerciser is not really intended to be an production level tool - you should be using MBExplorer for administrative tasks, or write your own CMP API applications. Or use the command line programs.
TO resolve this issue, check the broker logs on the remote machine, and see if it's complaining about something when you make the connection.
Or, again, try using MBExplorer to connect and see if that gives you a better or different error message. |
|
Back to top |
|
 |
GeneRK4 |
Posted: Sun Jul 28, 2013 9:54 pm Post subject: |
|
|
Master
Joined: 08 Jul 2013 Posts: 220
|
Initially I tried with MBExplorer.But when I am connecitng to MBExplorer,the whole system hangs.Even all my colleagues have the same problem.Whenever we try to connect to MBExplorer,all our system hangs.
Hence was looking for alternate solution to connect via CMP.
I will check broker logs and get back..
BTW,not sure whether could be firewall issue.Because I have already crossed the firewall..Anyways,will get the logs..
Thanks |
|
Back to top |
|
 |
GeneRK4 |
Posted: Sun Jul 28, 2013 9:57 pm Post subject: |
|
|
Master
Joined: 08 Jul 2013 Posts: 220
|
Simbu wrote: |
Please note that ConfigManagerProxy.jar is shipped with both broker runtime and toolkit. CMP API Exerciser is using broker runtime ConfigManagerProxy.jar,that means still you are using 8.0.0.1 CMP. Please correct me if i'm wrong. |
Hi Simbu...If thats the case,it didnt work for me even when I was using the toolkit with verion 8.0.0.1  |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Jul 29, 2013 5:46 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Which system hangs when you use MBExplorer?
The MBExplorer system?
Or the broker system?
What is being shown when the system hangs? The box that says that it is refreshing the broker definitions? |
|
Back to top |
|
 |
GeneRK4 |
Posted: Tue Jul 30, 2013 7:16 am Post subject: |
|
|
Master
Joined: 08 Jul 2013 Posts: 220
|
Hi jeff..I have only 2 GB RAM in my office laptop.And MBExplorer hangs in this system.Thatswhy I thought of going for CMP. |
|
Back to top |
|
 |
|