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: | AssertionError: Inconsistent state when driverName is null but other parameters (url?jdbc:sqlserver://sqlserver1;databaseName=WebRequest;IntegratedSecurity=true;, class?null, user? false are not | ||
---|---|---|---|
Product: | javaee | Reporter: | muellermi <muellermi> |
Component: | Web Project | Assignee: | David Konecny <dkonecny> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jhavlin, muellermi |
Priority: | P3 | ||
Version: | 7.2 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 188242 |
Attachments: |
stacktrace
stacktrace Patch stacktrace |
Description
muellermi
2012-05-23 07:39:40 UTC
Created attachment 119758 [details]
stacktrace
Created attachment 119759 [details]
stacktrace
This problem is serious. Even when I delete the data source and re-create a fresh one, I'll get a reference problem which can't be resolved because of this bug.
SQLServer is commonly configured using windows authentication (integrated security), thus no user and password is provided!
But a driver name is provided. I double-checked this.
I'm sorry, I cannot reproduce. Please, could you attach your datasource configuration? > I'm sorry, I cannot reproduce.
> Please, could you attach your datasource configuration?
Reproduced.
(In reply to comment #2) > SQLServer is commonly configured using windows authentication (integrated > security), thus no user and password is provided! > But a driver name is provided. I double-checked this. It seems that the problem is not caused by missing user name, but the driver specified in context.xml//Context/Resource/@driverClassName is not registered in Netbeans (Services window/Databases/Drivers). Please, try to add the specified driver, and let me know whether it helped. Thank you. Maybe this should be fixed in the Web Project module. If correct driver is not found for the data source, users should be notified about it. Otherwise they could create a connection that is not related to the broken data source, and the problem would not be resolved. Reassigning. Please check the patch. (The notification dialogs are not very nice, but showing the messages in Add Driver dialog would require an API change). By the way, is this feature still necessary (after the visual web support was dropped)? Created attachment 119809 [details]
Patch
Created attachment 119815 [details]
stacktrace
Still the same problem with build 201205240002
> It seems that the problem is not caused by missing user name, but the driver specified in context.xml//Context/Resource/@driverClassName is not registered in Netbeans (Services window/Databases/Drivers).
> Please, try to add the specified driver, and let me know whether it helped. Thank you.
Yep, this helped.
No need for this in previous versions:
if a driver was not present, click to add data source and NetBeans asked for the driver in that dialog.
Patch looks OK so I committed it. Thanks jhavlin! a8b7d765852c Integrated into 'main-golden', will be available in build *201210310001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/a8b7d765852c User: David Konecny <dkonecny@netbeans.org> Log: #212875 - AssertionError: Inconsistent state when driverName is null but other parameters (url?jdbc:sqlserver://sqlserver1;databaseName=WebRequest;IntegratedSecurity=true;, class?null, user? false are not applying patch from jhavlin@netbeans.org - Thanks! |