[jboss-user] [EJB 3.0] - Flush during cascade is dangerous Exception
) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) | 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:262) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) | at java.lang.Thread.run(Thread.java:595) | Caused by: org.hibernate.HibernateException: Flush during cascade is dangerous | at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:996) | at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338) | at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:515) | ... 56 more | How can I fix this exception? by thiagu.m View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4153160#4153160 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4153160 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - OneToOne relation gives problem
This is my TBL_PRODUCTS table structure is | PRODUCT_ID pk | PRODUCT_NAME | CATEGORY_NAME | SUBCATEGORY_NAME | BRAND_NAME | This is my TBL_CELLPHONE table structure is | PRODUCT_ID pk | BLUETOOTH | CAMERA | This is my TBL_CELLPHONE table structure is | PRODUCT_ID pk | NO_OF_CHANNELS | WOOFERS | my entity beans are | @Entity | @Table(name=TBL_PRODUCTS) | public class TblProducts implements Serializable | { | @Id | @Column(name=PRODUCT_ID) | private BigDecimal productId; | | @Column(name=PRODUCT_NAME) | private String productName; | |@Column(name=CATEGORY_NAME) | private String categoryName; | | @Column(name=SUBCATEGORY_NAME) | private String subcategoryName; | | @Column(name=BRAND_NAME) | private String brandName; | | @OneToOne(fetch=FetchType.LAZY,mappedBy=tblProducts) | private TblCellphone tblCellphone; | | @OneToOne(fetch=FetchType.LAZY,mappedBy=tblProducts) | private TblTelevision tblTelevision; | } | -- | @Entity | @Table(name=TBL_CELLPHONE) | public class TblCellphone implements Serializable | { | @Id | @Column(name=PRODUCT_ID) | private BigDecimal productId; | | private String bluetooth; | | private String camera; | | OneToOne(optional=false) | @JoinColumn(name=PRODUCT_ID) | private TblProducts tblProducts; | } | --- | @Entity | @Table(name=TBL_TELEVISION) | public class TblTelevision implements Serializable | { | @Id | @Column(name=PRODUCT_ID) | private BigDecimal productId; | | @Column(name=NO_OF_CHANNELS) | private String noOfChannels; | | private String woofers; | | @OneToOne(optional=false) | @JoinColumn(name=PRODUCT_ID) | private TblProducts tblProducts; | } | TblProducts is my main table. I try to add OneToOne relation with other tables (TblTelevision and TblCellphone). I cant add more than one relation. If I add it gives incomplete deployment problem. If I remove any one of the OneToOne relation from TblProducts its works fine. Is there any mistake in my code Please help me By Thiagu.m View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4121490#4121490 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121490 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - more than one, OneToOne relation gives problem
This is my bean class structure | @Entity | @Table(name=TBL_PRODUCTS) | public class TblProducts implements Serializable | { |@Id |@Column(name=PRODUCT_ID) |private BigDecimal productId; | |@Column(name=PRODUCT_NAME) |private String productName; | |@JoinColumn(name=BRAND_NAME) |private String brandname; | |@OneToOne(fetch=FetchType.LAZY,mappedBy=tblProducts) |private TblCellphone tblCellphone; | |@OneToOne(fetch=FetchType.LAZY,mappedBy=tblProducts) |private TblTelevision tblTelevision; | | } | - | @Entity | @Table(name=TBL_CELLPHONE) | public class TblCellphone implements Serializable | { |@Id |@Column(name=PRODUCT_ID) |private BigDecimal productId; | | private String camera; | | . . . | | @OneToOne(optional=false) | @JoinColumn(name=PRODUCT_ID) | private TblProducts tblProducts; | } | | @Entity | @Table(name=TBL_TELEVISION) | public class TblTelevision implements Serializable | { |@Id |@Column(name=PRODUCT_ID) |private BigDecimal productId; | |@Column(name=SCREEN_SIZE) |private String screenSize; | |. . . | |@OneToOne(optional=false) |@JoinColumn(name=PRODUCT_ID) |private TblProducts tblProducts; | } | | | Here Tblproduct is my main table , I need to make a relation with all other subcategory products table. But when I try to add the more than one OneToOne relation within product table it gives following error | java.lang.NullPointerExceptionat org.hibernate.cfg.OneToOneSecondPass.doSecondPass(OneToOneSecondPass.java:135) at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1130) at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:296) at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1115) at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1233) at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:154) at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:869)at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:407)at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:126) at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:246) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Meth! od)at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)at java.lang.reflect.Method.invoke(Unknown Source) is there any help how to overcome this problem View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4119299#4119299 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4119299 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: seam and hibernate search give Session is closed! Except
i resolve the problem my self when i add this annotation i fixed my problem. | @PersistenceContext(type=PersistenceContextType.EXTENDED) | EntityManager em; | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4113343#4113343 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4113343 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: seam and hibernate search give Session is closed! Except
any help please i am still waithing By Thiagu View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4111088#4111088 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4111088 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - problem with identity.logout
Hai every one i am trying for logout function without redirecting new page it is possible ? i cant do that because it remove the GET method aruments so it gives some problem please any one help me By Thiagu.m View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4106725#4106725 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4106725 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - seam and hibernate search give Session is closed! Exception
) | at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:341) | at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58) | at org.jboss.el.parser.AstValue.invoke(AstValue.java:96) | at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276) | at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68) | at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69) | ... 47 more | | | | | Caused by: org.hibernate.SessionException: Session is closed! | at org.hibernate.impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:49) | at org.hibernate.impl.SessionImpl.createCriteria(SessionImpl.java:1508) | at org.hibernate.search.engine.QueryLoader.load(QueryLoader.java:60) | at org.hibernate.search.query.FullTextQueryImpl.list(FullTextQueryImpl.java:244) | at org.hibernate.search.jpa.impl.FullTextQueryImpl.getResultList(FullTextQueryImpl.java:85) | at session.beans.BookSearhAction.doSearch(BookSearhAction.java:160) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | at java.lang.reflect.Method.invoke(Unknown Source) | 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.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.GeneratedMethodAccessor526.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | at java.lang.reflect.Method.invoke(Unknown Source) | 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) | ... 87 more | is there i made any mistake ? please any one help me how to resolve this problem By Thiagu.m View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4106325#4106325 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4106325
[jboss-user] [EJB 3.0] - Oracle Text with EJB 3.0
Hai every one i am working with Jboss Seam, JSF and EJP 3.0 in my part i need to implement text mining (keyword searches) and smart searches (subject/object/verb/synonyms) within large text objects. I planed to use Oracle's Text functionality for this purpose. Any suggestion regards this it is possible in EJB 3.0 By Thiagu.m View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4094613#4094613 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094613 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - How to reload the same page after logout the seam applicatio
Hai every one i am working on seam application. i my part user can login the application by clicking the login link on the rich:toolBar. it invoke the modal panel, then user enter their login details, then user click login button makes a ajax call and verify the user details. if it is available we allow the user to login the application. so the user need not go separate page for login. and so we avoid the form loading for prevent the model panel disappear. when the user click logout s:link user logout the application. without redirecting page. so this link also avoid the form loading. here my problem is after successfully logout the application i try to login again the application it wont allow to login. because the browser URL still have login details in the form of GET method . so after successfully logout the application i need to reload the same page please any one help me how to reload the same page after invoke the identity.logout action By Thiagu.m View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4092415#4092415 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092415 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - How to invoke modalpanel via pages.xml
Hai every one i my seam 2.0.0 beta1 application user can login the application through the modalPanel. the user can login the application anywhere in our application. so i but the login link in the header part of the application. if the user successfully login the application they can able to view the myprofile page otherwise i not the user to view myprofile page if he try view that page i need to invoke the modelPanel login form so i put this line in my pages.xml but i always invoke the login.xhtm it wont invoke the modalPane | page view-id=/myprofile.xhtml login-required=true/ | any one help me how to invoke the modalpane via the pages.xhtml By Thiagu.m View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4082937#4082937 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4082937 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - org.jboss.seam.InstantiationException when i use the JBoss s
Hai every one i need convert the seam 1.2.1 code in to seam 2.0.0. here i am using stateful session bean named authenticator for login authentication. when i invoke it i got an exception | 19:01:30,312 ERROR [SeamLoginModule] Error invoking login method | org.jboss.seam.InstantiationException: Could not instantiate Seam component: authenticator | at org.jboss.seam.Component.newInstance(Component.java:1853) | at org.jboss.seam.Component.getInstance(Component.java:1756) | at org.jboss.seam.Component.getInstance(Component.java:1723) | at org.jboss.seam.Component.getInstance(Component.java:1717) | at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:60) | at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53) | | | -and-- | | aused by: javax.naming.NameNotFoundException: AuthenticatorAction not bound | at org.jnp.server.NamingServer.getBinding(NamingServer.java:529) | at org.jnp.server.NamingServer.getBinding(NamingServer.java:537) | at org.jnp.server.NamingServer.getObject(NamingServer.java:543) | at org.jnp.server.NamingServer.lookup(NamingServer.java:267) | at org.jnp.server.NamingServer.lookup(NamingServer.java:270) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625) | | | i am not get this type of exception in previous version i there any other configuration i needed for my version change Please help me, and i have one more problem in my previous version i am using the Rich face suggestionbox on the modal panel, after i upgrade the seam 2.0.0 ,the suggestionbox box displays behind the modal panel what i do here By Thiagu View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4065384#4065384 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4065384 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Problem with JSF Expression Language
Hai every one i have problem with JSF Expression language, i describe about it. i am working on registration page in seam, i need to allow the user to logged in after successfully register(i meant at the instance user register) here i pass the registration page value to user bean and i call register method on my stateful session bean Register. here i need to assign the username, password value to Identity class in addition with user bean call and i need to call Identity class login method. with out the jsf Expression language i cant assign the value to Identity class, if i create Identity object manually i cant refer it by using expression language in my AuthenticatorAction class Please any one give me the right solution View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4063509#4063509 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4063509 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user