Home » Support » Forum » newbie - lots of exeptions

newbie - lots of exeptions

#1

Hi 

I'm very new to objectdb . I have bought a server and really want to use it. Our code works well with eclipselink and postgresql - until we stress it which is why I'm trying to get objected to work.

realy wierd things are going on ... we are using hessian to connect our remote clients to glass fish and invoke methods there (fine with postgresql) . here is our log (part of it at least .... exceptions are happening all the time when we're working with objected).

Parent -> org.glassfish.internal.api.DelegatingClassLoader@15e8179
was requested to find class com.prohire.agent.entities.AVBooking after done was invoked from the following stack trace
java.lang.Throwable
        at com.sun.enterprise.loader.ASURLClassLoader.findClassData(ASURLClassLoader.java:780)
        at com.sun.enterprise.loader.ASURLClassLoader.findClass(ASURLClassLoader.java:696)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:410)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:410)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
        at com.objectdb.o.RCL.j(RCL.java:299)
        at com.objectdb.o.UNH.o(UNH.java:381)
        at com.objectdb.o.UNH.n(UNH.java:365)
        at com.objectdb.o.UNH.n(UNH.java:357)
        at com.objectdb.o.UNH.n(UNH.java:357)
        at com.objectdb.o.UNH.n(UNH.java:357)
        at com.objectdb.o.UNH.n(UNH.java:357)
        at com.objectdb.o.UNH.n(UNH.java:302)
        at com.objectdb.o.UNH.m(UNH.java:278)
        at com.objectdb.o.SCM.x(SCM.java:476)
        at com.objectdb.o.TYS.z(TYS.java:783)
        at com.objectdb.o.TYM.ae(TYM.java:526)
        at com.objectdb.o.TYM.ad(TYM.java:490)
        at com.objectdb.o.QRR.n(QRR.java:566)
        at com.objectdb.o.QRR.g(QRR.java:249)
        at com.objectdb.o.QRR.f(QRR.java:153)
        at com.objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java:716)
        at com.prohire.prohire_sync.ProhireQueries.getProhireSQL(ProhireQueries.java:81)
        at com.prohire.prohire_sync.ProhireDataSyncImplementation.getProhireSQL(ProhireDataSyncImplementation.java:65)
        at com.prohire.prohire_sync.ProhireDataSyncImplementation.uploadProhireData(ProhireDataSyncImplementation.java:96)
        at sun.reflect.GeneratedMethodAccessor126.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052)
        at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124)
        at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5388)
        at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619)
        at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
        at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
        at org.jboss.weld.ejb.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:49)
        at sun.reflect.GeneratedMethodAccessor125.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861)
        at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
        at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
        at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162)
        at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:144)
        at sun.reflect.GeneratedMethodAccessor124.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861)
        at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
        at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:370)
        at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5360)
        at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5348)
        at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:214)
        at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:89)
        at $Proxy275.uploadProhireData(Unknown Source)
        at com.prohire.prohire_sync.ProhireDataSyncEndpoint.uploadProhireData(ProhireDataSyncEndpoint.java:45)
        at sun.reflect.GeneratedMethodAccessor123.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkeleton.java:306)
        at com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkeleton.java:202)
        at com.caucho.hessian.server.HessianServlet.invoke(HessianServlet.java:389)
        at com.caucho.hessian.server.HessianServlet.service(HessianServlet.java:369)
        at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
        at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
        at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
        at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
        at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
        at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
        at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
        at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
        at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
        at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
        at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
        at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
        at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
        at java.lang.Thread.run(Thread.java:722)

WARNING: LDR5207: ASURLClassLoader EarClassLoader :
doneCalled = true
doneSnapshot = ASURLClassLoader.done() called ON EarClassLoader :
urlSet = [URLEntry : file:/C:/Program%20Files%20(x86)/glassfish-3.1.2.2/glassfish/domains/domain1/generated/ejb/ProhireNetwork_DataSync/ProhireNetwork_DataSync-war_war/, URLEntry : file:/C:/Users/Administrator/Documents/NetBeansProjects/ProhireNetwork_DataSync/dist/gfdeploy/ProhireNetwork_DataSync/ProhireNetwork_DataSync-war_war/WEB-INF/classes, URLEntry : file:/C:/Users/Administrator/Documents/NetBeansProjects/ProhireNetwork_DataSync/dist/gfdeploy/ProhireNetwork_DataSync/ProhireNetwork_DataSync-ejb_jar/, URLEntry : file:/C:/Program%20Files%20(x86)/glassfish-3.1.2.2/glassfish/domains/domain1/generated/ejb/ProhireNetwork_DataSync/ProhireNetwork_DataSync-ejb_jar]
doneCalled = false
Parent -> org.glassfish.internal.api.DelegatingClassLoader@1ff506d
AT Mon Dec 03 12:03:21 GMT 2012
BY :java.lang.Throwable: printStackTraceToString
        at com.sun.enterprise.util.Print.printStackTraceToString(Print.java:639)
        at com.sun.enterprise.loader.ASURLClassLoader.done(ASURLClassLoader.java:211)
        at com.sun.enterprise.loader.ASURLClassLoader.preDestroy(ASURLClassLoader.java:179)

