Guido_Vosmeer_9
Mar 23, 2010Historic F5 Account
Java Config Sync errors
Hi,
My customer is writing a Java tool for syncing the config in a pair of BIGIP's. They get a 500 error from the BIGIP with the following script (written in Java). Could anybody tell me what is wrong with it?
public boolean syncconf(SystemFailoverBindingStub foverstub) {
boolean syncconfsuccess = false;
SystemConfigSyncBindingStub stub = null;
try {
stub = (iControl.SystemConfigSyncBindingStub)
new iControl.SystemConfigSyncLocator().getSystemConfigSyncPort(new java.net.URL(m_endpoint));
SystemConfigSyncSyncMode scssm = null;
if (sync.equals("all")){
scssm = SystemConfigSyncSyncMode.fromString("CONFIGSYNC_ALL");
} else {
scssm = SystemConfigSyncSyncMode.fromString("CONFIGSYNC_BASIC");
}
stub.synchronize_configuration(scssm);
syncconfsuccess = true;
} catch (Exception ex) {
ex.printStackTrace(System.out);
}
return syncconfsuccess;
}