[Logo] OLD FORUM - Use new one: https://www.CaptainCasa.online/forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
BufferedContentMgr - NullPointer during removal  XML
Forum Index -> Development
Author Message
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5555
Offline

(From mail conversation, responded via forum)

We have some weird issue with the WorkpageDefaultLifecycleListener that is meant to remove the buffered content via BufferedContentMgr.
I cannot reproduce locally but the creation of this WorkpageDefaultLifecycleListener throws a null pointer in the production environment.

Stack trace attached.
 Filename np_image [Disk] Download
 Description
 Filesize 51 Kbytes
 Downloaded:  71 time(s)


Björn Müller, CaptainCasa GmbH
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5555
Offline

You may access the central dispatcher by the static method Dispatcher.findSessionTopWorkpageDispatcher() - but this is the central one, not the one that is associated with a dialog being opened inside the workplace!

Extend your class CustomerExportPDFUI from WorkpageDispatchedPageBean, then you have to implement a constructor in which the right context is passed. The constructor is automatically used if this is the outest one (the one that is addressed when starting the dialog in the wrokplace). If its an inner object then you have to pass the dispatcher on your own.

Kind regards! Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team