db derby StartNetworkServer

有些话、适合烂在心里 提交于 2019-12-05 02:27:50

问题


I have problem with starting derby server. My derby version: db-derby-10.11.1.1

I followed this tutorial: http://db.apache.org/derby/papers/DerbyTut/ns_intro.html

but after typing: startNetworkServer.bat there is no response: https://www.dropbox.com/s/bo1tgfj8gf2533i/derby_issue.PNG?dl=0

Could you help me? Maybe there is some problem with my localhost? I think that i install Derby correctly because after typing: java org.apache.derby.tools.sysinfo I got some result

regards


回答1:


The bug is in the localization (for me in cs localization) and the derby server does not print exceptions by default.

Workaround: Under windows in the console run the following commands:

set "DERBY_OPTS=-Duser.language=en -Dderby.drda.debug=true" 
startNetworkServer.bat

The first line adds two options for java/derby. First option to change the local language to en and the second one enables printing debug messages to the console. The second line runs the server (add path if needed).

Another workaround is adding the missing localization key DRDA_MissingNetworkJar.S to file org\apache\derby\loc\drda\messages_cs.properties inside derbynet.jar.




回答2:


I had this problem with using derby in 1.8.0_45 but changing the DERBY_HOME back to 1.8.0_31 solved it.



来源:https://stackoverflow.com/questions/27013886/db-derby-startnetworkserver

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!