读书人

JavaWeb下传报错本人刚毕业客户现场

发布时间: 2012-12-28 10:29:04 作者: rapoo

JavaWeb上传报错,本人刚毕业客户现场发回bug,但我这里没问题,牛哥帮忙看看是怎么回事儿啊。


Caused by: java.lang.NoSuchMethodError: com/krm/slsint/fileRepositoryManage/services/FileRepositoryService.saveFileDataforjianguan(Ljava/util/List;)V
at com.krm.slsint.fileRepositoryManage.web.action.FileRepositoryCfgAction.save(FileRepositoryCfgAction.java:211)
... 49 more

[12-11-26 22:45:33:301 GMT+08:00] 00000025 SystemOut O Hibernate: select f.pkid from CODE_FILE_REPOSITORY f where f.file_name='????1'
[12-11-26 22:45:33:304 GMT+08:00] 00000025 SystemOut O DEBUG JianGuanRepAction.validateInSyncWay(367) | the validate string is [[{"has_template_name":"0"}]]
[12-11-26 22:45:33:772 GMT+08:00] 00000024 SystemOut O Hibernate: select organinfo0_.pkid as pkid, organinfo0_.adder as adder20_, organinfo0_.begin_date as begin3_20_, organinfo0_.business_type as business4_20_, organinfo0_.code as code20_, organinfo0_.create_date as create6_20_, organinfo0_.creator as creator20_, organinfo0_.del_mobile as del8_20_, organinfo0_.del_other as del9_20_, organinfo0_.del_phone as del10_20_, organinfo0_.delegate as delegate20_, organinfo0_.description as descrip12_20_, organinfo0_.dummy_type as dummy13_20_, organinfo0_.end_date as end14_20_, organinfo0_.full_name as full15_20_, organinfo0_.organ_type as organ16_20_, organinfo0_.peak as peak20_, organinfo0_.phone as phone20_, organinfo0_.postalcode as postalcode20_, organinfo0_.short_name as short20_20_, organinfo0_.status as status20_, organinfo0_.super_id as super22_20_, organinfo0_.organ_order as organ23_20_, organinfo0_.pkid as col_0_0_, dictionary1_.dicname as col_1_0_, dictionary2_.dicname as col_2_0_ from code_org_organ organinfo0_, code_dictionary dictionary1_, code_dictionary dictionary2_ where (organinfo0_.status<>9 )and(organinfo0_.business_type=dictionary2_.dicid )and(dictionary2_.parentid=1002 )and(organinfo0_.organ_type=dictionary1_.dicid )and(dictionary1_.parentid=1001 )and(organinfo0_.dummy_type='1' )and(organinfo0_.code=? ) order by organinfo0_.organ_order
[12-11-26 22:45:33:777 GMT+08:00] 00000024 SystemOut O Hibernate: select dictionary0_.pkid as pkid, dictionary0_.dicname as dicname1_, dictionary0_.description as descript3_1_, dictionary0_.dicid as dicid1_, dictionary0_.disporder as disporder1_, dictionary0_.isleaf as isleaf1_, dictionary0_.layer as layer1_, dictionary0_.parentid as parentid1_, dictionary0_.status as status1_, dictionary0_.readonly as readonly1_ from code_dictionary dictionary0_ where (parentid=1004 )and(dicid=1 )and(status<>'9' ) order by disporder
[12-11-26 22:45:33:781 GMT+08:00] 00000024 DispatchActio E org.apache.struts.actions.DispatchAction dispatchMethod Dispatch[/fileRepositoryCfg] to method 'save' returned an exception
java.lang.reflect.InvocationTargetException






