View Single Post
Old 09-25-2012, 03:22 AM   #114
ihor
Enthusiast
ihor understands when you whisper 'The dog barks at midnight.'ihor understands when you whisper 'The dog barks at midnight.'ihor understands when you whisper 'The dog barks at midnight.'ihor understands when you whisper 'The dog barks at midnight.'ihor understands when you whisper 'The dog barks at midnight.'ihor understands when you whisper 'The dog barks at midnight.'ihor understands when you whisper 'The dog barks at midnight.'ihor understands when you whisper 'The dog barks at midnight.'ihor understands when you whisper 'The dog barks at midnight.'ihor understands when you whisper 'The dog barks at midnight.'ihor understands when you whisper 'The dog barks at midnight.'
 
Posts: 43
Karma: 42986
Join Date: Aug 2011
Location: Lviv, Ukraine
Device: Kindle DX Graphite
Quote:
Originally Posted by ixtab View Post
Check the system logfile. There's probably an unchecked exception being thrown somewhere. Hint: try to catch Throwable, instead of Exception.

As to the code, there is nothing that looks immediately wrong. My guess is the String.split() method - the Kindles do not support regexes (I have also been bitten by this a few times). Try to use a StringTokenizer instead. And note that Integer.parseInt() may also throw an unchecked exception.
I don't know where is the log file, but I dumped exception to /mnt/us and I see the next:
Spoiler:
java.lang.NoSuchMethodError: java.lang.String: method split(Ljava/lang/String[Ljava/lang/String; not found
at com.amazon.ebook.framework.resources.UIResources_e n_US.readConfig(UIResources_en_US.java:44)
at com.amazon.ebook.framework.resources.UIResources_e n_US.<clinit>(UIResources_en_US.java:72)
at java.lang.Class.runStaticInitializers(Class.java:1 604)
at java.util.ResourceBundle.loadBundle(ResourceBundle .java:1066)
at java.util.ResourceBundle.findBundle(ResourceBundle .java:931)
at java.util.ResourceBundle.getBundleImpl(ResourceBun dle.java:768)
at java.util.ResourceBundle.getBundle(ResourceBundle. java:555)
at com.amazon.ebook.framework.gui.foundation.od.<init >(olc:166)
at com.amazon.ebook.framework.gui.foundation.od.<init >(olc:60)
at com.amazon.ebook.framework.gui.widgets.g.D(ffc:514 )
at com.amazon.ebook.framework.impl.gui.AlertImpl.<cli nit>(lac:174)
at java.lang.Class.runStaticInitializers(Class.java:1 604)
at com.amazon.ebook.framework.impl.gui.b.Q(rzb:333)
at com.amazon.ebook.framework.impl.gui.b.R(rzb:156)
at com.amazon.ebook.framework.impl.gui.b.<init>(rzb:3 72)
at com.amazon.ebook.framework.impl.booklet.e.a(hec:81 )
at com.amazon.ebook.framework.impl.gui.b.a(rzb:380)
at com.amazon.ebook.framework.impl.device.mario.o.<in it>(zac:390)
at com.amazon.ebook.framework.impl.device.mario.o.a(z ac:262)
at com.amazon.ebook.framework.impl.Framework.start(xe c:16)
at com.lab126.linux.arm.AbstractServiceProvider.N(oz: 23)
at com.lab126.linux.arm.LuigiServiceProvider.main(pz: 243)
at sun.misc.CVM.runMain(CVM.java:538)


so, ixtab, you were right as to splitting strings. I will use StringTokenizer
ihor is offline   Reply With Quote