Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » StackOverFlowError on Eclipselink commit(StackOverFlowError on Eclipselink commit)
StackOverFlowError on Eclipselink commit [message #718984] Thu, 25 August 2011 17:28 Go to next message
Kamal  is currently offline Kamal
Messages: 9
Registered: May 2011
Junior Member
I' am getting a stack overflow error when trying to commit a large object graph using Eclipselink 2.2.0. Not able to give you the precise scenario as I cannot pin point the exact relation causing this. The changeset is updated in the DB. The error seems to happen when Eclipslink try to merge the changes to the Shared cache

Have any of you faced a similar error? Any Best Practices/Guidelines to avoid these when modeling complex relations?


com.pstechnology.eaf.persistence.CouldNotCommitException: commit failed; [CID=276394931570483058896957708981569, errorCode=null]
at com.pstechnology.eaf.persistence.toplink.ApplicationTransaction.commit(ApplicationTransaction.java:359)
at com.pstechnology.scheduling.tips.ProcessAllSeniorityMoveJob.processAssignmentMoves(ProcessAllSeniorityMoveJob.java:105)
at com.pstechnology.scheduling.tips.ProcessAllSeniorityMoveJob.doExecuteInternal(ProcessAllSeniorityMoveJob.java:58)
at com.pstechnology.scheduling.AbstractTransactionInitiationProfileJob.executeInternal(AbstractTransactionInitiationProfileJob.java:90)
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:597)
at com.pstechnology.web.controller.system.TransactionInitiationProfileViewController.onProcess(TransactionInitiationProfileViewController.java:199)
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:597)
at com.pstechnology.web.spring.controller.TransactionalFormController.invokeHandlerMethod(TransactionalFormController.java:602)
at com.pstechnology.web.spring.controller.AbstractMultiActionFormController.handleRequestInternal(AbstractMultiActionFormController.java:180)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:858)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:792)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:441)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at org.extremecomponents.table.filter.AbstractExportFilter.doFilter(AbstractExportFilter.java:49)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.pstechnology.servlet.filter.AbstractServletFilter.doFilter(AbstractServletFilter.java:105)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)
at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.pstechnology.servlet.filter.AbstractServletFilter.doFilter(AbstractServletFilter.java:105)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.pstechnology.servlet.filter.ApplicationFilter.doFilter(ApplicationFilter.java:144)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.pstechnology.servlet.filter.SecurityFilter.doFilter(SecurityFilter.java:110)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.pstechnology.servlet.filter.AuthenticatorFilter.doFilter(AuthenticatorFilter.java:197)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.StackOverflowError
at java.util.Vector.writeObject(Vector.java:1012)
at sun.reflect.GeneratedMethodAccessor3294.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:417)
at java.util.Vector.writeObject(Vector.java:1012)
at sun.reflect.GeneratedMethodAccessor3294.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at

.
.
. skipping some stacktrace
.
.
.
.
.
.


