Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Exception Description: Operation not supported: [instantiateForUnitOfWorkValueHolder]
Exception Description: Operation not supported: [instantiateForUnitOfWorkValueHolder] [message #718757] Thu, 25 August 2011 09:14 Go to next message
sebastian.schneiderFriend
Messages: 9
Registered: January 2010
Junior Member
Hello,

when upgrading from Eclipselink 2.1.3 to 2.3.0 I get the following stacktrace:
Caused by: org.eclipse.persistence.exceptions.ValidationException: 
Exception Description: Operation not supported: [instantiateForUnitOfWorkValueHolder].
      at org.eclipse.persistence.exceptions.ValidationException.operationNotSupported(ValidationException.java:1451) ~[org.eclipse.persistence.core-2.3.0.jar:2.3.0.v20110604-r9504]
      at org.eclipse.persistence.internal.indirection.ProtectedValueHolder.instantiateForUnitOfWorkValueHolder(ProtectedValueHolder.java:52) ~[org.eclipse.persistence.core-2.3.0.jar:2.3.0.v20110604-r9504]
      at org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder.instantiateImpl(UnitOfWorkValueHolder.java:156) ~[org.eclipse.persistence.core-2.3.0.jar:2.3.0.v20110604-r9504]
      at org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder.instantiate(UnitOfWorkValueHolder.java:222) ~[org.eclipse.persistence.core-2.3.0.jar:2.3.0.v20110604-r9504]
      at org.eclipse.persistence.internal.indirection.DatabaseValueHolder.getValue(DatabaseValueHolder.java:88) ~[org.eclipse.persistence.core-2.3.0.jar:2.3.0.v20110604-r9504]
      at de.wirthedv.ticket.domain.Ticket._persistence_get_team(Ticket.java) ~[Ticket.class:na]
      at de.wirthedv.ticket.domain.Ticket.getTeam(Ticket.java:223) ~[Ticket.class:na]

when accessing team on an Ticket Object. (Classes are weaved static)
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "TEAM_ID")
private Team team;


Is there anything I had to change in the config? While using Eclipselink 2.1.3 there is no error in the webapplication.

Thank you

Sebastian

[Updated on: Thu, 25 August 2011 15:52]

Report message to a moderator

Re: Exception Description: Operation not supported: [instantiateForUnitOfWorkValueHolder] [message #719270 is a reply to message #718757] Fri, 26 August 2011 14:53 Go to previous messageGo to next message
Chris Delahunt is currently offline Chris DelahuntFriend
Messages: 1389
Registered: July 2009
Senior Member
You will need to reweave the classes as the weaving itself has changed.

Best Regards,
Chris
(no subject) [message #719273 is a reply to message #718757] Fri, 26 August 2011 14:53 Go to previous messageGo to next message
Chris Delahunt is currently offline Chris DelahuntFriend
Messages: 1389
Registered: July 2009
Senior Member
You will need to reweave the classes as the weaving itself has changed.

Best Regards,
Chris
Re: (no subject) [message #719840 is a reply to message #719273] Mon, 29 August 2011 07:51 Go to previous messageGo to next message
sebastian.schneiderFriend
Messages: 9
Registered: January 2010
Junior Member
Okay thanks for this info.
After weaving the classes with 2.3.0 we get sometimes Nullpointerexceptions on @ManyToOne like showed in the first post but these fields are non-nullable in the database, so there can't be a null value. This happens with FetchType.LAZY and EAGER
Is there something we have to change also?

[Updated on: Tue, 30 August 2011 07:15]

Report message to a moderator

Re: (no subject) [message #720537 is a reply to message #719840] Tue, 30 August 2011 19:20 Go to previous messageGo to next message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

Please include the stack trace.


James : Wiki : Book : Blog : Twitter
(no subject) [message #720545 is a reply to message #719840] Tue, 30 August 2011 19:20 Go to previous messageGo to next message
James is currently offline JamesFriend
Messages: 272
Registered: July 2009
Senior Member
Please include the stack trace.

--
James : http://wiki.eclipse.org/EclipseLink : http://en.wikibooks.org/wiki/Java_Persistence : http://java-persistence-performance.blogspot.com/
Re: (no subject) [message #720548 is a reply to message #720537] Tue, 30 August 2011 19:41 Go to previous messageGo to next message
sebastian.schneiderFriend
Messages: 9
Registered: January 2010
Junior Member
Sorry there is no stacktrace beacause there is no exception rather than the NullPointerException when we try to acess the object, the problem that occurs is that the non-null values are null, e.g. team like shown before.
=> After restarting the tomcat other non-null columns are null values in the objects.
Re: (no subject) [message #722737 is a reply to message #720548] Tue, 06 September 2011 15:34 Go to previous messageGo to next message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

Can you isolate the exact scenario that causes the issue? Perhaps log a bug if you can.

Are you putting objects will null values into your cache? If you disable the shared cache does the issue go away?
Are you mixing caching in some objects with no caching in others?

Do all classes/relationships have this issue, or specific ones? (like ones to objects that are not cached?)

Are you using fetch groups, or lazy basics?

If you refresh the object, does it resolve the issue?

Try the latest build to see if the issues still occur.




James : Wiki : Book : Blog : Twitter
(no subject) [message #722744 is a reply to message #720548] Tue, 06 September 2011 15:34 Go to previous messageGo to next message
James is currently offline JamesFriend
Messages: 272
Registered: July 2009
Senior Member
Can you isolate the exact scenario that causes the issue? Perhaps log a bug if you can.

Are you putting objects will null values into your cache? If you disable the shared cache does the issue go away?
Are you mixing caching in some objects with no caching in others?

Do all classes/relationships have this issue, or specific ones? (like ones to objects that are not cached?)

Are you using fetch groups, or lazy basics?

If you refresh the object, does it resolve the issue?

Try the latest build to see if the issues still occur.



--
James : http://wiki.eclipse.org/EclipseLink : http://en.wikibooks.org/wiki/Java_Persistence : http://java-persistence-performance.blogspot.com/
Re: (no subject) [message #1760701 is a reply to message #722744] Tue, 02 May 2017 08:21 Go to previous messageGo to next message
link link is currently offline link linkFriend
Messages: 1
Registered: April 2017
Junior Member
Hi jams, have you solved this problem? I met the same issue on my project now. i wanna to know if there are have any hints to solve this .


javax.ejb.EJBException
at com.sun.ejb.containers.BaseContainer.processSystemException(BaseContainer.java:3903)
at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3803)
at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3605)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1388)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1325)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:205)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:83)
at com.sun.proxy.$Proxy128.addChildGroupWithAttributes(Unknown Source)
at com.link.acs.om.controller.subscription.SubscriptionGroupsController.createGroup(SubscriptionGroupsController.java:125)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:436)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:424)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:669)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:585)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:873)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:558)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:490)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:382)
at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:195)
at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:159)
at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at com.link.acs.om.utils.session.HttpSessionAwareFilter.doFilter(HttpSessionAwareFilter.java:55)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at com.link.acs.om.utils.license.LicenseCheckFilter.doFilter(LicenseCheckFilter.java:105)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:117)
Caused by: Exception [EclipseLink-7097] (Eclipse Persistence Services - 2.2.0.v20110202-r8913): org.eclipse.persistence.exceptions.ValidationException
Exception Description: Operation not supported: [instantiateForUnitOfWorkValueHolder].
at org.eclipse.persistence.exceptions.ValidationException.operationNotSupported(ValidationException.java:1423)
at org.eclipse.persistence.internal.indirection.ProtectedValueHolder.instantiateForUnitOfWorkValueHolder(ProtectedValueHolder.java:52)
at org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder.instantiateImpl(UnitOfWorkValueHolder.java:156)
at org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder.instantiate(UnitOfWorkValueHolder.java:222)
at org.eclipse.persistence.internal.indirection.DatabaseValueHolder.getValue(DatabaseValueHolder.java:88)
at org.eclipse.persistence.indirection.IndirectList.buildDelegate(IndirectList.java:237)
at org.eclipse.persistence.indirection.IndirectList.getDelegate(IndirectList.java:397)
at org.eclipse.persistence.indirection.IndirectList$1.<init>(IndirectList.java:525)
at org.eclipse.persistence.indirection.IndirectList.listIterator(IndirectList.java:524)
at org.eclipse.persistence.indirection.IndirectList.iterator(IndirectList.java:488)
at com.link.acs.ssf.subscriptionmanagement.dao.SubscriptionGroup.setRoute(SubscriptionGroup.java:189)
at com.link.acs.ssf.subscriptionmanagement.dao.SubscriptionDAOJPAImpl.addAndCreateChildGroupWithAttributes(SubscriptionDAOJPAImpl.java:213)
at com.link.acs.ssf.subscriptionmanagement.SubscriptionManagement.addChildGroupWithAttributes(SubscriptionManagement.java:532)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1011)
at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:175)
at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:4039)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:483)
at com.sun.ejb.Invocation.proceed(Invocation.java:498)
at com.link.dve.licensemanagement.interceptor.LicenseControlInterceptor.licenseCheck(LicenseControlInterceptor.java:42)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:579)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:483)
at com.sun.ejb.Invocation.proceed(Invocation.java:498)
at com.link.acs.ssf.statisticsmanagement.CounterInterceptor.audit(CounterInterceptor.java:101)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:579)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:483)
at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:205)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4012)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:197)
... 61 more
Re: (no subject) [message #1760970 is a reply to message #1760701] Thu, 04 May 2017 18:24 Go to previous message
Chris Delahunt is currently offline Chris DelahuntFriend
Messages: 1389
Registered: July 2009
Senior Member
The original issue was resolved by running weaving with the latest EclipseLink version against the jars. Using jars woven with earlier versions of EclipseLink may not work with all future EclipseLink versions.

The error shows you are using EclipseLink version 2.2 - make sure the application jars have been woven using this same version.
Previous Topic:javaagent and eclipselink.persistencexml
Next Topic:How to use JPA-RS without J2EE environment?
Goto Forum:
  


Current Time: Fri Apr 19 22:42:51 GMT 2024

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

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

Back to the top