# Issue with setting up a rate class in Java

**URL:** <https://community.f5.com/t/issue-with-setting-up-a-rate-class-in-java/2978>\
**Category:** Technical Forums\
**Tags:** icontrol, dev, devops\
**Created:** [November 24, 2010, 7:38pm UTC](https://community.f5.com/t/issue-with-setting-up-a-rate-class-in-java/2978 "2010-11-24T19:38:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_Denny\_1081](https://avatars.discourse-cdn.com/v4/letter/m/ecb155/32.png) [@Mike\_Denny\_1081](https://community.f5.com/u/Mike_Denny_1081)\
**Post date:** [November 24, 2010, 7:38pm UTC](https://community.f5.com/t/issue-with-setting-up-a-rate-class-in-java/2978/1 "2010-11-24T19:38:42Z")

</div>

We’re setting up two virtual servers with the same parent rate class, to limit their aggregate traffic.

Our first step in iControl is to create the parent rate class, then set up each child rate class and assign them the parent.

Based on the tutorial example:

[http://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/308/iControl-101\-\-21\-\-Rate-Classes.aspx](http://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/308/iControl-101%5C-%5C-21%5C-%5C-Rate-Classes.aspx)

our first step was to create the rate class using the create method ~~**LocalLB.RateClass.create**~~

However, when we create a rate class with 0 base rate, the F5 responds with the error:

Exception: Common: OperationFailded

primary\_error\_code : 17236601 (0x01070279)

secondary\_error\_code: 0

error\_string : 01070279:3: Rate class ‘parentRateClass\_3’: ceiling rate must be greater than or equal to 296bps

~~At that point, we haven’t specified the ceiling rate. The base rate is set to 0 MBps.~~

See anything? thx.

---

<div class="post-metadata">

**Author:** ![Joe\_Pruitt](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/joe_pruitt/32/8438_2.png) [@Joe\_Pruitt](https://community.f5.com/u/Joe_Pruitt)\
**Post date:** [December 2, 2010, 4:10pm UTC](https://community.f5.com/t/issue-with-setting-up-a-rate-class-in-java/2978/2 "2010-12-02T16:10:04Z")

</div>

This was a fun one to try to dig up. It turns out that the LocalLB.RateClass’s create method takes a base rate and not the ceiling rate. But, under the seams, it set’s the base AND ceiling rate to what you pass in for the base rate parameter. Since the ceiling rate has a minimum value of 296bps, passing a zero in for the base rate will throw the exception.

The workaround is (if your base rate is less than 296bps), pass in the ceiling rate in the create method and then set the base rate after that to the lower value you desire (in your case 0).

-Joe
