NPE on DefaultClientWindow.getWindowId after long period of inactivity

2014-02-23 Thread Thomas Frühbeck
Hi, I am currently using DeltaSpike 0.6 Snapshot some days old.. working on Wildfly 8.0.0.Final Snapshot. I get an NPE in DefaultClientWindow.getWindowId() after long period of inactivity. In this situation the application is _totally inaccessible_ from this client instance, the only remedy

Re: NPE on DefaultClientWindow.getWindowId after long period of inactivity

2014-02-23 Thread John D. Ament
Is the long period of inactivity longer than your session timeout as defined in your web.xml? On Sun, Feb 23, 2014 at 11:49 AM, Thomas Frühbeck fruehb...@aon.at wrote: Hi, I am currently using DeltaSpike 0.6 Snapshot some days old.. working on Wildfly 8.0.0.Final Snapshot. I get an NPE in

Re: NPE on DefaultClientWindow.getWindowId after long period of inactivity

2014-02-23 Thread Thomas Frühbeck
Yes, definitely, in my case it has been about a day. In my opinion the SessionScoped DefaultClientWindowConfig is instantiated by the web layer, but the Wildfly session storage tries to resurrect it from passivation, because an ID is provided. Seems debatable, who's problem it is, but the

Re: NPE on DefaultClientWindow.getWindowId after long period of inactivity

2014-02-23 Thread Mark Struberg
Well, from a CDI perspective this is pretty clear. We take whatever the Session is. Regardless if this is an existing one or a new one. Seems to be a WildFly issue. I'm sure the guys over there can fix this. LieGrue, strub On Sunday, 23 February 2014, 19:37, Thomas Frühbeck

Re: Servlet Module - Do we really need @Web?

2014-02-23 Thread Thomas Andraschko
Another problem is that @web is a qualifier and @JsfPhaseListener is a stereotype and not a qualifier. So if we would change it, we must use different annotations. Right? IMO @Inject @DeltaSpike ServletContext context; would be great as it's just like a namespace. For the @JsfPhaseListener,

Re: NPE on DefaultClientWindow.getWindowId after long period of inactivity

2014-02-23 Thread John D. Ament
H You mention WildFly 8 Final Snapshot. Are you using one of their prerelease snapshot builds or the final one? Can you try on the final? On Sun, Feb 23, 2014 at 1:44 PM, Mark Struberg strub...@yahoo.de wrote: Well, from a CDI perspective this is pretty clear. We take whatever the

Re: Servlet Module - Do we really need @Web?

2014-02-23 Thread Gerhard Petracek
it's just a stereotype to get a better tool-support... @Advanced is also a qualifier (at least in codi). however, we need ordinal or we add @InvocationOrder as it was in codi. once we do that, we break the consistency in that area. regards, gerhard http://www.irian.at Your JSF/JavaEE

Re: Servlet Module - Do we really need @Web?

2014-02-23 Thread Thomas Andraschko
What about reusing javax.annotation.Priority? 2014-02-23 22:02 GMT+01:00 Gerhard Petracek gerhard.petra...@gmail.com: it's just a stereotype to get a better tool-support... @Advanced is also a qualifier (at least in codi). however, we need ordinal or we add @InvocationOrder as it was in

Re: Servlet Module - Do we really need @Web?

2014-02-23 Thread Romain Manni-Bucau
That's would be ambiguous with JavaEE 6 Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-02-23 22:12 GMT+01:00 Thomas Andraschko andraschko.tho...@gmail.com: What about

Re: Servlet Module - Do we really need @Web?

2014-02-23 Thread Thomas Andraschko
Hmm... We could clone it for JEE6 support and handle both annotations for backward compatibility. Maybe we could also use it for other features (or later..) 2014-02-23 22:14 GMT+01:00 Romain Manni-Bucau rmannibu...@gmail.com: That's would be ambiguous with JavaEE 6 Romain Manni-Bucau

Re: Servlet Module - Do we really need @Web?

2014-02-23 Thread Romain Manni-Bucau
I'd prefer something more explicit. Just changing the package would be enough for me Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-02-23 22:17 GMT+01:00 Thomas

Re: Servlet Module - Do we really need @Web?

2014-02-23 Thread Thomas Andraschko
Could you explain this? I can't follow you. 2014-02-23 22:23 GMT+01:00 Romain Manni-Bucau rmannibu...@gmail.com: I'd prefer something more explicit. Just changing the package would be enough for me Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn:

Re: NPE on DefaultClientWindow.getWindowId after long period of inactivity

2014-02-23 Thread Thomas Frühbeck
In fact I found the problem with an 8.0.0.CR1 version, and did not succeed in reproducing the issue by manipulating the windowId cookie. I have activated JSF 2.2 WindowId in web.xml to work around a bug in url handling of DS 0.6 snapshot some time ago, but I cannot imagine, that this has any

Re: Servlet Module - Do we really need @Web?

2014-02-23 Thread Romain Manni-Bucau
using javax.* from deltaspike is quite ambiguous: is it a DS behavior or a spec one? I'm no opposed Priority but in org.apache.deltaspile...Priority Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github:

Re: Servlet Module - Do we really need @Web?

2014-02-23 Thread Thomas Andraschko
which consistency gerhard? 2014-02-23 22:45 GMT+01:00 Gerhard Petracek gerhard.petra...@gmail.com: independent of the name, we would break the consistency. regards, gerhard http://www.irian.at Your JSF/JavaEE powerhouse - JavaEE Consulting, Development and Courses in English and

Re: Servlet Module - Do we really need @Web?

2014-02-23 Thread Thomas Andraschko
If it was agreed, we should leave @JsfPhaseListener as it is... Sorry if i'm a bit annoying but... I still like the idea of a global qualifier instead @Web. As Romain said, it would see it as an namespace - @Inject @DeltaSpike ServletContext context looks good. 2014-02-23 23:01 GMT+01:00

Re: Servlet Module - Do we really need @Web?

2014-02-23 Thread Romain Manni-Bucau
wonder if 2 is really a *public* question once 1 is decided Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-02-23 23:26 GMT+01:00 Thomas Andraschko

Re: Servlet Module - Do we really need @Web?

2014-02-23 Thread Romain Manni-Bucau
maybe we can do a public poll? 1) Keep it like it 2) @DeltaSpike 3) ordinal() 4) other? Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-02-23 23:18 GMT+01:00 Thomas

Re: Servlet Module - Do we really need @Web?

2014-02-23 Thread Thomas Andraschko
Hmm. So i would just start with 1) and we can continue our discussion after the poll. Ok? 2014-02-23 23:28 GMT+01:00 Romain Manni-Bucau rmannibu...@gmail.com: wonder if 2 is really a *public* question once 1 is decided Romain Manni-Bucau Twitter: @rmannibucau Blog:

Re: Servlet Module - Do we really need @Web?

2014-02-23 Thread Romain Manni-Bucau
+1 Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-02-23 23:31 GMT+01:00 Thomas Andraschko andraschko.tho...@gmail.com: Hmm. So i would just start with 1) and we can

Re: NPE on DefaultClientWindow.getWindowId after long period of inactivity

2014-02-23 Thread Gerhard Petracek
hi thomas, if you have any issue with the url-handling, please provide details about it. regards, gerhard http://www.irian.at Your JSF/JavaEE powerhouse - JavaEE Consulting, Development and Courses in English and German Professional Support for Apache MyFaces 2014-02-23 22:39 GMT+01:00