# Initial problems in rxjava tutorial

**URL:** <https://forums.kodeco.com/t/initial-problems-in-rxjava-tutorial/85028>\
**Category:** Reactive Programming with Kotlin\
**Created:** [October 15, 2019, 7:08am UTC](https://forums.kodeco.com/t/initial-problems-in-rxjava-tutorial/85028 "2019-10-15T07:08:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![flatrocktech](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/flatrocktech/32/105896_2.png) [@flatrocktech](https://forums.kodeco.com/u/flatrocktech)\
**Post date:** [October 15, 2019, 7:08am UTC](https://forums.kodeco.com/t/initial-problems-in-rxjava-tutorial/85028/1 "2019-10-15T07:08:43Z")

</div>

on page 209, i think there is problem of PublishSubject initialize

```
val sourceObservable = PublishSubject<String>() // correct : PublishSubject.create<String>()
sourceObservable.subscribe(buffer_1)

sourceObservable
  .buffer(bufferTimeSpan,TimeUnit.SECONDS, bufferMaxCount)
  .map { it.size }
  .subscribe(buffer_2)

```

---

<div class="post-metadata">

**Author:** ![macsimus](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/macsimus/32/109104_2.png) [@macsimus](https://forums.kodeco.com/u/macsimus)\
**Post date:** [October 17, 2019, 8:03pm UTC](https://forums.kodeco.com/t/initial-problems-in-rxjava-tutorial/85028/2 "2019-10-17T20:03:04Z")

</div>

Thanks for finding that @flatrocktech! We’ve added that to the Errata for the 1st edition. This will be fixed in the 2nd edition.
