Publishing failed with multiple errors
Resource is out of sync with the file system: '/StrutsFileUpload/WebContent/WEB-INF/lib/commons-fileupload-1.2.1.jar'.
Resource is out of sync with the file system: '/StrutsFileUpload/WebContent/WEB-INF/lib/commons-io-1.3.2.jar'.
Resource is out of sync with the file system: '/StrutsFileUpload/WebContent/WEB-INF/lib/freeer-2.3.15.jar'.
Resource is out of sync with the file system: '/StrutsFileUpload/WebContent/WEB-INF/lib/ognl-2.7.3.jar'.
Resource is out of sync with the file system: '/StrutsFileUpload/WebContent/WEB-INF/lib/struts2-core-2.1.8.1.jar'.
Resource is out of sync with the file system: '/StrutsFileUpload/WebContent/WEB-INF/lib/xwork-core-2.1.6.jar'.
Resource is out of sync with the file system: '/StrutsFileUpload/WebContent/WEB-INF/lib/commons-fileupload-1.2.1.jar'.
Resource is out of sync with the file system: '/StrutsFileUpload/WebContent/WEB-INF/lib/commons-io-1.3.2.jar'.
Resource is out of sync with the file system: '/StrutsFileUpload/WebContent/WEB-INF/lib/freeer-2.3.15.jar'.
Resource is out of sync with the file system: '/StrutsFileUpload/WebContent/WEB-INF/lib/ognl-2.7.3.jar'.
Resource is out of sync with the file system: '/StrutsFileUpload/WebContent/WEB-INF/lib/struts2-core-2.1.8.1.jar'.
Resource is out of sync with the file system: '/StrutsFileUpload/WebContent/WEB-INF/lib/xwork-core-2.1.6.jar'.
解决办法:需要手动刷新一下资源管理器。
(1)在eclipse中,工程目录右键,选择F5(refresh)
(2)设置eclipse自动刷新。
通过Window->Preferences->General->Workspace,选中Refresh automatically。
我的eclipse中的项目,运行老是报java.lang.NullPointerException
这个异常,这个项目是没有问题的,就会报这个错误,不知道怎么回事