- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想在 Raspberry Pi vA 或 vB 上运行我的 Java 程序。我正在使用 SQLite JDBC 库,它应该支持 Raspi。当我启动 .jar 时,会弹出以下错误:
A fatal error has been detected by the Java Runtime Environment:
SIGILL (0x4) at pc=0xac507cb0, pid=5789, tid=3057054816
JRE version: Java(TM) SE Runtime Environment (8.0_65-b17) (build 1.8.0_65-b17)
Java VM: Java HotSpot(TM) Client VM (25.65-b01 mixed mode linux-arm )
Problematic frame:
C [sqlite-3.8.11.2-38a14bad-15c4-42f0-8c15-a19159eabd43-libsqlitejdbc.so+0x5cb0]
Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
If you would like to submit a bug report, please visit:
http://bugreport.java.com/bugreport/crash.jsp
The crash happened outside the Java Virtual Machine in native code.
See problematic frame for where to report the bug.
Stack: [0xb6320000,0xb6370000], sp=0xb636d6f0, free space=309k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [sqlite-3.8.11.2-38a14bad-15c4-42f0-8c15-a19159eabd43-libsqlitejdbc.so+0x5cb0]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j java.lang.ClassLoader$NativeLibrary.load(Ljava/lang/String;Z)V+0
j java.lang.ClassLoader.loadLibrary0(Ljava/lang/Class;Ljava/io/File;)Z+328
j java.lang.ClassLoader.loadLibrary(Ljava/lang/Class;Ljava/lang/String;Z)V+48
j java.lang.Runtime.load0(Ljava/lang/Class;Ljava/lang/String;)V+57
j java.lang.System.load(Ljava/lang/String;)V+7
j org.sqlite.SQLiteJDBCLoader.loadNativeLibrary(Ljava/lang/String;Ljava/lang/String;)Z+29
j org.sqlite.SQLiteJDBCLoader.extractAndLoadLibraryFile(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z+308
j org.sqlite.SQLiteJDBCLoader.loadSQLiteNativeLibrary()V+224
j org.sqlite.SQLiteJDBCLoader.initialize()Z+0
j org.sqlite.core.NativeDB.load()Z+19
j org.sqlite.core.CoreConnection.open(II)V+355
j org.sqlite.core.CoreConnection.(Ljava/lang/String;Ljava/lang/String;Ljava/util/Properties;)V+138
j org.sqlite.jdbc3.JDBC3Connection.(Ljava/lang/String;Ljava/lang/String;Ljava/util/Properties;)V+4
j org.sqlite.jdbc4.JDBC4Connection.(Ljava/lang/String;Ljava/lang/String;Ljava/util/Properties;)V+4
j org.sqlite.SQLiteConnection.(Ljava/lang/String;Ljava/lang/String;Ljava/util/Properties;)V+4
j org.sqlite.JDBC.createConnection(Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection;+24
j org.sqlite.JDBC.connect(Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection;+2
j java.sql.DriverManager.getConnection(Ljava/lang/String;Ljava/util/Properties;Ljava/lang/Class;)Ljava/sql/Connection;+171
j java.sql.DriverManager.getConnection(Ljava/lang/String;)Ljava/sql/Connection;+13
顺便说一下,该代码在 Windows 上运行良好。
我试图找到解决方案,但遇到了一个有一些相似之处的问题:https://github.com/xerial/sqlite-jdbc/issues/58 。他们似乎找到了解决方案,但是固定的库文件不再可用。有人可以帮我吗?
最佳答案
XOWA 开发人员在此。 Github 线程已更新为最新答案,但我只是想在这里引用它,以防有人偶然发现这篇文章:https://github.com/xerial/sqlite-jdbc/issues/58#issuecomment-246115467
简而言之,XOWA arm 包中的 sqlite-jdbc jar 确实可以在 Raspberry Pi 上运行。 kwantuM 可能仍在使用旧的 sqlite-jdbc jar
我在下面摘录了更多内容。 kwantuM 或其他任何人:请随时告诉我是否应该添加/修改此评论。
谢谢。
<小时/>I built a simple sample project to test yonisolos patch to get sqlite-jdbc working on Raspberry Pi.
Here were my steps to build the project:
* Used the sqlite-jdbc-3.8.11.2.jar in at /xowa/bin/any/java/jdbc/sqlite/sqlite-jdbc-3.8.11.2.jar
* Built a Java project called piSqlite in Eclipse.
* Added sqlite-jdbc-3.8.11.2.jar to the Build Path
* Wrote sample code to create and insert into a SQLite database. See the source code at the bottom of this comment.
* Compiled the Java project into a jar file
* Also, all three files are available here: https://mega.nz/#fm/q55wDRTR
Here were my steps to test the project:
* Copied the piSqlite.jar to my "Raspberry Pi 2 Model B 1GB" device
* Opened up Terminal and ran the following <code>java -jar piSqlite.jar</code>. I got the following output:
```
No connection string specified. Using default of 'jdbc:sqlite:test.db'
Successfully opened database: jdbc:sqlite:test.db
Successfully created table called 'test_table'
Successfully inserted record into 'test_table'
Successfully selected data; test_id=1; test_string=abcde
Successfully closed connection. Exiting...
```
关于java - 运行 Java SQLite JDBC 时出现 native 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39160991/
我一直在使用 Databricks JDBC 驱动程序版本 2.6.22,并尝试升级到 2.6.27。但是,升级后我收到消息说我的 JDBC URL 在尝试连接时无效。这些 JDBC URL 与旧版本
似乎JDBC Spec没有详细说明数据源连接池中alive or idle connections的准确含义。它只是具体实现吗? DBCP2如何或 HikariCP实际检查连接状态? 下面没有事件事务
在“XPages 扩展库”一书中,第 12 章,第 409 页有一个 JDBC 连接文件的例子: org.apache.derby.jdbc.EmbeddedDriver jdbc:
谁能告诉我 jdbc 是如何工作的?它如何设法与 DBMS 通信?因为 DBMS 可能是用其他编程语言编写的。 最佳答案 与数据库的通信由 JDBC 驱动程序处理,这些驱动程序可以使用各种策略与数据库
我想知道是否有人可以帮助我解决这个问题。我在尝试使用 Spring JDBC 编写代码时遇到了一个问题。当我运行服务器时,我收到了标题中提到的消息。我google了一下,有人说你应该导入ojdbc.j
我只是想运行一个示例 hivejdbc 客户端程序,但它给我一个内存不足的错误。 import java.sql.SQLException; import java.sql.Connection; i
我需要将 Google Spreadsheet 与 JasperReports Server 一起使用,为此我需要一个用于 Google Spreadsheet 的 JDBC 连接器。 我找到了这个
我需要将大量行(最多 100,000 行)插入到 6 个不同的 DB2 表中。我正在使用 Java JDBC 来完成它。我想在单个数据库事务中完成所有操作,以便在遇到任何问题时可以回滚整个操作。在某处
再次为自己是 Jmeter 新手道歉——我对 JDBC 请求有点困惑——我在过去的 3 个小时里浏览了这个网站上的帖子——但我找不到任何相关的东西(除非我我错过了一些东西)。 我的环境:Jmeter
我们正在创建一个带有 MySQL 后端的 XPages 应用程序。应用程序将被多个客户使用。每个都有自己的 NSF 数据库和相应的 MySQL 数据库。每个客户都有自己的 MySQL 用户名。我们正在
昨天我遇到了一个大问题。在我当前的项目中,我使用 Oracle 的 JDBC 的 ojdbc6 实现进行连接,但我还需要处理例如 oracle 8 数据库,这对于这个 JAR 是完全不可能的。 你会说
这个问题在这里已经有了答案: Closing JDBC Connections in Pool (3 个答案) 关闭 2 年前。 假设我有以下代码 DataSource source = (Data
我有 Informix 数据库,时间戳字段定义为 YEAR TO SECOND。 当我使用 JDBC rs.getString(column) 显示此字段时,它使用带毫秒的格式,因此此字段如下所示:
看完本教程之后; https://www.youtube.com/watch?v=ZnI_rlrei1s 我正在尝试使用logstash和jdbc获取我的本地主机mysql(使用laravel val
有人给我小费。 { "type": "jdbc", "jdbc": { "driver": "com.microsoft.sqlserver.jdbc.SQLServerDriver"
已结束。此问题正在寻求书籍、工具、软件库等的推荐。它不满足Stack Overflow guidelines 。目前不接受答案。 我们不允许提出寻求书籍、工具、软件库等推荐的问题。您可以编辑问题,以便
我正在尝试从mysql表中将1600万个文档(47gb)索引为elasticsearch索引。我正在使用jparante's elasticsearch jdbc river执行此操作。但是,在创建河
我正在尝试使用JDBC河将我的MySQL数据库复制到我的ElasticSearch索引中。 但是,每当我启动服务器时,与MySQL表的count(*)相比,创建的文档数量就增加了一倍。我通过清空索引并
使用新的logstash jdbc 连接器: https://www.elastic.co/guide/en/logstash/current/plugins-inputs-jdbc.html后续的
已结束。此问题正在寻求书籍、工具、软件库等的推荐。它不满足Stack Overflow guidelines 。目前不接受答案。 我们不允许提出寻求书籍、工具、软件库等推荐的问题。您可以编辑问题,以便
我是一名优秀的程序员,十分优秀!