Wednesday, March 6, 2013

"Array index out of range: 0" seen when updating AJAX Proxy Config in IBM Business Monitor 8.0.1

If you get: -

WASX7015E: Exception running command: "AdminTask.updateBlobConfig('[-clusterName BAMR01.WebApp -propertyFileName "/opt/IBM/WebSphere/AppServer/profiles/BAMDMProfile/BusinessSpace/BAMSR01.WebApp/mm.runtime.prof/config/proxy-config.xml" -prefix "Mashups_"]')"; exception information:

 java.lang.Exception: java.lang.Exception: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0


when running: -

wsadmin>  AdminTask.updateBlobConfig('[-clusterName BAMR01.WebApp -propertyFileName "/opt/IBM/WebSphere/AppServer/profiles/BAMDMProfile/BusinessSpace/BAMSR01.WebApp/mm.runtime.prof/config/proxy-config.xml" -prefix "Mashups_"]')

Check the value of the -clusterName variable.

It was BAMR01.WebApp. It should have been BAMSR01.WebApp.

wsadmin>  AdminTask.updateBlobConfig('[-clusterName BAMSR01.WebApp -propertyFileName "/opt/IBM/WebSphere/AppServer/profiles/BAMDMProfile/BusinessSpace/BAMSR01.WebApp/mm.runtime.prof/config/proxy-config.xml" -prefix "Mashups_"]')

'updateBlobConfig is executed succesfully' 
wsadmin> AdminConfig.save() 
AdminNodeManagement.syncActiveNodes() 
quit 
'' 
wsadmin>--------------------------------------------------------------- 
 AdminNodeManagement:        Synchronize the active nodes 
 Usage: AdminNodeManagement.syncActiveNodes() 
 Return: If the command is successfully invoked, a value of 1 is returned. 
---------------------------------------------------------------

BAMNODE1 
1


In other words, I was at home to Mr. Typo :-)

It took me two hours to realise this, do I feel stupid or what ?

At least, this post may save someone else from making the same daft mistake :-)

No comments:

Post a Comment