0

启动我在 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)

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

4

1 回答 1

0

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

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

于 2018-09-04T14:46:32.650 回答