and our persistence.xml file looks like

<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence  http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
  <persistence-unit name="ProhireNetwork_DataSync-ejbPU" transaction-type="JTA">
    <provider>com.objectdb.jpa.Provider</provider>
    <class>com.prohire.agent.entities.AVBooking</class>
    <class>com.prohire.agent.eantities.AVVehicle</class>
    <class>com.prohire.agent.entities.CompanyLocation</class>
    <class>com.prohire.agent.entities.CompanyPollStatus</class>
    <class>com.prohire.agent.entities.HireCompany</class>
    <class>com.prohire.global.vehiclemodels.VehicleModelDetails</class>
    <properties>
      <property name="javax.persistence.jdbc.url" value="objectdb://localhost/prohire_networka8.odb"/>
      <property name="javax.persistence.jdbc.user" value="admin"/>
      <property name="javax.persistence.jdbc.password" value="admin"/>
    </properties>
  </persistence-unit>
</persistence>

Can anybody help with this urgently please ?

Thank you

Paul

#2

The exact cause is unclear, but the stack trace indicates that the exception is thrown when ObjectDB tries to scan classes in order to find entity classes and other annotations automatically.

Apparently, you can disable this process by specifying <exclude-unlisted-classes/> in the persistence.xml:

<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence  http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
  <persistence-unit name="ProhireNetwork_DataSync-ejbPU" transaction-type="JTA">
    <provider>com.objectdb.jpa.Provider</provider>
    <class>com.prohire.agent.entities.AVBooking</class>
    <class>com.prohire.agent.eantities.AVVehicle</class>
    <class>com.prohire.agent.entities.CompanyLocation</class>
    <class>com.prohire.agent.entities.CompanyPollStatus</class>
    <class>com.prohire.agent.entities.HireCompany</class>
    <class>com.prohire.global.vehiclemodels.VehicleModelDetails</class>
    <exclude-unlisted-classes/>
    <properties>
      <property name="javax.persistence.jdbc.url" value="objectdb://localhost/prohire_networka8.odb"/>
      <property name="javax.persistence.jdbc.user" value="admin"/>
      <property name="javax.persistence.jdbc.password" value="admin"/>
    </properties>
  </persistence-unit>

Please check if this makes any difference.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
#3

In addition to the suggested workaround above, a new build (2.4.4_16) includes an attempt to bypass these exceptions.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
#4

Hi

Thanks for the update ..

In the meantime we tried an earlier version ... 2.4.4.6 and the exception went away and our objects are persisted. We've just tried 16 and we get one exception (below) and the no other exceptions after. Our objects are now being persisted.

 

thanks for your help !

Paul

WARNING: DTX5015: Caught exception in afterCompletion() callback:
[ObjectDB 2.4.4_06] javax.persistence.PersistenceException
Failed to read from file 'C:\Users\ADMINI~1\AppData\Local\Temp\1\objectdb_8889438785985987880\list_21.val' (error 117)
   at com.objectdb.jpa.EMImpl.afterCompletion(EMImpl.java:358)
   at com.sun.enterprise.transaction.JavaEETransactionImpl.commit(JavaEETransactionImpl.java:527)
   at com.sun.enterprise.transaction.JavaEETransactionManagerSimplified.commit(JavaEETransactionManagerSimplified.java:855)
   at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:5136)
   at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:4901)
   at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2045)
   at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1994)
   at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:222)
   at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:89)
   at $Proxy289.uploadProhireData(Unknown Source)
   at com.prohire.prohire_sync.ProhireDataSyncEndpoint.uploadProhireData(ProhireDataSyncEndpoint.java:45)
   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:601)
   at com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkeleton.java:306)
   at com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkeleton.java:202)
   at com.caucho.hessian.server.HessianServlet.invoke(HessianServlet.java:389)
   at com.caucho.hessian.server.HessianServlet.service(HessianServlet.java:369)
   at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
   at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
   at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
   at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
   at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
   at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
   at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
   at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
   at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
   at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
   at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
   at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
   at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
   at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
   at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
   at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
   at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
   at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
   at java.lang.Thread.run(Thread.java:722)
Caused by: com.objectdb.o.UserException: Failed to read from file 'C:\Users\ADMINI~1\AppData\Local\Temp\1\objectdb_8889438785985987880\list_21.val'
   at com.objectdb.o.MSG.d(MSG.java:74)
   at com.objectdb.o.LFL.U(LFL.java:1099)
   at com.objectdb.o.FIR.s(FIR.java:120)
   at com.objectdb.o.BYR.A(BYR.java:206)
   at com.objectdb.o.VUT.j(VUT.java:346)
   at com.objectdb.o.FCL.h(FCL.java:110)
   at com.objectdb.o.VLT.k(VLT.java:146)
   at com.objectdb.o.UTT.z(UTT.java:355)
   at com.objectdb.o.UTT.l(UTT.java:203)
   at com.objectdb.o.TSK.i(TSK.java:146)
   at com.objectdb.o.TSK.f(TSK.java:95)
   at com.objectdb.o.MST.ae(MST.java:1377)
   at com.objectdb.o.MST.Vb(MST.java:1296)
   at com.objectdb.o.WRA.Vb(WRA.java:370)
   at com.objectdb.o.WSM.Vb(WSM.java:174)
   at com.objectdb.o.STC.v(STC.java:513)
   at com.objectdb.o.SHN.an(SHN.java:563)
   at com.objectdb.o.SHN.K(SHN.java:170)
   at com.objectdb.o.HND.run(HND.java:132)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
   at com.objectdb.o.LFL.X(LFL.java:1154)
   at com.objectdb.o.LFL.U(LFL.java:1095)
   ... 18 more
#5

The last stack trace was produced by build 2.4.4_06:

[ObjectDB 2.4.4_06] javax.persistence.PersistenceException

This new exception is not related to the exception that was reported at the beginning of this thread. It may be the result of switching an ObjectDB version at the client side and keeping the server running. Try restarting the server with the new build and see if new exceptions are logged.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
#6

Hi Again,

We now have the an issue with log details below ...

We're trying 6 again to make sure we haven't broke again

 

SEVERE: message
[ObjectDB 2.4.4_16] javax.persistence.PersistenceException
Failed to get reference value of field field com.prohire.agent.entities.CompanyLocation.locationPKey using reflection - field com.prohire.agent.entities.CompanyLocation.locationPKey (error 363)
at com.objectdb.jpa.EMImpl.merge(EMImpl.java:456)
at com.sun.enterprise.container.common.impl.EntityManagerWrapper.merge(EntityManagerWrapper.java:286)
at com.prohire.prohire_sync.ProhireDataSyncImplementation.mergeEntityCompanyLocation(ProhireDataSyncImplementation.java:387)
at com.prohire.prohire_sync.ProhireDataSyncImplementation.uploadProhireData(ProhireDataSyncImplementation.java:139)
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:601)
at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052)
at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124)
at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5388)
at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
at org.jboss.weld.ejb.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:49)
at sun.reflect.GeneratedMethodAccessor123.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:144)
at sun.reflect.GeneratedMethodAccessor122.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:370)
at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5360)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5348)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:214)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:89)
at $Proxy301.uploadProhireData(Unknown Source)
at com.prohire.prohire_sync.ProhireDataSyncEndpoint.uploadProhireData(ProhireDataSyncEndpoint.java:45)
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:601)
at com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkeleton.java:306)
at com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkeleton.java:202)
at com.caucho.hessian.server.HessianServlet.invoke(HessianServlet.java:389)
at com.caucho.hessian.server.HessianServlet.service(HessianServlet.java:369)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:722)
Caused by: com.objectdb.o.UserException: Failed to get reference value of field field com.prohire.agent.entities.CompanyLocation.locationPKey using reflection - field com.prohire.agent.entities.CompanyLocation.locationPKey
at com.objectdb.o.MSG.d(MSG.java:74)
at com.objectdb.o.UMR.Q(UMR.java:910)
at com.objectdb.o.UMR.H(UMR.java:710)
at com.objectdb.o.UMR.N(UMR.java:797)
at com.objectdb.o.MMM.Y(MMM.java:813)
at com.objectdb.o.EMR.h(EMR.java:142)
at com.objectdb.o.TVS.g(TVS.java:104)
at com.objectdb.o.TVS.g(TVS.java:93)
at com.objectdb.o.EMR.q(EMR.java:77)
at com.objectdb.jpa.EMImpl.merge(EMImpl.java:453)
... 66 more
Caused by: java.lang.IllegalArgumentException: Can not set java.lang.String field com.prohire.agent.entities.CompanyLocation.locationPKey to com.prohire.agent.entities.CompanyLocation
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:164)
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:168)
at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:55)
at sun.reflect.UnsafeObjectFieldAccessorImpl.get(UnsafeObjectFieldAccessorImpl.java:36)
at java.lang.reflect.Field.get(Field.java:372)
at com.objectdb.o.UMR$U.I(UMR.java:1054)
at com.objectdb.o.UMR.H(UMR.java:707)

... 73 more

 

thanks

 

paul 

#7
Hi Works perfectly in version 6 Any ideas ? Thanks Paul
#8

The stack trace in #9 may represent a partial enhancement or incomplete build. Please try rebuilding and enhancing all your classes. It may solve the problem with build 16. There is no known difference between build 6 and 16 that may cause this exception.

If this doesn't help - please provide more details. What can you tell about field CompanyLocation.locationPKey? Is it a primary key field? Are there recent schema changes in that class or class hierarchy? Are there additional stack trace lines in the log (the root cause is missing)?

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)

Post Reply

To post a reply and/or subscribe to update notifications - please login