Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.8.2
-
Fix Version/s: 1.8.3, EE-1.8.2.GA_P04
-
Component/s: Framework
-
Labels:None
-
Environment:ICEfaces 1.8.2
JBoss Seam 2.2.2 Final
JBoss 5.1.0 GA
-
ICEsoft Forum Reference:
Description
-
Hide
- seameasypush.zip
- 66 kB
- Ted Goddard
-
- build.properties 0.1 kB
- build.xml 11 kB
- resources/components.properties 0.0 kB
- resources/import.sql 0.0 kB
- resources/messages.properties 40 kB
- resources/messages_de.properties 51 kB
- resources/messages_en.properties 48 kB
- resources/messages_es.properties 52 kB
- resources/META-INF/ejb-jar.xml 0.7 kB
- resources/META-INF/jboss-app.xml 0.1 kB
- resources/META-INF/jboss-beans.xml 0.2 kB
- resources/META-INF/persistence.xml 1 kB
- resources/seam.properties 0.0 kB
- resources/security.drl 0.1 kB
- resources/WEB-INF/components.xml 2 kB
- resources/WEB-INF/faces-config.xml 0.6 kB
- resources/WEB-INF/jboss-web.xml 0.4 kB
- resources/WEB-INF/pages.xml 0.4 kB
- resources/WEB-INF/web.xml 7 kB
- src/.../ApplicationCounter.java 2 kB
- src/.../Counter.java 2 kB
- src/.../SessionCounter.java 2 kB
- web/counter.xhtml 3 kB
- web/index.html 0.2 kB
-
Hide
- pushTest.zip
- 5.32 MB
- Judy Guglielmin
-
- pushTest/.classpath 2 kB
- pushTest/.DS_Store 6 kB
- __MACOSX/pushTest/._.DS_Store 0.1 kB
- pushTest/.project 0.8 kB
- pushTest/.settings/.svn/all-wcprops 0.3 kB
- pushTest/.settings/.svn/entries 0.4 kB
- pushTest/.../org.hibernate.eclipse.console.prefs.svn-base 0.1 kB
- pushTest/.../org.hibernate.eclipse.console.prefs 0.1 kB
- pushTest/.svn/all-wcprops 2 kB
- pushTest/.svn/entries 2 kB
- pushTest/.svn/.../.classpath.svn-base 2 kB
- pushTest/.svn/.../.project.svn-base 0.8 kB
- pushTest/.../build-dev.properties.svn-base 0.0 kB
- pushTest/.../build-prod.properties.svn-base 0.0 kB
- pushTest/.svn/.../build.properties.svn-base 0.1 kB
- pushTest/.svn/.../build.xml.svn-base 17 kB
- pushTest/.../debug-jboss-pushTest.launch.svn-base 0.9 kB
- pushTest/.../deployed-jars.list.svn-base 0.3 kB
- pushTest/.svn/.../explode.launch.svn-base 2 kB
- pushTest/.../hibernate-console.properties.svn-base 0.5 kB
- pushTest/.svn/.../pushTest.launch.svn-base 0.5 kB
- pushTest/.../seam-gen.properties.svn-base 0.8 kB
- pushTest/bootstrap/.svn/all-wcprops 0.5 kB
- pushTest/bootstrap/.svn/entries 0.7 kB
- pushTest/.../commons-logging.properties.svn-base 0.4 kB
- pushTest/.../jndi.properties.svn-base 0.2 kB
- pushTest/bootstrap/.../log4j.xml.svn-base 3 kB
- pushTest/.../commons-logging.properties 0.4 kB
- pushTest/bootstrap/conf/.svn/all-wcprops 0.7 kB
- pushTest/bootstrap/conf/.svn/entries 0.9 kB
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
This is my Seam component that uses the SessionRenderer:
@Name("administrationAction")
@Scope(SESSION)
public class AdministrationAction implements Serializable {
...
/** Module import business component. */
@In(create = true)
private ModuleImportBc moduleImportBc = null;
/** Push message manager. */
@In
private PushMsgManager pushMsgManager = null;
...
/** Constructor. */
public AdministrationAction()
...
/** Update modules. */
public void updateModules() {
try
catch (JpaException e)
{ statusMessages.addFromResourceBundle(ERROR, "administration.msg.updateModules.failed"); } catch (CsvFileException e) { statusMessages.addFromResourceBundle(ERROR, "administration.msg.updateModules.failed"); }}
...
}
The PushMsgManager is the application scoped component that stores the message data to render with the push mechanism.
After calling "SessionRenderer.render(PushMsgReceiver.PUSH_GROUP_PUSH_MSG_RECEIVER)" the following exception is thrown:
14:14:58,825 ERROR [D2DFaceletViewHandler] Problem in renderResponse: null
java.lang.NullPointerException
at com.icesoft.faces.util.DOMUtils.domDiff(DOMUtils.java:256)
at com.icesoft.faces.context.PushModeSerializer.serialize(PushModeSerializer.java:34)
at com.icesoft.faces.context.BridgeFacesContext$SaveCurrentDocument.serialize(BridgeFacesContext.java:924)
at com.icesoft.faces.context.DOMResponseWriter.endDocument(DOMResponseWriter.java:191)
at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:285)
at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:159)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at com.icesoft.faces.webapp.xmlhttp.PersistentFacesState.render(PersistentFacesState.java:176)
at com.icesoft.faces.webapp.xmlhttp.PersistentFacesState.executeAndRender(PersistentFacesState.java:312)
at com.icesoft.faces.async.render.RunnableRender.run(RunnableRender.java:143)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
at java.lang.Thread.run(Thread.java:662)
Here is my environment:
ICEfaces 1.8.2
JBoss Seam 2.2.2 Final
JBoss 5.1.0 GA
actually created a MessageMgr bean that was injected into a Session scoped bean which implemented push using SessionRenderer and found that the push triggered event was unable to find the Session-scoped bean that was injected into it after the push.
Work-around would be to go back to tested API which works well with seam, so please see PushTest.zip which contains a sample of this. works for Session or conversation-scoped backing beans and using seam injection. SessionRenderer is newer api and in ICEfaces-3 incarnation works well with CDI on newer application servers.
To create PushTest project:-
edit build.properties to set proper targets for jboss5.1.0.GA, icefaces home directory and jboss-seam-2.2.2.Final home directory and then run:-
1) ant copy-libs
2) ant deploy or ant explode (if you want archived deploy or exploded deploy)
This may be related or fixed by
ICE-7942.