NutzCN Logo
问答 文件上传,前台ajax,后台nutz入口函数
发布于 2803天前 作者 qq_68fbea12 1545 次浏览 复制 上一个帖子 下一个帖子
标签:

入口函数

@POST
	@At("/uploadImg")
	@Ok("json:{locked:'password|salt'}")
	@AdaptBy(type = UploadAdaptor.class, args={ "${app.root}/WEB-INF/tmp" })
	public Object uploadImg(@Param("file")TempFile[] file,@Param("token")String token,@Param("userId")long userId){
//		if(!IsToken.isToken(token, userId)){
//			if(IsToken.isAdminToken(userId, token)){
//				map.put("msg", "身份过期");
//				return map;
//			}
//		}
		System.out.println("--:"+file);
		Map<String, String> map = new HashMap<String, String>();
		String msg =null;
		try {
			for (TempFile tempFile : file) {
				msg = UploadImg.upload(tempFile);
				map.put(tempFile.getSubmittedFileName(), msg); 
			}
		} catch (Exception e) {
			e.printStackTrace();
		} 
		return map;
	}

报错

2017-4-20 15:20:35.882 DEBUG [http-nio-8080-exec-2] Found mapping for [POST] path=/uploadImg : Main.uploadImg(Main.java:804)
2017-4-20 15:20:35.889 DEBUG [http-nio-8080-exec-2] Select Html4 Form upload parser --> /b2b/uploadImg
2017-4-20 15:20:35.919 DEBUG [http-nio-8080-exec-2] FastUpload : /uploadImg
2017-4-20 15:20:35.923 DEBUG [http-nio-8080-exec-2] info created
2017-4-20 15:20:35.923 DEBUG [http-nio-8080-exec-2] Params map created - 0 params
2017-4-20 15:20:35.928 DEBUG [http-nio-8080-exec-2] boundary: 
------WebKitFormBoundaryJkABu8jPO4yy7l8R
2017-4-20 15:20:35.934 DEBUG [http-nio-8080-exec-2] skip first boundary
2017-4-20 15:20:35.934 DEBUG [http-nio-8080-exec-2] Reading...
2017-4-20 15:20:35.940 DEBUG [http-nio-8080-exec-2] Upload File info: FilePath=[Tulips.jpg],fieldName=[file]
2017-4-20 15:20:35.940 DEBUG [http-nio-8080-exec-2] Upload Info: name=Tulips.jpg,content_type=image/jpeg
2017-4-20 15:20:36.40 DEBUG [http-nio-8080-exec-2] Upload File info: FilePath=[null],fieldName=[token]
2017-4-20 15:20:36.40 DEBUG [http-nio-8080-exec-2] Found a param, name=[token] value=[xxxxx]
2017-4-20 15:20:36.40 DEBUG [http-nio-8080-exec-2] Upload File info: FilePath=[null],fieldName=[userId]
2017-4-20 15:20:36.40 DEBUG [http-nio-8080-exec-2] Found a param, name=[userId] value=[1]
2017-4-20 15:20:36.41 DEBUG [http-nio-8080-exec-2] ...Done 621263 bytes readed
17-04-20 15:20:36.108 WARN [http-nio-8080-exec-2] Error@/uploadImg :
java.lang.RuntimeException: r u kidding me?! It is impossible!
	at org.nutz.lang.Lang.impossible(Lang.java:119)
	at com.tongxin.b2b.controller.Main$$FASTCLASS._invoke(Main.java:1)
	at org.nutz.lang.reflect.AbstractFastClass.invoke(AbstractFastClass.java:143)
	at org.nutz.lang.reflect.FastClassFactory.invoke(FastClassFactory.java:67)
	at org.nutz.mvc.impl.processor.MethodInvokeProcessor.process(MethodInvokeProcessor.java:27)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.AdaptorProcessor.process(AdaptorProcessor.java:33)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.ActionFiltersProcessor.process(ActionFiltersProcessor.java:58)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:123)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15)
	at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44)
	at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67)
	at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
	at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:198)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:509)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1104)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Unknown Source)
14 回复

启动日志发一下

2017-4-20 15:30:12.404 DEBUG [http-nio-8080-exec-7] Found mapping for [POST] path=/fileUpload : Main.uploadPhoto(Main.java:822)
2017-4-20 15:30:12.405 DEBUG [http-nio-8080-exec-7] Select Html4 Form upload parser --> /b2b/fileUpload
2017-4-20 15:30:12.411 DEBUG [http-nio-8080-exec-7] FastUpload : /fileUpload
2017-4-20 15:30:12.412 DEBUG [http-nio-8080-exec-7] info created
2017-4-20 15:30:12.413 DEBUG [http-nio-8080-exec-7] Params map created - 0 params
2017-4-20 15:30:12.415 DEBUG [http-nio-8080-exec-7] boundary: 
------WebKitFormBoundaryq1wsDEOMo2wCwG49
2017-4-20 15:30:12.421 DEBUG [http-nio-8080-exec-7] skip first boundary
2017-4-20 15:30:12.421 DEBUG [http-nio-8080-exec-7] Reading...
2017-4-20 15:30:12.422 DEBUG [http-nio-8080-exec-7] Upload File info: FilePath=[Tulips.jpg],fieldName=[file]
2017-4-20 15:30:12.422 DEBUG [http-nio-8080-exec-7] Upload Info: name=Tulips.jpg,content_type=image/jpeg
2017-4-20 15:30:12.597 DEBUG [http-nio-8080-exec-7] ...Done 621072 bytes readed

启动日志,完整的

