Hi all,
I have a master/slave code so that each slave reads a subset of points of the same database. ObjectDB entities do not allow serialization and so I have sent, to each slave, the file path. With such information I have tried to create an entityManager, in each slave, as follows:
EntityManagerFatory entityManagerFactory = Persistence.createEntityManagerFactory(filePath); EntityManager = entityManagerFactory.createEntityManager(); However I get the following error com.objectdb.o.UserException: Invalid configuration in 'internal' - Check permissions.: Is there any way to change such permissions. I have search unsuccesfuly. The full error is given as follows task null exception occurred: org.jppf.JPPFException: java.lang.ExceptionInInitializerError at org.jppf.server.node.NodeTaskWrapper.run(NodeTaskWrapper.java:150) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.ExceptionInInitializerError at com.objectdb.o.RCL.> (RCL.java:33) at com.objectdb.o.UNM$z.>(UNM.java:165) at com.objectdb.o.UNM.x(UNM.java:105) at com.objectdb.o.UNM.w(UNM.java:75) at com.objectdb.jpa.Provider.createEntityManagerFactory(Provider.java:57) Exception in thread "main" java.lang.Exception: java.lang.ExceptionInInitializerError at com.jscilib.jppf.math.data.stats.bin.ComputePCA.main(ComputePCA.java:129) at com.objectdb.jpa.Provider.createEntityManagerFactory(Provider.java:32) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:79) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:54) at com.jscilib.jppf.data.db.odb.ObjectDBBulkDataset. >(ObjectDBBulkDataset.java:52) at com.jscilib.jppf.math.data.stats.ComputeRawPcaStatisticsTask.run(ComputeRawPcaStatisticsTask.java:78) at org.jppf.server.node.NodeTaskWrapper.run(NodeTaskWrapper.java:145) ... 7 more Caused by: com.objectdb.o.UserException: Invalid configuration in 'internal' - Check permissions. at com.objectdb.o.MSG.d(MSG.java:74) at com.objectdb.o.CFG. >(CFG.java:60) ... 18 more Caused by: java.lang.ExceptionInInitializerError at com.objectdb.o.LGM. >(LGM.java:125) at com.objectdb.o.CFG.ad(CFG.java:461) at com.objectdb.o.CFG.ac(CFG.java:398) at com.objectdb.o.CFG. >(CFG.java:56) ... 18 more Caused by: java.lang.NullPointerException at com.objectdb.o.SYH.z(SYH.java:279) at com.objectdb.o.SYH.y(SYH.java:185) at com.objectdb.o.SYH. >(SYH.java:154) ... 22 more
Thanks you in advance