DoqueDB / doquedb

DoqueDB is an open source relational database management system featuring powerful Japanese full-text search.
https://www.doquedb.ricoh.co.jp
Apache License 2.0
13 stars 1 forks source link

java.util.MissingResourceException occurs #12

Closed junnohta999 closed 3 months ago

junnohta999 commented 7 months ago

dqunload shows a stack trace which means some resource data is absent.

$ dqunload unload_script.txt root doqadmin
java.util.MissingResourceException: Can't find bundle for base name jp.co.ricoh.sydney.admin.util.resource.version, locale ja_JP
        at java.base/java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:2045)
        at java.base/java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1683)
        at java.base/java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1586)
        at java.base/java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1549)
        at java.base/java.util.ResourceBundle.getBundle(ResourceBundle.java:858)
        at jp.co.ricoh.sydney.admin.util.Res.getVersion(Res.java:53)
        at jp.co.ricoh.sydney.admin.unload.unload.main(unload.java:102)
4月 09, 2024 1:51:04 午後 jp.co.ricoh.sydney.admin.util.log.Log info
情報: Version 0.0.0
...
htozaki commented 7 months ago

It seems necessary file jp/co/ricoh/sydney/admin/util/resource/version.properties is missing in bin/java/unload.jar.

htozaki commented 7 months ago

Pull request to fix it: https://github.com/DoqueDB/doquedb/pull/13

htozaki commented 6 months ago

Solved. However unload failed unless LANG environment is set to ja_JP.

java.lang.ClassNotFoundException: jp.co.ricoh.doqeudb.jdbc.Driver at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:315) at jp.co.ricoh.sydney.admin.unload.unload.open(unload.java:279) at jp.co.ricoh.sydney.admin.unload.unload.main(unload.java:106)

htozaki commented 6 months ago

Fix typos in resources: https://github.com/DoqueDB/doquedb/pull/18

htozaki commented 3 months ago

released in v1.1.1.