[jboss-user] [JBoss Seam] - Re: More configuration issues getting starged with seam...

mickknutson do-not-reply at jboss.com
Wed Oct 31 15:45:44 EDT 2007


Partially solved...

I changed my components.xml to this:

  |     <core:managed-persistence-context name="entityManager"
  |                                       auto-create="true"
  |                                       persistence-unit-jndi-name="java:/yourSOSEntityManagerFactory"/>
  | 
  |     <!--<transaction:entity-transaction entity-manager="#{entityManager}"/>-->
  | 
  |     <!--<persistence:managed-persistence-context name="entityManager"
  |                                              auto-create="true"
  |                                              entity-manager-factory="java:/yourSOSEntityManagerFactory"/>-->
  |     <!--<persistence:managed-persistence-context name="entityManager"
  |                                              auto-create="true"
  |                                              entity-manager-factory="#{yoursosDatabase}"/>-->
  | 
  |     <!--<core:entity-manager-factory name="java:/yourSOSEntityManagerFactory"
  |                                  persistence-unit-name="yoursosDatabase"/>-->
  | 
  | 

As you can see I commented the other items out and I can login now.

But then when I go to addContact.xhtml there is a call to my ContactManagerAction.addContact():


  |     /**
  |      * todo DOCUMENT ME!
  |      */
  |     @Factory("contact")
  |     @Begin(join = true)
  |     public void addContact() {
  |         log.info("===== addContact =========================================");
  | 
  |         try {
  |             User user = (User) entityManager.createQuery(
  |                     "from User where id = :userId")
  |                     .setParameter("userId", userid)
  |                     .getSingleResult();
  | 
  |             Contexts.getMethodContext().set("contacts", user.getContacts());
  |             //Identity.instance().checkRestriction("#{s:hasPermission('friendComment', 'create', friends)}");
  | 
  |             contact = new Contact();
  |             contact.setUser(user);
  |         }
  |         catch (NoResultException ex) {
  |             FacesMessages.instance().add("Member not found.");
  |         }
  |     }
  | 
  | 
  | 

