XFIRE困惑啊 头大了
public Game getGame(){
// return new GameDAOImpl().getGame(new Long(1));这条语句执行不了,为什么??
//而用以下语句却可以执行. webservice实现类为什么不能调用DAO实现类来获取对象?
return new Game("Tank war",8.0,"no des","imges/games/tankwar.jpg",1);
}
该方法为webservice实现类的一个方法
GameDAOImpl为DAO实现类
为什么 return new GameDAOImpl().getGame(new Long(1));执行会出错 (不是GameDAOImpl().getGame()有问题)
而return new Game("Tank war",8.0,"no des","imges/games/tankwar.jpg",1);就能执行
就是只要GameDAOImpl().getGame(new Long(1))放到webservice实现类的方法里就会导致该方法不能执行
而GameDAOImpl().getGame(new Long(1))在非webservice实现类里则可以执行
报:source not found
the jar file xfire-all-1.26.jar has not source attachment
/ Compiled from XFireProxy.java (version 1.4 : 48.0, super bit)
public class org.codehaus.xfire.client.XFireProxy implements java.lang.reflect.InvocationHandler {
// Field descriptor #65 Lorg/apache/commons/logging/Log;
private static final org.apache.commons.logging.Log log;
// Field descriptor #67 Lorg/codehaus/xfire/client/Client;
private org.codehaus.xfire.client.Client client;
// Field descriptor #69 Ljava/lang/Class;
static synthetic java.lang.Class class$org$codehaus$xfire$client$XFireProxy;
// Field descriptor #69 Ljava/lang/Class;
static synthetic java.lang.Class class$java$lang$Object;
// Method descriptor #73 (Lorg/codehaus/xfire/client/Client;)V
// Stack: 2, Locals: 2
XFireProxy(org.codehaus.xfire.client.Client client);
0 aload_0 [this]
1 invokespecial java.lang.Object() [6]
4 aload_0 [this]
5 aload_1 [client]
6 putfield org.codehaus.xfire.client.XFireProxy.client : org.codehaus.xfire.client.Client [7]
9 return
Line numbers:
。。。。