dimanche 11 mars 2018

WARN [http-nio-9090-exec-4] util.SystemLogger - [G00005] unsupported behavior

When I test the code, it occurs the error below:

2018-03-12 11:11:41,494 WARN [http-nio-9090-exec-10] util.SystemLogger (SystemLogger.java:87) - [G00005] - Unsupported behavior expection.ServiceException: [G00005] - Unsupported behavior at SystemOperationAdminServiceImpl.systemServiceStatus(SystemOperationAdminServiceImpl.java:111) ~[classes/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_65] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_65] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_65] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_65] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302) ~[spring-aop-4.2.6.RELEASE.jar:4.2.6.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) ~[spring-aop-4.2.6.RELEASE.jar:4.2.6.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) ~[spring-aop-4.2.6.RELEASE.jar:4.2.6.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) ~[spring-tx-4.2.6.RELEASE.jar:4.2.6.RELEASE] at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) ~[spring-tx-4.2.6.RELEASE.jar:4.2.6.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) ~[spring-tx-4.2.6.RELEASE.jar:4.2.6.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) ~[spring-aop-4.2.6.RELEASE.jar:4.2.6.RELEASE] at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) ~[spring-aop-4.2.6.RELEASE.jar:4.2.6.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) ~[spring-aop-4.2.6.RELEASE.jar:4.2.6.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208) ~[spring-aop-4.2.6.RELEASE.jar:4.2.6.RELEASE] at com.sun.proxy.$Proxy216.systemServiceStatus(Unknown Source) ~[?:?] at SystemOperationBizDelegate.systemServiceStatus(SystemOperationBizDelegate.java:91) [classes/:?] at SystemStatusAction.systemStatusSwitch(SystemStatusAction.java:117) [classes/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_65] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_65] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_65] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_65] at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:892) [ognl-3.1.8.jar:?] at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1537) [ognl-3.1.8.jar:?] at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68) [ognl-3.1.8.jar:?] at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInfo(XWorkMethodAccessor.java:96) [struts2-core-2.5.1.jar:2.5.1] at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethod(XWorkMethodAccessor.java:88) [struts2-core-2.5.1.jar:2.5.1] at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1613) [ognl-3.1.8.jar:?] at ognl.ASTMethod.getValueBody(ASTMethod.java:91) [ognl-3.1.8.jar:?] at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212) [ognl-3.1.8.jar:?] at ognl.SimpleNode.getValue(SimpleNode.java:258) [ognl-3.1.8.jar:?] at ognl.Ognl.getValue(Ognl.java:494) [ognl-3.1.8.jar:?] at ognl.Ognl.getValue(Ognl.java:458) [ognl-3.1.8.jar:?] at com.opensymphony.xwork2.ognl.OgnlUtil$3.execute(OgnlUtil.java:351) [struts2-core-2.5.1.jar:2.5.1] at com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecuteMethod(OgnlUtil.java:403) [struts2-core-2.5.1.jar:2.5.1] at com.opensymphony.xwork2.ognl.OgnlUtil.callMethod(OgnlUtil.java:349) [struts2-core-2.5.1.jar:2.5.1] at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:422) [struts2-core-2.5.1.jar:2.5.1] at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:284) [struts2-core-2.5.1.jar:2.5.1] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) [struts2-core-2.5.1.jar:2.5.1] at com.iaspec.ecfps.boa.web.action.SessionInterceptor.intercept(SessionInterceptor.java:144) [classes/:?] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:240) [struts2-core-2.5.1.jar:2.5.1] at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:252) [struts2-core-2.5.1.jar:2.5.1] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:240) [struts2-core-2.5.1.jar:2.5.1] at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176) [struts2-core-2.5.1.jar:2.5.1] at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:97) [struts2-core-2.5.1.jar:2.5.1] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:240) [struts2-core-2.5.1.jar:2.5.1] at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:260) [struts2-core-2.5.1.jar:2.5.1] at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:69) [struts2-core-2.5.1.jar:2.5.1] at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:97) [struts2-core-2.5.1.jar:2.5.1] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:240) [struts2-core-2.5.1.jar:2.5.1] at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:133) [struts2-core-2.5.1.jar:2.5.1] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:240) [struts2-core-2.5.1.jar:2.5.1] at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:133) [struts2-core-2.5.1.jar:2.5.1] at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:97) [struts2-core-2.5.1.jar:2.5.1] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:240) [struts2-core-2.5.1.jar:2.5.1] at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:133) [struts2-core-2.5.1.jar:2.5.1] at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:97) [struts2-core-2.5.1.jar:2.5.1] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:240) [struts2-core-2.5.1.jar:2.5.1] at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:188) [struts2-core-2.5.1.jar:2.5.1] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:240) [struts2-core-2.5.1.jar:2.5.1]

SystemOperationAdminServiceImpl.systemServiceStatus(SystemOperationAdminServiceImpl.java:111):

