Bug #2253

Nullpointer during informer activation

Added by M. Pohling over 6 years ago. Updated over 6 years ago.

Status:ResolvedStart date:05/08/2015
Priority:HighDue date:
Assignee:J. Wienke% Done:

100%

Category:Java
Target version:rsb-0.13

Description

Sometime I got this NullPointer during the informer activation.
It only happens if many informer are frequently activated.

java.lang.NullPointerException
    at rsb.introspection.IntrospectionParticipantObserver.created(IntrospectionParticipantObserver.java:104)
    at rsb.Factory$ParticipantObserverManager.notifyParticipantCreated(Factory.java:104)
    at rsb.Participant.activate(Participant.java:79)
    at rsb.Informer.access$401(Informer.java:52)
    at rsb.Informer$InformerStateInactive.activate(Informer.java:100)
    at rsb.Informer.activate(Informer.java:217)
    at de.citec.jul.extension.rsb.com.RSBSingleInformer.activate(RSBSingleInformer.java:75)
    at de.citec.jul.schedule.WatchDog$Minder.run(WatchDog.java:167)

Associated revisions

Revision fca194ed
Added by J. Wienke over 6 years ago

Correctly report illegal reactivation of Participants

Prevent a NullPointerException as a side effect of illegally
reactivating a Participant. Instead, report an IllegalStateException as
allowed by the Activatable interface.

fixes #2253

Revision 4b230f6f
Added by J. Wienke over 6 years ago

Correctly report illegal reactivation of Participants

Prevent a NullPointerException as a side effect of illegally
reactivating a Participant. Instead, report an IllegalStateException as
allowed by the Activatable interface.

fixes #2253

(cherry picked from commit fca194ed86492e94610f89ce46f0f2d820a5f3d3)

Revision ae32e5cd
Added by J. Wienke over 6 years ago

Let InvalidStateException subclass IllegalStateException

This fulfills the documented API without the hard changes introduced in
master.

refs #2253

History

#1 Updated by J. Wienke over 6 years ago

  • Description updated (diff)
  • Status changed from New to In Progress
  • Assignee set to J. Wienke
  • Target version changed from rsb-0.12 to rsb-0.13

#2 Updated by J. Wienke over 6 years ago

  • Description updated (diff)

#3 Updated by J. Wienke over 6 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF