[EJB 3.0] - failed to lazily initialize a collection of role:
by deepasenthil
15:07:00,814 ERROR [LazyInitializationException] failed to lazily initialize a collection of role: com.projectvault.ejb.project.ProjectObject.projectFolderObjects, no session or session was closed
org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.projectvault.ejb.project.ProjectObject.projectFolderObjects, 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.initialize(AbstractPersistentCollection.java:343)
at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86)
at org.hibernate.collection.PersistentBag.toString(PersistentBag.java:459)
at com.projectvault.to.ProjectTO.toString(ProjectTO.java:388)
at com.projectvault.service.ProjectService.findByProjectName(ProjectService.java:334)
at com.projectvault.service.ProjectService.validateTransferObject(ProjectService.java:450)
at com.projectvault.servlet.AddEditProjectServlet.doProcess(AddEditProjectServlet.java:176)
at com.projectvault.servlet.AbstractServlet.execute(AbstractServlet.java:95)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
15:07:00,816 INFO [STDOUT] Entering.........validateTransferObject
15:07:00,816 ERROR [LazyInitializationException] failed to lazily initialize a collection of role: com.projectvault.ejb.project.ProjectObject.projectFolderObjects, no session or session was closed
org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.projectvault.ejb.project.ProjectObject.projectFolderObjects, 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.initialize(AbstractPersistentCollection.java:343)
at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86)
at org.hibernate.collection.PersistentBag.toString(PersistentBag.java:459)
at com.projectvault.to.ProjectTO.toString(ProjectTO.java:388)
at java.lang.String.valueOf(String.java:2615)
at java.lang.StringBuilder.append(StringBuilder.java:116)
at com.projectvault.service.ProjectService.validateTransferObject(ProjectService.java:454)
at com.projectvault.servlet.AddEditProjectServlet.doProcess(AddEditProjectServlet.java:176)
at com.projectvault.servlet.AbstractServlet.execute(AbstractServlet.java:95)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
can any help this problem
thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072967#4072967
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072967
18Â years, 10Â months
[JBossCache] - Replication not working when updating an object in pojo cach
by itchy75
Hi,
I am working with two jboss in cluster, each has its pojo cache in cluster. Replication works fine when I put an object in the cache but when I update the object it doesn't work.
After pojoCache.putObject(Fqn, myObject), the object is updated in the local cache but not in the other cache in the cluster.
And there is something weird when I look into the cache with jmx console (printDetails). The objects are apparently locked (in both caches):
| __SERIALIZED__: [ Statut=DONE, requestId=4f52f2890a020e5d01d7e3809f0e083620070810-103009, fileLocation=D:\temp\R40\VBE1_080102-2000_070810-103013394.brd, errorCode=0, user=None ]
| _lock_: LOCK
| __jboss:internal:class__: class fr.company.common.asynchronous.FileTaskContext
| AOPInstance: org.jboss.cache.aop.AOPInstance@15ebb08
|
I enabled the debug level in logs for cache and I saw something that could explain why the object is not updated in the other cache in cluster :
| [ReplicationInterceptor] responses=[LOCK]
|
Does-it mean that the object is locked in the cache and cannot be updated ?
Why the objects are sometimes marked as locked ?
Am I missing something ?
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072966#4072966
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072966
18Â years, 10Â months
[JBoss Seam] - Re: entityManager goes null on form submit?
by wesleyhales
Yes... but my servlet filter is setup with "*.seam" - so I wasn't sure if it would have any effect.
Also, I should've posted a better test case, so here ya go:
1. I am using the exact same code from this article for the filter.
2. The UI and backend code I am using is from seam-gen.
You should be able to reproduce with these 2 things. I also tried this with only one em instead of 2 and still get same results. I even took the part of the app (the seam-gen code) that is using one of the 2 em's and broke it out into a seperate ear. So I had 2 ears running under the Jboss 4.2 AS, and it still does the same thing... it is Crazy!
So, we used jswat to try and see clearer what is happening, and it the app is blowing up on the ITextRenderer. But I still don't understand how something in one EAR can affect the entitymanager of another.
Thanks[/url]
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072962#4072962
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072962
18Â years, 10Â months
[Beginners Corner] - Re: org.apache.jasper.JasperException: Unable to compile cla
by alamandrax
This is the text I see when I startup the server:
C:\Program Files\jboss-4.0.5.GA\bin>run
| ===============================================================================
|
| JBoss Bootstrap Environment
|
| JBOSS_HOME: C:\Program Files\jboss-4.0.5.GA\bin\\..
|
| JAVA: C:\Program Files\Java\jdk1.5.0_12\bin\java
|
| JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
|
| CLASSPATH: C:\Program Files\Java\jdk1.5.0_12\lib\tools.jar;C:\Program Files\jboss-4.0.5.GA\bin\\run.jar
|
| ===============================================================================
|
| 15:46:57,307 INFO [Server] Starting JBoss (MX MicroKernel)...
| 15:46:57,309 INFO [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)
| 15:46:57,311 INFO [Server] Home Dir: C:\Program Files\jboss-4.0.5.GA
| 15:46:57,312 INFO [Server] Home URL: file:/C:/Program Files/jboss-4.0.5.GA/
| 15:46:57,313 INFO [Server] Patch URL: null
| 15:46:57,313 INFO [Server] Server Name: default
| 15:46:57,314 INFO [Server] Server Home Dir: C:\Program Files\jboss-4.0.5.GA\server\default
| 15:46:57,314 INFO [Server] Server Home URL: file:/C:/Program Files/jboss-4.0.5.GA/server/default/
| 15:46:57,314 INFO [Server] Server Log Dir: C:\Program Files\jboss-4.0.5.GA\server\default\log
| 15:46:57,315 INFO [Server] Server Temp Dir: C:\Program Files\jboss-4.0.5.GA\server\default\tmp
| 15:46:57,316 INFO [Server] Root Deployment Filename: jboss-service.xml
| 15:46:57,788 INFO [ServerInfo] Java version: 1.5.0_12,Sun Microsystems Inc.
| 15:46:57,792 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_12-b04,Sun Microsystems Inc.
| 15:46:57,792 INFO [ServerInfo] OS-System: Windows Vista 6.0,x86
| 15:46:58,612 INFO [Server] Core system initialized
| 15:47:04,554 INFO [WebService] Using RMI server codebase: http://#########:8083/
| 15:47:04,622 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
| 15:47:10,579 INFO [SocketServerInvoker] Invoker started for locator: InvokerLocator [socket://192.168.2.231:3873/]
| 15:47:23,881 INFO [ServiceEndpointManager] WebServices: jbossws-1.0.3.SP1 (date=200609291417)
| 15:47:26,465 INFO [SnmpAgentService] SNMP agent going active
| 15:47:29,000 INFO [CorbaNamingService] Naming: [IOR:000000000000002B49444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578744578743A312E300000000000020000000
| 0000000E8000102000000000E3139322E3136382E322E323331000DC8000000114A426F73732F4E616D696E672F726F6F74000000000000050000000000000008000000004A414300000000010000001C00000000000
| 100010000000105010001000101090000000105010001000000210000006000000000000000010000000000000024000000200000007E00000000000000010000000E3139322E3136382E322E323331000DC90040000
| 0000000000000001004010008060667810201010100000000000000000000000000000000000000000000002000000004000000000000001F00000004000000030000000100000020000000000000000200000020000
| 00004000000000000001F0000000400000003]
| 15:47:29,128 INFO [CorbaTransactionService] TransactionFactory: [IOR:000000000000003049444C3A6F72672F6A626F73732F746D2F69696F702F5472616E73616374696F6E466163746F7279457874
| 3A312E30000000000200000000000000E8000102000000000E3139322E3136382E322E323331000DC8000000144A426F73732F5472616E73616374696F6E732F46000000050000000000000008000000004A41430000
| 0000010000001C00000000000100010000000105010001000101090000000105010001000000210000006000000000000000010000000000000024000000200000007E00000000000000010000000E3139322E313638
| 2E322E323331000DC900400000000000000000001004010008060667810201010100000000000000000000000000000000000000000000002000000004000000000000001F0000000400000003000000010000002000
| 000000000000020000002000000004000000000000001F0000000400000003]
| 15:47:30,931 INFO [Embedded] Catalina naming disabled
| 15:47:30,983 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
| 15:47:30,985 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
| 15:47:31,429 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
| 15:47:31,430 INFO [Catalina] Initialization processed in 445 ms
| 15:47:31,431 INFO [StandardService] Starting service jboss.web
| 15:47:31,434 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.20
| 15:47:31,470 INFO [StandardHost] XML validation disabled
| 15:47:31,492 INFO [Catalina] Server startup in 61 ms
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072957#4072957
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072957
18Â years, 10Â months