Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

cannot debug ejb
Last w, I had some problem debugging an ejb application, web part.

Now, it seems I can't debug the ejb part (session beans) of a new
application I created. The debugger simply doesn't stop on breakpoints on
the bean classes.

Seems to me that netbeans is broken again... or am I missing something? Any
idea?
--
View this message in context: http://www.nabble.com/cannot-debug-.../>
603097.html
Sent from the Netbeans - J2EE mailing list archive at Nabble.com.



Report this thread to moderator Post Follow-up to this message
Old Post
ymajoros
06-03-08 12:47 AM


Re: cannot debug ejb
ymajoros napsal(a):
> Last w, I had some problem debugging an ejb application, web part.
>
> Now, it seems I can't debug the ejb part (session beans) of a new
> application I created. The debugger simply doesn't stop on breakpoints on
> the bean classes.
>
> Seems to me that netbeans is broken again... or am I missing something? An
y
> idea?
>
Hi,

are you using NetBeans 6.1 with patch1 ?

Dan Kolar


Report this thread to moderator Post Follow-up to this message
Old Post
Dan Kolar
06-03-08 12:47 AM


Re: cannot debug ejb
Check to make sure that you are referencing the correct machine in your
debug control panel. Sometimes if you are on a network and then leave
that network, netbeans remembers the machine name you use on your
network and that will not work. Try localhost instead if that's appropriate.

..\Wendy

Dan Kolar wrote:
> ymajoros napsal(a): 
> Hi,
>
> are you using NetBeans 6.1 with patch1 ?
>
> Dan Kolar


--
..\Wendy
Wendy Bossons
Senior User Interface Developer
Harvard-MIT Data Center
Office Phone:  617-384-5701
Email: wbossons <at> hmdc.harvard.edu



Report this thread to moderator Post Follow-up to this message
Old Post
Wendy Bossons
06-03-08 12:47 AM


Re: cannot debug ejb
What's the debug control panel?

Everything is on a locally installed server, I didn't run it on a remote
server.

I tried under netbean 6.0 and 6.1 patch 1.



wbossons wrote:
>
> Check to make sure that you are referencing the correct machine in your
> debug control panel. Sometimes if you are on a network and then leave
> that network, netbeans remembers the machine name you use on your
> network and that will not work. Try localhost instead if that's
> appropriate.
>
> ..\Wendy
>
> Dan Kolar wrote: 
>
>
> --
> ..\Wendy
> Wendy Bossons
> Senior User Interface Developer
> Harvard-MIT Data Center
> Office Phone:  617-384-5701
> Email: wbossons <at> hmdc.harvard.edu
>
>
> begin:vcard
> fn:Wendy Bossons
> n:Bossons;Wendy
> tel;work:617-384-5701
> note:wbossons <at> hmdc.harvard.edu
> version:2.1
> end:vcard
>
>
>

--
View this message in context: http://www.nabble.com/cannot-debug-.../>
642693.html
Sent from the Netbeans - J2EE mailing list archive at Nabble.com.



Report this thread to moderator Post Follow-up to this message
Old Post
ymajoros
06-04-08 10:33 AM


Re: cannot debug ejb
Now, it seems I have this problem when trying to debug an application client
.
Don't know if it would be the same for a web app.


ymajoros wrote:
>
> What's the debug control panel?
>
> Everything is on a locally installed server, I didn't run it on a remote
> server.
>
> I tried under netbean 6.0 and 6.1 patch 1.
>
>
>
> wbossons wrote: 
>
>

--
View this message in context: http://www.nabble.com/cannot-debug-.../>
645943.html
Sent from the Netbeans - J2EE mailing list archive at Nabble.com.



Report this thread to moderator Post Follow-up to this message
Old Post
ymajoros
06-04-08 01:36 PM


Re: cannot debug ejb
When you choose Run|Attach Debugger, there is a panel that pops up.

There is a host setting -- it should refer to your localhost or loopback
address.

Also, you may have to check your domain.xml to see if you have debugging
allowed. Look for this line ...

<java-config classpath-suffix="" debug-enabled="true"
debug-options="-Xdebug
- Xrunjdwp:transport=dt_socket,server=y,su
spend=n,address=9009"
env-classpath-ignored="true" java-home="${com.sun.aas.javaRoot}"
javac-options="-g" rmic-options="-iiop -poa -alwaysgenerate
-keepgenerated -g" system-classpath="">

Make sure that debug-enabled is set to true. Also, verify that the port
is correct.

..\W

ymajoros wrote:
> What's the debug control panel?
>
> Everything is on a locally installed server, I didn't run it on a remote
> server.
>
> I tried under netbean 6.0 and 6.1 patch 1.
>
>
>
> wbossons wrote:
> 
>
>


--
..\Wendy
Wendy Bossons
Senior User Interface Developer
Harvard-MIT Data Center
Office Phone:  617-384-5701
Email: wbossons <at> hmdc.harvard.edu



Report this thread to moderator Post Follow-up to this message
Old Post
Wendy Bossons
06-04-08 01:36 PM


Re: cannot debug ejb
debug-enabled was set to "false", but if I set it to "true", I get this, and
the application doesn't start:

FATAL ERROR in native method: JDWP No transports initialized,
 jvmtiError=AGENT_ERROR_TRANSPORT_INIT(19
7)
ERROR: transport error 202: bind failed: Address already in use
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized
[../../../src/share/back/debugInit.c:690]
Java Result: 1
Attached JPDA debugger to localhost:9009
debug-Doctorats-app-client:
debug:
BUILD SUCCESSFUL (total time: 44 seconds)

Here is the domain.xml line (with debug-enabled set to false):

<java-config
classpath-suffix="d:/Sun/AppServer/lib/Doctorats-authmodule.jar"
debug-enabled="false" debug-options="-Xdebug
- Xrunjdwp:transport=dt_socket,server=y,su
spend=n,address=9009"
env-classpath-ignored="true" java-home="${com.sun.aas.javaRoot}"
javac-options="-g" rmic-options="-iiop -poa -alwaysgenerate -keepgenerated
-g">

I don't usually attach to the client application by hand (although I tried,
and it works). I click on "debug" on my ear project.




wbossons wrote:
>
> When you choose Run|Attach Debugger, there is a panel that pops up.
>
> There is a host setting -- it should refer to your localhost or loopback
> address.
>
> Also, you may have to check your domain.xml to see if you have debugging
> allowed. Look for this line ...
>
> <java-config classpath-suffix="" debug-enabled="true"
> debug-options="-Xdebug
> - Xrunjdwp:transport=dt_socket,server=y,su
spend=n,address=9009"
> env-classpath-ignored="true" java-home="${com.sun.aas.javaRoot}"
> javac-options="-g" rmic-options="-iiop -poa -alwaysgenerate
> -keepgenerated -g" system-classpath="">
>
> Make sure that debug-enabled is set to true. Also, verify that the port
> is correct.
>
> ..\W
>

--
View this message in context: http://www.nabble.com/cannot-debug-.../>
647124.html
Sent from the Netbeans - J2EE mailing list archive at Nabble.com.



Report this thread to moderator Post Follow-up to this message
Old Post
ymajoros
06-05-08 12:50 AM


Re: cannot debug ejb
update (kind of unsatisfaying solution):

If I set debug-enabled to true in domain.xml, then run my project in
netbeans (clicking "debug" fails), then attach the debugger... it works! Is
this some bug in netbeans?

Side note, far less important for me: whatever the situation, netbeans
always asks this question before debugging: "Is server running in debug
mode?". Whatever the truth is, if you say "yes", you get an error message. I
think I don't get the point. Can't it ask the server without bugging the
user, and take appropriate steps?



ymajoros wrote:
>
> debug-enabled was set to "false", but if I set it to "true", I get this,
> and the application doesn't start:
>
> FATAL ERROR in native method: JDWP No transports initialized,
>  jvmtiError=AGENT_ERROR_TRANSPORT_INIT(19
7)
> ERROR: transport error 202: bind failed: Address already in use
> ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
> JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized
> [../../../src/share/back/debugInit.c:690]
> Java Result: 1
> Attached JPDA debugger to localhost:9009
> debug-Doctorats-app-client:
> debug:
> BUILD SUCCESSFUL (total time: 44 seconds)
>
> Here is the domain.xml line (with debug-enabled set to false):
>
>  <java-config
> classpath-suffix="d:/Sun/AppServer/lib/Doctorats-authmodule.jar"
> debug-enabled="false" debug-options="-Xdebug
> - Xrunjdwp:transport=dt_socket,server=y,su
spend=n,address=9009"
> env-classpath-ignored="true" java-home="${com.sun.aas.javaRoot}"
> javac-options="-g" rmic-options="-iiop -poa -alwaysgenerate -keepgenerated
> -g">
>
> I don't usually attach to the client application by hand (although I
> tried, and it works). I click on "debug" on my ear project.
>
>
>
>
> wbossons wrote: 
>
>

--
View this message in context: http://www.nabble.com/cannot-debug-.../>
647435.html
Sent from the Netbeans - J2EE mailing list archive at Nabble.com.



Report this thread to moderator Post Follow-up to this message
Old Post
ymajoros
06-05-08 12:50 AM


Re: cannot debug ejb
Ok, I reposted this in a new thread, to make it clearer.


ymajoros wrote:
>
> update (kind of unsatisfaying solution):
>
> If I set debug-enabled to true in domain.xml, and I then run my project in
> netbeans (clicking "debug" fails), then attach the debugger... it works!
> Is this some bug in netbeans? There are some issues with that (unable to
> recompile a class while running, more ui gestures to simply debug the
> application, ...).
>
> Side note, far less important for me: whatever the situation, netbeans
> always asks this question before debugging: "Is server running in debug
> mode?". Whatever the truth is, if you say "yes", you get an error message.
> I think I don't get the point. Can't it ask the server without bugging the
> user, and take appropriate steps?
>
>
>
> ymajoros wrote: 
>
>

--
View this message in context: http://www.nabble.com/cannot-debug-.../>
665101.html
Sent from the Netbeans - J2EE mailing list archive at Nabble.com.



Report this thread to moderator Post Follow-up to this message
Old Post
ymajoros
06-05-08 10:25 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Netbeans J2EE archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:51 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.