Lon Varscsak
2009-03-20 22:14:25 UTC
I have a new project I'm working on that connects to Sybase (I've been
working with Postgres lately...and haven't done a sybase wo project in
years). I created a new model, I can connect to the database through Entity
Modeler in Eclipse just fine. Whenever I ask for an "availableChannel" on
the EODatabaseContext I get this exception:
Mar 20 15:07:02 DataBuilder[2500] WARN er.extensions.eof.ERXModelGroup -
The EOModel 'erprototypes' has an empty connection dictionary.
java.lang.IllegalArgumentException: Attempt to insert null object into an
com.webobjects.foundation.NSMutableDictionary.
at com.webobjects.foundation.NSMutableDictionary.setObjectForKey(
NSMutableDictionary.java:68)
at com.webobjects.jdbcadaptor.JDBCContext.connect(JDBCContext.java:230)
at er.extensions.jdbc.ERXJDBCAdaptor$Context.connect(ERXJDBCAdaptor.java:248
)
at com.webobjects.jdbcadaptor.JDBCContext._tryConnect(JDBCContext.java:362)
at com.webobjects.jdbcadaptor.JDBCContext._channelWillOpen(
JDBCContext.java:505)
at com.webobjects.jdbcadaptor.JDBCChannel.openChannel(JDBCChannel.java:111)
at com.webobjects.eoaccess.EODatabaseChannel._openChannel(
EODatabaseChannel.java:713)
at com.webobjects.eoaccess.EODatabaseContext.availableChannel(
EODatabaseContext.java:1324)
at com.smarthealth.database.util.SPEOUtilities._connection(
SPEOUtilities.java:38)
I have no idea what I'm doing wrong here...I'm sure I'm missing something
obvious, although I can do the same thing with a Postgres project and not
get the error. Of note, I don't think a plugin for sybase exists, so I'm
just using the JDBCPlugin.
Any thoughts would be appreciated.
Thanks,
Lon
P.S. -- Using WO 5.4.3 with Wonder nightly from a couple of weeks ago.
working with Postgres lately...and haven't done a sybase wo project in
years). I created a new model, I can connect to the database through Entity
Modeler in Eclipse just fine. Whenever I ask for an "availableChannel" on
the EODatabaseContext I get this exception:
Mar 20 15:07:02 DataBuilder[2500] WARN er.extensions.eof.ERXModelGroup -
The EOModel 'erprototypes' has an empty connection dictionary.
java.lang.IllegalArgumentException: Attempt to insert null object into an
com.webobjects.foundation.NSMutableDictionary.
at com.webobjects.foundation.NSMutableDictionary.setObjectForKey(
NSMutableDictionary.java:68)
at com.webobjects.jdbcadaptor.JDBCContext.connect(JDBCContext.java:230)
at er.extensions.jdbc.ERXJDBCAdaptor$Context.connect(ERXJDBCAdaptor.java:248
)
at com.webobjects.jdbcadaptor.JDBCContext._tryConnect(JDBCContext.java:362)
at com.webobjects.jdbcadaptor.JDBCContext._channelWillOpen(
JDBCContext.java:505)
at com.webobjects.jdbcadaptor.JDBCChannel.openChannel(JDBCChannel.java:111)
at com.webobjects.eoaccess.EODatabaseChannel._openChannel(
EODatabaseChannel.java:713)
at com.webobjects.eoaccess.EODatabaseContext.availableChannel(
EODatabaseContext.java:1324)
at com.smarthealth.database.util.SPEOUtilities._connection(
SPEOUtilities.java:38)
I have no idea what I'm doing wrong here...I'm sure I'm missing something
obvious, although I can do the same thing with a Postgres project and not
get the error. Of note, I don't think a plugin for sybase exists, so I'm
just using the JDBCPlugin.
Any thoughts would be appreciated.
Thanks,
Lon
P.S. -- Using WO 5.4.3 with Wonder nightly from a couple of weeks ago.