#223 SQL Nullpointer Exception at getLocalProperty with sybase

open
nobody
None
1
2012-08-05
2003-11-14
Andreas Kruthoff
No

When I install the SQL plugin and try to connect to the
db, an exception is thrown. jEdit-4.1, SQL-0.97, sybase
jdbc driver.

stsws012:kruthan> bin/jedit
[error] AWT-EventQueue-0: java.lang.NullPointerException
[error] AWT-EventQueue-0: at
sql.SqlPlugin.getLocalProperty(Unknown Source)
[error] AWT-EventQueue-0: at
sql.SqlServerRecord.getAllRecords(Unknown Source)
[error] AWT-EventQueue-0: at
sql.SqlUtils.showCurrentServerChooser(Unknown Source)
[error] AWT-EventQueue-0: at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[error] AWT-EventQueue-0: at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[error] AWT-EventQueue-0: at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[error] AWT-EventQueue-0: at
java.lang.reflect.Method.invoke(Method.java:324)
[error] AWT-EventQueue-0: at
bsh.Reflect.invokeOnMethod(Unknown Source)
[error] AWT-EventQueue-0: at
bsh.Reflect.invokeStaticMethod(Unknown Source)
[error] AWT-EventQueue-0: at
bsh.Name.invokeMethod(Unknown Source)
[error] AWT-EventQueue-0: at
bsh.BSHMethodInvocation.eval(Unknown Source)

<...>

-andreas

Discussion

  • Logged In: YES
    user_id=681

    Could you please provide me with the screenshots of your
    server list (not the JDBC driver classpath list!)

     
    • assigned_to: nobody --> svu
     
    • priority: 5 --> 1
     
  • Logged In: YES
    user_id=681

    Actually it is ok - this exception can be ignored. But you
    are right it should not be there. At some point I will fix this.

     
    • assigned_to: svu --> nobody
    • summary: SQL Nullpointer Exception --> SQL Nullpointer Exception at getLocalProperty with sybase
     
  • Andreas, is the exception still thrown? With current plugin version? Only with sybase? The current info is insufficient to fix it and I have no sybase server to try to reproduce. Anyone able to test sybase with current SQL plugin version?