Author |
Message
|
mahesh2069 |
Posted: Wed Jul 17, 2013 5:55 am Post subject: Issue in Removing global Cache |
|
|
Centurion
Joined: 26 Jun 2013 Posts: 103
|
Hi All,
For remove global cache ,I use MbGlobalMapSessionPolicy object,I gave timetoLive time as parameter to MbGlobalMapSessionPolicy constructor. I got exception while this object gave input to MBGlobalMap object.
In JCN I write
Code: |
MbGlobalMapSessionPolicy session=new MbGlobalMapSessionPolicy(100);
// session.setTimeToLive(100);
MbGlobalMap map=MbGlobalMap.getGlobalMap("myMap",session);
//MbGlobalMap map=MbGlobalMap.getGlobalMap("myMap");
map.put(1,"Mahi");
map.put(2, "sai");
|
I got following excetion
Invalid TTL: 100 Error: ObjectMap.setTimeToLive method can not be used for NONE TTLType
Code: |
ExceptionList
RecoverableException
File:CHARACTER:F:\build\slot1\S800_P\src\DataFlowEngine\ImbDataFlowNode.cpp
Line:INTEGER:1154
Function:CHARACTER:ImbDataFlowNode::createExceptionList
Type:CHARACTER:ComIbmMQInputNode
Name:CHARACTER:MbGlobalMap_MF#FCMComposite_1_1
Label:CHARACTER:MbGlobalMap_MF.MQ Input
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:2230
Text:CHARACTER:Node throwing exception
RecoverableException
File:CHARACTER:F:\build\slot1\S800_P\src\DataFlowEngine\PluginInterface\ImbJniNode.cpp
Line:INTEGER:1267
Function:CHARACTER:ImbJniNode::evaluate
Type:CHARACTER:ComIbmJavaComputeNode
Name:CHARACTER:MbGlobalMap_MF#FCMComposite_1_4
Label:CHARACTER:MbGlobalMap_MF.Java Compute
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:2230
Text:CHARACTER:Caught exception and rethrowing
RecoverableException
File:CHARACTER:MbGlobalMapInternal.java
Line:INTEGER:130
Function:CHARACTER:initialize
Type:CHARACTER:
Name:CHARACTER:
Label:CHARACTER:
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:7165
Text:CHARACTER:Error setting TTL
Insert
Type:INTEGER:5
Text:CHARACTER:myMap
Insert
Type:INTEGER:5
Text:CHARACTER:WMB
Insert
Type:INTEGER:5
Text:CHARACTER:Invalid TTL: 100 Error: ObjectMap.setTimeToLive method can not be used for NONE TTLType
|
_________________ Thanks & Regards
Mahesh Mediboyina
WMB Developer |
|
Back to top |
|
 |
iShakir |
Posted: Thu Jul 18, 2013 12:48 am Post subject: |
|
|
Apprentice
Joined: 07 Mar 2013 Posts: 47
|
Hi,
I'm struggling to immediately reproduce this. You haven't provided line numbers, Is the exception happening on the line below?
Code: |
MbGlobalMap map=MbGlobalMap.getGlobalMap("myMap",session); |
Also what platform are you running on? |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Jul 18, 2013 12:50 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Are you using Broker v8.0.0.2? |
|
Back to top |
|
 |
mahesh2069 |
Posted: Fri Jul 19, 2013 6:38 am Post subject: |
|
|
Centurion
Joined: 26 Jun 2013 Posts: 103
|
Yah ,I am Using WMB 8.0.0.2 , in before version which jar file need to add in class path? _________________ Thanks & Regards
Mahesh Mediboyina
WMB Developer |
|
Back to top |
|
 |
mahesh2069 |
Posted: Fri Jul 19, 2013 6:42 am Post subject: |
|
|
Centurion
Joined: 26 Jun 2013 Posts: 103
|
I got execption here
MbGlobalMapSessionPolicy session=new MbGlobalMapSessionPolicy(100);
When instantiate session policy object _________________ Thanks & Regards
Mahesh Mediboyina
WMB Developer |
|
Back to top |
|
 |
lancelotlinc |
Posted: Fri Jul 19, 2013 6:56 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
mahesh2069 |
Posted: Fri Jul 19, 2013 9:18 am Post subject: |
|
|
Centurion
Joined: 26 Jun 2013 Posts: 103
|
wmb broker 8.0.0.2 _________________ Thanks & Regards
Mahesh Mediboyina
WMB Developer |
|
Back to top |
|
 |
lancelotlinc |
Posted: Fri Jul 19, 2013 9:34 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
mahesh2069 wrote: |
wmb broker 8.0.0.2 |
This is your version. Please post the output of mqsireportbroker. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
iShakir |
Posted: Mon Jul 22, 2013 12:36 am Post subject: |
|
|
Apprentice
Joined: 07 Mar 2013 Posts: 47
|
mahesh2069 wrote: |
I got execption here
MbGlobalMapSessionPolicy session=new MbGlobalMapSessionPolicy(100);
When instantiate session policy object |
It's likely that you haven't enabled fixpack function for your broker (as lancelotlinc suggested.) In future to diagnose this run:
Code: |
mqsiservice <broker_name> -v |
and take a look at the "Fixpack Capability Level".
In order to fix this problem you will need to enable the v8002 function for your broker, which can be done by running:
Code: |
mqsichangebroker <broker_name> -f all |
|
|
Back to top |
|
 |
mahesh2069 |
Posted: Mon Jul 22, 2013 1:24 am Post subject: |
|
|
Centurion
Joined: 26 Jun 2013 Posts: 103
|
Hi iShakir,
Thank you.After enabling the v8002 function for broker,It's working fine _________________ Thanks & Regards
Mahesh Mediboyina
WMB Developer |
|
Back to top |
|
 |
lancelotlinc |
Posted: Mon Jul 22, 2013 3:15 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
mahesh2069 wrote: |
After enabling the v8002 function for broker,It's working fine |
Which is what we repeatedly told you , even at the very first , but you kept posting on the forum that GlobalCache was not working for you. Don't bother posting here if you refuse to read the InfoCentre, get the training, or listen to people. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
|