Skip to main content

Android LWUIT java.io.EOFException when going to a form.

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
68060
Offline
Joined: 2011-08-29

Hi my app begins to launch on android but then when I attempt to go to a form I get this error

W/System.err(27566): java.io.EOFException
W/System.err(27566): at java.io.DataInputStream.readInt(DataInputStream.java:287)
W/System.err(27566): at com.sun.lwuit.util.UIBuilder.createComponent(UIBuilder.java:1187)
W/System.err(27566): at com.sun.lwuit.util.UIBuilder.createContainer(UIBuilder.java:301)
W/System.err(27566): at com.sun.lwuit.util.UIBuilder.createContainer(UIBuilder.java:290)
W/System.err(27566): at com.sun.lwuit.util.UIBuilder.showForm(UIBuilder.java:1954)
W/System.err(27566): at userclasses.NavigationLogic.goTo(NavigationLogic.java:1708)

the .res is definitely found (in assets/) because if i remove it then theres an file not found exception - anyone know what this error is all about?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vprise
Offline
Joined: 2003-11-07

The line numbers are unsynced with my current version of the UIBuilder so its hard for me to investigate the source of the exception. Obviously it is caused when reading a specific component but its hard for me to tell which one and why.

You can override the method:

</p>
<p>    protected Component createComponentInstance(String componentType, Class cls) {<br />

And just printout the component type created to give you an indication of which component is failing. Please file an issue on this and assign it to me, this seems like a critical bug.