xfire 能用byte[]作为参数和返回值吗
如果可以的话应该怎么做方法:
public class Query implements IQuery { public byte[] Query(byte[] key) {
if(Remote.Remote.w==null||key[0]!='Q'){
return null;
}
GetQuery.Query qry=new GetQuery.Query(key); return qry.GetResultByte();
}
}运行的时候老是报错:
严重: Error initializing XFireServlet.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.codehaus.xfire.spring.ServiceBean' defined in class path resource [META-INF/xfire/services.xml]: Initialization of bean failed; nested exception is org.codehaus.xfire.XFireRuntimeException: Unable to load component type class java.lang.byte[]. Nested exception is java.lang.ClassNotFoundException: java.lang.byte[]
org.codehaus.xfire.XFireRuntimeException: Unable to load component type class java.lang.byte[]. Nested exception is java.lang.ClassNotFoundException: java.lang.byte[]
java.lang.ClassNotFoundException: java.lang.byte[]
如果可以的话应该怎么做方法:
public class Query implements IQuery { public byte[] Query(byte[] key) {
if(Remote.Remote.w==null||key[0]!='Q'){
return null;
}
GetQuery.Query qry=new GetQuery.Query(key); return qry.GetResultByte();
}
}运行的时候老是报错:
严重: Error initializing XFireServlet.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.codehaus.xfire.spring.ServiceBean' defined in class path resource [META-INF/xfire/services.xml]: Initialization of bean failed; nested exception is org.codehaus.xfire.XFireRuntimeException: Unable to load component type class java.lang.byte[]. Nested exception is java.lang.ClassNotFoundException: java.lang.byte[]
org.codehaus.xfire.XFireRuntimeException: Unable to load component type class java.lang.byte[]. Nested exception is java.lang.ClassNotFoundException: java.lang.byte[]
java.lang.ClassNotFoundException: java.lang.byte[]
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货