java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:417)
at java.util.Vector.writeObject(Vector.java:1012)
at sun.reflect.GeneratedMethodAccessor3294.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at org.eclipse.persistence.internal.sessions.ObjectChangeSet.writeCompleteChangeSet(ObjectChangeSet.java:1004)
at org.eclipse.persistence.internal.sessions.ObjectChangeSet.writeObject(ObjectChangeSet.java:961)
at sun.reflect.GeneratedMethodAccessor3184.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at java.util.IdentityHashMap.writeObject(IdentityHashMap.java:1165)
at sun.reflect.GeneratedMethodAccessor3181.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at org.eclipse.persistence.internal.sessions.UnitOfWorkChangeSet.getByteArrayRepresentation(UnitOfWorkChangeSet.java:335)
at org.eclipse.persistence.sessions.coordination.MergeChangeSetCommand.convertChangeSetToByteArray(MergeChangeSetCommand.java:67)
at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.mergeChangesIntoParent(UnitOfWorkImpl.java:3273)
at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitRootUnitOfWork(UnitOfWorkImpl.java:1315)
at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commit(UnitOfWorkImpl.java:1074)
at com.pstechnology.eaf.persistence.toplink.ApplicationTransaction.commit(ApplicationTransaction.java:323)
at com.pstechnology.scheduling.tips.ProcessAllSeniorityMoveJob.processAssignmentMoves(ProcessAllSeniorityMoveJob.java:106)
at com.pstechnology.scheduling.tips.ProcessAllSeniorityMoveJob.doExecuteInternal(ProcessAllSeniorityMoveJob.java:58)
at com.pstechnology.scheduling.AbstractTransactionInitiationProfileJob.executeInternal(AbstractTransactionInitiationProfileJob.java:90)
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:597)
at com.pstechnology.web.controller.system.TransactionInitiationProfileViewController.onProcess(TransactionInitiationProfileViewController.java:199)
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:597)
at com.pstechnology.web.spring.controller.TransactionalFormController.invokeHandlerMethod(TransactionalFormController.java:602)
at com.pstechnology.web.spring.controller.AbstractMultiActionFormController.handleRequestInternal(AbstractMultiActionFormController.java:180)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:858)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:792)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:442)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:43)
at org.extremecomponents.table.filter.AbstractExportFilter.doFilter(AbstractExportFilter.java:49)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:43)
at com.pstechnology.servlet.filter.AbstractServletFilter.doFilter(AbstractServletFilter.java:105)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:43)
at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:136)
at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:43)
at com.pstechnology.servlet.filter.AbstractServletFilter.doFilter(AbstractServletFilter.java:105)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:43)
at com.pstechnology.servlet.filter.ApplicationFilter.doFilter(ApplicationFilter.java:144)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:43)
at com.pstechnology.servlet.filter.SecurityFilter.doFilter(SecurityFilter.java:110)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:43)
at com.pstechnology.servlet.filter.AuthenticatorFilter.doFilter(AuthenticatorFilter.java:197)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:43)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
... 4 more
[2011-08-25 09:20:29,739] [ERROR] [[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'] [ProcessAllSeniorityMoveJob] processing unprocessed Seniority Move Task: 404619
[2011-08-25 09:20:29,739] [ERROR] [[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'] [ProcessAllSeniorityMoveJob] end processing Seniority Move task: 404619
[2011-08-25 09:20:29,739] [ERROR] [[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'] [ProcessAllSeniorityMoveJob] processing unprocessed Seniority Move Task: 404376
[2011-08-25 09:20:29,759] [ERROR] [[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'] [SeniorityMoveTask] Error in task executioin
com.pstechnology.domain.seniority.InvalidEmploymentReasonSeniorityMoveNotAllowedException: no message; [CID=281182279025082810043805592737089, errorCode=S0180]
at com.pstechnology.domain.assignment.Assignment.checkEmploymentReasonFromSMRP(Assignment.java:2801)
at com.pstechnology.domain.assignment.Assignment.makeAssignment(Assignment.java:2928)
at com.pstechnology.domain.assignment.PermanentAssignment.makeAssignment(PermanentAssignment.java:190)
at com.pstechnology.service.assignment.AssignmentService.saveAssignment(AssignmentService.java:528)
at com.pstechnology.service.assignment.AssignmentService.saveAssignment(AssignmentService.java:414)
at com.pstechnology.service.assignment.AssignmentService.processSeniorityMoveTask(AssignmentService.java:1980)
at com.pstechnology.service.task.TaskService.processAssignmentTask(TaskService.java:550)
at com.pstechnology.service.task.TaskService.processAssignmentTask(TaskService.java:540)
at com.pstechnology.scheduling.tips.ProcessAllSeniorityMoveJob.processAllSeniorityMoves(ProcessAllSeniorityMoveJob.java:183)
at com.pstechnology.scheduling.tips.ProcessAllSeniorityMoveJob.processAssignmentMoves(ProcessAllSeniorityMoveJob.java:86)
at com.pstechnology.scheduling.tips.ProcessAllSeniorityMoveJob.doExecuteInternal(ProcessAllSeniorityMoveJob.java:58)
at com.pstechnology.scheduling.AbstractTransactionInitiationProfileJob.executeInternal(AbstractTransactionInitiationProfileJob.java:90)
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:597)
at com.pstechnology.web.controller.system.TransactionInitiationProfileViewController.onProcess(TransactionInitiationProfileViewController.java:199)
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:597)
at com.pstechnology.web.spring.controller.TransactionalFormController.invokeHandlerMethod(TransactionalFormController.java:602)
at com.pstechnology.web.spring.controller.AbstractMultiActionFormController.handleRequestInternal(AbstractMultiActionFormController.java:180)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:858)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:792)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:441)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at org.extremecomponents.table.filter.AbstractExportFilter.doFilter(AbstractExportFilter.java:49)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.pstechnology.servlet.filter.AbstractServletFilter.doFilter(AbstractServletFilter.java:105)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)
at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.pstechnology.servlet.filter.AbstractServletFilter.doFilter(AbstractServletFilter.java:105)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.pstechnology.servlet.filter.ApplicationFilter.doFilter(ApplicationFilter.java:144)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.pstechnology.servlet.filter.SecurityFilter.doFilter(SecurityFilter.java:110)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.pstechnology.servlet.filter.AuthenticatorFilter.doFilter(AuthenticatorFilter.java:197)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

[Updated on: Thu, 25 August 2011 17:42]

Report message to a moderator

Re: StackOverFlowError on Eclipselink commit [message #720528 is a reply to message #718984] Tue, 30 August 2011 19:04 Go to previous messageGo to next message
James Sutherland is currently offline James Sutherland
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

The error is occurring because you have cache coordination enabled, and the change set serialization seems to be causing the stack overflow.

How big is the update? Can you reduce the size to see if it is just too big?

If you disable cache coordination, it should workaround the issue. You could also use the CacheCoordinationType.INVALIDATE_CHANGED_OBJECTS to reduce the size of what is serialized.


James : Wiki : Book : Blog : Twitter
(no subject) [message #720542 is a reply to message #718984] Tue, 30 August 2011 19:04 Go to previous messageGo to next message
James is currently offline James
Messages: 272
Registered: July 2009
Senior Member
The error is occurring because you have cache coordination enabled, and the change set serialization seems to be causing the stack overflow.

How big is the update? Can you reduce the size to see if it is just too big?

If you disable cache coordination, it should workaround the issue. You could also use the CacheCoordinationType.INVALIDATE_CHANGED_OBJECTS to reduce the size of what is serialized.

--
James : http://wiki.eclipse.org/EclipseLink : http://en.wikibooks.org/wiki/Java_Persistence : http://java-persistence-performance.blogspot.com/
Re: (no subject) [message #723164 is a reply to message #720542] Wed, 07 September 2011 21:51 Go to previous messageGo to next message
Kamal  is currently offline Kamal
Messages: 9
Registered: May 2011
Junior Member
Sorry for not responding earlier.

This problem only seems to be occurring in production on a few updates. As you mentioned, size of update may be causing it.I tried INVALIDATE_CHANGED_OBJECTS policy before and that was causing some other issues like not updating relations etc. Do you know what would have changed in the Cache coordination logic between Toplink 10.1.3 and Eclipselink 2.2.0? Toplink did not require the Persistent objects to be serializable. I started getting Serialization errors(which was fixed by marking the objects as Serializable) and this one after the Migration.

Re: (no subject) [message #724590 is a reply to message #723164] Mon, 12 September 2011 15:48 Go to previous messageGo to next message
James Sutherland is currently offline James Sutherland
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

Cache coordination does not require the objects to be serializable, nor does it serialize the objects. If this is occurring then something bad is going on.

Can you determine what is referencing your domain object that is causing it to be serialized? Is it all of your classes, or just one/some?



James : Wiki : Book : Blog : Twitter
Re: (no subject) [message #728738 is a reply to message #724590] Fri, 23 September 2011 20:03 Go to previous messageGo to next message
Kamal  is currently offline Kamal
Messages: 9
Registered: May 2011
Junior Member
This is happening on many objects. This is what I get when the Class is not Serializable. ConditionAttributeOperand is a simple class with two String fields.


Internal Exception: java.io.NotSerializableException: com.pstechnology.domain.seniority.ConditionAttributeOperand
at org.eclipse.persistence.exceptions.CommunicationException.unableToPropagateChanges(CommunicationException.java:68)
at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.mergeChangesIntoParent(UnitOfWorkImpl.java:3275)
at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitRootUnitOfWork(UnitOfWorkImpl.java:1314)
at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commit(UnitOfWorkImpl.java:1074)
at com.pstechnology.eaf.persistence.toplink.ApplicationTransaction.commit(ApplicationTransaction.java:323)
... 43 more
Caused by: java.io.NotSerializableException: com.pstechnology.domain.seniority.ConditionAttributeOperand
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at java.util.HashSet.writeObject(HashSet.java:267)
at sun.reflect.GeneratedMethodAccessor385.invoke(Unknown Source)
.
.
.
.
.
.

at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at java.util.IdentityHashMap.writeObject(IdentityHashMap.java:1165)
at sun.reflect.GeneratedMethodAccessor2583.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at org.eclipse.persistence.internal.sessions.UnitOfWorkChangeSet.getByteArrayRepresentation(UnitOfWorkChangeSet.java:335)
at org.eclipse.persistence.sessions.coordination.MergeChangeSetCommand.convertChangeSetToByteArray(MergeChangeSetCommand.java:67)
at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.mergeChangesIntoParent(UnitOfWorkImpl.java:3273)

Re: (no subject) [message #729668 is a reply to message #728738] Mon, 26 September 2011 18:10 Go to previous message
James Sutherland is currently offline James Sutherland
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

I could not recreate any issues with non-serializable classes.

Do you have any special data-types or mappings, something that could be referencing your domain classes?

Try putting a break-point in the NotSerializableException and check the stack to see why your class is being serialized.


James : Wiki : Book : Blog : Twitter
Previous Topic:sync error with eclipselink
Next Topic:EclipseLink + RCP + OSGI Service: No Persistence provider for EntityManager
Goto Forum:
  


Current Time: Thu Oct 23 04:41:21 GMT 2014

Powered by FUDForum. Page generated in 0.01821 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software