Hi,
i'm trying to create and start table connid from code. here is what i did:
(i'm using syncope 1.0.0)
ConnInstanceTO connInstanceTO = new ConnInstanceTO();
connInstanceTO.setBundleName("org.connid.bundles.db.table");
connInstanceTO.addCapability(ConnectorCapability.ONE_PHASE_CREATE);
connInstanceTO.addCapability(ConnectorCapability.ONE_PHASE_UPDATE);
connInstanceTO.addCapability(ConnectorCapability.ONE_PHASE_DELETE);
connInstanceTO.addCapability(ConnectorCapability.SEARCH);
connInstanceTO.addCapability(ConnectorCapability.SYNC);
Set<ConnConfProperty> confs = new HashSet<ConnConfProperty>();
... filing ConnConfProperty's for table and adding to the confs variable.
connInstanceTO.setConfiguration(filterProperties(confs));
connInstanceTO.setConnectorName(boundle.getConnectorName());
connInstanceTO.setVersion(boundle.getVersion());
ConnInstance connInstance =
connInstanceDataBinder.getConnInstance(connInstanceTO);
connInstance = connInstanceDAO.save(connInstance);
// conninstance successfully inserets into DB
// later in the code
// if i try
Set<ConnConfProperty> configuration = connInstance.getConfiguration();
// or create and save resourceTO
// throws exception!
com.thoughtworks.xstream.converters.ConversionException: name argument
cannot be null : name argument cannot be null
---- Debugging information ----
message : name argument cannot be null
cause-exception : java.lang.IllegalArgumentException
cause-message : name argument cannot be null
class : java.util.HashSet
required-type : ch.qos.logback.classic.Logger
path : /set/org.apache.syncope.types.ConnConfProperty/logger
line number : 3
-------------------------------
any idea ?
Best Regards,
Adi