|
Lines 1499-1505
Link Here
|
| 1499 |
|
1499 |
|
| 1500 |
} |
1500 |
} |
| 1501 |
|
1501 |
|
| 1502 |
TPTP_LOG_PARSE_MSG1("XML/DOM Exception occurred while parsing plugin config file \"%s\"\n", (XMLfilename?XMLfilename:"null")); |
1502 |
TPTP_LOG_PARSE_MSG1("XML/DOM Exception occurred while parsing plugin config file \"%s\"", (XMLfilename?XMLfilename:"null")); |
| 1503 |
return -1; |
1503 |
return -1; |
| 1504 |
} |
1504 |
} |
| 1505 |
catch (const XMLException& error) |
1505 |
catch (const XMLException& error) |
|
Lines 1507-1518
Link Here
|
| 1507 |
char *errmesg = XMLString::transcode(error.getMessage()); |
1507 |
char *errmesg = XMLString::transcode(error.getMessage()); |
| 1508 |
TPTP_LOG_PARSE_MSG2("XML Exception: %s (at line %d)", errmesg, error.getSrcLine()); |
1508 |
TPTP_LOG_PARSE_MSG2("XML Exception: %s (at line %d)", errmesg, error.getSrcLine()); |
| 1509 |
XMLString::release(&errmesg); |
1509 |
XMLString::release(&errmesg); |
| 1510 |
TPTP_LOG_PARSE_MSG1("XML Exception occurred while parsing plugin config file \"%s\"\n", (XMLfilename?XMLfilename:"null")); |
1510 |
TPTP_LOG_PARSE_MSG1("XML Exception occurred while parsing plugin config file \"%s\"", (XMLfilename?XMLfilename:"null")); |
| 1511 |
return -1; |
1511 |
return -1; |
| 1512 |
} |
1512 |
} |
| 1513 |
catch(...) |
1513 |
catch(...) |
| 1514 |
{ |
1514 |
{ |
| 1515 |
TPTP_LOG_PARSE_MSG1("Unexpected exception occurred while parsing plugin config file \"%s\"\n", (XMLfilename?XMLfilename:"null")); |
1515 |
TPTP_LOG_PARSE_MSG1("Unexpected exception occurred while parsing plugin config file \"%s\"", (XMLfilename?XMLfilename:"null")); |
| 1516 |
return -1; |
1516 |
return -1; |
| 1517 |
} |
1517 |
} |
| 1518 |
} |
1518 |
} |
|
Lines 1942-1948
Link Here
|
| 1942 |
|
1942 |
|
| 1943 |
} |
1943 |
} |
| 1944 |
|
1944 |
|
| 1945 |
TPTP_LOG_PARSE_MSG1("XML/DOM Exception occurred while parsing AC config file \"%s\"\n", (acConfigFile?acConfigFile:"null")); |
1945 |
TPTP_LOG_PARSE_MSG1("XML/DOM Exception occurred while parsing AC config file \"%s\"", (acConfigFile?acConfigFile:"null")); |
| 1946 |
return -1; |
1946 |
return -1; |
| 1947 |
} |
1947 |
} |
| 1948 |
catch (const XMLException& error) |
1948 |
catch (const XMLException& error) |
|
Lines 1950-1961
Link Here
|
| 1950 |
char *errmesg = XMLString::transcode(error.getMessage()); |
1950 |
char *errmesg = XMLString::transcode(error.getMessage()); |
| 1951 |
TPTP_LOG_PARSE_MSG2("XML Exception: %s (at line %d)", errmesg, error.getSrcLine()); |
1951 |
TPTP_LOG_PARSE_MSG2("XML Exception: %s (at line %d)", errmesg, error.getSrcLine()); |
| 1952 |
XMLString::release(&errmesg); |
1952 |
XMLString::release(&errmesg); |
| 1953 |
printf("XML Exception occurred while parsing AC config file \"%s\"\n", (acConfigFile?acConfigFile:"null")); |
1953 |
printf("XML Exception occurred while parsing AC config file \"%s\"", (acConfigFile?acConfigFile:"null")); |
| 1954 |
return -1; |
1954 |
return -1; |
| 1955 |
} |
1955 |
} |
| 1956 |
catch(...) |
1956 |
catch(...) |
| 1957 |
{ |
1957 |
{ |
| 1958 |
TPTP_LOG_PARSE_MSG1("Unexpected exception occurred while parsing AC config file \"%s\"\n", (acConfigFile?acConfigFile:"null")); |
1958 |
TPTP_LOG_PARSE_MSG1("Unexpected exception occurred while parsing AC config file \"%s\"", (acConfigFile?acConfigFile:"null")); |
| 1959 |
return -1; |
1959 |
return -1; |
| 1960 |
} |
1960 |
} |
| 1961 |
} |
1961 |
} |
|
Lines 2295-2301
Link Here
|
| 2295 |
|
2295 |
|
| 2296 |
} |
2296 |
} |
| 2297 |
|
2297 |
|
| 2298 |
TPTP_LOG_PARSE_MSG1("XML/DOM Exception occurred while parsing agent metadata in file \"%s\"\n", (agentConfigFileName?agentConfigFileName:"null")); |
2298 |
TPTP_LOG_PARSE_MSG1("XML/DOM Exception occurred while parsing agent metadata in file \"%s\"", (agentConfigFileName?agentConfigFileName:"null")); |
| 2299 |
return -1; |
2299 |
return -1; |
| 2300 |
} |
2300 |
} |
| 2301 |
catch (const XMLException& error) |
2301 |
catch (const XMLException& error) |
|
Lines 2303-2314
Link Here
|
| 2303 |
char *errmesg = XMLString::transcode(error.getMessage()); |
2303 |
char *errmesg = XMLString::transcode(error.getMessage()); |
| 2304 |
TPTP_LOG_PARSE_MSG2("XML Exception: %s (at line %d)", errmesg, error.getSrcLine()); |
2304 |
TPTP_LOG_PARSE_MSG2("XML Exception: %s (at line %d)", errmesg, error.getSrcLine()); |
| 2305 |
XMLString::release(&errmesg); |
2305 |
XMLString::release(&errmesg); |
| 2306 |
TPTP_LOG_PARSE_MSG1("XML Exception occurred while parsing agent metadata in file \"%s\"\n", (agentConfigFileName?agentConfigFileName:"null")); |
2306 |
TPTP_LOG_PARSE_MSG1("XML Exception occurred while parsing agent metadata in file \"%s\"", (agentConfigFileName?agentConfigFileName:"null")); |
| 2307 |
return -1; |
2307 |
return -1; |
| 2308 |
} |
2308 |
} |
| 2309 |
catch(...) |
2309 |
catch(...) |
| 2310 |
{ |
2310 |
{ |
| 2311 |
TPTP_LOG_PARSE_MSG1("Unexpected exception occurred while parsing agent metadata in file \"%s\"\n", (agentConfigFileName?agentConfigFileName:"null")); |
2311 |
TPTP_LOG_PARSE_MSG1("Unexpected exception occurred while parsing agent metadata in file \"%s\"", (agentConfigFileName?agentConfigFileName:"null")); |
| 2312 |
return -1; |
2312 |
return -1; |
| 2313 |
} |
2313 |
} |
| 2314 |
} |
2314 |
} |
|
Lines 2683-2689
Link Here
|
| 2683 |
|
2683 |
|
| 2684 |
} |
2684 |
} |
| 2685 |
|
2685 |
|
| 2686 |
TPTP_LOG_PARSE_MSG1("XML/DOM Exception occurred while parsing Application string \"%s\"\n", (applicationString?applicationString:"null")); |
2686 |
TPTP_LOG_PARSE_MSG1("XML/DOM Exception occurred while parsing Application string \"%s\"", (applicationString?applicationString:"null")); |
| 2687 |
return -1; |
2687 |
return -1; |
| 2688 |
} |
2688 |
} |
| 2689 |
catch (const XMLException& error) |
2689 |
catch (const XMLException& error) |
|
Lines 2691-2702
Link Here
|
| 2691 |
char *errmesg = XMLString::transcode(error.getMessage()); |
2691 |
char *errmesg = XMLString::transcode(error.getMessage()); |
| 2692 |
TPTP_LOG_PARSE_MSG2("XML Exception: %s (at line %d)", errmesg, error.getSrcLine()); |
2692 |
TPTP_LOG_PARSE_MSG2("XML Exception: %s (at line %d)", errmesg, error.getSrcLine()); |
| 2693 |
XMLString::release(&errmesg); |
2693 |
XMLString::release(&errmesg); |
| 2694 |
TPTP_LOG_PARSE_MSG1("XML Exception occurred while parsing Application string \"%s\"\n", (applicationString?applicationString:"null")); |
2694 |
TPTP_LOG_PARSE_MSG1("XML Exception occurred while parsing Application string \"%s\"", (applicationString?applicationString:"null")); |
| 2695 |
return -1; |
2695 |
return -1; |
| 2696 |
} |
2696 |
} |
| 2697 |
catch(...) |
2697 |
catch(...) |
| 2698 |
{ |
2698 |
{ |
| 2699 |
TPTP_LOG_PARSE_MSG1("Unexpected exception occurred while parsing Application string \"%s\"\n", (applicationString?applicationString:"null")); |
2699 |
TPTP_LOG_PARSE_MSG1("Unexpected exception occurred while parsing Application string \"%s\"", (applicationString?applicationString:"null")); |
| 2700 |
return -1; |
2700 |
return -1; |
| 2701 |
} |
2701 |
} |
| 2702 |
} |
2702 |
} |
|
Lines 3038-3044
Link Here
|
| 3038 |
|
3038 |
|
| 3039 |
} |
3039 |
} |
| 3040 |
|
3040 |
|
| 3041 |
TPTP_LOG_PARSE_MSG1("XML/DOM Exception occurred while parsing ApplicationAliases string \"%s\"\n", (applicationString?applicationString:"null")); |
3041 |
TPTP_LOG_PARSE_MSG1("XML/DOM Exception occurred while parsing ApplicationAliases string \"%s\"", (applicationString?applicationString:"null")); |
| 3042 |
return -1; |
3042 |
return -1; |
| 3043 |
} |
3043 |
} |
| 3044 |
catch (const XMLException& error) |
3044 |
catch (const XMLException& error) |
|
Lines 3046-3057
Link Here
|
| 3046 |
char *errmesg = XMLString::transcode(error.getMessage()); |
3046 |
char *errmesg = XMLString::transcode(error.getMessage()); |
| 3047 |
TPTP_LOG_PARSE_MSG2("XML Exception: %s (at line %d)", errmesg, error.getSrcLine()); |
3047 |
TPTP_LOG_PARSE_MSG2("XML Exception: %s (at line %d)", errmesg, error.getSrcLine()); |
| 3048 |
XMLString::release(&errmesg); |
3048 |
XMLString::release(&errmesg); |
| 3049 |
TPTP_LOG_PARSE_MSG1("XML Exception occurred while parsing ApplicationAliases string \"%s\"\n", (applicationString?applicationString:"null")); |
3049 |
TPTP_LOG_PARSE_MSG1("XML Exception occurred while parsing ApplicationAliases string \"%s\"", (applicationString?applicationString:"null")); |
| 3050 |
return -1; |
3050 |
return -1; |
| 3051 |
} |
3051 |
} |
| 3052 |
catch(...) |
3052 |
catch(...) |
| 3053 |
{ |
3053 |
{ |
| 3054 |
TPTP_LOG_PARSE_MSG1("Unexpected exception occurred while parsing ApplicationAliases string \"%s\"\n", (applicationString?applicationString:"null")); |
3054 |
TPTP_LOG_PARSE_MSG1("Unexpected exception occurred while parsing ApplicationAliases string \"%s\"", (applicationString?applicationString:"null")); |
| 3055 |
return -1; |
3055 |
return -1; |
| 3056 |
} |
3056 |
} |
| 3057 |
} |
3057 |
} |
|
Lines 3714-3721
Link Here
|
| 3714 |
strcpy(customData->name, gchnodename); |
3714 |
strcpy(customData->name, gchnodename); |
| 3715 |
customData->value = temp; |
3715 |
customData->value = temp; |
| 3716 |
tptp_list_add(&agentCustomDataList, (void *)customData); |
3716 |
tptp_list_add(&agentCustomDataList, (void *)customData); |
| 3717 |
TPTP_LOG_DEBUG_MSG1(pAgent, "Custom Node Name - %s\n", customData->name); |
3717 |
TPTP_LOG_DEBUG_MSG1(pAgent, "Custom Node Name - %s", customData->name); |
| 3718 |
TPTP_LOG_DEBUG_MSG1(pAgent, "Custom Node Value - %s\n", customData->value); |
3718 |
TPTP_LOG_DEBUG_MSG1(pAgent, "Custom Node Value - %s", customData->value); |
| 3719 |
|
3719 |
|
| 3720 |
XMLString::release(&gchnodename); |
3720 |
XMLString::release(&gchnodename); |
| 3721 |
} |
3721 |
} |
|
Lines 3750-3756
Link Here
|
| 3750 |
|
3750 |
|
| 3751 |
} |
3751 |
} |
| 3752 |
|
3752 |
|
| 3753 |
TPTP_LOG_PARSE_MSG1("XML/DOM Exception occurred while parsing AgentConfig file \"%s\"\n", (agentConfigFileName?agentConfigFileName:"null")); |
3753 |
TPTP_LOG_PARSE_MSG1("XML/DOM Exception occurred while parsing AgentConfig file \"%s\"", (agentConfigFileName?agentConfigFileName:"null")); |
| 3754 |
return -1; |
3754 |
return -1; |
| 3755 |
} |
3755 |
} |
| 3756 |
catch (const XMLException& error) |
3756 |
catch (const XMLException& error) |
|
Lines 3758-3769
Link Here
|
| 3758 |
char *errmesg = XMLString::transcode(error.getMessage()); |
3758 |
char *errmesg = XMLString::transcode(error.getMessage()); |
| 3759 |
TPTP_LOG_PARSE_MSG2("XML Exception: %s (at line %d)", errmesg, error.getSrcLine()); |
3759 |
TPTP_LOG_PARSE_MSG2("XML Exception: %s (at line %d)", errmesg, error.getSrcLine()); |
| 3760 |
XMLString::release(&errmesg); |
3760 |
XMLString::release(&errmesg); |
| 3761 |
TPTP_LOG_PARSE_MSG1("XML Exception occurred while parsing AgentConfig file \"%s\"\n", (agentConfigFileName?agentConfigFileName:"null")); |
3761 |
TPTP_LOG_PARSE_MSG1("XML Exception occurred while parsing AgentConfig file \"%s\"", (agentConfigFileName?agentConfigFileName:"null")); |
| 3762 |
return -1; |
3762 |
return -1; |
| 3763 |
} |
3763 |
} |
| 3764 |
catch(...) |
3764 |
catch(...) |
| 3765 |
{ |
3765 |
{ |
| 3766 |
TPTP_LOG_PARSE_MSG1("Unexpected exception occurred while parsing AgentConfig file \"%s\"\n", (agentConfigFileName?agentConfigFileName:"null")); |
3766 |
TPTP_LOG_PARSE_MSG1("Unexpected exception occurred while parsing AgentConfig file \"%s\"", (agentConfigFileName?agentConfigFileName:"null")); |
| 3767 |
return -1; |
3767 |
return -1; |
| 3768 |
} |
3768 |
} |
| 3769 |
}*/ |
3769 |
}*/ |