Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

test: Reply
 
LinkBack Thread Tools
Old April 19th, 2011, 02:54 AM   #1 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Apr 2011
Posts: 15
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default InvocationTargetException

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

____________________________________

Advertisements
krishna.c is offline  
Reply With Quote
sponsored links
Old April 19th, 2011, 05:15 AM   #2 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Apr 2011
Posts: 15
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
krishna.c is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 08:29 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.