草庐IT

mongodb-driver-core

全部标签

java - ClassNotFoundException : com. mysql.jdbc.Driver。用于 Web 应用程序的 JDBC MySQL 驱动程序

这个问题在这里已经有了答案:HowtoinstallJDBCdriverinEclipsewebprojectwithoutfacingjava.lang.ClassNotFoundexception(13个答案)关闭7年前。所以我有一个MySQLJDBC驱动程序的.jar文件,它在我的库源文件夹下,我有以下代码:publicstaticConnectiongetConnection()throwsSQLException{Connectionconn=null;try{Class.forName("com.mysql.jdbc.Driver").newInstance();Strin

java - 从 2.6 升级到 3.7 时出现 BIRT JDBCException "Cannot load JDBC Driver class: com.mysql.jdbc.Driver"

我正尝试在我的Tomcat服务器上升级我的birt-viewer的版本,但我似乎在加载JDBC驱动程序时遇到错误:exception.error(1time(s))detail:org.eclipse.birt.report.engine.api.EngineException:Anexceptionoccurredduringprocessing.Pleaseseethefollowingmessagefordetails:Cannotopentheconnectionforthedriver:org.eclipse.birt.report.data.oda.jdbc.org.ecl

java - Eclipse 中的 icepdf-core maven 安装不起作用

我需要在Vaadin中使用PDFviewer,它依赖于IcePdf...所以我试图安装它,但它给了我DependencyResolutionException。我也尝试了不同的版本,如4.1.1、4.2.2和其他版本,但没有任何效果......我对Maven不是很熟悉,所以不知道如何通过导入添加它,因为它要求我不知道的Artifact文件:(。这是我在pom.xml中添加的依赖项标记。org.icepdficepdf-core4.1.4有什么想法吗??? 最佳答案 这个线程有点旧,但也许答案对某些人仍然有帮助:为icepdf添加ma

java - 使用 Java 在 MongoDB 中创建集合

我想使用java在mongodb中创建集合。下面是我使用的代码。我可以连接到数据库。但是集合没有发生。请帮助我importcom.mongodb.MongoClient;importcom.mongodb.DB;importcom.mongodb.DBCollection;publicclassCreateCollection{publicstaticvoidmain(Stringargs[]){try{//ToconnecttomongodbserverMongoClientmongoClient=newMongoClient("localhost",27017);//Nowconn

java - 没有创建 liquibase.change.core.RawSQLChange 的逆

问题在于:执行命令maven时,似乎问题在https://liquibase.jira.com/browse/CORE-465中找到,但是是2009年,可以标记为“无法重现”,我使用一个文件.xml类型的liquibase和一个changeSet,但是很多createTable,addPrimaryKey,rollback,addForeignKeyConstraint,这个文件总是创建表和你各自的约束,但我我要回滚这个错误发生了,我累了上网找,然后找不到解决问题的办法,你能解决这个问题吗?与社区分享!此处用于Maven的插件和命令:liquibase:rollback-Dliquib

java - 为什么会出现 java.lang.AbstractMethodError : oracle. jdbc.driver.OracleConnection 错误?

我已经阅读了WhydoIgetjava.lang.AbstractMethodErrorwhentryingtoloadablobinthedb?,下载了我能找到的所有11gjdbc驱动程序,并将它们作为库和/或jar文件添加到我的NetBeans应用程序中。我仍然不断收到相同的AbstractMethodError,这让我抓狂!任何指导将不胜感激!try{stmt=conn.createStatement();inputFileInputStream=newFileInputStream(inputBinaryFile);BlobvBlob=conn.createBlob();Buf

java - 如何分析Websphere core*.dmp文件和Snap*.trc文件?

全部,我的应用程序在websphereappserver7.0上运行。我得到了一些核心转储和跟踪文件,例如核心.20110909.164930.3828.0001.dmp和快照.20110909.164930.3828.0003.trc.我的问题是,就像WAS生成的threaddump可以被IBM-ThreadDumpAnalyzertool打开分析一样IBM或任何其他公司是否提供打开上述文件的工具?谢谢,阿尤斯曼 最佳答案 核心转储必须由jextract实用程序(转储的jre的)处理从我的webspereroot开始,这是./ja

java - ObjectMapper java.lang.NoSuchMethodError : com. fasterxml.jackson.core.JsonFactory.requiresPropertyOrdering()Z

我正在尝试使用ObjectMapper将Json字符串映射到Java对象ObjectMappermapper=newObjectMapper();CustomerDatacustomerData=mapper.readValue(customerDataString,customerData.class);但是当我这样做的时候,我得到了这个错误java.lang.NoSuchMethodError:com.fasterxml.jackson.core.JsonFactory.requiresPropertyOrdering()Zatcom.fasterxml.jackson.datab

java - java.sql.SQLException :[Microsoft][ODBC Driver Manager] Invalid descriptor index 异常

我使用下面的代码try{Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");Connectioncon=DriverManager.getConnection("jdbc:odbc:access");Stringsql="Select*fromtable";Statementstmt=con.createStatement();ResultSetrs=stmt.executeQuery(sql);ResultSetMetaDatamd=rs.getMetaData();intcolumns=md.getColumnCount();for(inti

java - Spring 数据 MongoDB : How ignore unique indexed field when Document is embedded in another one?

我有一个这样定义的Contract类:@DocumentpublicclassContract{@IdprivateStringid;@Indexed(unique=true)privateStringref;privateStringstatus="pending";//getter&setter&hashcode&equals&tostring...}我想随时间保存契约(Contract)状态,所以我创建了一个Version类,如下所示:@DocumentpublicclassVersion{@IdprivateStringid;privateContractcontract;pr