Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » resolving "Source not found" error message during debugging(how to resolve the path causing "Source not found" error message???)
resolving "Source not found" error message during debugging [message #506688] Fri, 08 January 2010 18:54 Go to next message
oregonduckman  is currently offline oregonduckman
Messages: 1
Registered: January 2010
Junior Member
I am doing Android development on a Mac with Eclipse and have the skeleton for an app that implements the standard framework callbacks (onCreate, onDestroy, onPause, etc..). When I set breakpoints in the callbacks the debugger stops and displays a tab that says:

" ActivityThread.performLaunchActivity(ActivityThread$Activity Record,Intent)line:2477 " and in the tab page body there is some red text that says "Source not found" and a button that says "Edit Source Lookup Path...".

I have tried adding several paths via "Edit Source Lookup Path..." but can't see to find the one Eclipse is looking for.

Can anyone point me in the right direction?
Re: resolving "Source not found" error message during debugging [message #507015 is a reply to message #506688] Mon, 11 January 2010 11:58 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric Rizzo
Messages: 2313
Registered: July 2009
Senior Member
On 1/8/10 1:54 PM, oregonduckman wrote:
> I am doing Android development on a Mac with Eclipse and have the
> skeleton for an app that implements the standard framework callbacks
> (onCreate, onDestroy, onPause, etc..). When I set breakpoints in the
> callbacks the debugger stops and displays a tab that says:
>
> " ActivityThread.performLaunchActivity(ActivityThread$Activity
> Record,Intent)line:2477 " and in the tab page body there is some red
> text that says "Source not found" and a button that says "Edit Source
> Lookup Path...".
>
> I have tried adding several paths via "Edit Source Lookup Path..." but
> can't see to find the one Eclipse is looking for.
> Can anyone point me in the right direction?

You'll need to figure out which library (JAR) the ActivityThread class
is coming from and then find or obtain the source for it. If it's part
of Android then I'm surprised that the source wouldn't be included
automatically - perhaps your project is not set up correctly.
Sorry, but I haven't used the Android SDK so I can't say for certain.
But generally speaking, if an SDK includes the source for its libraries
and your project is created/set up correctly, source lookup "just works."

Hope this helps,
Eric
Re: resolving "Source not found" error message during debugging [message #654510 is a reply to message #507015] Wed, 16 February 2011 06:57 Go to previous messageGo to next message
Pham Vu Duong is currently offline Pham Vu Duong
Messages: 1
Registered: February 2011
Junior Member
Hi friends,
I have the same bug, too.

But I'm not sure it's because of lack of jar library.

I use many similar code in my source code but only one has problem:
	        menuNews = findViewById(R.id.menuNews);
	        
	        menuNews.setOnClickListener(new View.OnClickListener() {

				@Override
				public void onClick(View v) {
					MyInfo.this.finish();
					Intent intent = new Intent (MyInfo.this, TheNews.class);
					intent.setFlags (Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
					startActivity(intent);
				}
	        	
	        });
	        
	        menuMap = findViewById(R.id.menuMap);
	        
	        menuMap.setOnClickListener (new View.OnClickListener() {

				@Override
				public void onClick(View v) {
					MyInfo.this.finish();
					Intent intent = new Intent (MyInfo.this,MyMap.class);
					intent.setFlags (Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
					startActivity(intent);
					
				}
	        	
	        });
	        
	        menuGift = findViewById(R.id.menuGift);
	        
	        menuGift.setOnClickListener (new View.OnClickListener() {

				@Override
				public void onClick(View v) {
					MyInfo.this.finish();
					Intent intent = new Intent (MyInfo.this, MyGift.class);
					intent.setFlags (Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
					startActivity(intent);
				}
	        	
	        });


As you can see, I have 3 menu buttons. It runs well if I push the first two buttons (News and Map). But the app is forced to stop when I clicked on the third menu button Gift.

I switch the Map and Gift (call Gift when clicking Map button and call Map when clicking Gift button), the app stop when clicking Map button.

So something wrong with the Gift screen.

Then I check the MyGift class, the three class have the same constructor and methods:

- MyMap:
	public void onCreate(Bundle savedInstanceState) {
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		super.onCreate(savedInstanceState);
		setContentView (R.layout.my_map);

	       //....
	}
	protected void onResume() {
		super.onResume();
		//...
	}


- MyGift:
	public void onCreate(Bundle savedInstanceState) {
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		super.onCreate(savedInstanceState);
		setContentView(R.layout.my_gift);

	       //....
	}
	protected void onResume() {
		super.onResume();
		//...
	}


Could anyone please explain this?
Thank you very much.

Duong.
Re: resolving "Source not found" error message during debugging [message #654607 is a reply to message #654510] Wed, 16 February 2011 13:29 Go to previous messageGo to next message
Russell Bateman is currently offline Russell Bateman
Messages: 3227
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

And yet, this isn't an Android support forum except to the extent that
you have specific trouble with Eclipse, setting it up, etc. The best
Android support forums I've found are noted here:

http://www.javahotchocolate.com/tutorials/android.html#suppo rt


On 2011.02.15 23:57, Pham Vu Duong wrote:
> Hi friends,
> I have the same bug, too.
>
> But I'm not sure it's because of lack of jar library.
>
> I use many similar code in my source code but only one has problem:
>
> menuNews = findViewById(R.id.menuNews);
> menuNews.setOnClickListener(new View.OnClickListener() {
>
> @Override
> public void onClick(View v) {
> MyInfo.this.finish();
> Intent intent = new Intent (MyInfo.this, TheNews.class);
> intent.setFlags (Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
> startActivity(intent);
> }
>
> });
> menuMap = findViewById(R.id.menuMap);
> menuMap.setOnClickListener (new View.OnClickListener() {
>
> @Override
> public void onClick(View v) {
> MyInfo.this.finish();
> Intent intent = new Intent (MyInfo.this,MyMap.class);
> intent.setFlags (Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
> startActivity(intent);
>
> }
>
> });
> menuGift = findViewById(R.id.menuGift);
> menuGift.setOnClickListener (new View.OnClickListener() {
>
> @Override
> public void onClick(View v) {
> MyInfo.this.finish();
> Intent intent = new Intent (MyInfo.this, MyGift.class);
> intent.setFlags (Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
> startActivity(intent);
> }
>
> });
>
>
> As you can see, I have 3 menu buttons. It runs well if I push the first
> two buttons (News and Map). But the app is forced to stop when I clicked
> on the third menu button Gift.
>
> I switch the Map and Gift (call Gift when clicking Map button and call
> Map when clicking Gift button), the app stop when clicking Map button.
>
> So something wrong with the Gift screen.
>
> Then I check the MyGift class, the three class have the same constructor
> and methods:
>
> - MyMap:
>
> public void onCreate(Bundle savedInstanceState) {
> requestWindowFeature(Window.FEATURE_NO_TITLE);
> super.onCreate(savedInstanceState);
> setContentView (R.layout.my_map);
>
> //....
> }
> protected void onResume() {
> super.onResume();
> //...
> }
>
>
> - MyGift:
>
> public void onCreate(Bundle savedInstanceState) {
> requestWindowFeature(Window.FEATURE_NO_TITLE);
> super.onCreate(savedInstanceState);
> setContentView(R.layout.my_gift);
>
> //....
> }
> protected void onResume() {
> super.onResume();
> //...
> }
>
>
> Could anyone please explain this?
> Thank you very much.
>
> Duong.
>
Re: resolving "Source not found" error message during debugging [message #714551 is a reply to message #654607] Wed, 10 August 2011 20:19 Go to previous message
Jack Hogue is currently offline Jack Hogue
Messages: 1
Registered: August 2011
Junior Member
Thanks for the link Russel..
Previous Topic:Find Eclipse Package name?
Next Topic:Unable to install Subeclipse from Indigo through marketplace
Goto Forum:
  


Current Time: Sun Oct 26 08:41:42 GMT 2014

Powered by FUDForum. Page generated in 0.09165 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software