[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
LongPolling  XML
Forum Index -> Development
Author Message
tdrasch

Power User
[Avatar]

Joined: 13/03/2009 19:09:45
Messages: 81
Location: Villingen-Schwenningen
Offline

Hi Community,

I've a problem with LongPolling.
It is a little bit strange, because I already used this functionality until now.
Now I am receiving a NullPointerException for
"LongPollingMgr.add(m_longPolling);" (called on the constructor)
with
"DefaultLongPolling m_longPolling = new DefaultLongPolling();"
as an attribute.

I got this exception after the update of the latest (todays 2010(0)913) version of CC. But I'm not sure if this depends on the update.

regards,
Thomas

--------------------------------
Good karma - for the moment...
why is the word abbreviation so long?
[WWW]
CaptainCasa

Power User
[Avatar]

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

...yes, we added a bit (if the session "dies" then now all long polling threads are released)... - but this should not affect the general long polling management...

When do you add the ILongPolling instance? Is it possible that you do this in a situation wherer there has not been a session initialization yet?

Regards, Björn

Björn Müller, CaptainCasa GmbH
tdrasch

Power User
[Avatar]

Joined: 13/03/2009 19:09:45
Messages: 81
Location: Villingen-Schwenningen
Offline

I do it in the constructor of the UI class.
I think I have a session at this time - at least I have a sessionID

Code:
 public class SupervisorProgressUI extends InteractionUI implements Serializable {
 	...
 	
 	DefaultLongPolling m_longPolling = new DefaultLongPolling();
 	boolean m_longPollingRendered = false;
 	
 	public SupervisorProgressUI(IDispatcher dispatcher)
 	{
 		super(dispatcher);
 		try{
 			...
 			LongPollingMgr.add(m_longPolling);
 		}
          ....
 


regards

--------------------------------
Good karma - for the moment...
why is the word abbreviation so long?
[WWW]
CaptainCasa

Power User
[Avatar]

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

OK, thanks for the info.

Hmm, ...
we will check and provide an update short term (tomorrow morning), if this is fine with you.

Regards, Björn

Björn Müller, CaptainCasa GmbH
tdrasch

Power User
[Avatar]

Joined: 13/03/2009 19:09:45
Messages: 81
Location: Villingen-Schwenningen
Offline

Hi Björn,

no problem.
Let me know, if I can help you in any way.
Thanks in advance.

Regards

--------------------------------
Good karma - for the moment...
why is the word abbreviation so long?
[WWW]
tdrasch

Power User
[Avatar]

Joined: 13/03/2009 19:09:45
Messages: 81
Location: Villingen-Schwenningen
Offline

Community,

after direct support by CC:
The following entry was missing in the web.xml:

Code:
   <listener>
     <listener-class>org.eclnt.jsfserver.util.HttpSessionListenerDelegator</listener-class>
   </listener>
 


now it works.
Thanks

--------------------------------
Good karma - for the moment...
why is the word abbreviation so long?
[WWW]
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team