[jboss-user] [JBoss Seam] - Re: Logger in page-scoped component, NPE in post-back.
Right, you should not declare the Log field transient, it is injected at bean instantiation time, logging has nothing to do with Seam bijection! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985302#3985302 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985302 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Logger in page-scoped component, NPE in post-back.
Sory for my bad explanation, i will try again: 1. @Logger inserts instance of org.jboss.seam.log.LogImpl in a field of my component (lets name it 'mylog', not marked as transient) 2. LogImpl class has field log marked as transient. 3. After postback, 'myname' is restored, but it's LogImpl.log field does not restored: i see null in my debug window. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985363#3985363 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985363 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Logger in page-scoped component, NPE in post-back.
So i looked at implementation of LogImpl class: log field is initialized in ctors and readObject. Nor ctors, nor readObject() are called in postback, i think it is bug. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985367#3985367 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985367 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Logger in page-scoped component, NPE in post-back.
LogImpl has the following method: void readObject(ObjectInputStream ois) | throws ClassNotFoundException, IOException |{ | ois.defaultReadObject(); | log = LogFactory.getLog(category); |} Are you trying to tell me that Java serialization is broken? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985556#3985556 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985556 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user