gpt4 book ai didi

java - Tizen TV - 部署引发错误

转载 作者:行者123 更新时间:2023-11-30 02:03:25 24 4
gpt4 key购买 nike

当我尝试在电视上安装软件包时,出现此错误。

C:\Temp\Tizen\tools>tizen install -n e:\systeminfo.wgt -t UE55KS7005

Transferring the package...
Transferred the package: E:\SystemInfo.wgt -> /opt/usr/apps/tmp
Installing the package...
java.lang.ClassNotFoundException:
org.tizen.ncli.subcommands.tv.SecureCmdVer2_0_device
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Unknown Source)
at org.tizen.ncli.subcommands.tv.TVSdbCmdSelector.<init>(TVSdbCmdSelector.java:32)
at org.tizen.ncli.subcommands.target.InstallCLICommand.installPackage(InstallCLICommand.java:333)
at org.tizen.ncli.subcommands.target.InstallCLICommand.call(InstallCLICommand.java:167)
at org.tizen.ncli.subcommands.target.InstallCLICommand.call(InstallCLICommand.java:62)
at org.tizen.ncli.subcommands.AbstractSubCommand.runCommand(AbstractSubCommand.java:76)
at org.tizen.ncli.ide.shell.InstallCLI.execute(InstallCLI.java:70)
at org.tizen.ncli.ide.shell.AbstractCLI.execute(AbstractCLI.java:91)
at org.tizen.ncli.ide.shell.Main.run(Main.java:183)
at org.tizen.ncli.ide.shell.Main.main(Main.java:115)
java.lang.ClassNotFoundException: org.tizen.ncli.subcommands.tv.SecureCmdVer2_0_device
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Unknown Source)
at org.tizen.ncli.subcommands.tv.TVSdbCmdSelector.<init>(TVSdbCmdSelector.java:32)
at org.tizen.ncli.subcommands.target.InstallCLICommand.getTVInstallCmd(InstallCLICommand.java:415)
at org.tizen.ncli.subcommands.target.InstallCLICommand.installPackage(InstallCLICommand.java:348)
at org.tizen.ncli.subcommands.target.InstallCLICommand.call(InstallCLICommand.java:167)
at org.tizen.ncli.subcommands.target.InstallCLICommand.call(InstallCLICommand.java:62)
at org.tizen.ncli.subcommands.AbstractSubCommand.runCommand(AbstractSubCommand.java:76)
at org.tizen.ncli.ide.shell.InstallCLI.execute(InstallCLI.java:70)
at org.tizen.ncli.ide.shell.AbstractCLI.execute(AbstractCLI.java:91)
at org.tizen.ncli.ide.shell.Main.run(Main.java:183)
at org.tizen.ncli.ide.shell.Main.main(Main.java:115)

发生错误。请参阅日志文件 tizen-sdk\tools\ide\cli.log。总时间:00:00:00.491

我找不到它所引用的日志。

我已经安装了 JRE、JDE、Tizen SDK,并且在设备管理器中点击了“允许安装应用程序”。

电视是UE55KS7005

知道出了什么问题吗?

找到日志文件:

2018-08-27 20:56:07,424 [ERROR] Main.java(191) - 
2018-08-27 20:57:20,680 [TRACE] Main.java(127) - Start running Tizen CLI Main class...
2018-08-27 20:57:20,684 [TRACE] Main.java(128) - Argument count:7
2018-08-27 20:57:20,704 [TRACE] InstallCLI.java(59) - Execute InstallCLI...
2018-08-27 20:57:21,194 [ERROR] AbstractCLI.java(93) -
java.lang.NullPointerException
at org.tizen.ncli.subcommands.tv.TVSdbCmdSelector.getCmd(TVSdbCmdSelector.java:65)
at org.tizen.ncli.subcommands.target.InstallCLICommand.getTVInstallCmd(InstallCLICommand.java:416)
at org.tizen.ncli.subcommands.target.InstallCLICommand.installPackage(InstallCLICommand.java:348)
at org.tizen.ncli.subcommands.target.InstallCLICommand.call(InstallCLICommand.java:167)
at org.tizen.ncli.subcommands.target.InstallCLICommand.call(InstallCLICommand.java:62)
at org.tizen.ncli.subcommands.AbstractSubCommand.runCommand(AbstractSubCommand.java:76)
at org.tizen.ncli.ide.shell.InstallCLI.execute(InstallCLI.java:70)
at org.tizen.ncli.ide.shell.AbstractCLI.execute(AbstractCLI.java:91)
at org.tizen.ncli.ide.shell.Main.run(Main.java:183)
at org.tizen.ncli.ide.shell.Main.main(Main.java:115)
2018-08-27 20:57:21,196 [ERROR] Main.java(191) -

