在 ESF Emulator 中运行 Hello_Osgi 在 Eclipse EE、Kura、Ubuntu Linux 上崩溃
Posted
技术标签:
【中文标题】在 ESF Emulator 中运行 Hello_Osgi 在 Eclipse EE、Kura、Ubuntu Linux 上崩溃【英文标题】:Running Hello_Osgi in ESF Emulator crashes on Eclipse EE, Kura, Ubuntu Linux 【发布时间】:2021-08-14 14:47:57 【问题描述】:我正在尝试建立一个用于编写 Java ESF/OSGI 插件的工具链。我已仔细遵循 Eurotech ESF 文档(开发环境设置、Hello World 应用程序、部署和调试应用程序)中给出的说明。
完成我的简单 Hello_Osgi 项目后,我在 org.eclipse.jura.emulator 项目中右键单击 ESF Emulator_Linux.launch。然后我选择运行方式,然后选择 1 ESF_Emulator_Linux。
在 Eclipse 控制台中,我没有看到正在运行的 Hello_Osgi 项目的任何输出。第一行输出是这样的(用眼睛复制的):
<terminated>ESF Emulator Linux[OSGI Framework]/home/john/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.linux.x86_64_15.0.2.v20210201-0955/jre/bin/java (26 May 2021, 10:32:28 - 10.32.51)
然后我得到错误页面,然后是其他项目的输出。看起来 ESF 模拟器正在崩溃 - 但是其他项目如何运行正常?
谁能建议我做错了什么?
安装的组件有:
esf-user_workspace_archive_6.2.0.zip Java openJDK 1.8.0_292(用于 Hello_Osgi 项目) mtoolkit-neon.s3-website-us-east-1.amazonws.com Eclipse JEE-2021-03 Java OpenJDK 15.0.2(附带 Eclipse EE 安装) Ubuntu 桌面 20.04Eclipse 控制台输出的前几行:
2021-05-26T10:32:32,348 [main] INFO c.e.f.s.m.AdvancedCryptoServiceImpl - Activating... b0307191400
2021-05-26T10:32:32,977 [Start Level: Equinox Container: 78b7db4a-28f6-4896-8167-2c7fe00192eb] INFO c.f.h.HelloWorld - Bundle com.fuelactive.hello_osgi has started OK
2021-05-26T10:32:32,978 [Start Level: Equinox Container: 78b7db4a-28f6-4896-8167-2c7fe00192eb] INFO c.f.h.HelloWorld - Bundle com.fuelactive.hello_osgi has started OK
2021-05-26T10:32:32,978 [Start Level: Equinox Container: 78b7db4a-28f6-4896-8167-2c7fe00192eb] INFO c.f.h.HelloWorld - Bundle com.fuelactive.hello_osgi has started OK
osgi> 2021-05-26T10:32:34,519 [Start Level: Equinox Container: 78b7db4a-28f6-4896-8167-2c7fe00192eb] INFO o.e.j.u.log - Logging initialized @5901ms to org.eclipse.jetty.util.log.Slf4jLog
2021-05-26T10:32:34,702 [Start Level: Equinox Container: 78b7db4a-28f6-4896-8167-2c7fe00192eb] INFO o.e.j.s.Server - jetty-9.4.19.v20190610; built: 2019-06-10T16:30:51.723Z; git: afcf563148970e98786327af5e07c261fda175d3; jvm 15.0.2+7-27
2021-05-26T10:32:34,743 [Start Level: Equinox Container: 78b7db4a-28f6-4896-8167-2c7fe00192eb] INFO o.e.j.s.session - DefaultSessionIdManager workerName=node0
2021-05-26T10:32:34,743 [Start Level: Equinox Container: 78b7db4a-28f6-4896-8167-2c7fe00192eb] INFO o.e.j.s.session - No SessionScavenger set, using defaults
2021-05-26T10:32:34,745 [Start Level: Equinox Container: 78b7db4a-28f6-4896-8167-2c7fe00192eb] INFO o.e.j.s.session - node0 Scavenging every 660000ms
2021-05-26T10:32:34,783 [Start Level: Equinox Container: 78b7db4a-28f6-4896-8167-2c7fe00192eb] INFO o.e.j.s.h.ContextHandler - Started o.e.j.s.ServletContextHandler@71939acc/,null,AVAILABLE
2021-05-26T10:32:34,797 [Start Level: Equinox Container: 78b7db4a-28f6-4896-8167-2c7fe00192eb] INFO o.e.j.s.AbstractConnector - Started ServerConnector@747f84f3HTTP/1.1,[http/1.1]0.0.0.0:8080
2021-05-26T10:32:34,797 [Start Level: Equinox Container: 78b7db4a-28f6-4896-8167-2c7fe00192eb] INFO o.e.j.s.Server - Started @6181ms
Framework is running in emulation mode
【问题讨论】:
【参考方案1】:我收到了技术支持的回复。他们告诉我 ESF 6.2.0 模拟器有问题,而是直接部署到硬件上。
这意味着“入门”文档是无用的,因为它需要读者使用模拟器。
【讨论】:
以上是关于在 ESF Emulator 中运行 Hello_Osgi 在 Eclipse EE、Kura、Ubuntu Linux 上崩溃的主要内容,如果未能解决你的问题,请参考以下文章
Emulator Android Accelerated x86_Oreo 无法使用 Visual Studio 启动
解决Android Studio运行模拟器报:The emulator process for AVD Pixel_4a_Edited_API_28 has terminated.
mysql中 show table status 获取表信息
inter x86 emulator accelerator(HAXM installer) not compatible with windows