Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/376.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java GWT-不兼容RemoteServiceException_Java_Hibernate_Gwt - Fatal编程技术网

Java GWT-不兼容RemoteServiceException

Java GWT-不兼容RemoteServiceException,java,hibernate,gwt,Java,Hibernate,Gwt,我正在向服务器传递一个HashMap。字符串包含参数名,对象是字符串数组。我得到以下例外情况。 我使用的是GWT(2.5)和hibernate-core-4.2.9 final 处理此调用时引发了不兼容的EmoteServiceException。 com.google.gwt.user.client.rpc.CompatibileMoteServiceException:java.lang.ClassNotFoundException:metric1 我正在将以下参数传递给服务 UIParam

我正在向服务器传递一个
HashMap
。字符串包含参数名,对象是字符串数组。我得到以下例外情况。 我使用的是GWT(2.5)和hibernate-core-4.2.9 final

处理此调用时引发了不兼容的EmoteServiceException。 com.google.gwt.user.client.rpc.CompatibileMoteServiceException:java.lang.ClassNotFoundException:metric1

我正在将以下参数传递给服务

UIParam<String, Object> param = new UIParam<String, Object>();

param.put("metric", new String[]{"metric1"});

param.put("attribute", new String[]{"attribute1"});
service.getData(param, callback);
UIParam param=new UIParam();
参数put(“metric”,新字符串[]{“metric1”});
参数put(“attribute”,新字符串[]{“attribute1”});
获取数据(参数,回调);

请帮忙

如果我没有错,这是由于使用了Object,它是不可序列化的,因此GWT找不到匹配的服务

这是什么意思
。ClassNotFoundException:num\u active\u querys
在代码中的
num\u active\u querys
是什么?如果Object是字符串数组,为什么要传递Object?可以显示UIParam类吗?@Braj-编辑了我的问题,num\u active\u querys是在字符串中传递的元素array@mudalov-UIParam是一个实现可序列化和映射字段-map的类。