|
新建了java方法:
package justep;
import javax.naming.NamingException;
import com.alibaba.fastjson.JSONObject;
import com.justep.baas.action.ActionContext;
import com.justep.baas.data.sql.SQLException;
public class Erp {
public static JSONObject getPoorderentry(JSONObject params, ActionContext context) throws SQLException, NamingException {
System.out.println("-----------------");
return null;
}
}
此时模型编译(调试模式)是正常的,再新建action,服务名为erp.service.m,如下图,
但再模型编译(调试模式)就报错,如下,请问是什么情况啊
开始编译BAAS模型......
编译BAAS模型结束
编译用时: 0 秒
开始编译BAAS Service Java......
log4j:WARN No appenders could be found for logger (com.justep.baas.BaasException).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
com.justep.baas.compiler.CompileException: 编译模块Java出错
D:\WeX5_V3.6\runtime\BaasServer\baas\justep\Erp__do.java:43: 错误: 找不到符号
JSONObject ret = getPoorderentry(params, context);
^
符号: 方法 getPoorderentry(JSONObject,ActionContext)
位置: 类 Erp__do
1 个错误
at com.justep.baas.compiler.java.JavaCompiler.compile(Unknown Source)
at com.justep.baas.compiler.java.Compiler.compileJavaDir(Unknown Source)
at com.justep.baas.compiler.java.Compiler.compileJavaDir(Unknown Source)
at com.justep.baas.compiler.java.Compiler.compileJavaDir(Unknown Source)
at com.justep.baas.compiler.java.Compiler.compileJavaCode(Unknown Source)
at com.justep.baas.compiler.java.Compiler.compile2jar(Unknown Source)
at com.justep.baas.compiler.java.Compiler.compile2jar(Unknown Source)
at com.justep.baas.compiler.java.Compiler.compile(Unknown Source)
at com.justep.baas.compiler.CompilerFactory.main(Unknown Source)
|
|