Changeset 33
- Timestamp:
- Sep 27, 2010, 10:24:50 PM (14 years ago)
- Location:
- trunk/zoo-kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-kernel/service_internal.c
r32 r33 1546 1546 map * errormap = createMap("text","Unable to fetch any result"); 1547 1547 addToMap(errormap,"code", "InternalError"); 1548 fprintf(stderr,"DISPLAY ERROR MESSAGE !!!\n");1549 1548 printExceptionReportResponse(m,errormap); 1550 1549 freeMap(&errormap); … … 1591 1590 errormap = createMap("text",tmp); 1592 1591 addToMap(errormap,"code", "InternalError"); 1593 fprintf(stderr,"DISPLAY ERROR MSG !!!!\n");1594 1592 printExceptionReportResponse(m,errormap); 1595 1593 freeMap(&errormap); -
trunk/zoo-kernel/zoo_service_loader.c
r32 r33 44 44 #include "service.h" 45 45 #include "service_internal.h" 46 47 #ifdef USE_PYTHON 46 48 #include "service_internal_python.h" 49 #endif 47 50 48 51 #ifdef USE_JAVA … … 1607 1610 } 1608 1611 } 1609 else{ 1612 else 1613 #ifdef USE_PYTHON 1610 1614 if(strncasecmp(r_inputs->value,"PYTHON",6)==0){ 1611 1615 eres=zoo_python_support(&m,request_inputs,s1,&request_input_real_format,&request_output_real_format); 1612 1616 } 1613 1617 else 1618 #endif 1614 1619 1615 1620 #ifdef USE_JAVA … … 1626 1631 else 1627 1632 #endif 1628 1629 1633 1634 1630 1635 #ifdef USE_PERL 1631 1636 if(strncasecmp(r_inputs->value,"PERL",4)==0){ … … 1648 1653 return(-1); 1649 1654 } 1650 } 1651 } 1655 } 1652 1656 else{ 1653 1657 … … 1829 1833 exit(1); 1830 1834 } 1831 } else{ 1832 if(strncasecmp(r_inputs->value,"PYTHON",6)==0){ 1835 } 1836 else 1837 #ifdef USE_PYTHON 1838 if(strncasecmp(r_inputs->value,"PYTHON",6)==0) 1833 1839 eres=zoo_python_support(&m,request_inputs,s1,&request_input_real_format,&request_output_real_format); 1834 }1835 1840 else 1836 1841 #endif 1837 1842 #ifdef USE_JAVA 1838 1843 if(strncasecmp(r_inputs->value,"JAVA",4)==0){ 1839 1844 eres=zoo_java_support(&m,request_inputs,s1,&request_input_real_format,&request_output_real_format); 1840 }1845 } 1841 1846 else 1842 1847 #endif … … 1850 1855 1851 1856 #ifdef USE_PERL 1852 if(strncasecmp(r_inputs->value,"PERL",4)==0){ 1853 eres=zoo_perl_support(&m,request_inputs,s1,&request_input_real_format,&request_output_real_format); 1854 } 1855 else 1856 #endif 1857 #ifdef USE_JS 1858 if(strncasecmp(r_inputs->value,"JS",2)==0){ 1859 eres=zoo_js_support(&m,request_inputs,s1,&request_input_real_format,&request_output_real_format); 1857 if(strncasecmp(r_inputs->value,"PERL",4)==0){ 1858 eres=zoo_perl_support(&m,request_inputs,s1,&request_input_real_format,&request_output_real_format); 1860 1859 } 1861 1860 else 1862 1861 #endif 1863 { 1864 char tmpv[1024]; 1865 sprintf(tmpv,"Programming Language (%s) set in ZCFG file is not currently supported by ZOO Kernel.\n",r_inputs->value); 1866 map* tmps=createMap("text",tmpv); 1867 printExceptionReportResponse(m,tmps); 1868 return -1; 1862 #ifdef USE_JS 1863 if(strncasecmp(r_inputs->value,"JS",2)==0){ 1864 eres=zoo_js_support(&m,request_inputs,s1,&request_input_real_format,&request_output_real_format); 1869 1865 } 1870 } 1866 else 1867 #endif 1868 { 1869 char tmpv[1024]; 1870 sprintf(tmpv,"Programming Language (%s) set in ZCFG file is not currently supported by ZOO Kernel.\n",r_inputs->value); 1871 map* tmps=createMap("text",tmpv); 1872 printExceptionReportResponse(m,tmps); 1873 return -1; 1874 } 1875 1871 1876 1872 1877 } else {
Note: See TracChangeset
for help on using the changeset viewer.