public void systemServiceStatus(String serviceName, boolean start, String connectFrom) throws ServiceException {

    SystemLogger.debug("SystemOperationAdminService.systemServiceStatus#start - serviceName = {0}, serviceStatus = {1}, connectFrom = {2}", serviceName, start, connectFrom);

    ServiceStatusResult res;

    if (org.apache.commons.lang3.StringUtils.equals(serviceName, AppConstants.CORE_BANK_INTERFACE_SERVICE)) {

        CorebankServiceStatus coreBank = new CorebankServiceStatus();
        ServiceStatusEnum status = start? ServiceStatusEnum.START: ServiceStatusEnum.STOP;
        coreBank.setServiceStatus(status);

        res = systemStatusApi.setCorebankServiceStatusUsingPOST(AppConstants.SYSTEM_ID, coreBank);//

        if (!ResponseStatus.ERROR.equals(res.getStatus()) && ServiceStatusEnum.START == status)
            return;

        List<ErrorWarningDTO> errors = res.getErrors();
        if (errors != null && errors.size() > 0) {
            throw new ServiceException(errors.get(0).getCode(), errors.get(0).getDesc());////line 111
        }

        throw new ServiceException(CodeConstants.ERROR_UNCLASSIFIED_EXCEPTION, "Undefined Error", ServiceException.LogLevel.WARNING);

}

SystemOperationBizDelegate.systemServiceStatus(SystemOperationBizDelegate.java:91) [classes/:?]:

public ResultDTO systemServiceStatus(String serviceName, boolean start, SessionDTO session, String connectFrom) {

    SystemLogger.debug("SystemOperationBizDelegate.systemServiceStatus#start - connectFrom=[{0}], serviceName=[{1}], start=[{2}]", connectFrom, serviceName, start);

    ResultDTO result = new ResultDTO();

    try {
        systemOperationAdminService.systemServiceStatus(serviceName, start, connectFrom);////line 91

        result.setStatus(ResultStatus.SUCCESS);

    } catch (ServiceException se) {
        this.defaultServiceExceptionHandle(result, se);
    } catch (Throwable t) {
        this.defaultThrowableHandle(result, t);
    }finally{
        if(result.getStatus() == ResultStatus.SUCCESS){
            loggingService.logActivity(session.getAdminId(), session.getAdminName(), "", ActivityLogConstants.MODULE_SYS_OPERATION, ActivityLogConstants.ACT_UPDATE, ActivityLogConstants.RESULT_SUCCESS, 
                    "",
                    "");// TODO
        }
        else
            loggingService.logActivity(session.getAdminId(), session.getAdminName(), "", ActivityLogConstants.MODULE_SYS_OPERATION, ActivityLogConstants.ACT_UPDATE, ActivityLogConstants.RESULT_FAIL,
                    result.getErrorCode(), "");// TODO

        SystemLogger.debug("SystemOperationBizDelegate.systemServiceStatus#end - connectFrom=[{0}], serviceName=[{1}], start=[{2}]", connectFrom, serviceName, start);
    }

    return result;
}

SystemStatusAction.systemStatusSwitch(SystemStatusAction.java:117) [classes/:?]:

public String systemStatusSwitch() throws InterruptedException {

    String serviceName = this.getParameterValue("serviceName");
    String startStr = this.getParameterValue("startStr");

    boolean start = false;
    if (startStr.equals("true")) {
        start = true;
    }else if (startStr.equals("false")) {
        start = false;
    }
    String ipAddress = this.getIpAddress();

    SessionDTO session = (SessionDTO) this.sessionObjects.get(AppConstants.SESSION_KEY_SESSION);

    if(WebLogger.isDebugEnabled())
        WebLogger.debug("SystemStatusAction.systemServiceStatus#start - "
                + "ipAddress=[{0}], serviceName=[{1}], start=[{2}]", 
                ipAddress,serviceName,start);

    try {
        if(StringUtils.isEmpty(serviceName))
        throw new ServiceException(CodeConstants.ERROR_PARAMETER_IMPERFECT, "Missing service name", ServiceException.LogLevel.INFO);

        // use constant as service name define it AppConstant
        ResultDTO result = systemOperationBizDelegate.systemServiceStatus(serviceName, start, session, ipAddress);///line 117

        this.processResultDTO(result);
        return SUCCESS;

    } catch (Exception e) {
        return this.submitException(e);
    } finally {
        if(WebLogger.isDebugEnabled())
            WebLogger.debug("SystemStatusAction.systemServiceStatus#end - "
                    + "success={0}, error={1}, total={2}, rows.count={3}",
                    success, error, total, rows == null ? 0 : rows.size());

        SystemLogger.debug("SystemStatusAction.systemServiceStatus#end - "
                + "success={0}, error={1}, total={2}, rows.count={3}",
                success, error, total, rows == null ? 0 : rows.size());
    }

}

Aucun commentaire:

Enregistrer un commentaire