Hello,
I read that we need to configure OpenJPA 2nd level cache in the syncope 
documentation 
https://syncope.apache.org/docs/reference-guide.html#high-availability if I 
want to use syncope in a cluster.

I have syncope running in the cloud (with dynamic scalability and dynamic ips), 
so I'll have some issues configuring with fixed ips and a fixed number of 
instances.i.e. <property name="openjpa.RemoteCommitProvider" 
value="tcp(Addresses=10.0.1.10;10.0.1.11)"/>
I'm only using Syncope Core (aka REST Services), not the console or end-user 
app.
For the moment, I didn't activate the RemoteCommitProvider settings (and hence 
have the sjvm), and I'm running in some NPE errors when calling 
/syncope/rest/users/self REST API in one instance (but on the other with 
exactly the same parameter, it just works).See [1] for the stacktrace
I'd like to know if I can just disable JPA 2nd level cache (I'm only using 
Syncope core) or if I'm going to run in some rough issues 
?<shared-cache-mode>NONE</shared-cache-mode>

Thanks,Adrian

[1] java.lang.NullPointerException: null13:28:35at 
org.apache.syncope.core.persistence.jpa.entity.AbstractPlainAttr$1.transform(AbstractPlainAttr.java:109)
 ~[syncope-core-persistence-jpa-2.0.2.jar:2.0.2]13:28:35at 
org.apache.syncope.core.persistence.jpa.entity.AbstractPlainAttr$1.transform(AbstractPlainAttr.java:105)
 ~[syncope-core-persistence-jpa-2.0.2.jar:2.0.2]13:28:35at 
org.apache.commons.collections4.CollectionUtils.collect(CollectionUtils.java:1077)
 ~[commons-collections4-4.1.jar:4.1]13:28:35at 
org.apache.commons.collections4.CollectionUtils.collect(CollectionUtils.java:1049)
 ~[commons-collections4-4.1.jar:4.1]13:28:35at 
org.apache.syncope.core.persistence.jpa.entity.AbstractPlainAttr.getValuesAsStrings(AbstractPlainAttr.java:105)
 ~[syncope-core-persistence-jpa-2.0.2.jar:2.0.2]13:28:35at 
org.apache.syncope.core.provisioning.java.data.AbstractAnyDataBinder.fillTO(AbstractAnyDataBinder.java:573)
 ~[syncope-core-provisioning-java-2.0.2.jar:2.0.2]13:28:35at 
org.apache.syncope.core.provisioning.java.data.UserDataBinderImpl.getUserTO(UserDataBinderImpl.java:568)
 ~[syncope-core-provisioning-java-2.0.2.jar:2.0.2]13:28:35at 
org.apache.syncope.core.provisioning.java.data.UserDataBinderImpl.getAuthenticatedUserTO(UserDataBinderImpl.java:135)
 ~[syncope-core-provisioning-java-2.0.2.jar:2.0.2]13:28:35at 
sun.reflect.GeneratedMethodAccessor483.invoke(Unknown Source) ~[?:?]13:28:35at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:1.8.0_131]13:28:35at java.lang.reflect.Method.invoke(Method.java:498) 
~[?:1.8.0_131]13:28:35at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
 ~[spring-aop-4.3.6.RELEASE.jar:4.3.6.RELEASE]13:28:35at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
 ~[spring-aop-4.3.6.RELEASE.jar:4.3.6.RELEASE]13:28:35at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
 ~[spring-aop-4.3.6.RELEASE.jar:4.3.6.RELEASE]13:28:35at 
org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
 ~[spring-tx-4.3.6.RELEASE.jar:4.3.6.RELEASE]13:28:35at 
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)
 ~[spring-tx-4.3.6.RELEASE.jar:4.3.6.RELEASE]13:28:35at 
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
 ~[spring-tx-4.3.6.RELEASE.jar:4.3.6.RELEASE]13:28:35at 
org.apache.syncope.core.persistence.jpa.spring.DomainTransactionInterceptor.invoke(DomainTransactionInterceptor.java:64)
 ~[syncope-core-persistence-jpa-2.0.2.jar:2.0.2]13:28:35at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
 ~[spring-aop-4.3.6.RELEASE.jar:4.3.6.RELEASE]13:28:35at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
 ~[spring-aop-4.3.6.RELEASE.jar:4.3.6.RELEASE]13:28:35at 
com.sun.proxy.$Proxy192.getAuthenticatedUserTO(Unknown Source) ~[?:?]

Reply via email to