Skip to content
Snippets Groups Projects
Commit b6d6a89d authored by Gwenaelle ABEILLE's avatar Gwenaelle ABEILLE
Browse files

try to not hide all exceptions.

parent a6d84a36
No related branches found
No related tags found
No related merge requests found
......@@ -286,11 +286,13 @@ public class HdbExtractor extends DeviceImpl
dbProxy = new DbProxy(dbHost, dbName, dbUser, dbPassword, RacConnection);
if (!dbProxy.is_db_connected()) {
set_state(DevState.FAULT);
set_status(device_name + " : DevState.FAULT" + "\r\n" + "Historical database connection : " + "FAULT" + " (may be broken...)" + "\r\n");
set_status(device_name + " : DevState.FAULT" + "\r\n" + "Historical database connection : " + "FAULT"
+ " (may be broken...)" + "\r\n");
get_logger().error("ERROR : Database unconnected !!");
} else {
set_state(DevState.ON);
set_status(device_name + " : " + "DevState.ON" + "\r\n" + "Historical database connection : " + "OK" + "\r\n");
set_status(device_name + " : " + "DevState.ON" + "\r\n" + "Historical database connection : " + "OK"
+ "\r\n");
}
get_logger().info("Exiting init_device()");
}
......@@ -535,7 +537,8 @@ public class HdbExtractor extends DeviceImpl
// ---Add your Own code to control device here ---
try {
argout = DbUtils.toStringArray(dbProxy.getDataBase().getAttribute().getProperties().getAttPropertiesData(argin));
argout = DbUtils.toStringArray(dbProxy.getDataBase().getAttribute().getProperties()
.getAttPropertiesData(argin));
} catch (final ArchivingException e) {
throw e.toTangoException();
}
......@@ -633,7 +636,8 @@ public class HdbExtractor extends DeviceImpl
// ---Add your Own code to control device here ---
try {
argout = DbUtils.toStringArray(dbProxy.getDataBase().getAttribute().getNames().getAttributes(System.getProperty("TANGO_HOST")));
argout = DbUtils.toStringArray(dbProxy.getDataBase().getAttribute().getNames()
.getAttributes(System.getProperty("TANGO_HOST")));
} catch (final ArchivingException e) {
throw e.toTangoException();
}
......@@ -975,10 +979,12 @@ public class HdbExtractor extends DeviceImpl
// ---Add your Own code to control device here ---
if (argin.length != 2) {
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters", "HdbExtractor.get_members_by_domain_family");
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters",
"HdbExtractor.get_members_by_domain_family");
} else {
try {
argout = dbProxy.getDataBase().getAttribute().getMembers().get_members(argin[0].trim(), argin[1].trim());
argout = dbProxy.getDataBase().getAttribute().getMembers()
.get_members(argin[0].trim(), argin[1].trim());
} catch (final ArchivingException e) {
throw e.toTangoException();
}
......@@ -1005,7 +1011,8 @@ public class HdbExtractor extends DeviceImpl
// ---Add your Own code to control device here ---
if (argin.length != 2) {
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters", "HdbExtractor.get_members_by_domain_family_count");
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters",
"HdbExtractor.get_members_by_domain_family_count");
} else {
try {
argout = (short) dbProxy.getDataBase().getAttribute().getMembers().get_membersCount(argin[0], argin[1]);
......@@ -1036,10 +1043,12 @@ public class HdbExtractor extends DeviceImpl
// ---Add your Own code to control device here ---
if (argin.length != 3) {
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters", "HdbExtractor.get_attributes_by_domain_family_members_count");
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters",
"HdbExtractor.get_attributes_by_domain_family_members_count");
} else {
try {
argout = (short) dbProxy.getDataBase().getAttribute().getNames().getAttributesCount(argin[0], argin[1], argin[2]);
argout = (short) dbProxy.getDataBase().getAttribute().getNames()
.getAttributesCount(argin[0], argin[1], argin[2]);
} catch (final ArchivingException e) {
throw e.toTangoException();
}
......@@ -1121,8 +1130,10 @@ public class HdbExtractor extends DeviceImpl
}
if (argout == null || argout.length == 0) {
throw new ArchivingException("Invalid attribute: " + argin, "Invalid attribute: " + argin, ErrSeverity.WARN, "No database connection or \"" + argin
+ "\" attribute not found in database", this.getClass().getName());
throw new ArchivingException("Invalid attribute: " + argin, "Invalid attribute: " + argin,
ErrSeverity.WARN,
"No database connection or \"" + argin + "\" attribute not found in database", this.getClass()
.getName());
}
} catch (final ArchivingException e) {
throw e.toTangoException();
......@@ -1240,10 +1251,12 @@ public class HdbExtractor extends DeviceImpl
// ---Add your Own code to control device here ---
if (argin.length != 3) {
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters", "HdbExtractor.get_att_scalar_data_avg_between_dates");
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters",
"HdbExtractor.get_att_scalar_data_avg_between_dates");
} else {
try {
argout = dbProxy.getDataBase().getExtractor().getMinMaxAvgGettersBetweenDates().getAttDataAvgBetweenDates(argin);
argout = dbProxy.getDataBase().getExtractor().getMinMaxAvgGettersBetweenDates()
.getAttDataAvgBetweenDates(argin);
} catch (final ArchivingException e) {
throw e.toTangoException();
}
......@@ -1273,17 +1286,21 @@ public class HdbExtractor extends DeviceImpl
// ---Add your Own code to control device here ---
if (argin.length != 3) {
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters", "HdbExtractor.get_att_scalar_data_beetween_dates");
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters",
"HdbExtractor.get_att_scalar_data_beetween_dates");
} else {
try {
// Get data from db.
final DbData dbData = dbProxy.getDataBase().getExtractor().getDataGettersBetweenDates().getAttDataBetweenDates(argin, SamplingType.getSamplingType(SamplingType.ALL));
final DbData dbData = dbProxy.getDataBase().getExtractor().getDataGettersBetweenDates()
.getAttDataBetweenDates(argin, SamplingType.getSamplingType(SamplingType.ALL));
// Buid an attribute and gets its references
argout = add_attribute(dbData);
} catch (final ArchivingException e) {
e.printStackTrace();
throw e.toTangoException();
} catch (Exception e) {
e.printStackTrace();
}
}
get_logger().info("Exiting get_att_data_between_dates()");
......@@ -1314,18 +1331,22 @@ public class HdbExtractor extends DeviceImpl
// ---Add your Own code to control device here ---
if (argin.length != 4) {
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters", "HdbExtractor.get_att_data_between_dates_sampling");
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters",
"HdbExtractor.get_att_data_between_dates_sampling");
}
try {
samplingType = SamplingType.getSamplingTypeByLabel(argin[3]);
} catch (final IllegalArgumentException iae) {
Except.throw_exception("CONFIGURATION_ERROR", "Invalid sampling type. Valid types are ALL, SECOND, MINUTE, HOUR, or DAY", "HdbExtractor.get_att_data_between_dates_sampling");
Except.throw_exception("CONFIGURATION_ERROR",
"Invalid sampling type. Valid types are ALL, SECOND, MINUTE, HOUR, or DAY",
"HdbExtractor.get_att_data_between_dates_sampling");
}
try {
// Get data from db.
final DbData dbData = dbProxy.getDataBase().getExtractor().getDataGettersBetweenDates().getAttDataBetweenDates(argin, samplingType);
final DbData dbData = dbProxy.getDataBase().getExtractor().getDataGettersBetweenDates()
.getAttDataBetweenDates(argin, samplingType);
// Buid an attribute and gets its references
argout = add_attribute(dbData);
} catch (final ArchivingException e) {
......@@ -1356,10 +1377,12 @@ public class HdbExtractor extends DeviceImpl
// ---Add your Own code to control device here ---
if (argin.length != 3) {
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters", "HdbExtractor.get_att_scalar_data_between_dates_count");
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters",
"HdbExtractor.get_att_scalar_data_between_dates_count");
} else {
try {
argout = dbProxy.getDataBase().getExtractor().getDataGettersBetweenDates().getAttDataBetweenDatesCount(argin);
argout = dbProxy.getDataBase().getExtractor().getDataGettersBetweenDates()
.getAttDataBetweenDatesCount(argin);
} catch (final ArchivingException e) {
throw e.toTangoException();
}
......@@ -1388,11 +1411,13 @@ public class HdbExtractor extends DeviceImpl
// ---Add your Own code to control device here ---
if (argin.length != 3) {
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters", "TdbExtractor.get_att_scalar_data_inf_or_sup_than");
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters",
"TdbExtractor.get_att_scalar_data_inf_or_sup_than");
} else {
try {
// Get data from db.
final DbData dbData = dbProxy.getDataBase().getExtractor().getInfSupGetters().getAttDataInfOrSupThan(argin);
final DbData dbData = dbProxy.getDataBase().getExtractor().getInfSupGetters()
.getAttDataInfOrSupThan(argin);
// Buid an attribute and gets its references
argout = add_attribute(dbData);
} catch (final ArchivingException e) {
......@@ -1422,7 +1447,8 @@ public class HdbExtractor extends DeviceImpl
// ---Add your Own code to control device here ---
if (argin.length != 3) {
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters", "HdbExtractor.get_att_scalar_data_inf_or_sup_than_count");
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters",
"HdbExtractor.get_att_scalar_data_inf_or_sup_than_count");
} else {
try {
argout = dbProxy.getDataBase().getExtractor().getInfSupGetters().getAttDataInfOrSupThanCount(argin);
......@@ -1457,11 +1483,13 @@ public class HdbExtractor extends DeviceImpl
// ---Add your Own code to control device here ---
if (argin.length != 5) {
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters", "HdbExtractor.get_att_scalar_data_inf_or_sup_than_beetween_dates");
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters",
"HdbExtractor.get_att_scalar_data_inf_or_sup_than_beetween_dates");
} else {
try {
// Get data from db.
final DbData dbData = dbProxy.getDataBase().getExtractor().getInfSupGettersBetweenDates().getAttDataInfOrSupThanBetweenDates(argin);
final DbData dbData = dbProxy.getDataBase().getExtractor().getInfSupGettersBetweenDates()
.getAttDataInfOrSupThanBetweenDates(argin);
// Buid an attribute and gets its references
argout = add_attribute(dbData);
} catch (final ArchivingException e) {
......@@ -1494,10 +1522,12 @@ public class HdbExtractor extends DeviceImpl
// ---Add your Own code to control device here ---
if (argin.length != 5) {
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters", "HdbExtractor.get_att_scalar_data_inf_or_sup_than_between_dates_count");
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters",
"HdbExtractor.get_att_scalar_data_inf_or_sup_than_between_dates_count");
} else {
try {
argout = dbProxy.getDataBase().getExtractor().getInfSupGettersBetweenDates().getAttDataInfOrSupThanBetweenDatesCount(argin);
argout = dbProxy.getDataBase().getExtractor().getInfSupGettersBetweenDates()
.getAttDataInfOrSupThanBetweenDatesCount(argin);
} catch (final ArchivingException e) {
throw e.toTangoException();
}
......@@ -1526,7 +1556,8 @@ public class HdbExtractor extends DeviceImpl
// ---Add your Own code to control device here ---
if (argin.length != 2) {
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters", "HdbExtractor.get_att_scalar_data_inf_than");
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters",
"HdbExtractor.get_att_scalar_data_inf_than");
} else {
try {
// Get data from db.
......@@ -1559,7 +1590,8 @@ public class HdbExtractor extends DeviceImpl
// ---Add your Own code to control device here ---
if (argin.length != 2) {
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters", "HdbExtractor.get_att_scalar_data_inf_than_count");
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters",
"HdbExtractor.get_att_scalar_data_inf_than_count");
} else {
try {
argout = dbProxy.getDataBase().getExtractor().getInfSupGetters().getAttDataInfThanCount(argin);
......@@ -1593,11 +1625,13 @@ public class HdbExtractor extends DeviceImpl
// ---Add your Own code to control device here ---
if (argin.length != 4) {
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters", "HdbExtractor.get_att_scalar_data_inf_than_beetween_dates");
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters",
"HdbExtractor.get_att_scalar_data_inf_than_beetween_dates");
} else {
try {
// Get data from db.
final DbData dbData = dbProxy.getDataBase().getExtractor().getInfSupGettersBetweenDates().getAttDataInfThanBetweenDates(argin);
final DbData dbData = dbProxy.getDataBase().getExtractor().getInfSupGettersBetweenDates()
.getAttDataInfThanBetweenDates(argin);
// Buid an attribute and gets its references
argout = add_attribute(dbData);
} catch (final ArchivingException e) {
......@@ -1629,10 +1663,12 @@ public class HdbExtractor extends DeviceImpl
// ---Add your Own code to control device here ---
if (argin.length != 4) {
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters", "HdbExtractor.get_att_scalar_data_inf_than_between_dates_count");
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters",
"HdbExtractor.get_att_scalar_data_inf_than_between_dates_count");
} else {
try {
argout = dbProxy.getDataBase().getExtractor().getInfSupGettersBetweenDates().getAttDataInfThanBetweenDatesCount(argin);
argout = dbProxy.getDataBase().getExtractor().getInfSupGettersBetweenDates()
.getAttDataInfThanBetweenDatesCount(argin);
} catch (final ArchivingException e) {
throw e.toTangoException();
}
......@@ -1661,7 +1697,8 @@ public class HdbExtractor extends DeviceImpl
// ---Add your Own code to control device here ---
if (argin.length != 2) {
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters", "HdbExtractor.get_att_scalar_data_last_n");
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters",
"HdbExtractor.get_att_scalar_data_last_n");
} else {
try {
// Get data from db.
......@@ -1720,10 +1757,12 @@ public class HdbExtractor extends DeviceImpl
// ---Add your Own code to control device here ---
if (argin.length != 3) {
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters", "HdbExtractor.get_att_scalar_data_max_between_dates");
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters",
"HdbExtractor.get_att_scalar_data_max_between_dates");
} else {
try {
argout = dbProxy.getDataBase().getExtractor().getMinMaxAvgGettersBetweenDates().getAttDataMaxBetweenDates(argin);
argout = dbProxy.getDataBase().getExtractor().getMinMaxAvgGettersBetweenDates()
.getAttDataMaxBetweenDates(argin);
} catch (final ArchivingException e) {
throw e.toTangoException();
}
......@@ -1777,10 +1816,12 @@ public class HdbExtractor extends DeviceImpl
// ---Add your Own code to control device here ---
if (argin.length != 3) {
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters", "HdbExtractor.get_att_scalar_data_min_between_dates");
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters",
"HdbExtractor.get_att_scalar_data_min_between_dates");
} else {
try {
argout = dbProxy.getDataBase().getExtractor().getMinMaxAvgGettersBetweenDates().getAttDataMinBetweenDates(argin);
argout = dbProxy.getDataBase().getExtractor().getMinMaxAvgGettersBetweenDates()
.getAttDataMinBetweenDates(argin);
} catch (final ArchivingException e) {
throw e.toTangoException();
}
......@@ -1809,7 +1850,8 @@ public class HdbExtractor extends DeviceImpl
// ---Add your Own code to control device here ---
if (argin.length != 2) {
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters", "HdbExtractor.get_att_scalar_data_sup_than");
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters",
"HdbExtractor.get_att_scalar_data_sup_than");
} else {
try {
// Get data from db.
......@@ -1841,7 +1883,8 @@ public class HdbExtractor extends DeviceImpl
// ---Add your Own code to control device here ---
if (argin.length != 2) {
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters", "HdbExtractor.get_att_scalar_data_sup_than_count");
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters",
"HdbExtractor.get_att_scalar_data_sup_than_count");
} else {
try {
argout = dbProxy.getDataBase().getExtractor().getInfSupGetters().getAttDataSupThanCount(argin);
......@@ -1873,11 +1916,13 @@ public class HdbExtractor extends DeviceImpl
// ---Add your Own code to control device here ---
if (argin.length != 3) {
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters", "HdbExtractor.get_att_scalar_data_sup_and_inf_than");
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters",
"HdbExtractor.get_att_scalar_data_sup_and_inf_than");
} else {
try {
// Get data from db.
final DbData dbData = dbProxy.getDataBase().getExtractor().getInfSupGetters().getAttDataSupAndInfThan(argin);
final DbData dbData = dbProxy.getDataBase().getExtractor().getInfSupGetters()
.getAttDataSupAndInfThan(argin);
// Buid an attribute and gets its references
argout = add_attribute(dbData);
} catch (final ArchivingException e) {
......@@ -1906,7 +1951,8 @@ public class HdbExtractor extends DeviceImpl
// ---Add your Own code to control device here ---
if (argin.length != 3) {
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters", "HdbExtractor.get_att_scalar_data_sup_and_inf_than_count");
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters",
"HdbExtractor.get_att_scalar_data_sup_and_inf_than_count");
} else {
try {
argout = dbProxy.getDataBase().getExtractor().getInfSupGetters().getAttDataSupAndInfThanCount(argin);
......@@ -1941,11 +1987,13 @@ public class HdbExtractor extends DeviceImpl
// ---Add your Own code to control device here ---
if (argin.length != 5) {
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters", "HdbExtractor.get_att_scalar_data_sup_and_inf_than_beetween_dates");
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters",
"HdbExtractor.get_att_scalar_data_sup_and_inf_than_beetween_dates");
} else {
try {
// Get data from db.
final DbData dbData = dbProxy.getDataBase().getExtractor().getInfSupGettersBetweenDates().getAttDataSupAndInfThanBetweenDates(argin);
final DbData dbData = dbProxy.getDataBase().getExtractor().getInfSupGettersBetweenDates()
.getAttDataSupAndInfThanBetweenDates(argin);
// Buid an attribute and gets its references
argout = add_attribute(dbData);
} catch (final ArchivingException e) {
......@@ -1977,10 +2025,12 @@ public class HdbExtractor extends DeviceImpl
// ---Add your Own code to control device here ---
if (argin.length != 5) {
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters", "HdbExtractor.get_att_scalar_data_sup_and_inf_than_between_dates_count");
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters",
"HdbExtractor.get_att_scalar_data_sup_and_inf_than_between_dates_count");
} else {
try {
argout = dbProxy.getDataBase().getExtractor().getInfSupGettersBetweenDates().getAttDataSupAndInfThanBetweenDatesCount(argin);
argout = dbProxy.getDataBase().getExtractor().getInfSupGettersBetweenDates()
.getAttDataSupAndInfThanBetweenDatesCount(argin);
} catch (final ArchivingException e) {
throw e.toTangoException();
}
......@@ -2011,11 +2061,13 @@ public class HdbExtractor extends DeviceImpl
// ---Add your Own code to control device here ---
if (argin.length != 4) {
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters", "HdbExtractor.get_att_scalar_data_sup_than_beetween_dates");
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters",
"HdbExtractor.get_att_scalar_data_sup_than_beetween_dates");
} else {
try {
// Get data from db.
final DbData dbData = dbProxy.getDataBase().getExtractor().getInfSupGettersBetweenDates().getAttDataSupThanBetweenDates(argin);
final DbData dbData = dbProxy.getDataBase().getExtractor().getInfSupGettersBetweenDates()
.getAttDataSupThanBetweenDates(argin);
// Buid an attribute and gets its references
argout = add_attribute(dbData);
} catch (final ArchivingException e) {
......@@ -2047,10 +2099,12 @@ public class HdbExtractor extends DeviceImpl
// ---Add your Own code to control device here ---
if (argin.length != 4) {
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters", "HdbExtractor.get_att_scalar_data_sup_than_between_dates_count");
Except.throw_exception("CONFIGURATION_ERROR", "Wrong number of parameters",
"HdbExtractor.get_att_scalar_data_sup_than_between_dates_count");
} else {
try {
argout = dbProxy.getDataBase().getExtractor().getInfSupGettersBetweenDates().getAttDataSupThanBetweenDatesCount(argin);
argout = dbProxy.getDataBase().getExtractor().getInfSupGettersBetweenDates()
.getAttDataSupThanBetweenDatesCount(argin);
} catch (final ArchivingException e) {
throw e.toTangoException();
}
......@@ -2117,7 +2171,6 @@ public class HdbExtractor extends DeviceImpl
}
private DevVarLongStringArray add_attribute(final DbData dbData) throws DevFailed, ArchivingException {
try {
if (dbData.getData_timed() == null || dbData.getData_timed().length == 0) {
// String message = "Can't create the dynamic attribute!";
// String reason = "The data is empty.";
......@@ -2134,7 +2187,8 @@ public class HdbExtractor extends DeviceImpl
DevVarLongStringArray argout = new DevVarLongStringArray();
final boolean _2value = dbData.getWritable() == AttrWriteType._READ_WITH_WRITE || dbData.getWritable() == AttrWriteType._READ_WRITE ? true : false;
final boolean _2value = dbData.getWritable() == AttrWriteType._READ_WITH_WRITE
|| dbData.getWritable() == AttrWriteType._READ_WRITE ? true : false;
String random_name_1 = "", random_name_2 = "";
String[] names;
// Build new Attribute's name
......@@ -2231,15 +2285,20 @@ public class HdbExtractor extends DeviceImpl
}
// And fill buffer with database's data
try {
if (_2value) {
final DbData[] dbDatas = dbData.splitDbData();
tg_1.fill_attr_polling_buffer(this, random_name_1, dbDatas[0].getDataAsTimedAttrData());
tg_2.fill_attr_polling_buffer(this, random_name_2, dbDatas[1].getDataAsTimedAttrData());
} else {
tg_1.fill_attr_polling_buffer(this, random_name_1, dbData.getDataAsTimedAttrData());
}
} catch (Exception e) {
// FIXME java.lang.ArrayIndexOutOfBoundsException thrown when some
// data are empty.
e.printStackTrace();
System.out.println("ERROR when filling data polling buffer, may be empty");
}
argout = new DevVarLongStringArray();
argout.lvalue = new int[1];
......@@ -2256,11 +2315,7 @@ public class HdbExtractor extends DeviceImpl
}
return argout;
} catch (final Exception e) {
System.out.println("CLA/dsssssssssssssssss");
e.printStackTrace();
}
return null;
}
// ===================================================================
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment