This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 132035 - cannot connect to jdbc/sample in new entities from DB wizard
Summary: cannot connect to jdbc/sample in new entities from DB wizard
Status: VERIFIED DUPLICATE of bug 132037
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: David Vancouvering
URL: http://hg.netbeans.org/main/file/tip/...
Keywords: T9Y, TEST
: 135305 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-04 12:14 UTC by Lukas Jungmann
Modified: 2008-09-23 16:22 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
jemmy log file (64.93 KB, text/plain)
2008-04-29 07:37 UTC, John Baker
Details
runtime output (5.91 KB, text/plain)
2008-04-29 07:38 UTC, John Baker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2008-04-04 12:14:08 UTC
-start IDE with a fresh userdir
-create new web project (register glassfish in the 2nd step of this wizard)
-open new Entity class from DB wizard
-choose jdbc/sample connection

=> nothing happens, no entities are found - IDE is not able to connect to sample DB (it can connect to jdbc/_default);
workaround seems to be to rerun the wizard

easily reproducible in tests on winxp and linux, not so often happening on solaris or during manual testing
Comment 1 Lukas Jungmann 2008-04-07 13:04:28 UTC
This issue is blocking majority of tests for websvc.restkit => P2
Comment 2 Andrei Badea 2008-04-07 13:45:59 UTC
Since the introduction of ChildFactory, DatabaseConnection.findConnectionNodeInfo() didn't wait for the Databases node
to be initialized. It expected a "Please wait" node, but there was a "Please Wait" one (created by ChildFactory). Since
Children.getNodes(true) accounts for the wait node, simplest to just use that.

f76535a72980
Comment 3 Lukas Jungmann 2008-04-08 15:11:52 UTC
sorry, but tests can still reproduce this even in current trunk on winXP-64bit (I use ant -Dcluster.config=j2ee and then
ant -f xtest/build.xml;cd websvc.restkit/test;ant -Dj2ee.appserver.path=d:\path\to\glassfish)

note that I have local installation of MySQL server
Comment 4 Andrei Badea 2008-04-09 16:58:30 UTC
Another attempt.

0d04a9e80dbb
Comment 5 Lukas Jungmann 2008-04-10 10:45:50 UTC
Good news is that it seems to work fine on linux.

Bad news is that tests can still reproduce this in 100% cases on win xp.

Sorry
Comment 6 Lukas Jungmann 2008-04-10 11:46:42 UTC
btw: you should be able to run that test directly in your IDE using run file action, you only have to make sure that:
-IDE is started with -J-Dcom.sun.aas.installRoot=/path/to/server
-websvc.restkit/nbproject/private/private.properties contains: j2ee.appserver.path=/path/to/server
-glassfish node under the server node is named like "GlassFish V2"

more details are at: http://wiki.netbeans.org/WSTests#section-WSTests-FunctionalTests (look for RESTful Web Services
support there)
Comment 7 Andrei Badea 2008-04-10 12:14:09 UTC
I could reproduce in Linux and the fix in desc5 addressed that. I'm giving up. David, do I recall correctly that you use
Windows?
Comment 8 John Baker 2008-04-29 07:31:36 UTC
Using build 080421, I ran the REST tests on Windows XP and apparently there was no problem finding the sample database
(at least no test failures due to any database problem).  I can attach the results to verify I ran the right tests.
Comment 9 David Vancouvering 2008-04-29 07:33:30 UTC
This sounds like a duplicate of a bug I fixed recently, see issue 132037
Comment 10 John Baker 2008-04-29 07:36:25 UTC
zipping up the entire test results produces too large a file to zip.

I'll attach the jemmy log file and another result file from the WebServiceSamplesTest test
Comment 11 John Baker 2008-04-29 07:37:56 UTC
Created attachment 60785 [details]
jemmy log file
Comment 12 John Baker 2008-04-29 07:38:21 UTC
Created attachment 60786 [details]
runtime output
Comment 13 John Baker 2008-04-29 07:40:35 UTC
Could the problem with finding the sample databases be caused by a Glassfish installation problem?
Comment 14 John Baker 2008-04-29 17:34:20 UTC
Looks like a duplicate of 132037

*** This issue has been marked as a duplicate of 132037 ***
Comment 15 Lukas Jungmann 2008-05-02 10:26:18 UTC
Dan, this is the issue we discussed a while ago...
Comment 16 Dan Kolar 2008-05-26 15:54:12 UTC
*** Issue 135305 has been marked as a duplicate of this issue. ***
Comment 17 Lukas Jungmann 2008-09-23 16:22:54 UTC
ok.