近期阿里的fastjson.jar需要升级,根据论坛上提供的方法 https://github.com/alibaba/fastjson/wiki/enable_autotype
更新了jar包之后UI与BIZ可以正常编译,但BAAS部分编译失败,错误信息如下:
开始编译BAAS模型......
Exception in thread "main" java.lang.NoClassDefFoundError: com/alibaba/fastjson/JSONObject
at com.justep.baas.compiler.BaseCompiler.createActionCode(Unknown Source)
at com.justep.baas.compiler.java.Compiler.compileFile(Unknown Source)
at com.justep.baas.compiler.java.Compiler.compileDir(Unknown Source)
at com.justep.baas.compiler.java.Compiler.compileDir(Unknown Source)
at com.justep.baas.compiler.java.Compiler.compile2Java(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)
Caused by: java.lang.ClassNotFoundException: com.alibaba.fastjson.JSONObject
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 9 more