Menu

#27 Null pointer exception with MSSQL

open
nobody
None
5
2003-12-12
2003-12-12
elmussol
No

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 !

Discussion

  • Rich Markle

    Rich Markle - 2004-03-10

    Logged In: YES
    user_id=17193

    You can also vi the /workspace/.metadata/.plugins/hibernator
    file.

     
  • Mike Evans

    Mike Evans - 2004-04-19

    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()?

     
  • dkrebs

    dkrebs - 2004-08-25

    Logged In: YES
    user_id=1110531

    JK

     
  • Nobody/Anonymous

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.