|
发表于 2017-12-2 02:17:40
|
显示全部楼层
哥们,我基础差....
用你的demo 手机上测试 多选,显示 ,都没问题了
但是不能执行上传啊? 貌似你上传用的是IncidentService.java 吗?
模型编译提示错误啊- 开始编译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出错
- J:\WeX5\runtime\BaasServer\baas\imgduoxuanshangchuan\IncidentService.java:9: 错误: 程序包common不存在
- import common.DBHelper;
- ^
- J:\WeX5\runtime\BaasServer\baas\imgduoxuanshangchuan\IncidentService.java:66: 错误: 找不到符号
- public static JSONObject uploadImageAjax(JSONObject params, ActionContext context) throws SQLException, NamingException {
- ^
- 符号: 类 SQLException
- 位置: 类 IncidentService
- J:\WeX5\runtime\BaasServer\baas\imgduoxuanshangchuan\IncidentService.java:66: 错误: 找不到符号
- public static JSONObject uploadImageAjax(JSONObject params, ActionContext context) throws SQLException, NamingException {
- ^
- 符号: 类 NamingException
- 位置: 类 IncidentService
- J:\WeX5\runtime\BaasServer\baas\imgduoxuanshangchuan\IncidentService.java:53: 错误: 找不到符号
- DBHelper.execUpdate(sql, sqlParams.toArray());
- ^
- 符号: 变量 DBHelper
- 位置: 类 IncidentService
- J:\WeX5\runtime\BaasServer\baas\imgduoxuanshangchuan\IncidentService.java:56: 错误: 找不到符号
- DBHelper.execUpdate(sql2, id);
- ^
- 符号: 变量 DBHelper
- 位置: 类 IncidentService
- J:\WeX5\runtime\BaasServer\baas\imgduoxuanshangchuan\IncidentService.java:71: 错误: 找不到符号
- String docStorePath = UPLOAD_ROOT_DIR + UPLOAD_FOLDER + File.separator + ownerID + File.separator;
- ^
- 符号: 变量 File
- 位置: 类 IncidentService
- J:\WeX5\runtime\BaasServer\baas\imgduoxuanshangchuan\IncidentService.java:71: 错误: 找不到符号
- String docStorePath = UPLOAD_ROOT_DIR + UPLOAD_FOLDER + File.separator + ownerID + File.separator;
- ^
- 符号: 变量 File
- 位置: 类 IncidentService
- J:\WeX5\runtime\BaasServer\baas\imgduoxuanshangchuan\IncidentService.java:74: 错误: 找不到符号
- BASE64Decoder decoder = new BASE64Decoder();
- ^
- 符号: 类 BASE64Decoder
- 位置: 类 IncidentService
- J:\WeX5\runtime\BaasServer\baas\imgduoxuanshangchuan\IncidentService.java:74: 错误: 找不到符号
- BASE64Decoder decoder = new BASE64Decoder();
- ^
- 符号: 类 BASE64Decoder
- 位置: 类 IncidentService
- J:\WeX5\runtime\BaasServer\baas\imgduoxuanshangchuan\IncidentService.java:76: 错误: 找不到符号
- File imageFile = new File(imgFilePath);
- ^
- 符号: 类 File
- 位置: 类 IncidentService
- J:\WeX5\runtime\BaasServer\baas\imgduoxuanshangchuan\IncidentService.java:76: 错误: 找不到符号
- File imageFile = new File(imgFilePath);
- ^
- 符号: 类 File
- 位置: 类 IncidentService
- J:\WeX5\runtime\BaasServer\baas\imgduoxuanshangchuan\IncidentService.java:82: 错误: 找不到符号
- FileOutputStream out = new FileOutputStream(imgFilePath); // 新建一个文件输出器,并为它指定输出位置imgFilePath
- ^
- 符号: 类 FileOutputStream
- 位置: 类 IncidentService
- J:\WeX5\runtime\BaasServer\baas\imgduoxuanshangchuan\IncidentService.java:82: 错误: 找不到符号
- FileOutputStream out = new FileOutputStream(imgFilePath); // 新建一个文件输出器,并为它指定输出位置imgFilePath
- ^
- 符号: 类 FileOutputStream
- 位置: 类 IncidentService
- 13 个错误
- 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)
复制代码
|
|