如何使用Yourkit Profiler代理导致程序在查找资源包时失败

时间:2018-09-04 13:57:28

标签: java profiler yourkit

启动我的在Linux机器上运行的Web应用程序,然后转到正常工作的网页,

jre/bin/java --add-modules java.xml.bind  --add-opens java.base/java.lang=ALL-UNNAMED -Duser.home=/mnt/disk1/share -Xms150m -Xmx900m -jar lib/songkong-5.9.jar -r

但是在命令行上使用ypagent运行它,这样我就可以从PC上对其进行分析

jre/bin/java -agentpath:/mnt/system/config/Apps/YourKit-JavaProfiler-2017.02/bin/linux-armv7-hf/libyjpagent.so --add-modules java.xml.bind  --add-opens java.base/java.lang=ALL-UNNAMED -Duser.home=/mnt/disk1/share -Xms150m -Xmx900m -jar lib/songkong-5.9.jar -r

我得到

java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key button.hide_help
            at java.base/java.util.ResourceBundle.getObject(Unknown Source)
            at java.base/java.util.ResourceBundle.getObject(Unknown Source)
            at java.base/java.util.ResourceBundle.getString(Unknown Source)
            at com.jthink.songkong.text.TextLabel.getMsg(TextLabel.java:28)
            at com.jthink.songkong.server.page.TabbedPage.hideShowHelpButtons(TabbedPage.java:147)
            at com.jthink.songkong.server.page.TabbedPage.createButtons(TabbedPage.java:82)
            at com.jthink.songkong.server.page.SendSupportFilesPage.createOptions(SendSupportFilesPage.java:126)
            at com.jthink.songkong.server.page.SendSupportFilesPage.createPage(SendSupportFilesPage.java:68)
            at com.jthink.songkong.server.CmdRemote.lambda$configureWebEndPoints$68(CmdRemote.java:177)
            at spark.RouteImpl$1.handle(RouteImpl.java:72)
            at spark.http.matching.Routes.execute(Routes.java:61)
            at spark.http.matching.MatcherFilter.doFilter(MatcherFilter.java:130)
            at spark.embeddedserver.jetty.JettyHandler.doHandle(JettyHandler.java:50)
            at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1568)
            at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
            at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
            at org.eclipse.jetty.server.Server.handle(Server.java:530)
            at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:347)
            at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:256)
            at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
            at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
            at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
            at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:247)
            at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)
            at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
            at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:382)
            at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:708)
            at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:626)
            at java.base/java.lang.Thread.run(Unknown Source)

怎么可能(顺便说一句,资源束值确实存在于资源文件中)

1 个答案:

答案 0 :(得分:0)

不再支持版本2017.02,并且不支持Java 10及更高版本。

请改用最新版本的YourKit Java Profiler 2018.04。