Vaadin异常:无法在com.vaadin.shared.ui.ui.UIServerRpc中找到带0参数的方法确认

时间:2017-03-06 10:04:52

标签: java vaadin

我将vaadin版本升级到7.7.7,我有时会遇到错误

private void extractMerchantNameFromSMS(){
    try{
        String mMessage= "Dear Customer, You have made a Debit Card purchase of INR1,600.00 on 30 Jan. Info.VPS*AGGARWAL SH.";
        Pattern regEx = Pattern.compile("(?i)(?:\\sInfo.\\s*)([A-Za-z0-9*]*\\s?-?\\s?[A-Za-z0-9*]*\\s?-?\\.?)");
        // Find instance of pattern matches
        Matcher m = regEx.matcher(mMessage);
        if(m.find()){
            String mMerchantName = m.group();
            mMerchantName = mMerchantName.replaceAll("^\\s+|\\s+$", "");//trim from start and end
            mMerchantName = mMerchantName.replace("Info.","");
            FileLog.e(TAG, "MERCHANT NAME : "+mMerchantName);
        }else{
            FileLog.e(TAG, "MATCH NOTFOUND");
        }
    }catch(Exception e){
        FileLog.e(TAG, e.toString());
    }
}

我检查了源代码,7.7.0中的UIServerRpc接口提供了以下方法,7.7.7中没有。

{{1}}

这是一个vaadin错误吗?或者,这可能是我的代码有问题吗?

1 个答案:

答案 0 :(得分:0)

问题的原因是忘记将vaadin-maven-plugin版本升级到7.7.7。因此,使用旧的vaadin版本编译的widgetset一直使用不同的方法签名,该签名已在vaadin 7.7.7中更改

当vaadin-maven-plugin版本升级到7.7.7时问题得到解决。