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.
Summary: | Can't connect to PostgreSQL 7 | ||
---|---|---|---|
Product: | db | Reporter: | serge_gray <serge_gray> |
Component: | Code | Assignee: | Jiri Rechtacek <jrechtacek> |
Status: | RESOLVED WORKSFORME | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | log during session |
Description
serge_gray
2007-10-25 11:20:32 UTC
Try if turning the proxy off (Tools - Options) helps. If it doesn't, please do a full thread dump during the wait and attach it to the issue. Thanks. I found that PosgreSQL jdbc driver type 3 (postgresql-8.2-506.jdbc3.jar) works correctly But driver type 4 works incorrectly as I wrote. How can I do a full thread dump during the wait connection? Simplest to start NetBeans from a terminal / console window and press Ctrl+\ during the wait. Also, please attach your messages.log file. It is located in var/log/messages log in your userdir (see http://wiki.netbeans.org/wiki/view/FaqWhatIsUserdir). Created attachment 51771 [details]
log during session
Seems the PostgreSQL JDBC 4 version is compiled with a 1.6 target level, but you run NetBeans on JDK 1.5. There is a "bad version number in .class file" exception towards the end of the message log caused by this. So for JDK 1.5 you need to use the JDBC 3 driver. Still a valid bug for NetBeans, because it should display an error message instead of waiting indefinitely. Reassigned to new owner. I can connect ProgreSQL via postgresql-8.2-506.jdbc4 in recent NB IDE releases (NB6.7, NB6.8Beta) |