Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » The selected stack frame must be associated with a Java project in the workspace
The selected stack frame must be associated with a Java project in the workspace [message #210094] Tue, 19 July 2005 06:52 Go to next message
Eclipse UserFriend
Originally posted by: hemalpandya.gmail.com

I am still quite new to Eclipse so my apologies in advance if this is a
dumb quesion or the wrong newsgroup.

I am quite confused by the above message that I sometimes get when I
display/inspect some expression. A variable whose value is displayed in
the Variables window and also displayed in tool-tip on mouse hover cannot
be displayed in the Display/Inspect/Watch windows.

I am using Eclipse 3.0.1. This is a project that has been built using ant
and deployed in tomcat that I am remote-debugging.

I will appreciate if someone can point out what I am doing wrong and how I
can fix it.

--
hemal
Re: The selected stack frame must be associated with a Java project in the works [message #210101 is a reply to message #210094] Tue, 19 July 2005 07:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hemalpandya.gmail.com

Sorry to follow up on my own post. Does this have anything to do with
anonymous classes? I get this error even on the first stack frame that
belongs to an anonymous class; Display/Inspect/Watch work correctly in the
previous stack frames.

Thanks,

--
hemal
Re: The selected stack frame must be associated with a Java project in the workspace [message #210145 is a reply to message #210094] Tue, 19 July 2005 09:38 Go to previous messageGo to next message
Eclipse UserFriend
To perform an evaluation in the debugger, the expression must be compiled.
To compile the expression, the Java debugger attempts to resolve a Java
project associated with the stack frame of the selected variable. It is
possible you have set up a remote debug session with source 'external' to
the workspace (i.e. not contained in Java projects with build paths). In
this case, the expression cannot be compiled in order to be evaluated.

Darin

"Hemal Pandya" <hemalpandya@gmail.com> wrote in message
news:86759a8f43aee057ede37a85c1205e0e$1@www.eclipse.org...
>I am still quite new to Eclipse so my apologies in advance if this is a
>dumb quesion or the wrong newsgroup.
>
> I am quite confused by the above message that I sometimes get when I
> display/inspect some expression. A variable whose value is displayed in
> the Variables window and also displayed in tool-tip on mouse hover cannot
> be displayed in the Display/Inspect/Watch windows.
>
> I am using Eclipse 3.0.1. This is a project that has been built using ant
> and deployed in tomcat that I am remote-debugging.
> I will appreciate if someone can point out what I am doing wrong and how I
> can fix it.
> --
> hemal
>
Re: The selected stack frame must be associated with a Java project in the workspace [message #210237 is a reply to message #210145] Wed, 20 July 2005 00:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hemalpandya.gmail.com

Thanks you Darin. While this explains why the error would occur usually, I
do not think it applies in this case. The first few frames in stack are as
follows:

Thread [HttpProcessor[4040][4]] (Suspended (breakpoint at line 4182 in
XXWindowsApp))
XXWindowsApp.CreateAppData(XXDataAccess, XXRequest, XXResponse,
XXDataSource, int) line: 4182
XXWindowsApp.access$1400(XXWindowsApp, XXDataAccess, XXRequest, XXResponse,
XXDataSource, int) line: 124
XXWindowsApp$39.Execute(XXDataAccess, XXRequest, XXResponse, XXDataSource,
Map) line: 901
XXWindowsApp(XXApplication).HandleRequest(XXDataAccess, XXRequest,
XXResponse, XXDataSource, Map) line: 490

Among these, I am able to use the display window in HandleRequest but not in
CreateAppData, both of which belong to the same class. CreateAppData has
been called by a generated method access$1400, which in turn has been called
by Execute method of the anonymous class WindowsApp$39. Is it possible one
of these is confusing Eclipse?

It is very important that I be able to remote-debug this in eclipse. The
ant-build is not a very clean process. I am hoping I will be able to find
the solution in this forum. Thanks in advance for help.

"Darin Wright" <Darin_Wright@ca.ibm.com> wrote in message
news:dbivoj$l2v$1@news.eclipse.org...
> To perform an evaluation in the debugger, the expression must be compiled.
> To compile the expression, the Java debugger attempts to resolve a Java
> project associated with the stack frame of the selected variable. It is
> possible you have set up a remote debug session with source 'external' to
> the workspace (i.e. not contained in Java projects with build paths). In
> this case, the expression cannot be compiled in order to be evaluated.
>
> Darin
>
> "Hemal Pandya" <hemalpandya@gmail.com> wrote in message
> news:86759a8f43aee057ede37a85c1205e0e$1@www.eclipse.org...
>>I am still quite new to Eclipse so my apologies in advance if this is a
>>dumb quesion or the wrong newsgroup.
>>
>> I am quite confused by the above message that I sometimes get when I
>> display/inspect some expression. A variable whose value is displayed in
>> the Variables window and also displayed in tool-tip on mouse hover cannot
>> be displayed in the Display/Inspect/Watch windows.
>>
>> I am using Eclipse 3.0.1. This is a project that has been built using ant
>> and deployed in tomcat that I am remote-debugging.
>> I will appreciate if someone can point out what I am doing wrong and how
>> I can fix it.
>> --
>> hemal
>>
>
>
Re: The selected stack frame must be associated with a Java project in the workspace [message #210290 is a reply to message #210237] Wed, 20 July 2005 09:08 Go to previous messageGo to next message
Eclipse UserFriend
This does sound suspicious - i.e. being able to evaluate in one frame, but
not another from the same declaring type. Filing a bug would be helpful, if
you had a test case you could provide to reproduce the problem.

Darin

"Hemal Pandya" <hemalpandya@gmail.com> wrote in message
news:dbkinf$djq$1@news.eclipse.org...
> Thanks you Darin. While this explains why the error would occur usually, I
> do not think it applies in this case. The first few frames in stack are as
> follows:
>
> Thread [HttpProcessor[4040][4]] (Suspended (breakpoint at line 4182 in
> XXWindowsApp))
> XXWindowsApp.CreateAppData(XXDataAccess, XXRequest, XXResponse,
> XXDataSource, int) line: 4182
> XXWindowsApp.access$1400(XXWindowsApp, XXDataAccess, XXRequest,
> XXResponse, XXDataSource, int) line: 124
> XXWindowsApp$39.Execute(XXDataAccess, XXRequest, XXResponse, XXDataSource,
> Map) line: 901
> XXWindowsApp(XXApplication).HandleRequest(XXDataAccess, XXRequest,
> XXResponse, XXDataSource, Map) line: 490
>
> Among these, I am able to use the display window in HandleRequest but not
> in CreateAppData, both of which belong to the same class. CreateAppData
> has been called by a generated method access$1400, which in turn has been
> called by Execute method of the anonymous class WindowsApp$39. Is it
> possible one of these is confusing Eclipse?
>
> It is very important that I be able to remote-debug this in eclipse. The
> ant-build is not a very clean process. I am hoping I will be able to find
> the solution in this forum. Thanks in advance for help.
>
> "Darin Wright" <Darin_Wright@ca.ibm.com> wrote in message
> news:dbivoj$l2v$1@news.eclipse.org...
>> To perform an evaluation in the debugger, the expression must be
>> compiled. To compile the expression, the Java debugger attempts to
>> resolve a Java project associated with the stack frame of the selected
>> variable. It is possible you have set up a remote debug session with
>> source 'external' to the workspace (i.e. not contained in Java projects
>> with build paths). In this case, the expression cannot be compiled in
>> order to be evaluated.
>>
>> Darin
>>
>> "Hemal Pandya" <hemalpandya@gmail.com> wrote in message
>> news:86759a8f43aee057ede37a85c1205e0e$1@www.eclipse.org...
>>>I am still quite new to Eclipse so my apologies in advance if this is a
>>>dumb quesion or the wrong newsgroup.
>>>
>>> I am quite confused by the above message that I sometimes get when I
>>> display/inspect some expression. A variable whose value is displayed in
>>> the Variables window and also displayed in tool-tip on mouse hover
>>> cannot be displayed in the Display/Inspect/Watch windows.
>>>
>>> I am using Eclipse 3.0.1. This is a project that has been built using
>>> ant and deployed in tomcat that I am remote-debugging.
>>> I will appreciate if someone can point out what I am doing wrong and how
>>> I can fix it.
>>> --
>>> hemal
>>>
>>
>>
>
>
Re: The selected stack frame must be associated with a Java project in the works [message #210446 is a reply to message #210290] Thu, 21 July 2005 04:02 Go to previous message
Eclipse UserFriend
Originally posted by: hemalpandya.gmail.com

A simple test does not reproduce the problem. This is a large code-base
that I am just starting to work with. Producing a test case on its basis
is not going to be easy, but I will try.

Meanwhile, is there is any information I can produce on my install that
will help identify the problem?

Thanks.

Darin Wright wrote:

> This does sound suspicious - i.e. being able to evaluate in one frame, but
> not another from the same declaring type. Filing a bug would be helpful, if
> you had a test case you could provide to reproduce the problem.

> Darin

> "Hemal Pandya" <hemalpandya@gmail.com> wrote in message
> news:dbkinf$djq$1@news.eclipse.org...
>> Thanks you Darin. While this explains why the error would occur usually, I
>> do not think it applies in this case. The first few frames in stack are as
>> follows:
>>
>> Thread [HttpProcessor[4040][4]] (Suspended (breakpoint at line 4182 in
>> XXWindowsApp))
>> XXWindowsApp.CreateAppData(XXDataAccess, XXRequest, XXResponse,
>> XXDataSource, int) line: 4182
>> XXWindowsApp.access$1400(XXWindowsApp, XXDataAccess, XXRequest,
>> XXResponse, XXDataSource, int) line: 124
>> XXWindowsApp$39.Execute(XXDataAccess, XXRequest, XXResponse, XXDataSource,
>> Map) line: 901
>> XXWindowsApp(XXApplication).HandleRequest(XXDataAccess, XXRequest,
>> XXResponse, XXDataSource, Map) line: 490
>>
>> Among these, I am able to use the display window in HandleRequest but not
>> in CreateAppData, both of which belong to the same class. CreateAppData
>> has been called by a generated method access$1400, which in turn has been
>> called by Execute method of the anonymous class WindowsApp$39. Is it
>> possible one of these is confusing Eclipse?
>>
>> It is very important that I be able to remote-debug this in eclipse. The
>> ant-build is not a very clean process. I am hoping I will be able to find
>> the solution in this forum. Thanks in advance for help.
>>
>> "Darin Wright" <Darin_Wright@ca.ibm.com> wrote in message
>> news:dbivoj$l2v$1@news.eclipse.org...
>>> To perform an evaluation in the debugger, the expression must be
>>> compiled. To compile the expression, the Java debugger attempts to
>>> resolve a Java project associated with the stack frame of the selected
>>> variable. It is possible you have set up a remote debug session with
>>> source 'external' to the workspace (i.e. not contained in Java projects
>>> with build paths). In this case, the expression cannot be compiled in
>>> order to be evaluated.
>>>
>>> Darin
>>>
>>> "Hemal Pandya" <hemalpandya@gmail.com> wrote in message
>>> news:86759a8f43aee057ede37a85c1205e0e$1@www.eclipse.org...
>>>>I am still quite new to Eclipse so my apologies in advance if this is a
>>>>dumb quesion or the wrong newsgroup.
>>>>
>>>> I am quite confused by the above message that I sometimes get when I
>>>> display/inspect some expression. A variable whose value is displayed in
>>>> the Variables window and also displayed in tool-tip on mouse hover
>>>> cannot be displayed in the Display/Inspect/Watch windows.
>>>>
>>>> I am using Eclipse 3.0.1. This is a project that has been built using
>>>> ant and deployed in tomcat that I am remote-debugging.
>>>> I will appreciate if someone can point out what I am doing wrong and how
>>>> I can fix it.
>>>> --
>>>> hemal
Previous Topic:Removing unused imports programmatically
Next Topic:M7 ANT mail-tag hangs
Goto Forum:
  


Current Time: Mon Jun 02 17:58:43 EDT 2025

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

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

Back to the top