• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps InvocationTargetException

krishna.c

Newbie
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();
}

____________________________________
 
Hello,

When I reach the line in bold, typing F6 doesn't move the cursor to the next line. Instead, it throws the exception (Invocation Target).

Krishna.
 
Back
Top Bottom