[12-11-26 22:44:06:783 GMT+08:00] 00000029 SystemErr R java.lang.NullPointerException
[12-11-26 22:44:06:784 GMT+08:00] 00000029 SystemErr R at com.krm.slsint.common.web.listener.StartupListener.removeUser(StartupListener.java:123)
[12-11-26 22:44:06:784 GMT+08:00] 00000029 SystemErr R at com.krm.slsint.common.web.listener.StartupListener.attributeRemoved(StartupListener.java:87)
[12-11-26 22:44:06:784 GMT+08:00] 00000029 SystemErr R at com.ibm.ws.webcontainer.httpsession.SessionContext.sessionAttributeRemovedEvent(SessionContext.java:3608)
[12-11-26 22:44:06:784 GMT+08:00] 00000029 SystemErr R at com.ibm.ws.webcontainer.httpsession.SessionData.removeValueGuts(SessionData.java:899)
[12-11-26 22:44:06:784 GMT+08:00] 00000029 SystemErr R at com.ibm.ws.webcontainer.httpsession.SessionData.removeValue(SessionData.java:1268)
[12-11-26 22:44:06:784 GMT+08:00] 00000029 SystemErr R at com.ibm.ws.webcontainer.httpsession.SessionData.removeAttribute(SessionData.java:1124)
[12-11-26 22:44:06:784 GMT+08:00] 00000029 SystemErr R at com.krm.slsint.common.web.listener.StartupListener.sessionDestroyed(StartupListener.java:154)
[12-11-26 22:44:06:784 GMT+08:00] 00000029 SystemErr R at com.ibm.ws.webcontainer.httpsession.SessionContext.sessionDestroyedEvent(SessionContext.java:3652)
[12-11-26 22:44:06:784 GMT+08:00] 00000029 SystemErr R at com.ibm.ws.webcontainer.httpsession.SessionData.sessionUnbound(SessionData.java:1021)
[12-11-26 22:44:06:784 GMT+08:00] 00000029 SystemErr R at com.ibm.ws.webcontainer.httpsession.SessionContext.notifySessionInvalidated(SessionContext.java:1115)
[12-11-26 22:44:06:784 GMT+08:00] 00000029 SystemErr R at com.ibm.ws.webcontainer.httpsession.SessionData.invalidate(SessionData.java:624)
[12-11-26 22:44:06:784 GMT+08:00] 00000029 SystemErr R at com.ibm.ws.webcontainer.httpsession.SessionData.internalInvalidate(SessionData.java:589)
[12-11-26 22:44:06:784 GMT+08:00] 00000029 SystemErr R at com.ibm.ws.webcontainer.httpsession.MemorySessionContext.processInvalidList(MemorySessionContext.java:114)
[12-11-26 22:44:06:784 GMT+08:00] 00000029 SystemErr R at com.ibm.ws.webcontainer.httpsession.MemorySessionContext.performInvalidation(MemorySessionContext.java:75)
[12-11-26 22:44:06:784 GMT+08:00] 00000029 SystemErr R at com.ibm.ws.webcontainer.httpsession.SessionContext.pollInvalidations(SessionContext.java:1048)
[12-11-26 22:44:06:784 GMT+08:00] 00000029 SystemErr R at com.ibm.ws.webcontainer.httpsession.SessionAlarmListener.alarm(SessionAlarmListener.java:59)
[12-11-26 22:44:06:784 GMT+08:00] 00000029 SystemErr R at com.ibm.ejs.util.am._Alarm.run(_Alarm.java:90)
[12-11-26 22:44:06:785 GMT+08:00] 00000029 SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)
------最佳解决方案--------------------


Caused by: java.lang.NoSuchMethodError: com/krm/slsint/fileRepositoryManage/services/FileRepositoryService.saveFileDataforjianguan(Ljava/util/List;)

这种错误一般都是 jar包 或 class文件 不匹配所导致,也就是:
1、你在某个版本对某个class增加了一个方法;或使用了一个高版本jar包所提供的新方法;
2、其它类调用了该方法;
3、但是发布到系统上时,并没有发布新的这个class或高版本jar包;
4、结果JVM按代码去找这个新方法的时候,虽然找到了类,但是却找不到这个新方法,然后就出错了。


总的来说就是部署问题,去检查吧。
[其他解释]
可能是你版本没有全部更新,找不到方法
[其他解释]
代码是最新更新且在本地测试过打包好的吗?


Caused by: java.lang.NoSuchMethodError: com/krm/slsint/fileRepositoryManage/services/FileRepositoryService.saveFileDataforjianguan

看样子应该是接口没更新好、

你得要最新打包好的代码哦
[其他解释]
保存方法出错。方法或参数值可能错了
[其他解释]
你本地代码没错 。 那就是客户那的JAR包等配置出错
[其他解释]
如果确定有这个方法,执行时还是报这样滴错,重启下,然後看下你配置文件里面配置好了没
[其他解释]
查看下文件写入的目标目录的读写权限。。。一般是这个问题

读书人网 >Java Web开发

热点推荐