Tizen TV-部署会引发错误

时间:2018-08-27 19:05:11

标签: java tizen tizen-web-app

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

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) - 

2 个答案:

答案 0 :(得分:2)

我的Samsung Tizen 2016遇到相同的问题。尝试在目标-t UE49KS7090上安装应用程序时,NullPointerException出现相同的Java错误。

以下日志是在 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的{​​{1}}会引发错误。

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应用程序。但是,在2018年安装应用程序时,上面此处所述的前提条件(https://developer.tizen.org/ko/development/tizen-studio/download/installing-tizen-studio/prerequisites)仍然存在上述问题。

Tizen CLI Version 2.4.50

答案 1 :(得分:0)

这与旧电视无法接收来自最新Tizen SDK的软件包的事实无关。请参阅this question的答案。尝试从此处http://download.tizen.org/sdk/Installer/

安装旧版本的Tizen Studio或SDK。