throw new JDOOptimisticVerificationException(LOCALISER.msg("PM.OptimisticVerificationError"), (Throwable[])optimisticFailures.toArray(new Throwable[optimisticFailures.size()]));
private void processOptimisticTransactionResult(OptimisticTransactionResult otr) { if (otr.requiresReset()) { isActive = false; closeInternal(); throw DBLogger.newFatalDataStore( "Database schema has changed, please reconnect. ", null); } if (otr.requiresRefresh()) { if (schemaManager.hasChanges()) { //remote index update & local schema updates (could be index) --> considered bad! throw new JDOOptimisticVerificationException("Optimistic verification failed " + "because schema changes occurred in remote concurrent sessions."); } // refresh schema, this works only for indexes schemaManager.refreshSchemaAll(); } }
ea[pos] = new JDOOptimisticVerificationException(Util.oidToString(oid), failedObj); pos++; throw new JDOOptimisticVerificationException("Optimistic verification failed", ea);
throw new JDOOptimisticVerificationException(ne.getMessage(), jdoNested);
jdoNested[i] = (JDOOptimisticVerificationException) NucleusJDOHelper.getJDOExceptionForNucleusException(nested); throw new JDOOptimisticVerificationException(ne.getMessage(), jdoNested); throw new JDOOptimisticVerificationException(ne.getMessage(), jdoNested);
sm.getInternalObjectId(), table.toString(), datastoreVersion, sm.getTransactionalVersion(sm.getObject())); JPOXLogger.RDBMS.error(msg); throw new JDOOptimisticVerificationException(msg, sm.getObject()); sm.getInternalObjectId(), table.toString()); JPOXLogger.RDBMS.error(msg); throw new JDOOptimisticVerificationException(msg, sm.getObject());
sm.getInternalObjectId(), table.toString(), datastoreVersion, sm.getTransactionalVersion(sm.getObject())); JPOXLogger.RDBMS.error(msg); throw new JDOOptimisticVerificationException(msg, sm.getObject()); sm.getInternalObjectId(), table.toString()); JPOXLogger.RDBMS.error(msg); throw new JDOOptimisticVerificationException(msg, sm.getObject());
return new JDOOptimisticVerificationException(ne.getMessage(), ne.getFailedObject()); return new JDOOptimisticVerificationException(ne.getMessage(), ne.getNestedExceptions()); return new JDOOptimisticVerificationException(ne.getMessage(), ne);