Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/380.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Tizen TV-部署引发错误_Java_Tizen_Tizen Web App - Fatal编程技术网

Java Tizen TV-部署引发错误

Java Tizen TV-部署引发错误,java,tizen,tizen-web-app,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:

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

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 2016也有同样的问题。当尝试在目标
-tue49ks7090
上安装我的应用程序时,我遇到了与
NullPointerException
相同的Java错误

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

我运行了
sdb connect
,然后运行了
tizen安装-n my-application.wgt-->/dist
-t
仅在连接了多个设备时才需要)

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

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版本8更新181
tizencli版本2.4.50
成功安装了适用于2015、2016和2017年的Tizen应用程序。但是,在2018年安装应用程序时,上述遵循此处的先决条件()的问题仍然存在

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

难道这与旧电视无法接收最新Tizen SDK的套餐这一事实无关吗。请参阅上的答案。试着从这里安装旧版本的Tizen Studio或SDK

我和你一样。看起来“unk”是一个从命令行解析的字符串,然后尝试从字符串到数字的转换,如上图所示:java.lang.Float.parseFloat(Float.java:451)。我想知道,如果在选择权的位置上玩,这个问题就不存在了。这里也有同样的问题,但我不认为它来自于选择权。当我从命令行运行设备管理器时,它会显示以下内容:“异常:无法解析未知´&á½X*á½À%¨-unknown¨`”的平台版本,因此它会尝试将字符串“unknown”转换为浮点。事实上,我可以通过使用旧的MacBook2013和Java版本1.8更新181来解决这个问题,并在Tizen 2015、2016和2017上安装应用程序。但由于出现错误消息,
java.lang.ClassNotFoundException
,未能成功在Tizen 2018上安装。这可能确实相关,但2018年设备需要做什么?抱歉,无法与2018年设备分享经验。我认为原始问题中的UE55KS7005甚至比2015年更老。我刚刚用Tizen 2015 TV解决了这一问题,而使用Tizen IDE 2.4解决了这个问题。为此,我还必须切换到Java1.8.0.141,因为IDE将被太新版本的Java冻结。
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.lang.ClassNotFoundException: 
    org.tizen.ncli.subcommands.tv.SecureCmdVer2_0_device