{"action":"created","issue":{"url":"https://api.github.com/repos/NLPchina/ansj_seg/issues/298","repository_url":"https://api.github.com/repos/NLPchina/ansj_seg","labels_url":"https://api.github.com/repos/NLPchina/ansj_seg/issues/298/labels{/name}","comments_url":"https://api.github.com/repos/NLPchina/ansj_seg/issues/298/comments","events_url":"https://api.github.com/repos/NLPchina/ansj_seg/issues/298/events","html_url":"https://github.com/NLPchina/ansj_seg/issues/298","id":163507061,"number":298,"title":"java.lang.NoSuchFieldException: version.number","user":{"login":"dragonpic","id":16235501,"avatar_url":"https://avatars.githubusercontent.com/u/16235501?v=3","gravatar_id":"","url":"https://api.github.com/users/dragonpic","html_url":"https://github.com/dragonpic","followers_url":"https://api.github.com/users/dragonpic/followers","following_url":"https://api.github.com/users/dragonpic/following{/other_user}","gists_url":"https://api.github.com/users/dragonpic/gists{/gist_id}","starred_url":"https://api.github.com/users/dragonpic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dragonpic/subscriptions","organizations_url":"https://api.github.com/users/dragonpic/orgs","repos_url":"https://api.github.com/users/dragonpic/repos","events_url":"https://api.github.com/users/dragonpic/events{/privacy}","received_events_url":"https://api.github.com/users/dragonpic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-02T07:42:35Z","updated_at":"2016-07-02T09:16:11Z","closed_at":null,"body":"我下载了 ansj_seg-5.0.0-all-in-one.jar 和 tree_split-1.4.jar 两个包，加载进我的一个scala工程，然后调用println(ToAnalysis.parse(inputString))进行测试，得到以下异常的运行log，但是结果可以正常输出，请问这是什么原因啊，我的工程不是maven也不是sbt，就是个简单的scala工程\r\n\r\njava.lang.NoSuchFieldException: version.number\r\n\tat java.lang.Class.getField(Class.java:1695)\r\n\tat org.ansj.util.MyStaticValue.<clinit>(MyStaticValue.java:121)\r\n\tat org.ansj.library.UserDefineLibrary.initUserLibrary(UserDefineLibrary.java:106)\r\n\tat org.ansj.library.UserDefineLibrary.<clinit>(UserDefineLibrary.java:42)\r\n\tat org.ansj.splitWord.Analysis.<init>(Analysis.java:46)\r\n\tat org.ansj.splitWord.analysis.ToAnalysis.<init>(ToAnalysis.java:88)\r\n\tat org.ansj.splitWord.analysis.ToAnalysis.parse(ToAnalysis.java:101)\r\n\tat com.bigdata.SemanticAnalysis.SemanticAnalysis$.main(SemanticAnalysis.scala:48)\r\n\tat com.bigdata.SemanticAnalysis.SemanticAnalysis.main(SemanticAnalysis.scala)\r\njava.lang.NoSuchFieldException: copyright.string\r\n\tat java.lang.Class.getField(Class.java:1695)\r\n\tat org.ansj.util.MyStaticValue.<clinit>(MyStaticValue.java:121)\r\n\tat org.ansj.library.UserDefineLibrary.initUserLibrary(UserDefineLibrary.java:106)\r\n\tat org.ansj.library.UserDefineLibrary.<clinit>(UserDefineLibrary.java:42)\r\n\tat org.ansj.splitWord.Analysis.<init>(Analysis.java:46)\r\n\tat org.ansj.splitWord.analysis.ToAnalysis.<init>(ToAnalysis.java:88)\r\n\tat org.ansj.splitWord.analysis.ToAnalysis.parse(ToAnalysis.java:101)\r\n\tat com.bigdata.SemanticAnalysis.SemanticAnalysis$.main(SemanticAnalysis.scala:48)\r\n\tat com.bigdata.SemanticAnalysis.SemanticAnalysis.main(SemanticAnalysis.scala)\r\njava.lang.NoSuchFieldException: osgi.version.number\r\n\tat java.lang.Class.getField(Class.java:1695)\r\n\tat org.ansj.util.MyStaticValue.<clinit>(MyStaticValue.java:121)\r\n\tat org.ansj.library.UserDefineLibrary.initUserLibrary(UserDefineLibrary.java:106)\r\n\tat org.ansj.library.UserDefineLibrary.<clinit>(UserDefineLibrary.java:42)\r\n\tat org.ansj.splitWord.Analysis.<init>(Analysis.java:46)\r\n\tat org.ansj.splitWord.analysis.ToAnalysis.<init>(ToAnalysis.java:88)\r\n\tat org.ansj.splitWord.analysis.ToAnalysis.parse(ToAnalysis.java:101)\r\n\tat com.bigdata.SemanticAnalysis.SemanticAnalysis$.main(SemanticAnalysis.scala:48)\r\n\tat com.bigdata.SemanticAnalysis.SemanticAnalysis.main(SemanticAnalysis.scala)\r\njava.lang.NoSuchFieldException: maven.version.number\r\n\tat java.lang.Class.getField(Class.java:1695)\r\n\tat org.ansj.util.MyStaticValue.<clinit>(MyStaticValue.java:121)\r\n\tat org.ansj.library.UserDefineLibrary.initUserLibrary(UserDefineLibrary.java:106)\r\n\tat org.ansj.library.UserDefineLibrary.<clinit>(UserDefineLibrary.java:42)\r\n\tat org.ansj.splitWord.Analysis.<init>(Analysis.java:46)\r\n\tat org.ansj.splitWord.analysis.ToAnalysis.<init>(ToAnalysis.java:88)\r\n\tat org.ansj.splitWord.analysis.ToAnalysis.parse(ToAnalysis.java:101)\r\n\tat com.bigdata.SemanticAnalysis.SemanticAnalysis$.main(SemanticAnalysis.scala:48)\r\n\tat com.bigdata.SemanticAnalysis.SemanticAnalysis.main(SemanticAnalysis.scala)\r\n七月 02, 2016 3:12:10 下午 DICLOG info\r\n信息: init user userLibrary ok path is : F:\\ProjectBuild\\Intellij\\Workplace\\SparkApplication\\SemanticAnalysis\\library\\default.dic\r\n七月 02, 2016 3:12:10 下午 DICLOG info\r\n信息: init ambiguityLibrary ok!\r\n七月 02, 2016 3:12:10 下午 DICLOG info\r\n信息: init core library ok use time :291\r\n七月 02, 2016 3:12:10 下午 DICLOG info\r\n信息: init ngram ok use time :271\r\nDisconnected from the target VM, address: '127.0.0.1:61800', transport: 'socket'\r\n南京市/ns,长江大桥/nz,,,是/v,很/d,雄伟/a,的/uj,,,so/en, ,wonderful/en\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/NLPchina/ansj_seg/issues/comments/230092373","html_url":"https://github.com/NLPchina/ansj_seg/issues/298#issuecomment-230092373","issue_url":"https://api.github.com/repos/NLPchina/ansj_seg/issues/298","id":230092373,"user":{"login":"dragonpic","id":16235501,"avatar_url":"https://avatars.githubusercontent.com/u/16235501?v=3","gravatar_id":"","url":"https://api.github.com/users/dragonpic","html_url":"https://github.com/dragonpic","followers_url":"https://api.github.com/users/dragonpic/followers","following_url":"https://api.github.com/users/dragonpic/following{/other_user}","gists_url":"https://api.github.com/users/dragonpic/gists{/gist_id}","starred_url":"https://api.github.com/users/dragonpic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dragonpic/subscriptions","organizations_url":"https://api.github.com/users/dragonpic/orgs","repos_url":"https://api.github.com/users/dragonpic/repos","events_url":"https://api.github.com/users/dragonpic/events{/privacy}","received_events_url":"https://api.github.com/users/dragonpic/received_events","type":"User","site_admin":false},"created_at":"2016-07-02T09:16:11Z","updated_at":"2016-07-02T09:16:11Z","body":"但是我的工程中没有这个文件啊library.properties，这个配置是在哪做的啊，是不是之前有关于这样的问题，可以发个链接给我，我自己看\r\n \r\n------------------ Original ------------------\r\nFrom:  \"ansj\"<notifications@github.com>;\r\nDate:  Sat, Jul 2, 2016 04:06 PM\r\nTo:  \"NLPchina/ansj_seg\"<ansj_seg@noreply.github.com>; \r\nCc:  \"dragonpic\"<dongzhenlong@huaxunchina.cn>; \"Author\"<author@noreply.github.com>; \r\nSubject:  Re: [NLPchina/ansj_seg] java.lang.NoSuchFieldException:version.number (#298)\r\n\r\n \r\n\r\nlibrary.properties 发生了冲突。。\r\n \r\n—\r\nYou are receiving this because you authored the thread.\r\nReply to this email directly, view it on GitHub, or mute the thread."}}
{"actor":{"display_login":"dragonpic"}}