[JBoss Seam] - Re: Destroying Context Variable
by jamesjmp
hi, I´ve found a problem with what I´ve described before.
My RstReport has some attributes with are other objects. With them the edit doesn´t work.
This is the object:
| @Entity
| @Table(name = "RST_REPORT", catalog = "prisk")
| public class RstReport implements java.io.Serializable {
|
| private int code;
| //simple attribute
| private String shortDescription;
| //object attribute
| private CfgCurrency cfgCurrency;
| //more atributes...
|
| //getters, setter and constructors...
|
This si some of the RstReportEdit.xhtml code:
| <!-- simple attribute, works ok -->
|
| <s:decorate id="shortDescriptionDecoration" template="layout/edit.xhtml">
| <ui:define name="label">#{messages['RstReport.shortDescription']}</ui:define>
| <h:inputText id="shortDescription"
| size="100"
| required="true"
| maxlength="125"
| value="#{rstReportHome.instance.shortDescription}">
| <a:support event="onblur" reRender="shortDescriptionDecoration" bypassUpdates="true" />
| </h:inputText>
| </s:decorate>
|
|
| <!-- object attribute, doesn´t work ok -->
|
| <s:decorate id="currencyIsoDecoration" template="layout/edit.xhtml">
| <ui:define name="label">#{messages['CfgCurrency']}</ui:define>
| <h:inputText id="currencyIso"
| size="20"
| maxlength="50"
| required="true"
| disabled="true"
| value="#{rstReportHome.instance.cfgCurrency.currencyIso}">
| <a:support bypassUpdates="true" event="onblur" reRender="currencyIsoDecoration"/>
| </h:inputText>
| <s:button value="#{messages['Select']} #{messages['CfgCurrency']}"
| view="/CfgCurrencyList.xhtml">
| <f:param name="from" value="RstReportEdit"/>
| </s:button>
| </s:decorate>
|
|
|
And this is RstReportEdit.page.xml full code:
| <!DOCTYPE page PUBLIC
| "-//JBoss/Seam Pages Configuration DTD 1.2//EN"
| "http://jboss.com/products/seam/pages-1.2.dtd">
|
| <page no-conversation-view-id="/RstReportList.xhtml"
| login-required="true">
|
| <begin-conversation join="true" flush-mode="manual"/>
|
| <param name="action" value="#{rstReportHome.action}"/>
| <action execute="#{rstReportHome.wire}"/>
|
| <param name="rstReportFrom"/>
| <param name="rstReportCode" value="#{rstReportHome.rstReportCode}"/>
|
| <param name="cfgBenchmarkFrom"/>
| <param name="cfgBenchmarkBenchmarkCode" value="#{cfgBenchmarkHome.cfgBenchmarkBenchmarkCode}"/>
| <param name="cfgBenchmarkTypeFrom"/>
| <param name="cfgBenchmarkTypeBenchmarkTypeCode" value="#{cfgBenchmarkTypeHome.cfgBenchmarkTypeBenchmarkTypeCode}"/>
|
|
| <param name="firmFrom"/>
| <param name="firmFirmCode" value="#{firmHome.firmFirmCode}"/>
| <param name="cfgCurrencyFrom"/>
| <param name="cfgCurrencyCurrencyCode" value="#{cfgCurrencyHome.cfgCurrencyCurrencyCode}"/>
|
|
| <param name="rstMethodologyFrom"/>
| <param name="rstMethodologyCode" value="#{rstMethodologyHome.rstMethodologyCode}"/>
|
| <param name="fundFrom"/>
| <param name="fundFundCode" value="#{fundHome.fundFundCode}"/>
|
| <param name="rstReportTypeFrom"/>
| <param name="rstReportTypeCode" value="#{rstReportTypeHome.rstReportTypeCode}"/>
|
| <param name="rstStatusFrom"/>
| <param name="rstStatusCode" value="#{rstStatusHome.rstStatusCode}"/>
|
| <navigation from-action="#{rstReportHome.persist}">
| <end-conversation/>
| <redirect view-id="/RstReportL.xhtml"/>
| </navigation>
|
| <navigation from-action="#{rstReportHome.update}">
| <end-conversation/>
| <redirect view-id="/RstReport.xhtml"/>
| </navigation>
|
| </page>
|
For the object-attribute values I use the seam-gened list of them. For instance for the CfgCurrency POJO, CfgCurrencyList.xhtml. When I go there and select one, when returning again to RstReportEdit.xhtml all the fields are populated with that of the last RstReport.xhtml displayed in RstReport.xhtml
I guess the reason is that in the params the code has been automatically added rstReportCode=1131
http://localhost:8080/RISK_ONLINE/RstReportEdit.seam?cfgCurrencyCurrencyC...
rstReportCode is the id, in the RstReporthome it is:
| public void setRstReportCode(Integer id) {
| setId(id);
| }
|
| public Integer getRstReportCode() {
| return (Integer) getId();
| }
|
What would be the best way to avoid this?
thanks in advance!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099319#4099319
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099319
18Â years, 6Â months
[JBoss Seam] - Re: Odd Errors and OutOfMemory
by modoc
Here are my JAVA_OPTS:
JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stac
| k=true
Here is the complete stacktrace from the first error:
| 02:06:42,562 ERROR [STDERR] Oct 24, 2007 2:06:42 AM com.sun.facelets.FaceletViewHandler handleRenderException
| SEVERE: Error Rendering View[/email.xhtml]
| javax.faces.FacesException: javax.el.ELException: /email.xhtml @83,50 value="#{mailQueue.email}": Error reading 'email' on type com.digitalsanctuary.seam.SessionMailQueue_$$_javassist_4
| at javax.faces.component.UIOutput.getValue(UIOutput.java:176)
| at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:189)
| at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:320)
| at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:200)
| at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:836)
| at javax.faces.component.UIComponent.encodeAll(UIComponent.java:896)
| at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
| at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
| at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
| at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:577)
| at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
| at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
| at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
| at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
| at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
| at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:150)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: javax.el.ELException: /email.xhtml @83,50 value="#{mailQueue.email}": Error reading 'email' on type com.digitalsanctuary.seam.SessionMailQueue_$$_javassist_4
| at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76)
| at javax.faces.component.UIOutput.getValue(UIOutput.java:173)
| ... 53 more
| Caused by: java.lang.IllegalStateException: could not acquire lock on @Synchronized component: mailQueue
| at org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:41)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
| at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:155)
| at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:91)
| at com.digitalsanctuary.seam.SessionMailQueue_$$_javassist_4.getEmail(SessionMailQueue_$$_javassist_4.java)
| at sun.reflect.GeneratedMethodAccessor212.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
| at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
| at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
| at org.jboss.el.parser.AstPropertySuffix.getValue(AstPropertySuffix.java:53)
| at org.jboss.el.parser.AstValue.getValue(AstValue.java:67)
| at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
| at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
| ... 54 more
|
|
As for the arjuna errors there is no stacktrace, just 100 of those messages in a row.
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099318#4099318
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099318
18Â years, 6Â months
[Installation, Configuration & DEPLOYMENT] - Re: Separate log for deployed webapp in JBOSS 4.2.1.GA
by mauroarc
<!-- A time/date based rolling appender -->
<!-- Rollover at midnight each day -->
<param name="DatePattern" value="'.'yyyy-MM-dd"/>
<!-- Rollover at the top of each hour
<param name="DatePattern" value="'.'yyyy-MM-dd-HH"/>
-->
<!-- The default pattern: Date Priority [Category] Message\n -->
<!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
-->
<!-- ============================== -->
<!-- Append messages to the console -->
<!-- ============================== -->
<!-- The default pattern: Date Priority [Category] Message\n -->
<!-- Rollover at midnight each day -->
<param name="DatePattern" value="'.'yyyy-MM-dd"/>
<!-- Rollover at the top of each hour
<param name="DatePattern" value="'.'yyyy-MM-dd-HH"/>
-->
<!-- The default pattern: Date Priority [Category] Message\n -->
<!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
-->
<appender-ref ref="wfWebAppLog"/>
<appender-ref ref="CONSOLE"/>
<appender-ref ref="FILE"/>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099311#4099311
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099311
18Â years, 6Â months
[JBoss jBPM] - Re: Please help - rollback with managed trasnactions
by shilpa.kumarï¼ indussoft.com
Hi, can you share your websphere settings to me, I am also getting the same error. I am working on jbpm3.2.2\jbpm-jpdl-3.2.2 & websphere 6. I am able to connect and give token.signal but at state-end i am getting this error.
| org.jbpm.db.JobSession deleteJobsForProcessInstance org.hibernate.TransactionException: Could not register synchronization
|
Can you please help me. I already running behind time. and saw all sites from almost 2 weeks. but still not getting any solution.....
plz help me.
my jbpm.cfg.xml is
|
| <jbpm-configuration>
|
| <jbpm-context>
| <service name="persistence">
| <factory>
| <bean class="org.jbpm.persistence.db.DbPersistenceServiceFactory">
| <field name="isTransactionEnabled"><false /></field>
| <field name="isCurrentSessionEnabled"><false /></field>
| </bean>
| </factory>
| </service>
| <service name="tx" factory="org.jbpm.tx.TxServiceFactory" />
| <service name="message" factory="org.jbpm.msg.db.DbMessageServiceFactory" />
| <service name="scheduler" factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
| <service name="logging" factory="org.jbpm.logging.db.DbLoggingServiceFactory" />
| <service name="authentication" factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory" />
| </jbpm-context>
|
| <!-- configuration resource files pointing to default configuration files in jbpm-{version}.jar -->
| <string name="resource.hibernate.cfg.xml" value="hibernate.cfg.xml" />
| <!-- <string name="resource.hibernate.properties" value="hibernate.properties" /> -->
| <string name="resource.business.calendar" value="org/jbpm/calendar/jbpm.business.calendar.properties" />
| <string name="resource.default.modules" value="org/jbpm/graph/def/jbpm.default.modules.properties" />
| <string name="resource.converter" value="org/jbpm/db/hibernate/jbpm.converter.properties" />
| <string name="resource.action.types" value="org/jbpm/graph/action/action.types.xml" />
| <string name="resource.node.types" value="org/jbpm/graph/node/node.types.xml" />
| <string name="resource.parsers" value="org/jbpm/jpdl/par/jbpm.parsers.xml" />
| <string name="resource.varmapping" value="org/jbpm/context/exe/jbpm.varmapping.xml" />
|
| <bean name="jbpm.task.instance.factory" class="org.jbpm.taskmgmt.impl.DefaultTaskInstanceFactoryImpl" singleton="true" />
| <bean name="jbpm.variable.resolver" class="org.jbpm.jpdl.el.impl.JbpmVariableResolver" singleton="true" />
| <long name="jbpm.msg.wait.timout" value="5000" singleton="true" />
|
|
| </jbpm-configuration>
|
|
my hibernate.cfg.xml is as follows
| <property name="hibernate.dialect">org.hibernate.dialect.Oracle9iDialect</property>
|
|
| <property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
|
| <!-- Websphere -->
| <property name="hibernate.jdbc.batch_size">0</property>
| <property name="hibernate.connection.datasource">jdbc/JbpmDS</property>
| <property name="hibernate.TransactionManagerLookup">org.hibernate.transaction.WebSphereExtendedJTATransactionLookup</property>
| <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.WebSphereExtendedJTATransactionLookup</property>
| <property name="hibernate.TransactionManagerLookupStrategy">org.hibernate.transaction.WebSphereExtendedJTATransactionLookup</property>
| <property name="transaction.factory_class">org.hibernate.transaction.CMTTransactionFactory</property>
| <property name="hibernate.show_sql">true</property>
|
|
| <property name="hibernate.transaction.flush_before_completion">true</property>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099304#4099304
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099304
18Â years, 6Â months
[JBoss jBPM] - Unable to locate current JTA transaction
by shilpa.kumarï¼ indussoft.com
I am also getting the same error. I am working on jbpm3.2.2\jbpm-jpdl-3.2.2 & websphere 6. I am able to connect and give token.signal but at state-end i am getting this error.
| org.jbpm.db.JobSession deleteJobsForProcessInstance org.hibernate.TransactionException: Could not register synchronization
|
Can you please help me. I already running behind time. and saw all sites from almost 2 weeks. but still not getting any solution.....
plz help me.
my jbpm.cfg.xml is
|
| <jbpm-configuration>
|
| <jbpm-context>
| <service name="persistence">
| <factory>
| <bean class="org.jbpm.persistence.db.DbPersistenceServiceFactory">
| <field name="isTransactionEnabled"><false /></field>
| <field name="isCurrentSessionEnabled"><false /></field>
| </bean>
| </factory>
| </service>
| <service name="tx" factory="org.jbpm.tx.TxServiceFactory" />
| <service name="message" factory="org.jbpm.msg.db.DbMessageServiceFactory" />
| <service name="scheduler" factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
| <service name="logging" factory="org.jbpm.logging.db.DbLoggingServiceFactory" />
| <service name="authentication" factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory" />
| </jbpm-context>
|
| <!-- configuration resource files pointing to default configuration files in jbpm-{version}.jar -->
| <string name="resource.hibernate.cfg.xml" value="hibernate.cfg.xml" />
| <!-- <string name="resource.hibernate.properties" value="hibernate.properties" /> -->
| <string name="resource.business.calendar" value="org/jbpm/calendar/jbpm.business.calendar.properties" />
| <string name="resource.default.modules" value="org/jbpm/graph/def/jbpm.default.modules.properties" />
| <string name="resource.converter" value="org/jbpm/db/hibernate/jbpm.converter.properties" />
| <string name="resource.action.types" value="org/jbpm/graph/action/action.types.xml" />
| <string name="resource.node.types" value="org/jbpm/graph/node/node.types.xml" />
| <string name="resource.parsers" value="org/jbpm/jpdl/par/jbpm.parsers.xml" />
| <string name="resource.varmapping" value="org/jbpm/context/exe/jbpm.varmapping.xml" />
|
| <bean name="jbpm.task.instance.factory" class="org.jbpm.taskmgmt.impl.DefaultTaskInstanceFactoryImpl" singleton="true" />
| <bean name="jbpm.variable.resolver" class="org.jbpm.jpdl.el.impl.JbpmVariableResolver" singleton="true" />
| <long name="jbpm.msg.wait.timout" value="5000" singleton="true" />
|
|
| </jbpm-configuration>
|
|
my hibernate.cfg.xml is as follows
| <property name="hibernate.dialect">org.hibernate.dialect.Oracle9iDialect</property>
|
|
| <property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
|
| <!-- Websphere -->
| <property name="hibernate.jdbc.batch_size">0</property>
| <property name="hibernate.connection.datasource">jdbc/JbpmDS</property>
| <property name="hibernate.TransactionManagerLookup">org.hibernate.transaction.WebSphereExtendedJTATransactionLookup</property>
| <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.WebSphereExtendedJTATransactionLookup</property>
| <property name="hibernate.TransactionManagerLookupStrategy">org.hibernate.transaction.WebSphereExtendedJTATransactionLookup</property>
| <property name="transaction.factory_class">org.hibernate.transaction.CMTTransactionFactory</property>
| <property name="hibernate.show_sql">true</property>
|
|
| <property name="hibernate.transaction.flush_before_completion">true</property>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099298#4099298
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099298
18Â years, 6Â months