如何在 GlassFish V3 中添加 InterBase JDBC 连接池?
使用:InterBase 2007、最新的 interclient.jar (8.1.8)、GlassFish v3 b68。
我尝试使用以下设置在 Web 管理控制台页面“编辑连接池”中配置连接池:
- 资源类型:javax.sql.DataSource
- 数据源类名:interbase.interclient.DataSource
在同一屏幕中的“ping”返回此错误消息:
java.lang.NullPointerException:“null” interbase.interclient.Connection。(未知 来源) interbase.interclient.DataSource.getConnection(未知 来源) interbase.interclient.DataSource.getConnection(未知 来源) com.sun.gjc.spi.DSManagedConnectionFactory.createManagedConnection(DSManagedConnectionFactory.java:102) com.sun.enterprise.connectors.service.ConnectorConnectionPoolAdminServiceImpl.getManagedConnection(ConnectorConnectionPoolAdminServiceImpl.java:517) com.sun.enterprise.connec...
interclient.jar 8.1.8 (Interbase 2007) 位于域 lib 目录中。
Using: InterBase 2007, latest interclient.jar (8.1.8), GlassFish v3 b68.
I try to configure the connection pool in the web admin console page "Edit Connection Pool" with these settings:
- Resource Type: javax.sql.DataSource
- Datasource Classname: interbase.interclient.DataSource
A 'ping' in the same screen returns this error message:
java.lang.NullPointerException: "null"
interbase.interclient.Connection.(Unknown
Source)
interbase.interclient.DataSource.getConnection(Unknown
Source)
interbase.interclient.DataSource.getConnection(Unknown
Source)
com.sun.gjc.spi.DSManagedConnectionFactory.createManagedConnection(DSManagedConnectionFactory.java:102)
com.sun.enterprise.connectors.service.ConnectorConnectionPoolAdminServiceImpl.getManagedConnection(ConnectorConnectionPoolAdminServiceImpl.java:517)
com.sun.enterprise.connec...
The interclient.jar 8.1.8 (Interbase 2007) is in the domain lib directory.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
异常情况尚不清楚,但这是一个实现细节。至少,
getConnection()
通常需要一个非空 JDBC URL。那么,您是否为数据源指定了有效的 JDBC URL?The exception is not clear, but that's an implementation detail. At least, the
getConnection()
usually expects a non-null JDBC URL. So, did you specify a valid JDBC URL for the datasource?