[JBoss Seam] - Conversation timeout and pageflow
by kevin.genie
Hello:
I have a pageflow with Begin defined at the Create method of a SFSB. One of the pages in the pagefow has a pop up window which opens in new window to search and set a value in the parent window. Now this child window is not part of the page flow but the parent window is. Now,
1. The user has started the pageflow and also has invoked the child window from the parent window.
2. Before the end-conversation page of the page flow is reached, the user starts the same page-flow from another navigation point (Pagflow in create mode from menu or in edit mode from search and edit page ).
3. Now, when the user is in the second conversation with the same pageflow, conversation timeout for the first conversation is called and it is calling the destroy for the SFSB instance of the second conversation also.
What can be the probem ? Is there any by which I can specify a popup also as part of the pageflow ?
Thanx
Kevin
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994886#3994886
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994886
19 years, 7 months
[JBoss Seam] - integration with Trinidad (ADF)
by lle
Hi,
Is there any of you successful in integrating Seam with Trinidad (ADF)? Seam reference document emphasizes on using Trinidad instead of Tomahawk. However, there is not much documentation or examples on how to integrate with this library.
I followed the instructions on Trinidad Apache site and still get the following error when first accessing a page:
SEVERE: Error Rendering View[/home.xhtml]
| java.lang.IllegalStateException: No RenderingContext
| at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:176)
I checked my faces-config.xml many times and there's no duplicate config of view handler. I only defined it in web.xml.
Is there anything else I should look into?
Thanks a lot.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994880#3994880
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994880
19 years, 7 months
[JBoss Seam] - Re: s:link missing conversationId, sometimes
by pdpantages
Hi Gavin, OK, following is my xhtml. The first reference to the object, "triggertable" is before the s:ilnk, but the reference is on some buttons, so the object may not instantiated until the corresponding action is invoked.?
Your comment has got me thinking, though. I didn't think that the order on the page would matter. The dataTable is constructed from an outjected DataModel (from the SFSB) so the component would have been created before the datatable was created; thus the s:links inside the table are OK. I will try to reference some part of the object ahead of the s:link and see if that fixes me up.
My firefox location/URL shows the correct conversationId when I load the page
Wrt. a4j:commanLink, if I "copy link location" from the link in question I see something like:
| http://nebula:8080/client/view/workflow/triggertable.seam?conversationId=...
|
I thought the seam redirect filter was adding it for me? Anway, I did not use f:param or other mechanism to set the conversationId here... I did not add the # character either.
Here is my page. The s:link that gives me trouble is in the div_control_buttons, right after the ui:include. If I change this to a4j:commanLink, I get the url as above.
| <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
| <ui:composition xmlns="http://www.w3.org/1999/xhtml"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:s="http://jboss.com/products/seam/taglib"
| xmlns:t="http://myfaces.apache.org/tomahawk"
| xmlns:c="http://java.sun.com/jstl/core"
| xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
| xmlns:centina="http://www.centinasystems.com/jsf"
| template="/view/main.xhtml">
|
| <ui:define name="page_title">
| <h:outputText value="Workflow > Trigger Table"/>
| </ui:define>
|
| <ui:define name="ui_pagelayout">
| <ui:include src="/view/layout1.xhtml" />
| </ui:define>
|
| <ui:define name="ui_a4j_poll">
| <a4j:poll
| id="triggerTablePoller"
| interval="4000"
| enabled="true"
| eventsQueue="triggerTablePollerQueue"
| reRender="#{mainPanel}">
| </a4j:poll>
| </ui:define>
|
| <ui:define name="ui_control_panel">
|
| <div class="div_control_buttons">
|
| <ui:include src="/view/ajaxtablebuttons.xhtml">
| <ui:param name="object" value="trigger"/>
| <ui:param name="reRender" value="mainPanel"/>
| <ui:param name="entity" value="#{triggerTable}"/>
| </ui:include>
|
| <t:div styleClass="icontool">
| <s:link
| title="Create a new scheduled trigger"
| action="#{workFlowAction.newTrigger}" >
| <img src="/client/img/newtrigger32x32.png"
| class="iconButtonOut"
| onMouseOver="this.className='iconButtonUp'"
| onMouseOut="this.className='iconButtonOut'"
| onMouseDown="this.className='iconButtonDown'"
| onMouseUp="this.className='iconButtonUp'" />
| <f:param name="ctx" value="triggertable"/>
| </s:link>
| </t:div>
|
| </div>
|
| </ui:define>
|
| <ui:define name="ui_content">
|
| <div class="unbounded_container">
|
| <a4j:outputPanel id="mainPanel">
|
| <t:dataTable value="#{triggerList}" var="trigger"
| rendered="true">
|
| <t:column>
| <a4j:commandLink
| title="select"
| value="M"
| reRender="mainPanel"
| styleClass="#{(triggerTable.selections[trigger.id]) ? 'selectedbutton' : 'selectbutton' }"
| action="#{triggerTable.select}" >
| </a4j:commandLink>
| </t:column>
|
| <t:column>
| <f:facet name="header">
| <h:outputText
| title="Description"
| value="Description"/>
| </f:facet>
|
| <s:link value="#{trigger.name}"
| action="#{workFlowScheduledTrigger.editWfc}" >
| <f:param name="wfid" value="#{trigger.id}"/>
| <f:param name="wftype" value="#{trigger.type}"/>
| <f:param name="ctx" value="triggertable"/>
| </s:link>
| </t:column>
|
| <t:column>
| <f:facet name="header">
| <h:outputText
| title="Start Date"
| value="Start Date"/>
| </f:facet>
| <h:outputText value="#{trigger.startDate}"/>
| </t:column>
|
| <t:column>
| <f:facet name="header">
| <h:outputText
| title="Repetitions"
| value="Repetitions"/>
| </f:facet>
| <h:outputText value="#{trigger.repetitions}"/>
| </t:column>
|
| <t:column>
| <f:facet name="header">
| <h:outputText
| title="Period"
| value="Period"/>
| </f:facet>
| <h:outputText value="#{trigger.period}"/>
| </t:column>
|
| </t:dataTable>
|
| </a4j:outputPanel>
|
| </div>
|
| </ui:define>
|
| </ui:composition>
|
|
The included ajaxtablebuttons:
|
| <ui:composition xmlns="http://www.w3.org/1999/xhtml"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:s="http://jboss.com/products/seam/taglib"
| xmlns:t="http://myfaces.apache.org/tomahawk"
| xmlns:c="http://java.sun.com/jstl/core"
| xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
| xmlns:centina="http://www.centinasystems.com/jsf">
|
| <t:div styleClass="icontool">
| <a4j:commandLink
| title="Select all #{object}s"
| reRender="#{reRender}"
| limitToList="true"
| ajaxSingle="true"
| action="#{entity.selectAll}" >
| <img src="/client/img/selectall32framed.png"
| class="iconButtonOut"
| onMouseOver="this.className='iconButtonUp'"
| onMouseOut="this.className='iconButtonOut'"
| onMouseDown="this.className='iconButtonDown'"
| onMouseUp="this.className='iconButtonUp'" />
| </a4j:commandLink>
| </t:div>
|
| <t:div styleClass="icontool">
| <a4j:commandLink
| title="Unselect all #{object}s"
| reRender="#{reRender}"
| limitToList="true"
| ajaxSingle="true"
| action="#{entity.unselectAll}" >
| <img src="/client/img/unselectAll32.png"
| class="iconButtonOut"
| onMouseOver="this.className='iconButtonUp'"
| onMouseOut="this.className='iconButtonOut'"
| onMouseDown="this.className='iconButtonDown'"
| onMouseUp="this.className='iconButtonUp'" />
| </a4j:commandLink>
| </t:div>
|
| <t:div styleClass="icontool">
| <a4j:commandLink
| title="Delete Selected #{object}s"
| onclick="if (!window.confirm('Confirm delete of selected #{object}s')) return false;"
| reRender="#{reRender}"
| limitToList="true"
| ajaxSingle="true"
| action="#{entity.deleteSelections}" >
| <img src="/client/img/deleteall32framed.png"
| class="iconButtonOut"
| onMouseOver="this.className='iconButtonUp'"
| onMouseOut="this.className='iconButtonOut'"
| onMouseDown="this.className='iconButtonDown'"
| onMouseUp="this.className='iconButtonUp'" />
| </a4j:commandLink>
| </t:div>
|
| </ui:composition>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994870#3994870
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994870
19 years, 7 months
[JBoss Seam] - Re: Basic Seam questions
by lightbulb432
Wouldn't those objects still be in memory with the SFSB still being alive? If you persist many objects and the persistence context closes, doesn't that mean the objects become detached only...aren't those objects still in memory though?
On an unrelated note, does <s:decorate> only work for per-field validation as defined in the annotations? Let's say a backing session bean figures out in its action method that multiple fields are invalid (based on business logic, not Hibernate Validator), how from the action method would you get <s:decorate> for certain fields to alert the user of invalid input?
The reason the validation can't be done directly on a per-field basis is because whether a form field is invalid depends on the value of another form field... Is what I'm suggesting even possible?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994867#3994867
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994867
19 years, 7 months
[JBoss Seam] - s:link missing conversationId, sometimes
by pdpantages
Fyi, Using Seam 1.0.1GA, ajax4jsf 1.0.2, Jboss 4.0.4.GA
Hello Seamers, I have a question about rendering of s:link. I have a simple icon that I use an s:link with;
| <t:div styleClass="icontool">
| <s:link
| title="Create a new scheduled trigger"
| action="#{workFlowAction.newTrigger}" >
| <img src="/client/img/newtrigger32x32.png"
| class="iconButtonOut"
| onMouseOver="this.className='iconButtonUp'"
| onMouseOut="this.className='iconButtonOut'"
| onMouseDown="this.className='iconButtonDown'"
| onMouseUp="this.className='iconButtonUp'" />
| <f:param name="ctx" value="triggertable"/>
| </s:link>
| </t:div>
|
My problem is, thatt when the page containing the button is first displayed, the link does not include the conversationId. It looks like so:
| http://nebula:8080/client/view/workflow/triggertable.seam?ctx=triggertabl...
|
If I refresh the page with the browser refresh button, it then fixes itself up:
| http://nebula:8080/client/view/workflow/triggertable.seam?ctx=triggertabl...
|
I have other links on this page do not have this problem:
I have a t:datatable on this page containng s:links, and a4j:commandLinks. Also some other icons with a4j:CommandLinks . Only the above is missing the conversationId. I tried removing the icon and subsituting a value="string" for the link but the behaviour did not change.
The a4j:commandLinks precede this one on the page. The dataTable comes after.
Any clues? I am a bit puzzled by it. I can get my code to work by adding an f:param with the conversationId in it, but I will get duplicate paramters in most cases.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994853#3994853
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994853
19 years, 7 months
[JBoss Eclipse IDE (users)] - Memory Leak in JBoss IDE?
by jantzen
Eclipse 3.2.1
JBoss IDE 2.0 beta2 plugin
Sun Java 1.5.0_08 (64 bit)
Debian
I've been seeing tremendous instability in Eclipse ever since migrating from JBossIDE 1.6 to the 2.0 beta. In particular, operations like hibernate code generation and reverse engineering routinely result in crashes. Controlling the JBoss server is enough to do it though.
Often there's an out of memory dialog that pops up, mostly it just freezes entirely and I have to kill -9 the process. I've tried bumping up the memory but even with 3/4 Gig of memory it happens.
My co-oworker with the same setup on 32 bit Java on OSX sees the same behavior, so it's not the underlying VM implementation that's responsible. And doing non-JBossy things I can keep the Eclipse session going far longer.
Anybody else seeing these sorts of problems? I've resorted to opening the necessary files for a given task and then intentionally shutting down Eclipse so that my workbench will be in proper shape after the inevitable crash :)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994850#3994850
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994850
19 years, 7 months
[JBoss Seam] - Error when installing MyFaces in WEB-INF/lib
by fabio.ita04
Hi,
I'm getting the following error when placing MyFaces jars in lib project:
| 22:58:26,343 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml
| 22:58:26,733 ERROR [StartupServletContextListener] Error initializing ServletContext
| java.lang.IllegalArgumentException: Class org.jboss.seam.jsf.SeamApplicationFactory is no javax.faces.application.ApplicationFactory
|
The error doesn't occurs when myfaces jars are removed. Any help?
the faces-config:
| <faces-config>
| <application>
| <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
| </application>
|
| <lifecycle>
| <phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener>
| </lifecycle>
| </faces-config>
|
web.xml:
| ...
| <!-- Seam -->
| <listener>
| <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
| </listener>
|
| <!-- MyFaces -->
| <listener>
| <listener-class>
| org.apache.myfaces.webapp.StartupServletContextListener
| </listener-class>
| </listener>
|
| <context-param>
| <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
| <param-value>.xhtml</param-value>
| </context-param>
|
| <context-param>
| <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
| <param-value>client</param-value>
| </context-param>
|
| <servlet>
| <servlet-name>FacesServlet</servlet-name>
| <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
| <load-on-startup>1</load-on-startup>
| </servlet>
|
| <!-- Faces Servlet Mapping -->
| <servlet-mapping>
| <servlet-name>FacesServlet</servlet-name>
| <url-pattern>*.htm</url-pattern>
| </servlet-mapping>
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994843#3994843
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994843
19 years, 7 months
[Persistence, JBoss/CMP, Hibernate, Database] - JBoss 4 CMP mixing database columns
by torkellt
During stress tests of out application on JBoss 4.0.4 and 4.0.5, we're seeing exceptions where JBoss apparently mixes up the database columns:
anonymous wrote :
| 2006-12-15 19:14:47,748 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackLocalException in method: null, causedBy:
| org.postgresql.util.PSQLException: Bad value for type timestamp : WAP Ordbok
| at org.postgresql.jdbc2.TimestampUtils.loadCalendar(TimestampUtils.java:232)
| at org.postgresql.jdbc2.TimestampUtils.toTimestamp(TimestampUtils.java:307)
| ...
| at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.createRelationLinks(JDBCCMRFieldBridge.java:1000)
| at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.createRelationLinks(JDBCCMRFieldBridge.java:976)
| at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.setInstanceValue(JDBCCMRFieldBridge.java:912)
| at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.setValue(JDBCCMRFieldBridge.java:723)
| at org.jboss.ejb.plugins.cmp.bridge.EntityBridgeInvocationHandler$FieldSetInvoker.invoke(EntityBridgeInvocationHandler.java:170)
| at org.jboss.ejb.plugins.cmp.bridge.EntityBridgeInvocationHandler.invoke(EntityBridgeInvocationHandler.java:105)
| at org.jboss.proxy.compiler.Runtime.invoke(Runtime.java:76)
| at no.boostcom.smsfusion.beans.InboxMessageBean$Proxy.setInbox()
| ...
|
And
anonymous wrote :
| 2006-12-15 19:14:47,860 ERROR [no.boostcom.receiver.DispatchMDB] Error occured when reader was trying to read message.
| org.jboss.tm.JBossTransactionRolledbackException: Internal error getting results for field member startTime; nested exception is:
| javax.ejb.EJBException: Internal error getting results for field member
| startTime; - nested throwable: (javax.ejb.EJBException: Internal error getting results for field member startTime)
| at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:280)
| at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:209)
| at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
| at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
| ...
| Caused by: javax.ejb.EJBException: Internal error getting results for field member startTime
| at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.loadArgumentResults(JDBCAbstractCMPFieldBridge.java:498)
| at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.loadArgumentResults(JDBCAbstractCMPFieldBridge.java:432)
| at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.loadInstanceResults(JDBCAbstractCMPFieldBridge.java:393)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:207)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:88)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager.java:646)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager.java:628)
| at org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistenceManager.java:406)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.loadEntity(CachedConnectionInterceptor.java:252)
| at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:243)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
| at org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInterceptor.java:126)
| at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:276)
| at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:104)
| at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:68)
| at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
| at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
| at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:378)
| at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
| at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
| at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
| at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
| at org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:527)
| at org.jboss.ejb.Container.invoke(Container.java:954)
| at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.invokeAddRelation(JDBCCMRFieldBridge.java:1194)
| at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.createRelationLinks(JDBCCMRFieldBridge.java:1000)
| at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.createRelationLinks(JDBCCMRFieldBridge.java:976)
| at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.setInstanceValue(JDBCCMRFieldBridge.java:912)
| at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.setValue(JDBCCMRFieldBridge.java:723)
| at org.jboss.ejb.plugins.cmp.bridge.EntityBridgeInvocationHandler$FieldSetInvoker.invoke(EntityBridgeInvocationHandler.java:170)
| at org.jboss.ejb.plugins.cmp.bridge.EntityBridgeInvocationHandler.invoke(EntityBridgeInvocationHandler.java:105)
| at org.jboss.proxy.compiler.Runtime.invoke(Runtime.java:76)
| at no.boostcom.smsfusion.beans.InboxMessageBean$Proxy.setInbox()
| at sun.reflect.GeneratedMethodAccessor276.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
| at org.jboss.ejb.EntityContainer$ContainerInterceptor.invoke(EntityContainer.java:1187)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor.invoke(JDBCRelationInterceptor.java:87)
| at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:284)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
| at org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInterceptor.java:126)
| at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:276)
| at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:104)
| at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:68)
| at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
| at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
| at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:378)
| at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
| at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
| at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
| at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
| at org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:527)
| at org.jboss.ejb.Container.invoke(Container.java:954)
| at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
| at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:65)
| at $Proxy438.setInbox(Unknown Source)
| at no.boostcom.smsfusion.smsfusionReceiverBeans.MtextHelperBean.storeMessage(MtextHelperBean.java:449)
| at no.boostcom.smsfusion.smsfusionReceiverBeans.MtextHelperBean.storeSMS(MtextHelperBean.java:410)
| at sun.reflect.GeneratedMethodAccessor270.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
| at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
| at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
| at org.jboss.ws.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:39)
| at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
| at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
| at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
| at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
| at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
| at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
| at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
| at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
| at org.jboss.ejb.Container.invoke(Container.java:954)
| at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
| at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
| at $Proxy502.storeSMS(Unknown Source)
| ...
| Caused by: org.postgresql.util.PSQLException: Bad value for type timestamp : WAP Ordbok
| at org.postgresql.jdbc2.TimestampUtils.loadCalendar(TimestampUtils.java:232)
| at org.postgresql.jdbc2.TimestampUtils.toTimestamp(TimestampUtils.java:307)
| at org.postgresql.jdbc2.AbstractJdbc2ResultSet.getTimestamp(AbstractJdbc2ResultSet.java:422)
| at org.postgresql.jdbc2.AbstractJdbc2ResultSet.getTimestamp(AbstractJdbc2ResultSet.java:2091)
| at org.jboss.resource.adapter.jdbc.WrappedResultSet.getTimestamp(WrappedResultSet.java:945)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCResultSetReader$12.readResult(JDBCResultSetReader.java:241)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCResultSetReader$AbstractResultSetReader.get(JDBCResultSetReader.java:486)
| at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.loadArgumentResults(JDBCAbstractCMPFieldBridge.java:482)
| ... 162 more
| Caused by: java.lang.NumberFormatException: Trailing junk on timestamp: ''
| at org.postgresql.jdbc2.TimestampUtils.loadCalendar(TimestampUtils.java:226)
| ... 169 more
|
Most of the time we see the above exceptions, but we've also seen these:
anonymous wrote :
| 2006-12-15 23:31:37,773 ERROR [no.boostcom.receiver.DispatchMDB] Error occured when reader was trying to read message.
| java.rmi.ServerException: EJBException:; nested exception is:
| javax.ejb.EJBException: Reentrant method call detected: Inbox 50
| at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:365)
| at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:209)
| at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
| at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
| at org.jboss.ejb.Container.invoke(Container.java:954)
| at sun.reflect.GeneratedMethodAccessor237.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
| at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118) at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
| at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
| at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
| at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
| at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:112)
| at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
| at $Proxy495.processSMSMessage(Unknown Source)
| at no.boostcom.receiver.DispatchMDB.onMessage(DispatchMDB.java:134)
| at sun.reflect.GeneratedMethodAccessor250.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
| at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:495)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
| at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:116)
| at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
| at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
| at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315)
| at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
| at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:109)
| at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
| at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
| at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:402)
| at org.jboss.ejb.Container.invoke(Container.java:954)
| at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:987)
| at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1287)
| at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:266)
| at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:905)
| at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:170)
| at org.jboss.mq.SpySession.run(SpySession.java:323)
| at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:194)
| at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: javax.ejb.EJBException: Reentrant method call detected: Inbox 50
| at org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInterceptor.java:118)
| at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:276)
| at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:104)
| at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:68)
| at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
| at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
| at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:378)
| at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
| at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
| at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
| at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
| at org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:527)
| at org.jboss.ejb.Container.invoke(Container.java:954)
| at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
| at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:65)
| at $Proxy446.getInnboxVO(Unknown Source)
| at no.boostcom.smsfusion.smsfusionReceiverBeans.SmsfusionReaderBean.checkMtalk(SmsfusionReaderBean.java:358)
| at no.boostcom.smsfusion.smsfusionReceiverBeans.SmsfusionReaderBean.findAssosiationToInnmessage(SmsfusionReaderBean.java:277)
| at no.boostcom.smsfusion.smsfusionReceiverBeans.SmsfusionReaderBean.checkCodeword(SmsfusionReaderBean.java:254)
| at no.boostcom.smsfusion.smsfusionReceiverBeans.SmsfusionReaderBean.processSMSMessage(SmsfusionReaderBean.java:107)
| at sun.reflect.GeneratedMethodAccessor254.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
| at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
| at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
| at org.jboss.ws.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:39)
| at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
| at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
| at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315)
| at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
| at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
| at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
| ... 46 more
|
This happens to a CMP 2 EntityBean (Inbox). In the above case the value 'WAP Ordbok' comes from a text-column, but JBoss thinks it's comes from one of the timestamp columns. We're able to reproduce this on JBoss 4 using both postgresql 7 and 8 when testing our application with many simultaneous requests. The issues are not reproducible on JBoss 3.2.5. The issues also go away when we change the commit option for Inbox from B to D. Right now we're thinking this is a jboss bug. Please see:
http://jira.jboss.com/jira/browse/JBAS-3923
Any help on this would be greatly appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994839#3994839
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994839
19 years, 7 months