-
Notifications
You must be signed in to change notification settings - Fork 523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create service 问题 #141
Comments
重启lealone再执行,就成这样了。 Exception in thread "main" org.lealone.common.exceptions.JdbcSQLException: Connection is broken: "org.lealone.common.exceptions.DbException: General error: ""java.lang.IllegalStateException: Reading from cache:nio:E:/2021-9/demo/target/data/db_2/t_2_0/3.db failed; file length 0 read length 8192 at 0 [5.0.0/1]"" [50000-0]: localhost" [90067-0]
|
感谢报告问题,正在排查原因。 |
不drop database,只执行服务创建脚本services.sql,重复三次就会报错
Exception in thread "main" org.lealone.common.exceptions.JdbcSQLException: General error: "java.lang.ClassCastException: class org.lealone.transaction.aote.TransactionalValue cannot be cast to class org.lealone.db.index.standard.VersionedValue (org.lealone.transaction.aote.TransactionalValue and org.lealone.db.index.standard.VersionedValue are in unnamed module of loader 'app')"; SQL statement:
RUNSCRIPT FROM 'demo-service/src/main/resources/services.sql' [50000-0]
at org.lealone.common.exceptions.DbException.getJdbcSQLException(DbException.java:340)
at org.lealone.common.exceptions.DbException.get(DbException.java:161)
at org.lealone.common.exceptions.DbException.convert(DbException.java:292)
at org.lealone.sql.executor.YieldableBase.handleException(YieldableBase.java:162)
at org.lealone.sql.executor.YieldableBase.run(YieldableBase.java:115)
at org.lealone.db.session.ServerSession$YieldableCommand.run(ServerSession.java:1501)
at org.lealone.server.Scheduler.executeNextStatement(Scheduler.java:247)
at org.lealone.server.Scheduler.run(Scheduler.java:100)
Caused by: java.lang.ClassCastException: class org.lealone.transaction.aote.TransactionalValue cannot be cast to class org.lealone.db.index.standard.VersionedValue (org.lealone.transaction.aote.TransactionalValue and org.lealone.db.index.standard.VersionedValue are in unnamed module of loader 'app')
at org.lealone.db.index.standard.StandardPrimaryIndex$StandardPrimaryIndexCursor.createRow(StandardPrimaryIndex.java:558)
at org.lealone.db.index.standard.StandardPrimaryIndex$StandardPrimaryIndexCursor.next(StandardPrimaryIndex.java:548)
at org.lealone.db.Database.findMeta(Database.java:757)
at org.lealone.db.Database.tryRemoveMeta(Database.java:795)
at org.lealone.db.Database.tryRemoveMeta(Database.java:779)
at org.lealone.db.schema.Schema.remove(Schema.java:258)
at org.lealone.sql.ddl.DropService.update(DropService.java:61)
at org.lealone.sql.dml.RunScript.execute(RunScript.java:87)
at org.lealone.sql.dml.RunScript.update(RunScript.java:66)
at org.lealone.sql.executor.DefaultYieldableLocalUpdate.executeInternal(DefaultYieldableLocalUpdate.java:22)
at org.lealone.sql.executor.YieldableBase.run(YieldableBase.java:109)
... 3 more
The text was updated successfully, but these errors were encountered: