Forum Discussion

Guido_Vosmeer_9's avatar
Guido_Vosmeer_9
Historic F5 Account
Mar 23, 2010

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;

 

}

7 Replies

  • Hamish's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus
    Could you provide a dump of the SOAP request and response...
  • This is a known issue. A Config Sync action forces a restart of the httpd server which in turn truncates the iControl connection. I believe we are working on a way to avoid this but in the mean time, you'll have to catch this error.

     

     

    -Joe
  • Hamish's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus
    Joe, is that version specific? I don't get an error from perl using SOAP::Lite when doing a config sync.

     

     

    H
  • Hamish's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus
    Guido, what version were you using? I've used 9.4.8 and 10.1.0 without problems.

     

     

    H
  • Guido_Vosmeer_9's avatar
    Guido_Vosmeer_9
    Historic F5 Account
    Hi,

     

     

    Thanks for your comments.

     

    I think that my customer was testing the Java on v10.1 but I will check again to make sure.

     

    I also tested with Perl and soap::lite and did not see any issues. The known issue you mentioned is this one right?

     

    SOL10132: ConfigSync via iControl API Fails

     

     

    Regards

     

  • Guido_Vosmeer_9's avatar
    Guido_Vosmeer_9
    Historic F5 Account
    quick update: it was the issue that Joe mentioned.

     

    my customer tested on 10.1 and config was synced successfully

     

     

    thanks all for the support!