2017-4-20 15:42:24.428 INFO [localhost-startStop-1] Select SystemLog as Nutz.Log implement
2017-4-20 15:42:24.434 INFO [localhost-startStop-1] NutFilter[b2b] starting ...
2017-4-20 15:42:24.488 DEBUG [localhost-startStop-1] Locations for Scans:
[Dir[path=D:\Java\eclipse], Jar[path=D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\nutz-1.r.60.jar], Jar[path=D:\Java\apache-tomcat-8.0.39\bin\bootstrap.jar], Jar[path=D:\Java\apache-tomcat-8.0.39\bin\tomcat-juli.jar]]
2017-4-20 15:42:24.539 DEBUG [localhost-startStop-1] Locations for Scans:
{D:\Java\eclipse=Dir[path=D:\Java\eclipse], D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\nutz-1.r.60.jar=Jar[path=D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\nutz-1.r.60.jar], D:\Java\apache-tomcat-8.0.39\bin\bootstrap.jar=Jar[path=D:\Java\apache-tomcat-8.0.39\bin\bootstrap.jar], D:\Java\apache-tomcat-8.0.39\bin\tomcat-juli.jar=Jar[path=D:\Java\apache-tomcat-8.0.39\bin\tomcat-juli.jar], D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\classes=Dir[path=D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\classes], D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\commons-codec-1.4.jar=Jar[path=D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\commons-codec-1.4.jar], D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\commons-fileupload-1.3.1.jar=Jar[path=D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\commons-fileupload-1.3.1.jar], D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\aliyun-java-sdk-core-2.4.2.jar=Jar[path=D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\aliyun-java-sdk-core-2.4.2.jar], D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\commons-io-2.4.jar=Jar[path=D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\commons-io-2.4.jar], D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\commons-lang-2.3.jar=Jar[path=D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\commons-lang-2.3.jar], D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\aliyun-java-sdk-sms-3.0.0-rc1.jar=Jar[path=D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\aliyun-java-sdk-sms-3.0.0-rc1.jar], D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\commons-httpclient-3.1.jar=Jar[path=D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\commons-httpclient-3.1.jar], D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\commons-beanutils-1.7.0.jar=Jar[path=D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\commons-beanutils-1.7.0.jar], D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\json.jar=Jar[path=D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\json.jar], D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\ueditor-1.1.2.jar=Jar[path=D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\ueditor-1.1.2.jar], D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\json-lib-2.2.3-jdk15.jar=Jar[path=D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\json-lib-2.2.3-jdk15.jar], D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\showapi_sdk.jar=Jar[path=D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\showapi_sdk.jar], D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\mysql-connector-java-5.1.18-bin.jar=Jar[path=D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\mysql-connector-java-5.1.18-bin.jar], D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\commons-collections-3.2.1.jar=Jar[path=D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\commons-collections-3.2.1.jar], D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\ezmorph-1.0.3.jar=Jar[path=D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\ezmorph-1.0.3.jar], D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\commons-codec-1.9.jar=Jar[path=D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\commons-codec-1.9.jar], D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\commons-logging-1.1.1.jar=Jar[path=D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\lib\commons-logging-1.1.1.jar]}
2017-4-20 15:42:24.620 DEBUG [localhost-startStop-1] Using 95 castor for Castors
2017-4-20 15:42:24.637 DEBUG [localhost-startStop-1] Loading by class org.nutz.mvc.impl.NutLoading
2017-4-20 15:42:24.640 INFO [localhost-startStop-1] Nutz Version : 1.r.60 
2017-4-20 15:42:24.641 INFO [localhost-startStop-1] Nutz.Mvc[b2b] is initializing ...
2017-4-20 15:42:24.641 DEBUG [localhost-startStop-1] Web Container Information:
2017-4-20 15:42:24.642 DEBUG [localhost-startStop-1]  - Default Charset : GBK
2017-4-20 15:42:24.643 DEBUG [localhost-startStop-1]  - Current . path  : D:\Java\eclipse\.
2017-4-20 15:42:24.643 DEBUG [localhost-startStop-1]  - Java Version    : 1.8.0_111
2017-4-20 15:42:24.643 DEBUG [localhost-startStop-1]  - File separator  : \
2017-4-20 15:42:24.643 DEBUG [localhost-startStop-1]  - Timezone        : Asia/Shanghai
2017-4-20 15:42:24.643 DEBUG [localhost-startStop-1]  - OS              : Windows 7 amd64
2017-4-20 15:42:24.644 DEBUG [localhost-startStop-1]  - ServerInfo      : Apache Tomcat/8.0.39
2017-4-20 15:42:24.644 DEBUG [localhost-startStop-1]  - Servlet API     : 3.1
2017-4-20 15:42:24.644 DEBUG [localhost-startStop-1]  - ContextPath     : /b2b
2017-4-20 15:42:24.644 DEBUG [localhost-startStop-1]  - context.tempdir : D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\b2b
2017-4-20 15:42:24.645 DEBUG [localhost-startStop-1]  - MainModule      : com.tongxin.b2b.controller.Main
2017-4-20 15:42:24.647 DEBUG [localhost-startStop-1] >> app.root = D:/Java/worksp/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/b2b
2017-4-20 15:42:24.649 INFO [localhost-startStop-1] !!!Your application without @IocBy supporting
2017-4-20 15:42:24.653 INFO [localhost-startStop-1] Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
2017-4-20 15:42:24.657 DEBUG [localhost-startStop-1] @Views(DefaultViewMaker.class)
2017-4-20 15:42:24.667 DEBUG [localhost-startStop-1] @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
2017-4-20 15:42:24.682 DEBUG [localhost-startStop-1] module class location 'file:/D:/Java/worksp/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/b2b/WEB-INF/classes/'
2017-4-20 15:42:24.683 DEBUG [localhost-startStop-1]  > scan 'com.tongxin.b2b.controller'
2017-4-20 15:42:24.691 DEBUG [localhost-startStop-1] Found 1 resource by src( com/tongxin/b2b/controller/ ) , regex( ^.+[.]class$ )
2017-4-20 15:42:24.699 DEBUG [localhost-startStop-1]    >> add 'com.tongxin.b2b.controller.Main'
2017-4-20 15:42:24.715 INFO [localhost-startStop-1] Create Module obj without Ioc --> class com.tongxin.b2b.controller.Main
2017-4-20 15:42:24.716 INFO [localhost-startStop-1] Optional processor class not found, disabled : org.nutz.integration.shiro.NutShiroProcessor
2017-4-20 15:42:24.730 INFO [localhost-startStop-1] Optional processor class not found, disabled : org.nutz.plugins.validation.ValidationProcessor
2017-4-20 15:42:24.753 DEBUG [localhost-startStop-1]    '/register'                 >> (Main.java:136).register              : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.757 DEBUG [localhost-startStop-1]    '/getComment'               >> (Main.java:727).getComment            : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.758 DEBUG [localhost-startStop-1]    '/getCommodityById'         >> (Main.java:530).getCommodityById      : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.762 DEBUG [localhost-startStop-1]    '/loginReturnAuthCode'      >> (Main.java:147).loginReturnAuthCode   : Object     | @Ok(raw  ) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.766 DEBUG [localhost-startStop-1]    '/issuePurchaseOrder'       >> (Main.java:193).issuePurchaseOrder    : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.769 DEBUG [localhost-startStop-1]    '/getOffer_parentList'      >> (Main.java:232).getOffer_parentList   : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.771 DEBUG [localhost-startStop-1]    '/updateCommodityStatus'    >> (Main.java:551).updateCommodityStatus : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.772 DEBUG [localhost-startStop-1]    '/getShop_IdForUser'        >> (Main.java:842).getShop_IdForUser     : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.774 DEBUG [localhost-startStop-1]    '/uploadCommpanyInformation' >> (Main.java:855).uploadCommpanyInformation : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.776 DEBUG [localhost-startStop-1]    '/getCompanyInformation'    >> (Main.java:869).getCompanyInformation : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.777 DEBUG [localhost-startStop-1]    '/updateCompanyInformation' >> (Main.java:893).updateCompanyInformation : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.778 DEBUG [localhost-startStop-1]    '/getConferenceparticipant' >> (Main.java:979).getConferenceparticipant : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.779 DEBUG [localhost-startStop-1]    '/getConferenceById'        >> (Main.java:988).getConferenceById     : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.784 DEBUG [localhost-startStop-1]    '/getNewsCommendList'       >> (Main.java:1035).getNewsCommendList   : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.788 DEBUG [localhost-startStop-1]    '/getSupplyAndDemand'       >> (Main.java:1099).getSupplyAndDemand   : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.792 DEBUG [localhost-startStop-1]    '/examineSupplyAndDemand'   >> (Main.java:1125).examineSupplyAndDemand : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.798 DEBUG [localhost-startStop-1]    '/getAcquiesceAddress'      >> (Main.java:1175).getAcquiesceAddress  : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.799 DEBUG [localhost-startStop-1]    '/getAddressListById'       >> (Main.java:1188).getAddressListById   : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.799 DEBUG [localhost-startStop-1]    '/updateAddressFordefult'   >> (Main.java:1239).updateAddressFordefult : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.805 DEBUG [localhost-startStop-1]    '/updateUserForPassword'    >> (Main.java:1253).updateUserForPassword : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.806 DEBUG [localhost-startStop-1]    '/updatePurchaseForrecommend' >> (Main.java:1311).updatePurchaseForrecommend : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.807 DEBUG [localhost-startStop-1]    '/getConferencelist'        >> (Main.java:1325).getConferencelist    : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.808 DEBUG [localhost-startStop-1]    '/updateAddressById'        >> (Main.java:1359).updateAddressById    : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.811 DEBUG [localhost-startStop-1]    '/getSearchCompanyAndCommodity' >> (Main.java:1424).getSearchCompanyAndCommodity : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.812 DEBUG [localhost-startStop-1]    '/deleteCongference'        >> (Main.java:1494).deleteCongference    : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.814 DEBUG [localhost-startStop-1]    '/getConferenceForStatus'   >> (Main.java:1504).getConferenceForStatus : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.818 DEBUG [localhost-startStop-1]    '/getOs_examineText'        >> (Main.java:1579).getOs_examineText    : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.820 DEBUG [localhost-startStop-1]    '/getOs_examineForindex'    >> (Main.java:1590).getOs_examineForindex : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.822 DEBUG [localhost-startStop-1]    '/addConferenceParticipant' >> (Main.java:1606).addConferenceParticipant : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.823 DEBUG [localhost-startStop-1]    '/getConferenceParticipantlist' >> (Main.java:1631).getConferenceParticipantlist : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.826 DEBUG [localhost-startStop-1]    '/updateConferenceParticipant' >> (Main.java:1649).updateConferenceParticipant : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.828 DEBUG [localhost-startStop-1]    '/getConferenceParticipantForindex' >> (Main.java:1669).getConferenceParticipantForindex : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.829 DEBUG [localhost-startStop-1]    '/getOs_examineForcommdity' >> (Main.java:1771).getOs_examineForcommdity : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.830 DEBUG [localhost-startStop-1]    '/getOs_examineForpurchase' >> (Main.java:1783).getOs_examineForpurchase : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.833 DEBUG [localhost-startStop-1]    '/addShop_logistics'        >> (Main.java:1800).addShop_logistics    : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.834 DEBUG [localhost-startStop-1]    '/getShop_logistics'        >> (Main.java:1820).getShop_logistics    : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.835 DEBUG [localhost-startStop-1]    '/getShop_logistics_company' >> (Main.java:1851).getShop_logistics_company : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.836 DEBUG [localhost-startStop-1]    '/getUserListForShop'       >> (Main.java:1895).getUserListForShop   : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.837 DEBUG [localhost-startStop-1]    '/getUserForCommAndPur'     >> (Main.java:1911).getUserForCommAndPur : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.840 DEBUG [localhost-startStop-1]    '/getShop_purchaseById'     >> (Main.java:1922).getShop_purchaseById : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.841 DEBUG [localhost-startStop-1]    '/getShop_orderForSales'    >> (Main.java:1941).getShop_orderForSales : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.841 DEBUG [localhost-startStop-1]    '/getcityForprovince'       >> (Main.java:1962).getcityForprovince   : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.851 DEBUG [localhost-startStop-1]    '/updateShop_orderForType'  >> (Main.java:1977).updateShop_orderForType : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.852 DEBUG [localhost-startStop-1]    '/getShop_orderForBuy'      >> (Main.java:2018).getShop_orderForBuy  : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.854 DEBUG [localhost-startStop-1]    '/getShop_orderForSell'     >> (Main.java:2041).getShop_orderForSell : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.854 DEBUG [localhost-startStop-1]    '/login'                    >> (Main.java:160).login                 : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.855 DEBUG [localhost-startStop-1]    '/getCommodity'             >> (Main.java:521).getCommodity          : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.856 DEBUG [localhost-startStop-1]    '/updateCommdit'            >> (Main.java:490).updateCommdit         : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.858 DEBUG [localhost-startStop-1]    '/ReleaseProduct'           >> (Main.java:472).ReleaseProduct        : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.859 DEBUG [localhost-startStop-1]    '/getImgAuthCode'           >> (Main.java:73).getImgAuthCode         : void       | @Ok(raw  ) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.860 DEBUG [localhost-startStop-1]    '/telIsExist'               >> (Main.java:84).telIsExist             : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.860 DEBUG [localhost-startStop-1]    '/AuthCodeIsRight'          >> (Main.java:96).AuthCodeIsRight        : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.861 DEBUG [localhost-startStop-1]    '/sendTelAuthCode'          >> (Main.java:108).sendTelAuthCode       : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.862 DEBUG [localhost-startStop-1]    '/SmsCodeIsRight'           >> (Main.java:124).SmsCodeIsRight        : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.864 DEBUG [localhost-startStop-1]    '/uploadHeader'             >> (Main.java:172).uploadHeader          : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.865 DEBUG [localhost-startStop-1]    '/issueOfferOrder'          >> (Main.java:217).issueOfferOrder       : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.866 DEBUG [localhost-startStop-1]    '/deletePurchase'           >> (Main.java:244).deletePurchase        : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.867 DEBUG [localhost-startStop-1]    '/getPurchaseList'          >> (Main.java:263).getPurchaseList       : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.868 DEBUG [localhost-startStop-1]    '/getPurchasetest'          >> (Main.java:278).getPurchasetest       : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.869 DEBUG [localhost-startStop-1]    '/getSeachPurchase'         >> (Main.java:301).getSeachPurchase      : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.870 DEBUG [localhost-startStop-1]    '/getOffer'                 >> (Main.java:328).getOffer              : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.876 DEBUG [localhost-startStop-1]    '/deleteOffer'              >> (Main.java:348).deleteOffer           : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.877 DEBUG [localhost-startStop-1]    '/getOfferByTime'           >> (Main.java:359).getOfferByTime        : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.879 DEBUG [localhost-startStop-1]    '/getFirstCategory'         >> (Main.java:369).getFirstCategory      : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.880 DEBUG [localhost-startStop-1]    '/getCategory'              >> (Main.java:379).getCategory           : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.881 DEBUG [localhost-startStop-1]    '/selectCategory'           >> (Main.java:389).selectCategory        : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.882 DEBUG [localhost-startStop-1]    '/getInquiryTime'           >> (Main.java:398).getInquiryTime        : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.883 DEBUG [localhost-startStop-1]    '/getEnquiry'               >> (Main.java:411).getEnquiry            : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.883 DEBUG [localhost-startStop-1]    '/deleteEnquiry'            >> (Main.java:425).deleteEnquiry         : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.884 DEBUG [localhost-startStop-1]    '/replyEnquiry'             >> (Main.java:436).replyEnquiry          : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.885 DEBUG [localhost-startStop-1]    '/addEnquiry'               >> (Main.java:457).addEnquiry            : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.885 DEBUG [localhost-startStop-1]    '/deleteCommodity'          >> (Main.java:541).deleteCommodity       : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.886 DEBUG [localhost-startStop-1]    '/searchCommodity'          >> (Main.java:587).searchCommodity       : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.887 DEBUG [localhost-startStop-1]    '/getOrderList'             >> (Main.java:601).getOrderList          : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.888 DEBUG [localhost-startStop-1]    '/addOrder'                 >> (Main.java:622).addOrder              : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.889 DEBUG [localhost-startStop-1]    '/getOrderForUser'          >> (Main.java:649).getOrderForUser       : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.889 DEBUG [localhost-startStop-1]    '/deleteOrder'              >> (Main.java:659).deleteOrder           : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.890 DEBUG [localhost-startStop-1]    '/updateOrder'              >> (Main.java:680).updateOrder           : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.891 DEBUG [localhost-startStop-1]    '/updateShop_pay'           >> (Main.java:694).updateShop_pay        : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.891 DEBUG [localhost-startStop-1]    '/addComment'               >> (Main.java:738).addComment            : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.892 DEBUG [localhost-startStop-1]    '/getInquiryList'           >> (Main.java:754).getInquiryList        : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.892 DEBUG [localhost-startStop-1]    '/getInquiryText'           >> (Main.java:772).getInquiryText        : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.893 DEBUG [localhost-startStop-1]    '/sendInquiryText'          >> (Main.java:786).sendInquiryText       : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.913 INFO [localhost-startStop-1] Init file-pool by: D:/Java/worksp/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/b2b/WEB-INF/tmp [2000]
2017-4-20 15:42:24.915 DEBUG [localhost-startStop-1] file-pool.home: 'D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\WEB-INF\tmp'
2017-4-20 15:42:24.925 INFO [localhost-startStop-1] file-pool.cursor: 188
2017-4-20 15:42:24.928 DEBUG [localhost-startStop-1]    '/uploadImg'                >> (Main.java:805).uploadImg             : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.929 INFO [localhost-startStop-1] Init file-pool by: D:/Java/worksp/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/b2b/tmp/upload [2000]
2017-4-20 15:42:24.930 DEBUG [localhost-startStop-1] file-pool.home: 'D:\Java\worksp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\b2b\tmp\upload'
2017-4-20 15:42:24.931 INFO [localhost-startStop-1] file-pool.cursor: 2
2017-4-20 15:42:24.933 DEBUG [localhost-startStop-1]    '/fileUpload'               >> (Main.java:822).uploadPhoto           : String     | @Ok(raw  ) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.934 DEBUG [localhost-startStop-1]    '/getSeachCompany'          >> (Main.java:923).getSeachCompany       : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.936 DEBUG [localhost-startStop-1]    '/getReManagement'          >> (Main.java:938).getReManagement       : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.948 DEBUG [localhost-startStop-1]    '/getConference'            >> (Main.java:966).getConference         : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.949 DEBUG [localhost-startStop-1]    '/addConference'            >> (Main.java:1010).addConference        : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.950 DEBUG [localhost-startStop-1]    '/getNewsList'              >> (Main.java:1026).getNewsList          : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.951 DEBUG [localhost-startStop-1]    '/getNewsById'              >> (Main.java:1044).getNewsById          : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.952 DEBUG [localhost-startStop-1]    '/sendNews'                 >> (Main.java:1064).sendNews             : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.953 DEBUG [localhost-startStop-1]    '/adminLogin'               >> (Main.java:1077).adminLogin           : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.953 DEBUG [localhost-startStop-1]    '/getUserList'              >> (Main.java:1144).getUserList          : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.954 DEBUG [localhost-startStop-1]    '/examineUser'              >> (Main.java:1162).examineUser          : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.955 DEBUG [localhost-startStop-1]    '/addAddressById'           >> (Main.java:1216).addAddressById       : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.956 DEBUG [localhost-startStop-1]    '/deleteAddress'            >> (Main.java:1226).deleteAddress        : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.960 DEBUG [localhost-startStop-1]    '/updatePurchase'           >> (Main.java:1289).updatePurchase       : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.961 DEBUG [localhost-startStop-1]    '/getNewsForTitle'          >> (Main.java:1338).getNewsForTitle      : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.962 DEBUG [localhost-startStop-1]    '/getAddressById'           >> (Main.java:1372).getAddressById       : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.964 DEBUG [localhost-startStop-1]    '/updateAdmin'              >> (Main.java:1387).updateAdmin          : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.965 DEBUG [localhost-startStop-1]    '/fanyi'                    >> (Main.java:1396).fanyi                : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.967 DEBUG [localhost-startStop-1]    '/deleteUser'               >> (Main.java:1412).deleteUser           : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.968 DEBUG [localhost-startStop-1]    '/updateNews'               >> (Main.java:1443).updateNews           : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.974 DEBUG [localhost-startStop-1]    '/deleteNews'               >> (Main.java:1456).deleteNews           : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.975 DEBUG [localhost-startStop-1]    '/updateConference'         >> (Main.java:1480).updateConference     : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.976 DEBUG [localhost-startStop-1]    '/getRecommend'             >> (Main.java:1513).getRecommend         : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.980 DEBUG [localhost-startStop-1]    '/getRecommendList'         >> (Main.java:1523).getRecommendList     : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.981 DEBUG [localhost-startStop-1]    '/getYzlist'                >> (Main.java:1540).getYzlist            : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.981 DEBUG [localhost-startStop-1]    '/addRecommend'             >> (Main.java:1551).addRecommend         : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.982 DEBUG [localhost-startStop-1]    '/getYzcommend'             >> (Main.java:1566).getYzcommend         : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.983 DEBUG [localhost-startStop-1]    '/isUserName'               >> (Main.java:1678).isUserName           : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.983 DEBUG [localhost-startStop-1]    '/isShopName'               >> (Main.java:1687).isShopName           : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.984 DEBUG [localhost-startStop-1]    '/getPulldown'              >> (Main.java:1703).getPulldown          : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.984 DEBUG [localhost-startStop-1]    '/getPulldownlist'          >> (Main.java:1715).getPulldownlist      : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.985 DEBUG [localhost-startStop-1]    '/addPulldown'              >> (Main.java:1730).addPulldown          : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.986 DEBUG [localhost-startStop-1]    '/updatePulldown'           >> (Main.java:1745).updatePulldown       : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.987 DEBUG [localhost-startStop-1]    '/deletePulldown'           >> (Main.java:1759).deletePulldown       : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.988 DEBUG [localhost-startStop-1]    '/getKuaidi'                >> (Main.java:1834).getKuaidi            : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.989 DEBUG [localhost-startStop-1]    '/getOs_public'             >> (Main.java:1866).getOs_public         : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.989 DEBUG [localhost-startStop-1]    '/updateOs_public'          >> (Main.java:1882).updateOs_public      : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.990 DEBUG [localhost-startStop-1]    '/getprovince'              >> (Main.java:1951).getprovince          : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:24.991 DEBUG [localhost-startStop-1]    '/addShop_pay'              >> (Main.java:1998).addShop_pay          : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:25.11 DEBUG [localhost-startStop-1]    '/addOs_message'            >> (Main.java:2056).addOs_message        : Object     | @Ok(json:{locked:'password|salt'}) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-4-20 15:42:25.15 INFO [localhost-startStop-1] Found 124 module methods
2017-4-20 15:42:25.16 DEBUG [localhost-startStop-1] @Localization not define
2017-4-20 15:42:25.18 INFO [localhost-startStop-1] Nutz.Mvc[b2b] is up in 372ms
//改成Long试试
@Param("userId")Long userId

	@POST
	@At("/uploadImg")
	@Ok("json:{locked:'password|salt'}")
	@AdaptBy(type = UploadAdaptor.class, args={ "${app.root}/WEB-INF/tmp" })
	public Object uploadImg(@Param("file")TempFile[] file,@Param("token")String token,@Param("userId")Long userId){
//		if(!IsToken.isToken(token, userId)){
//			if(IsToken.isAdminToken(userId, token)){

还是不行

好奇怪,为啥找不到呢,临时解决办法,'在MainSetup的init方法第一行加上

Mvcs.disableFastClassInvoker = true;

获取项目的当前路径怎么弄
我重新建了个项目,运行,没问题

@At("/uploadPhoto")
    @Ok("raw")
    @AdaptBy(type = UploadAdaptor.class, args = {"${app.root}/tmp/upload"})
    public String uploadPhoto(@Param("file") TempFile[] file) {
		String name="";
		for(TempFile fil:file){
			String str = fil.getSubmittedFileName().split("\\.")[1];
	        String filename = UUID.randomUUID() + "." + str;
//	        String path = "/Applications/apache-tomcat-8.0.41/webapps/ROOT/upload/";
	        String path= Mvcs.getServletContext().getRealPath("/");
	        System.out.println("pa:"+path);
	        String newfileName = path + filename;
	        try {
	        	fil.write(newfileName);
	        	name=newfileName+",";
	        } catch (IOException e) {
	            e.printStackTrace();
	        }
		}
        return name;
    }
Mvcs.getServletContext().getRealPath("/");

但是, 要是war没有展开, 这个会返回null的

那是不是用你之前给的代码

Mvcs.disableFastClassInvoker = true;

既然ok了,就不需要关了

/*
	 * 上传图片
	 * 成功返回图片地址
	 * 失败返回失败信息
	 */
	@At("/uploadImg")
	@Ok("raw")
    @AdaptBy(type = UploadAdaptor.class, args = {"${app.root}/tmp/upload"})
    public String uploadImg(@Param("file") TempFile[] file) {
		String name="";
		for(TempFile fil:file){
			String str = fil.getSubmittedFileName().split("\\.")[1];
	        String filename = UUID.randomUUID() + "." + str;
//	        String path = "/Applications/apache-tomcat-8.0.41/webapps/ROOT/upload/";
	        String path= Mvcs.getServletContext().getRealPath("/");
	        System.out.println("pa:"+path);
	        String newfileName = path +"img\\"+ filename;
	        try {
	        	fil.write(newfileName);
	        	name=filename+",";
	        } catch (IOException e) {
	            e.printStackTrace();
	        }
		}
        return name;
    }

这个上传图片,新建一个项目,用nutz框架,上传图片,没问题,但是放在我的项目下,就报错

2017-4-24 15:14:16.50 DEBUG [http-nio-8080-exec-3] Found mapping for [POST] path=/uploadImg : Main.uploadImg(Main.java:807)
2017-4-24 15:14:16.52 DEBUG [http-nio-8080-exec-3] Select Html4 Form upload parser --> /b2b/uploadImg
2017-4-24 15:14:16.58 DEBUG [http-nio-8080-exec-3] FastUpload : /uploadImg
2017-4-24 15:14:16.60 DEBUG [http-nio-8080-exec-3] info created
2017-4-24 15:14:16.61 DEBUG [http-nio-8080-exec-3] Params map created - 0 params
2017-4-24 15:14:16.63 DEBUG [http-nio-8080-exec-3] boundary: 
------WebKitFormBoundaryn87BB8SY64U0zAPj
2017-4-24 15:14:16.74 DEBUG [http-nio-8080-exec-3] skip first boundary
2017-4-24 15:14:16.74 DEBUG [http-nio-8080-exec-3] Reading...
2017-4-24 15:14:16.75 DEBUG [http-nio-8080-exec-3] Upload File info: FilePath=[Hydrangeas.jpg],fieldName=[file]
2017-4-24 15:14:16.75 DEBUG [http-nio-8080-exec-3] Upload Info: name=Hydrangeas.jpg,content_type=image/jpeg
2017-4-24 15:14:16.128 DEBUG [http-nio-8080-exec-3] ...Done 595472 bytes readed
17-04-24 15:14:16.175 WARN [http-nio-8080-exec-3] Error@/uploadImg :
java.lang.RuntimeException: r u kidding me?! It is impossible!
	at org.nutz.lang.Lang.impossible(Lang.java:119)
	at com.tongxin.b2b.controller.Main$$FASTCLASS._invoke(Main.java:1)
	at org.nutz.lang.reflect.AbstractFastClass.invoke(AbstractFastClass.java:143)
	at org.nutz.lang.reflect.FastClassFactory.invoke(FastClassFactory.java:67)
	at org.nutz.mvc.impl.processor.MethodInvokeProcessor.process(MethodInvokeProcessor.java:27)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.AdaptorProcessor.process(AdaptorProcessor.java:33)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.ActionFiltersProcessor.process(ActionFiltersProcessor.java:58)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:123)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15)
	at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44)
	at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67)
	at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
	at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:198)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:509)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1104)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Unknown Source)

那就禁用掉吧,或者换上1.r.61

Mvcs.disableFastClassInvoker = true;

添加回复
请先登陆
回到顶部