The error message can happen in a few different scenarios:
1. In conjunction with a "ConnectionFactory static initializer suppressed Exception", using local data access.
ERROR: ConnectionFactory static initializer suppressed Exception: oracle.jdbc.driver.OracleDriver
java.lang.Exception: Failed to create ConnectionPool. Check application log for error message.
at com.mapinfo.dp.conn.ConnectionFactory.getConnection(Unknown Source)
at com.mapinfo.dp.jdbc.DBLayerDataProvider.a(Unknown Source)
at com.mapinfo.dp.jdbc.DBLayerDataProvider.getTableInfo(Unknown Source)
at com.mapinfo.mapj.Layer.getTableInfo(Unknown Source)
at com.mapinfo.mapj.Layers.a(Unknown Source)
at com.mapinfo.mapj.Layers.a(Unknown Source)
at com.mapinfo.mapj.al.insert(Unknown Source)
at com.mapinfo.beans.layercontrol.LayerControl.a(Unknown Source)
at com.mapinfo.beans.layercontrol.LayerControl.onLayerControlChange(Unknown Source)
at com.mapinfo.beans.layercontrol.f6.a(Unknown Source)
at com.mapinfo.beans.layercontrol.f6.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1820)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
...
This error indicates that the JDBC driver (in this case oracle.jdbc.driver.OracleDriver) was not found in the classpath when the connection pool was being started. Add the appropriate jars/zips and restart the application.
2. From the MapXtremeServlet:
java.lang.Exception: Failed to create ConnectionPool. Check application log for error message.
at com.mapinfo.dp.conn.ConnectionFactory.getConnection(Unknown Source)
at com.mapinfo.dp.jdbc.DBLayerDataProvider.a(Unknown Source)
at com.mapinfo.dp.jdbc.DBLayerDataProvider.getTableInfo(Unknown Source)
at com.mapinfo.mapxtreme.MetadataHandlerServlet.createResponseComposer(Unknown Source)
at com.mapinfo.mapxtreme.MetadataHandlerServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:404)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
at com.mapinfo.mapxtreme.MapXtremeServlet.a(Unknown Source)
at com.mapinfo.mapxtreme.MapXtremeServlet.doPost(Unknown Source)
This indicates that the MapXtremeServlet is trying to access the data. The miconnections.properties in the WEB-INF\classes directory of the MapXtreme context should contain the connection pool information, and the WEB-INF\lib directory should contain the JDBC jar files for the appropriate database.
3. From a client application using MapXtremeImageRenderer or MapXtremeDataProviderRefs.
java.lang.Exception: Failed to create ConnectionPool. Check application log for error message.
at com.mapinfo.mapxtreme.client.MapXtremeDataProvider.a(Unknown Source)
at com.mapinfo.mapxtreme.client.MapXtremeDataProvider.getTableInfo(Unknown Source)
at com.mapinfo.mapj.DataLayer.getTableInfo(Unknown Source)
at com.mapinfo.xmlprot.mxtj.bj.createLabelThemeListElement(Unknown Source)
at com.mapinfo.xmlprot.mxtj.bj.a(Unknown Source)
at com.mapinfo.xmlprot.mxtj.bj.createImageRequestLayer(Unknown Source)
at com.mapinfo.xmlprot.mxtj.ImageRequestComposer.b(Unknown Source)
at com.mapinfo.xmlprot.mxtj.ImageRequestComposer.a(Unknown Source)
at com.mapinfo.xmlprot.mxtj.cz.build(Unknown Source)
at com.mapinfo.mapxtreme.client.MapXtremeImageRenderer.render(Unknown Source)
In this case, the client may need the JDBC jars and miconnections.properties in its classpath, in addition to them existing in the MapXtreme context.
分享到:
相关推荐
Pool::new(Config::default(), manager).expect("Failed to create connection pool") } ``` 现在,我们可以定义一个`Api`结构体,包含一个连接池,并提供处理HTTP请求的方法。例如,我们可以创建一个`get_users`...
public ConnectionPool(int maxConnections, String url, String username, String password) { this.maxConnections = maxConnections; this.url = url; this.username = username; this.password = password;...
It is up to the application to define what consistency means, and isolation in some form is needed to achieve consistent results. SQL Server uses locking to achieve isolation. Definition of ...
const connection = mysql.createConnection({ host: 'localhost', user: 'root', password: 'password', database: 'mydb' }); connection.connect(); connection.query('SELECT * FROM mytable', (err, ...
To disable this feature set this option to empty value ;user_ini.filename = ; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes) ;user_ini.cache_ttl = ...
#### ORA-00064: Unable to create O/S file - **解释**: 无法创建操作系统文件。 - **解决方案**: 检查文件系统权限和空间。 #### ORA-00065: FIXED_DATE is not a valid date - **解释**: FIXED_DATE不是一个...
console.error('Failed to connect to database:', err); } return pool; }; ``` 在主应用中,我们可以使用 `ami` 来异步加载并初始化这个模块: ```javascript const ami = require('ami'); const db = ami('...