[JBoss Portal] - Re: Quirky Behavior of Jackrabbit CMS?
by david.hoffman
I have already proven that all is well with the HSQLDB implementation (i.e. it functions as one would expect it to) unfortunately the use of HSQLDB is not an option in my environment.
I am using the latest production release JDBC driver for MySQL5.
I have no doubt this is a configuration issue I may have missed. Can someone point me toward specific configuration files that I can provide which may shed some light on the matter.
To recap:
I am able to see new content in the CMSAdmin portlet, and in instances that are configured to point to it, so long as I don't restart. Once I restart all new data appears to be gone (from a UI perspective). I have confirmed that the content does in fact exist inside the database (after a restart), however the CMSAdmin porlet does not display it. Additionally any instance configured to display the content is showing a message:
| 404 - Page Not Found
| Oops! We can't really find the resource you're looking for.
|
I am running "jboss-portal-2.6-CR2-bundled" against a mySQL5 database. The portal is working fine, all functions as expected with the exception of the CMS Functionality
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046495#4046495
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046495
19 years
[JBoss Seam] - Re: A performance problem with Seam
by bgrossi
"bulloncito" wrote : anonymous wrote : my backing bean, was calling Transactions.isTransactionMarkedRollback(...), that was trying to lookup for a name (userTransactionName). On tomcat, where
| |
| | there are no JNDI server started, I see a lot of javax.naming.CommunicationException in my logs.
|
| ... if there is a lookup, then there must be a jndi server started, otherwise transactionMakedRollback is probably useless
The Moises' problem was that the lookup and seam's transaction management IS "useless", and it's degrading performance considerably. We need an option to disable that (and other) features/interceptors... Now we have hardcoded in Component.initDefaultInterceptors():
if ( getScope()==CONVERSATION )
{
addInterceptor( new Interceptor( new ManagedEntityIdentityInterceptor(), this ) );
}
and in ManagedEntityIdentityInterceptor.aroundInvoke(..) we have:
...
finally
{
if ( !PassivatedEntity.isTransactionMarkedRollback() )
{
entityRefsToIds(ctx);
}
}
That code (PassivatedEntity.isTransactionMarkedRollback()) was trying to lookup jndi, and returning false if it's fail... (the function is correct, but causes an try to open an socket!)
Bruno E. Grossi
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046490#4046490
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046490
19 years
[JBoss Seam] - Calling merge/persist even not called....
by m.shinde
hi
I have manageOrders.xhtml file showing one list box of articles and my requirement is after selection of one article , my page should get populated with article information. So I have written code like
| xhtml code.....
| <h:selectOneMenu value="#{article}" id="articleId" rendered="true" immediate="true">
| <s:selectItems value="#{articles}" var="articleId"
| label="#{articleId.name}" noSelectionLabel="[Please Select...]" />
| <ec:convertEntity
| entityClass="de.bonprix.orderstarter.model.entity.Article" />
| </h:selectOneMenu>
|
|
| <h:commandButton value="Go" type="submit" action="#{manageOrders.callAction}"/>
|
| Java code.....
|
| @Stateful
| @Name("manageOrders")
| @Scope(ScopeType.CONVERSATION)
| @Interceptors(org.jboss.seam.ejb.SeamInterceptor.class)
| @Intercept(InterceptionType.ALWAYS)
| public class ManageOrders implements IManagerOrder {
|
| @In
| private EntityManager entityManager;
|
| @In(required = false,create=true)
| @Out(required = false)
| private Article article;
|
| public String callAction() {
| log.info("this.article.getArticleId() :" + this.article);
| this.article = (Article) entityityManager.createNamedQuery(
| "findArticleById").setParameter("id",
| this.article.getArticleId()).getSingleResult();
| return "/manageOrders.xhtml";
| }
|
|
But while calling this callAction method I am getting following error....
I am unable to understand I am not calling merge/persist method still it is calling for updation of article.
Please suggest. Getting stuck.
| 18:55:53,755 WARN [JDBCExceptionReporter] SQL Error: 1407, SQLState: 72000
| 18:55:53,755 ERROR [JDBCExceptionReporter] ORA-01407: cannot update ("EXTRANET_MISC"."ORDERSTARTER_ART"."ART_NR") to NULL
|
| 18:55:53,771 WARN [JDBCExceptionReporter] SQL Error: 1407, SQLState: 72000
| 18:55:53,771 ERROR [JDBCExceptionReporter] ORA-01407: cannot update ("EXTRANET_MISC"."ORDERSTARTER_ART"."ART_NR") to NULL
|
| 18:55:53,786 ERROR [AbstractFlushingEventListener] Could not synchronize database state with session
| org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update
| at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
| at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
| at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
| at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:249)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
| at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
| at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
| at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
| at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
| at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:515)
| at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:116)
| at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:241)
| at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:88)
| at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)
| at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1204)
| at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
| at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
| at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:175)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:83)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:105)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:204)
| at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:100)
| at $Proxy675.callAction(Unknown Source)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046487#4046487
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046487
19 years