[EJB 3.0] - Entity collection problem.
by urswag
Entity collection problem.
Hello
I try to get a many relationship collection of the Enitty language. Unfortunately I get an error message.
anonymous wrote :
| @OneToMany(cascade={CascadeType.ALL})
| @JoinColumn(name="langid")
| public Collection getAssortments() {
|
| return assortments;
| }
|
| public void setAssortments(Collection assortments) {
|
| this.assortments = assortments;
| }
|
anonymous wrote :
|
| used by: java.lang.reflect.InvocationTargetException
| 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.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:400)
| ... 56 more
| Caused by: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: org.flohmarkt.ejb.Language.assortments, no session or session was closed
| at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:358)
| at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:350)
| at org.hibernate.collection.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:97)
| at org.hibernate.collection.PersistentBag.size(PersistentBag.java:222)
| at org.flohmarkt.web.WelcomePage.getLeftOverviewList(WelcomePage.java:69)
| ... 61 more
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965769#3965769
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965769
19 years, 8 months
[JBoss Portal] - Error
by bartley_tony
Hi
I am attempting to evaluate JBOSS Portal for possible future use. I am struggling to get the portal set up right. I am using your jboss-4.0.4.GA server and your latest Portal release. I am not using any database except the default one. When ever I attempt to
go to http://localhost:8080/portal/, I get the error listed below. I have used google to search for the reason but the responses that I have found does not seem applicable. I need to get the portal set up properly as I am well behind the other assesment which is being done by IBM staff for the Websphere Portal. I would appreciate it if I could get a response as soon as possible.
javax.servlet.ServletException: Cannot invoke with a null interceptor[]
org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:306)
org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:172)
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
org.jboss.portal.common.invocation.InvocationException: Cannot invoke with a null interceptor[]
org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:294)
org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:172)
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
Tony
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965766#3965766
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965766
19 years, 8 months