But then I get this error:

  | 12:40:53,387 INFO  [STDOUT] Hibernate: select user0_.userid as userid11_, user0_.lastUpdate as lastUpdate11_, user0_.creationDate as creation3_11_, user0_.username as username11_, user0_.password as password11_, user0_.epin as epin11_, user0_.gender as gender11_, user0_.firstName as firstName11_, user0_.middleName as middleName11_, user0_.email as email11_, user0_.lastName as lastName11_, user0_.address as address11_, user0_.address2 as address13_11_, user0_.city as city11_, user0_.state as state11_, user0_.otherState as otherState11_, user0_.postalCode as postalCode11_, user0_.country as country11_ from user user0_ where user0_.username=? and user0_.password=?
  | 12:40:53,402 INFO  [STDOUT] Hibernate: select roles0_.userid as userid1_, roles0_.roleId as roleId1_, role1_.roleId as roleId10_0_, role1_.name as name10_0_ from userRoles roles0_ left outer join Role role1_ on roles0_.roleId=role1_.roleId where roles0_.userid=?
  | 12:41:07,762 INFO  [ContactServiceAction] ===== addContact =========================================
  | 12:41:07,778 INFO  [STDOUT] Hibernate: select user0_.userid as userid11_, user0_.lastUpdate as lastUpdate11_, user0_.creationDate as creation3_11_, user0_.username as username11_, user0_.password as password11_, user0_.epin as epin11_, user0_.gender as gender11_, user0_.firstName as firstName11_, user0_.middleName as middleName11_, user0_.email as email11_, user0_.lastName as lastName11_, user0_.address as address11_, user0_.address2 as address13_11_, user0_.city as city11_, user0_.state as state11_, user0_.otherState as otherState11_, user0_.postalCode as postalCode11_, user0_.country as country11_ from user user0_ where user0_.userid=?
  | 12:41:07,778 INFO  [LongType] could not bind value '1' to parameter: 1; java.lang.String
  | 12:41:07,793 INFO  [ContactServiceAction] ===== addContact =========================================
  | 12:41:07,793 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
  | 12:41:07,793 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >)
  | 12:41:07,809 INFO  [ContactServiceAction] ===== addContact =========================================
  | 12:41:07,809 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
  | 12:41:07,809 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >)
  | 12:41:07,887 INFO  [ContactServiceAction] ===== addContact =========================================
  | 12:41:07,887 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
  | 12:41:07,887 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >)
  | 12:41:07,918 INFO  [ContactServiceAction] ===== addContact =========================================
  | 12:41:07,918 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
  | 12:41:07,918 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >)
  | 12:41:07,934 INFO  [ContactServiceAction] ===== addContact =========================================
  | 12:41:07,934 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
  | 12:41:07,934 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >)
  | 12:41:07,965 INFO  [ContactServiceAction] ===== addContact =========================================
  | 12:41:07,965 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
  | 12:41:07,965 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >)
  | 12:41:07,981 INFO  [ContactServiceAction] ===== addContact =========================================
  | 12:41:07,981 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
  | 12:41:07,981 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >)
  | 12:41:07,996 INFO  [ContactServiceAction] ===== addContact =========================================
  | 12:41:07,996 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
  | 12:41:07,996 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >)
  | 12:41:08,012 INFO  [ContactServiceAction] ===== addContact =========================================
  | 12:41:08,012 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
  | 12:41:08,012 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >)
  | 12:41:08,028 INFO  [ContactServiceAction] ===== addContact =========================================
  | 12:41:08,028 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
  | 12:41:08,028 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >)
  | 12:41:08,043 INFO  [ContactServiceAction] ===== addContact =========================================
  | 12:41:08,043 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
  | 12:41:08,043 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >)
  | 12:41:08,059 INFO  [ContactServiceAction] ===== addContact =========================================
  | 12:41:08,059 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
  | 12:41:08,059 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >)
  | 12:41:08,090 INFO  [ContactServiceAction] ===== addContact =========================================
  | 12:41:08,090 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
  | 12:41:08,090 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >)
  | 12:41:08,121 ERROR [STDERR] Oct 31, 2007 12:41:08 PM com.sun.facelets.FaceletViewHandler handleRenderException
  | SEVERE: Error Rendering View[/view/contact/addContact.xhtml]
  | javax.ejb.EJBTransactionRolledbackException: org.hibernate.exception.GenericJDBCException: Cannot open connection
  | 	at org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:87)
  | 	at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:130)
  | 	at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
  | 	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:106)
  | 	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 $Proxy158.addContact(Unknown Source)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 	at java.lang.reflect.Method.invoke(Method.java:585)
  | 	at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
  | 	at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
  | 	at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:76)
  | 	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
  | 	at org.jboss.seam.ejb.RemoveInterceptor.aroundInvoke(RemoveInterceptor.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.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54)
  | 	at org.javassist.tmp.java.lang.Object_$$_javassist_1.addContact(Object_$$_javassist_1.java)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 	at java.lang.reflect.Method.invoke(Method.java:585)
  | 	at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
  | 	at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
  | 	at org.jboss.seam.Component.callComponentMethod(Component.java:2074)
  | 	at org.jboss.seam.Component.getInstanceFromFactory(Component.java:1918)
  | 	at org.jboss.seam.Component.getInstance(Component.java:1855)
  | 	at org.jboss.seam.Component.getInstance(Component.java:1832)
  | 	at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
  | 	at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
  | 	at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:166)
  | 	at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53)
  | 	at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
  | 	at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
  | 	at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
  | 	at org.jboss.el.parser.AstValue.getTarget(AstValue.java:34)
  | 	at org.jboss.el.parser.AstValue.getType(AstValue.java:28)
  | 	at org.jboss.el.ValueExpressionImpl.getType(ValueExpressionImpl.java:174)
  | 	at com.sun.facelets.el.TagValueExpression.getType(TagValueExpression.java:60)
  | 	at org.jboss.seam.ui.component.UIEnumItem.getValue(UIEnumItem.java:25)
  | 	at com.sun.faces.renderkit.RenderKitUtils.getSelectItems(RenderKitUtils.java:304)
  | 	at com.sun.faces.renderkit.html_basic.SelectManyCheckboxListRenderer.encodeEnd(SelectManyCheckboxListRenderer.java:103)
  | 	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:836)
  | 	at org.jboss.seam.ui.util.cdk.RendererBase.renderChild(RendererBase.java:190)
  | 	at org.jboss.seam.ui.util.cdk.RendererBase.renderChildren(RendererBase.java:166)
  | 	at org.jboss.seam.ui.renderkit.ValidateAllRendererBase.doEncodeChildren(ValidateAllRendererBase.java:33)
  | 	at org.jboss.seam.ui.util.cdk.RendererBase.encodeChildren(RendererBase.java:92)
  | 	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
  | 	at org.jboss.seam.ui.util.cdk.RendererBase.renderChild(RendererBase.java:186)
  | 	at org.jboss.seam.ui.util.cdk.RendererBase.renderChildren(RendererBase.java:166)
  | 	at org.jboss.seam.ui.renderkit.DecorateRendererBase.doEncodeChildren(DecorateRendererBase.java:104)
  | 	at org.jboss.seam.ui.util.cdk.RendererBase.encodeChildren(RendererBase.java:92)
  | 	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
  | 	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
  | 	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:592)
  | 	at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
  | 	at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
  | 	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.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
  | 	at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:273)
  | 	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:158)
  | 	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.doFi
  | 12:41:08,121 ERROR [STDERR] lter(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.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection
  | 	at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:629)
  | 	at org.hibernate.ejb.QueryImpl.getSingleResult(QueryImpl.java:99)
  | 	at com.baselogic.yoursos.ContactServiceAction.addContact(ContactServiceAction.java:106)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 	at java.lang.reflect.Method.invoke(Method.java:585)
  | 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
  | 	at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
  | 	at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:44)
  | 	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
  | 	at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
  | 	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  | 	at org.jboss.seam.persistence.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:48)
  | 	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  | 	at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
  | 	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  | 	at org.jboss.seam.core.ConversationInterceptor.aroundInvoke(ConversationInterceptor.java:56)
  | 	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  | 	at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:49)
  | 	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  | 	at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
  | 	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  | 	at org.jboss.seam.persistence.EntityManagerProxyInterceptor.aroundInvoke(EntityManagerProxyInterceptor.java:26)
  | 	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  | 	at org.jboss.seam.persistence.HibernateSessionProxyInterceptor.aroundInvoke(HibernateSessionProxyInterceptor.java:27)
  | 	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.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:50)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 	at java.lang.reflect.Method.invoke(Method.java:585)
  | 	at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
  | 	at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
  | 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | 	at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
  | 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | 	at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
  | 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | 	at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
  | 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | 	at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
  | 	... 113 more
  | Caused by: org.hibernate.exception.GenericJDBCException: Cannot open connection
  | 	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.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
  | 	at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:426)
  | 	at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
  | 	at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
  | 	at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)
  | 	at org.hibernate.loader.Loader.doQuery(Loader.java:673)
  | 	at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
  | 	at org.hibernate.loader.Loader.doList(Loader.java:2220)
  | 	at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
  | 	at org.hibernate.loader.Loader.list(Loader.java:2099)
  | 	at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
  | 	at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
  | 	at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
  | 	at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
  | 	at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
  | 	at org.hibernate.ejb.QueryImpl.getSingleResult(QueryImpl.java:80)
  | 	... 154 more
  | Caused by: org.jboss.util.NestedSQLException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >)
  | 	at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:94)
  | 	at org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider.getConnection(InjectedDataSourceConnectionProvider.java:47)
  | 	at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
  | 	... 168 more
  | Caused by: javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >
  | 	at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:304)
  | 	at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:396)
  | 	at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocat
  | 12:41:08,121 ERROR [STDERR] eConnection(BaseConnectionManager2.java:842)
  | 	at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
  | 	... 170 more
  | 12:41:08,184 INFO  [ContactServiceAction] ===== addContact =========================================
  | 12:41:08,184 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
  | 12:41:08,184 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >)
  | 12:41:08,246 INFO  [ContactServiceAction] ===== addContact =========================================
  | 12:41:08,246 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
  | 12:41:08,246 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >)
  | 12:41:08,262 INFO  [ContactServiceAction] ===== addContact =========================================
  | 12:41:08,262 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
  | 12:41:08,262 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >)
  | 12:41:08,278 INFO  [ContactServiceAction] ===== addContact =========================================
  | 12:41:08,278 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
  | 12:41:08,278 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >)
  | 12:41:08,293 INFO  [ContactServiceAction] ===== addContact =========================================
  | 12:41:08,293 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
  | 12:41:08,293 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >)
  | 12:41:08,309 INFO  [ContactServiceAction] ===== addContact =========================================
  | 12:41:08,324 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
  | 12:41:08,324 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >)
  | 12:41:08,340 INFO  [ContactServiceAction] ===== addContact =========================================
  | 12:41:08,356 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
  | 12:41:08,356 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >)
  | 12:41:08,371 INFO  [ContactServiceAction] ===== addContact =========================================
  | 12:41:08,371 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
  | 12:41:08,371 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >)
  | 12:41:08,387 INFO  [ContactServiceAction] ===== addContact =========================================
  | 12:41:08,387 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
  | 12:41:08,387 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >)
  | 12:41:08,403 INFO  [ContactServiceAction] ===== addContact =========================================
  | 12:41:08,403 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
  | 12:41:08,403 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >)
  | 12:41:08,418 INFO  [ContactServiceAction] ===== addContact =========================================
  | 12:41:08,418 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
  | 12:41:08,418 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >)
  | 12:41:08,434 INFO  [ContactServiceAction] ===== addContact =========================================
  | 12:41:08,434 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
  | 12:41:08,434 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >)
  | 12:41:08,465 INFO  [ContactServiceAction] ===== addContact =========================================
  | 12:41:08,465 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
  | 12:41:08,465 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57f63d:1277:4728d7fa:79 status: ActionStatus.ABORT_ONLY >)
  | 
  | 


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100823#4100823

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100823



More information about the jboss-user mailing list