>>898
AozoraEpub3 has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 52.0
というのは、Java Runtime Class File Version 65.0でコンパイルされているが、クライアントに入ってるJava Runtime Class FileのVersionは52.0だから起動できないというエラーです。
JavaのVerが1上がるごとにClass FileのVerも1上がる。
JDK Class File Versions 相対表
ttps://javaalmanac.io/bytecode/versions/
何が起きたのか:
892さんと同じくjava version "1.8.0_411"にアップデートした後から変換時に文字化けエラーが発生
java version "1.8.0_411をアンインストール、Version:21をインストール
AozoraEpub3-1.1.0b55QからAozoraEpub3-1.1.1b23Qに設定切り替え
再現方法(何をやったら起こったのか詳細に):
EPUBに変換を実行
AozoraEpub3でEPUBに変換しています....C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/novelconverter.rb:202:in `txt_to_epub': invalid byte sequence in UTF-8 (ArgumentError)
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/novelconverter.rb:315:in `convert_txt_to_ebook_file'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:300:in `convert_txt_to_ebook_file'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandbase.rb:152:in `call'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandbase.rb:152:in `hook_call'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:252:in `block in convert_novel_main'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:248:in `each'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:248:in `convert_novel_main'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:201:in `block (2 levels) in convert_novels'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/mixin/locker.rb:26:in `lock'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:200:in `block in convert_novels'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:199:in `each'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:199:in `with_index'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:199:in `convert_novels'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:159:in `block in main'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:152:in `each'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:152:in `main'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:133:in `execute'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandbase.rb:125:in `execute!'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandbase.rb:134:in `execute!'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:123:in `block in execute!'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/narou.rb:369:in `concurrency_call'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/command/convert.rb:122:in `execute!'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandline.rb:29:in `run'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/commandline.rb:43:in `run!'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/narou.rb:50:in `block in <top (required)>'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/lib/backtracer.rb:16:in `capture'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/narou.rb:49:in `<top (required)>'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/bin/narou:13:in `require_relative'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/narou-3.8.2/bin/narou:13:in `<top (required)>'
from C:/Ruby32-x64/bin/narou:32:in `load'
from C:/Ruby32-x64/bin/narou:32:in `<main>'
何が起きたのか:narou web を実行したが、WEB UI (ブラウザ) が立ち上がらず、以下のエラーが表示された
D:\MyNovel>narou web
C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:138:in `replace_group_values': undefined method `[]' for false (NoMethodError)
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:81:in `[]'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:31:in `block in load_settings'
D:\MyNovel>narou web --backtrace
C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:138:in `replace_group_values': undefined method `[]' for false (NoMethodError)
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:81:in `[]'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:31:in `block in load_settings'
from <internal:dir>:411:in `glob'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:29:in `load_settings'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:49:in `settings'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/web/appserver.rb:947:in `block in <class:AppServer>'
from <internal:kernel>:90:in `tap'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/web/appserver.rb:946:in `<class:AppServer>'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/web/appserver.rb:25:in `<top (required)>'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/web/all.rb:7:in `require_relative'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/web/all.rb:7:in `<top (required)>'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/command/web.rb:118:in `require_relative'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/command/web.rb:118:in `boot'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/command/web.rb:87:in `execute'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/commandbase.rb:125:in `execute!'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/commandbase.rb:134:in `execute!'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/commandline.rb:29:in `run'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/commandline.rb:43:in `run!'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/narou.rb:50:in `block in <top (required)>'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/backtracer.rb:16:in `capture'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/narou.rb:49:in `<top (required)>'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/bin/narou:13:in `require_relative'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/bin/narou:13:in `<top (required)>'
from C:/Ruby33-x64/bin/narou:32:in `load'
from C:/Ruby33-x64/bin/narou:32:in `<main>'
>java -version
java version "1.8.0_411"
Java(TM) SE Runtime Environment (build 1.8.0_411-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.411-b09, mixed mode)
D:\MyNovel>narou update 5
C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:138:in `replace_group_values': undefined method `[]' for false (NoMethodError)
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:81:in `[]'
from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.0/lib/sitesetting.rb:31:in `block in load_settings'