Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 78915 - [55cat] Debugging mobile app asks for server password
[55cat] Debugging mobile app asks for server password
Status: NEW
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9
PC Windows XP
: P4 (vote)
: 6.x
Assigned To: Vince Kraemer
Depends on:
  Show dependency treegraph
Reported: 2006-06-22 18:30 UTC by brviking
Modified: 2009-05-25 21:05 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
Description brviking 2006-06-22 18:30:47 UTC
[ BUILD # : 200606210200 ]
[ JDK VERSION : 1.5.0_06 ]

I have three Sun App Server 9 like servers installed and registered:

- Glassfish b48, with default admin/adminadmin user and password (stopped)
- Glassfish UR1, with default admin/adminadmin user and password (stopped)
- Sun App Server 9, with custom user/password (running as service).

Whenever I ask "debug main project" (that is a mobile application with no dependencies set to any web app), NB 5.5 ask password for two stopped servers.
Comment 1 _ ludo 2006-09-07 00:07:14 UTC
For soem reason, debugging mobile apps trigger J2EEServer module calls.
Whne the name/password dialog was up, I did a thread dump.
Here is what I see:
        - locked <0x05885440> (a
        at org.netbeans.modules.j2ee.sun.ide.j2ee.StartSunServer.isRunning(Start
        at org.netbeans.modules.j2ee.deployment.impl.ServerInstance$
        at org.openide.util.RequestProcessor$

        at org.openide.util.RequestProcessor$

So why at org.netbeans.modules.j2ee.deployment.impl.ServerInstance$
is called when you debug a J2ME APP?
This call is triggering some admin calls on the backend and if for some reason
the password is not known, then there is this dialog which is prompted. 

Movin to correct category for more analysis.
Comment 2 Sherold Dev 2006-09-07 10:00:15 UTC
When a new debugger session is being created the j2eeserver checks whether this
session belongs to one of the registered servers and if it does, it starts
listening to that session changes and updates the server node respectively. This
is how we can determine that the server got suspended and then hide the server
node subnodes and disable server state management actions.

Reassigning back to the sunappserv9 module to decide what can be done about this. 

BTW, do we really need to know username and password to check whether the server
is running?
Comment 3 _ ludo 2006-09-07 16:52:19 UTC
Yes the logic is that isrunning returns false when u/p is not good.
The reason for that is that if we return true, then the entire logic for
j2eeserver is broken: there is no state management for a running server, but
without ability to talk to it because the password is wrong.

So I still believe it is a j2eeserver lifecycle bug.
In anycase, I do not see a fix for 5.5 without changing j2eeserver module
Comment 4 Vince Kraemer 2007-09-12 23:48:22 UTC
Is the service on the same ports as the other two domains...

Can all these servers be started at the same time?

It seems like moving the service to a different set of ports might address this since...
  the dialog should not appear if the domain's admin port not accepting connections.

Comment 5 Vince Kraemer 2007-09-20 00:55:11 UTC
since multiple servers could be defined on the same host/port combo localhost:4848, the serevr needs to be contacted, to
verify that the correct instance is being flagged as running. To figure this out, we have to ask the DAS, where are you
installed.  This question has to be authenticated to get an answer.

If all the instances on a developers machine have the same u/p OR live on unique ports this situation will not happen..
 It appears that the user has multiple servers configured to the same port with different u/p.  I think we would need to
stop the layer that opens the authentication dialog from doing so, and assume that the bad auth. meant... I am not
running... but that puts users who are security concious in a pickle, because they would never get told that their
server was running.

I think the work-around is to:
1. put all the instances that live on a host/port combo on a single user name password
2. put all instance on unique host/port combos on a single machine.

Since there is a work-around, i am going to lower the priority on this one and set the TM to future.
Comment 6 Vince Kraemer 2008-10-18 00:19:07 UTC
I don't know if this applies to v3.  I will raise this to p3 if we come across a case where it does occur, since we are
unlikely to address this in the v2 plugin.
Comment 7 Vince Kraemer 2008-12-24 21:58:23 UTC
examine after 7.0

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo