NCC api报错

找不到类:nccloud.framework.web.ui.pattern.grid.Grid

 

 

java.lang.ClassNotFoundException: nccloud.framework.web.ui.pattern.grid.Grid
	at java.net.URLClassLoader.findClass(URLClassLoader.java:610)
	at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:925)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:870)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:853)
	at java.lang.Class.getDeclaredFieldsImpl(Native Method)
	at java.lang.Class.getDeclaredFields(Class.java:867)
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:152)
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:102)
	at com.google.gson.Gson.getAdapter(Gson.java:458)
	at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:56)
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.write(ReflectiveTypeAdapterFactory.java:127)
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.write(ReflectiveTypeAdapterFactory.java:245)
	at com.google.gson.Gson.toJson(Gson.java:704)
	at com.google.gson.Gson.toJson(Gson.java:683)
	at com.google.gson.Gson.toJson(Gson.java:638)
	at com.google.gson.Gson.toJson(Gson.java:618)
	at nccloud.framework.core.json.Json.toJson(Json.java:77)
	at nccloud.framework.web.action.entry.ResponseProcess.writeJson(ResponseProcess.java:141)
	at nccloud.framework.web.action.entry.ResponseProcess.process(ResponseProcess.java:60)
	at nccloud.framework.web.action.entry.Dispatcher.doAction(Dispatcher.java:50)
	at nccloud.framework.web.action.entry.EntryController.doPost(EntryController.java:42)

  解决办法:把DTO类放到ncchome\hotwebs\nccloud\WEB-INF\classes下面

posted on 2020-10-21 09:23  长臂猿爱跳伞  阅读(416)  评论(0编辑  收藏  举报