最佳答案

我的 Samsung Tizen 2016 也有同样的问题。当尝试在目标 -t UE49KS7090 上安装我的应用程序时,我得到同样的 Java 错误 NullPointerException .

以下日志是在cli.log内创建的

2018-08-29 11:12:05,310 [ERROR] AbstractCLI.java(93) - 
java.lang.NullPointerException
at org.tizen.ncli.subcommands.tv.TVSdbCmdSelector.getCmd(TVSdbCmdSelector.java:65)
at org.tizen.ncli.subcommands.target.InstallCLICommand.getTVInstallCmd(InstallCLICommand.java:416)
at org.tizen.ncli.subcommands.target.InstallCLICommand.installPackage(InstallCLICommand.java:348)
at org.tizen.ncli.subcommands.target.InstallCLICommand.call(InstallCLICommand.java:167)
at org.tizen.ncli.subcommands.target.InstallCLICommand.call(InstallCLICommand.java:62)
at org.tizen.ncli.subcommands.AbstractSubCommand.runCommand(AbstractSubCommand.java:76)
at org.tizen.ncli.ide.shell.InstallCLI.execute(InstallCLI.java:70)
at org.tizen.ncli.ide.shell.AbstractCLI.execute(AbstractCLI.java:91)
at org.tizen.ncli.ide.shell.Main.run(Main.java:183)
at org.tizen.ncli.ide.shell.Main.main(Main.java:115)
2018-08-29 11:12:05,312 [ERROR] Main.java(191) -

我跑了sdb connect <IP>然后tizen install -n my-application.wgt -- ./dist (仅当连接多个设备时才需要-t)。

此外,当尝试在 Tizen 2015 上安装软件包时,它会引发错误 NumberFormatException对于输入字符串 unk .

Transferring the package...
Transferred the package:
/my-hidden-path -> /opt/usr/apps/tmp
Installing the package...
java.lang.NumberFormatException: For input string: "unk"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
at sun.misc.FloatingDecimal.parseFloat(FloatingDecimal.java:122)
at java.lang.Float.parseFloat(Float.java:451)
at java.lang.Float.valueOf(Float.java:416)
at org.tizen.ncli.subcommands.target.InstallCLICommand.getTVInstallCmd(InstallCLICommand.java:423)
at org.tizen.ncli.subcommands.target.InstallCLICommand.installPackage(InstallCLICommand.java:348)
at org.tizen.ncli.subcommands.target.InstallCLICommand.call(InstallCLICommand.java:167)
at org.tizen.ncli.subcommands.target.InstallCLICommand.call(InstallCLICommand.java:62)
at org.tizen.ncli.subcommands.AbstractSubCommand.runCommand(AbstractSubCommand.java:76)
at org.tizen.ncli.ide.shell.InstallCLI.execute(InstallCLI.java:70)
at org.tizen.ncli.ide.shell.AbstractCLI.execute(AbstractCLI.java:91)
at org.tizen.ncli.ide.shell.Main.run(Main.java:183)
at org.tizen.ncli.ide.shell.Main.main(Main.java:115)
Platform log view
Failed to install Tizen application.
Total time: 00:00:01.290

更新:使用 Java Version 8 Update 181 成功安装 2015 年、2016 年和 2017 年的 Tizen 应用程序与 Tizen CLI Version 2.4.50 。但在 2018 年安装应用程序时,满足此处先决条件 (https://developer.tizen.org/ko/development/tizen-studio/download/installing-tizen-studio/prerequisites) 的上述问题仍然存在。

java.lang.ClassNotFoundException: 
org.tizen.ncli.subcommands.tv.SecureCmdVer2_0_device

关于java - Tizen TV - 部署引发错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52045533/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com