Hello Genodians
I'm trying to use the stdin file descriptor in a java application to pass data through a terminal to the application.
When the application tries to read from the file descriptor, I get the following error message: [init -> init -> java] Error: no plugin found for read(0)
If is start a libc component instead of java, there is no error message and the component can read from stdio.
In the <start> node of the java application I have the following <config> node:
<config ld_verbose="no"> <arg value="/bin/java" /> <!-- <arg value="-XX:+NeverActAsServerClassMachine"/> <arg value="-XX:+UnlockDiagnosticVMOptions"/> <arg value="-XX:-ImplicitNullChecks"/> <arg value="-XX:+CITime"/> --> <arg value="-Xint"/> <arg value="-jar"/> <arg value="app.jar"/> <libc stdin="/dev/terminal" stdout="/dev/terminal" stderr="/dev/log" rtc="/dev/rtc"/> <vfs rtc="/dev/rtc"> <dir name="dev"> <log/><null/><inline name="rtc">2000-01-01 00:00</inline> <terminal label="terminal"/> </dir> <dir name="bin"> <rom name="java"/> </dir> <dir name="lib"> <rom name="java.lib.so"/> <inline name="jvm.cfg">-server KNOWN -client IGNORE </inline> <dir name="server"> <rom name="jvm.lib.so"/> </dir> </dir> <dir name="modules"> <tar name="classes.tar"/> </dir> <tar name="app.tar"/> <rom name="zip.lib.so"/> <rom name="nio.lib.so"/> <rom name="net.lib.so"/> </vfs> </config>
Can anybody help me getting this to work?
Best regards, Pirmin
Hi
I have created a small example in genode-world that demonstrates the issue [1].
[1] https://github.com/trimpim/genode-world/commit/2df29ffad0fff8ec0edb257d693dd...
Regards, Pirmin
On 10/22/19 10:51 AM, Duss Pirmin wrote:
Hi
I have created a small example in genode-world that demonstrates the issue [1].
[1] https://github.com/trimpim/genode-world/commit/2df29ffad0fff8ec0edb257d693dd...
Regards, Pirmin
Genode users mailing list users@lists.genode.org https://lists.genode.org/listinfo/users
See: https://github.com/genodelabs/genode-world/issues/192
Thx, Sebastian