Hello,
When I try to debug the following program in Eclipse, I get an exception (InvocationTargetException) at the line marked in bold(below). It says source not found. I clicked on the icon change attached source, and entered the path for the android.jar file. But the next time I debug, I get the same exception.
Kindly assist.
Regards,
Krishna.
____________________________________________________________
package example.ex;
import java.net.MalformedURLException;
import java.lang.reflect.InvocationTargetException;
import com.caucho.hessian.client.HessianProxyFactory;
import com.caucho.hessian.client.HessianRuntimeException;
import android.app.Activity;
import android.os.Bundle;
public class HessianAPIActivity extends Activity{
/**
* @param args
*/
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
try {
String url = "http://www.caucho.com/hessian/test/basic";
HessianProxyFactory factory = new HessianProxyFactory();
Basic basic = (Basic) factory.create(Basic.class, url);
System.out.println("Hello: " + basic.hello());
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
//e.printStackTrace();
}
}
}
______________________________________________________________
____________________________________
package example.ex;
public interface Basic {
public String hello();
}
____________________________________
When I try to debug the following program in Eclipse, I get an exception (InvocationTargetException) at the line marked in bold(below). It says source not found. I clicked on the icon change attached source, and entered the path for the android.jar file. But the next time I debug, I get the same exception.
Kindly assist.
Regards,
Krishna.
____________________________________________________________
package example.ex;
import java.net.MalformedURLException;
import java.lang.reflect.InvocationTargetException;
import com.caucho.hessian.client.HessianProxyFactory;
import com.caucho.hessian.client.HessianRuntimeException;
import android.app.Activity;
import android.os.Bundle;
public class HessianAPIActivity extends Activity{
/**
* @param args
*/
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
try {
String url = "http://www.caucho.com/hessian/test/basic";
HessianProxyFactory factory = new HessianProxyFactory();
Basic basic = (Basic) factory.create(Basic.class, url);
System.out.println("Hello: " + basic.hello());
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
//e.printStackTrace();
}
}
}
______________________________________________________________
____________________________________
package example.ex;
public interface Basic {
public String hello();
}
____________________________________