Null pointer exception with MSSQL
Status: Beta
Brought to you by:
dbradby
After configuring my MS SQL connection for hibernator I
tried to Connect! and I got this in the Hibernator log
window:
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:389)
at java.util.Properties.setProperty
(Properties.java:102)
at
net.sf.hibernator.HibernateConnection.createConnection
(HibernateConnection.java:71)
at
net.sf.hibernator.views.ConnectionView$8.run
(ConnectionView.java:199)
at
org.eclipse.jface.operation.ModalContext$ModalContextT
hread.run(ModalContext.java:101)
By the way, why the
net.sf.hibernate.dialect.SQLServerDialect is not listed in
the combobox ? I understand that I can write anything
on it even if it does not appear on the list...
Thanks in advance !
Logged In: YES
user_id=17193
You can also vi the /workspace/.metadata/.plugins/hibernator
file.
Logged In: YES
user_id=951954
Hiya,
I get the same thing.
Traced this back to the following in performFinish() of
ConnectionPage:
int index = dialect.getSelectionIndex();
if(index != -1) initialData.setDialect(dialect.getItem(index));
Is it a requirement to select one of the given options?
If so, could I request you add MS SQLServer support -
pleeease!
If not, perhaps this could be changed to a simple
dialect.getText()?
Logged In: YES
user_id=1110531
JK
Logged In: NO
Same problem with the ingres dialog, i think this issue is a
higher priority, especially considering that i have my own
dialog that i apparently cannot use.