Hi all,
I've just migrated from dataverse 4.8.6 to 4.9.1.
When I want to register all file PID endpoint in calling the admin registerDataFileAll service, I have 0 file registered, with the following error in the glassfish logs :
[2018-09-13T14:16:38.677+0200] [glassfish 4.1] [WARNING] [AS-EJB-00056] [javax.enterprise.ejb.container] [tid: _ThreadID=32 _ThreadName=http-listener-1(5)] [timeMillis: 1536840998677] [levelValue: 900] [[
A system exception occurred during an invocation on EJB PrivateUrlServiceBean, method: public edu.harvard.iq.dataverse.authorization.users.PrivateUrlUser edu.harvard.iq.dataverse.privateurl.PrivateUrlServiceBean.getPrivateUrlUserFromToken(java.lang.String)]]
[2018-09-13T14:16:38.677+0200] [glassfish 4.1] [WARNING] [] [javax.enterprise.ejb.container] [tid: _ThreadID=32 _ThreadName=http-listener-1(5)] [timeMillis: 1536840998677] [levelValue: 900] [[
javax.ejb.TransactionRolledbackLocalException: Client's transaction aborted
at com.sun.ejb.containers.EJBContainerTransactionManager.useClientTx(EJBContainerTransactionManager.java:357)
at com.sun.ejb.containers.EJBContainerTransactionManager.preInvokeTx(EJBContainerTransactionManager.java:251)
at com.sun.ejb.containers.BaseContainer.preInvokeTx(BaseContainer.java:4524)
at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:1986)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:210)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)
at com.sun.proxy.$Proxy202.getPrivateUrlUserFromToken(Unknown Source)
at edu.harvard.iq.dataverse.privateurl.__EJB31_Generated__PrivateUrlServiceBean__Intf____Bean__.getPrivateUrlUserFromToken(Unknown Source)
at edu.harvard.iq.dataverse.api.AbstractApiBean.findUserOrDie(AbstractApiBean.java:348)
at edu.harvard.iq.dataverse.api.Admin.registerDataFileAll(Admin.java:1049)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at.....
I've check in the database, in the RoleAssignment table, there is no entry with the api token.
I've missed something before calling this service ?
Thanks in advance,
Thanh Thanh