[JBoss Seam] - Seam/ICEFaces Integration
by djeverson
I am in the process of converting an application from Tomahawk componets to ICEFaces components. I am running into some issues that I can't not find any resolution to after doing extensive research.
My environment is: Seam 1.1.0 GA, ICEFaces 1.5.1, JBoss 4.0.5 GA, MyFaces 1.1.4.
I have configured the web.xml and faces-config.xml files to use ICEFaces.
The page that I am having the most difficulty with contains a <ice:panelTabSet> Tab Set with five tabs. This page is backed by a stateless session bean. The issues that I am seeing include:
1) When I click on the second tab, after filling in the first tab, I recieve the following stack trace:
ERROR [org.apache.myfaces.lifecycle.PhaseListenerManager] Exception in PhaseListener RENDER_RESPONSE(6) afterPhase
| java.lang.NullPointerException
| at org.jboss.seam.contexts.ServerConversationContext.flush(ServerConversationContext.java:181)
| at org.jboss.seam.contexts.Lifecycle.flushAndDestroyContexts(Lifecycle.java:339)
| at org.jboss.seam.contexts.Lifecycle.endRequest(Lifecycle.java:242)
| at org.jboss.seam.jsf.AbstractSeamPhaseListener.afterRender(AbstractSeamPhaseListener.java:232)
| at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:89)
| at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:89)
| at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:391)
| at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.renderCyclePartial(BlockingServlet.java:453)
| at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.receiveUpdates(BlockingServlet.java:421)
| at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:277)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| --snipped--
|
I see that there are several similar posts in the forum. Some of these posts refer to the issue as a ICEFaces issue. When I search the ICEFaces forum, I see postings indicating that this is a SEAM issue. Is it possible to get anything more definitive on this issue?
2) The second major issue that I am having is that on the third tab, I have a <ice:dataTable> Data Table component. Initially the data table is empty. The user has fields where they key the values for a new row. A <ice:commandLink> is used to add the data entered by the user to the data table. The first row appears to add correctly and displayed correctly in the web application. However, as the user starts to key the data for the second row and tab among the fields, the row that was previously added disappers and reappears. Something is getting lost. I don't know if this issue is related to the first.
3) Can pageflows be used with ICEFaces?
I tried changing the Stateless session bean to a Stateful Session Bean, but this did not have a positive effect.
Any assistance in helping debug and resolve these issues would be greatly appreciated.
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3998803#3998803
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3998803
19 years, 3 months
[JBoss Portal] - Re: File upload problem
by hurzeler
I have also the same issue using JBoss Portal 2.4CR2 with Postgres 8.2 (postgresql-8.2-504.jdbc2.jar). However I noticed that it only happens with images that are stored as BLOBs. I have increased the heap size as suggested. It looks to me as it can't read the image file that is uploaded (gif). What's your take.
If anyone could help that would be great.
Let us know if a solution is available.
2007-01-08 09:22:19,859 DEBUG [org.hibernate.pretty.Printer] org.jboss.portal.cms.hibernate.state.WSPBinVal{key=4901, data=org.hibernate.lob.SerializableBlob@d5da26, id=6d3f3f3e-12c0-4207-814f-a56245fec7c0/{http://www.jcp.org/jcr/1.0}data[0]}
| 2007-01-08 09:22:19,859 DEBUG [org.hibernate.engine.ActionQueue] changes must be flushed to space: jbp_cms_wsp_binval
| 2007-01-08 09:22:19,859 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
| 2007-01-08 09:22:19,859 DEBUG [org.hibernate.jdbc.ConnectionManager] opening JDBC connection
| 2007-01-08 09:22:19,875 DEBUG [org.hibernate.SQL] insert into jbp_cms_wsp_binval (BINVAL_ID, BINVAL_DATA, PK) values (?, ?, ?)
| 2007-01-08 09:22:19,875 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
| 2007-01-08 09:22:19,875 DEBUG [org.hibernate.jdbc.ConnectionManager] skipping aggressive-release due to flush cycle
| 2007-01-08 09:22:19,890 DEBUG [org.hibernate.util.JDBCExceptionReporter] could not insert: [org.jboss.portal.cms.hibernate.state.WSPBinVal] [insert into jbp_cms_wsp_binval (BINVAL_ID, BINVAL_DATA, PK) values (?, ?, ?)]
| org.postgresql.util.PSQLException: Unexpected error writing large object to database.
| Exception: java.io.IOException: Read error
| Stack Trace:
| java.io.IOException: Read error
| at java.io.FileInputStream.readBytes(Native Method)
| at java.io.FileInputStream.read(FileInputStream.java:194)
| at org.postgresql.jdbc2.AbstractJdbc2Statement.setBlob(AbstractJdbc2Statement.java:2745)
| at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.setBlob(WrappedPreparedStatement.java:517)
| at org.hibernate.type.BlobType.set(BlobType.java:49)
| at org.hibernate.type.BlobType.nullSafeSet(BlobType.java:117)
| at org.hibernate.persister.entity.AbstractEntityPersister.dehydrate(AbstractEntityPersister.java:1932)
| at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2178)
| at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2595)
| at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:51)
| at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:139)
| at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
| at org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:41)
| at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:969)
| at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1114)
| at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
| at org.jboss.portal.cms.hibernate.state.JBossCachePersistenceManager$DbBLOBStore.get(JBossCachePersistenceManager.java:1363)
| at org.apache.jackrabbit.core.state.util.Serializer.serialize(Serializer.java:219)
| at org.jboss.portal.cms.hibernate.state.JBossCachePersistenceManager.store(JBossCachePersistenceManager.java:786)
| at org.jboss.portal.cms.hibernate.state.JBossCachePersistenceManager.storeHB(JBossCachePersistenceManager.java:1252)
| at org.jboss.portal.cms.hibernate.state.JBossCachePersistenceManager.store(JBossCachePersistenceManager.java:1207)
| at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.end(SharedItemStateManager.java:569)
| at org.apache.jackrabbit.core.state.XAItemStateManager.commit(XAItemStateManager.java:170)
| at org.apache.jackrabbit.core.TransactionContext.commit(TransactionContext.java:172)
| at org.apache.jackrabbit.core.XASessionImpl.commit(XASessionImpl.java:315)
| at org.jboss.portal.cms.impl.jcr.JCRCMS.execute(JCRCMS.java:448)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3998797#3998797
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3998797
19 years, 3 months
[JBoss/Spring Integration] - Re: JBoss, Spring and JSR 170
by fzaker
"alesj" wrote : All I'm saying that what you want is consulting = telling you what and how to do _your_ stuff.
|
| "fzaker" wrote :
| | 1. Is there any other open source implementation, suitable for enterprise level?
| |
|
| So your saying that I should look up this for you?
|
I appreciate your response. But when I post a question in a forum, I expect to receive answers from those who have previous experiences in the context of question. Take a look at http://www.theserverside.com/news/thread.tss?thread_id=42133#217651. Some people have already looked it up for themselves, not for me.
"alesj" wrote :
| "fzaker" wrote :
| | 2. Is it possible to use eXo JSR 170 implementation together with JBoss and Spring? If yes, how could we select from duplicate services like Transaction service?
| |
| I don't see this as an eXo forum.
|
Of course I don't see too. But isn't there any jboss related stuff? May be some members of this forum have done it before...
Any way, I had heard that JBoss is going Microsoft way. Maybe your problem is due to existence of names like "eXo" in my posting.
Farshid Zaker
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3998793#3998793
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3998793
19 years, 3 months