首页 新闻 会员 周边

项目在本地的使用tomcat运行正常,linux上报Still 2 unbound args

0
[已解决问题] 解决于 2018-05-30 10:47

本地项目使用eclipse启动项目,项目可以正常启动和访问,但是在linux系统中,使用ant打包以后,访问项目,项目报500错误,具体错误为Still 2 unbound args at this(),target(),args() binding stage, with no way to determine between them。大神们有对这个问题有研究的嘛?

魏先生的Weisir的主页 魏先生的Weisir | 菜鸟二级 | 园豆:208
提问于:2018-05-21 09:39
< >
分享
最佳答案
0

项目中使用了@AfterThrowing(@Before ,@After, @AfterReturning ,@Around这四个注解类似)注解,需要制定argNames的值来区分,解决了此错误

@AfterThrowing(value = "execution(* com.iskyshop.manage..*.*(..))&&args(request,..) ", throwing = "exception",argNames="request,exception")
    public void exceptionLog(HttpServletRequest request, Throwable exception) {}

项目linux中使用ant编辑项目,需要开启ant编译的dubug模式,在ant的build.xml文件的javac标签中加入debug="on",问题自此解决,后续配到内存溢出的问题,配置启动的内存大小即可。

魏先生的Weisir | 菜鸟二级 |园豆:208 | 2018-05-30 08:49
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册