How to debug a blackberry verification error?

拈花ヽ惹草 提交于 2020-01-06 16:22:58

问题


All I get is:

"Module 'my-app' has verification error 'xxxx' at offset '1646'

Which according to blackberry, contains information that is of no use to third party developpers.

I looked in the buglog (with the 'catfail' option), and all I found was a method on which it crashed, not why. funny thing is, when I remove this method from my application, it still logs the same method for causing the error. It's kind of strange.

extra info: My app contains LWUIT, and the blackberryport

I've also read the KB article DB-00744, which suggest a verification error can mean any of the following '14' errors. Is it random, or is there a method behind this logic?


回答1:


I looked in the buglog (with the 'catfail' option), and all I found was a method on which it crashed, not why. funny thing is, when I remove this method from my application, it still logs the same method for causing the error. It's kind of strange.

You must have made a mistake somewhere in your build / deploy / test process .... assuming that you are talking about one of your application's own methods, not just some method that your application calls. Try doing it all again.

Is it random? or is their a method behind this logic?

One would assume that these are all issues that have been found to contribute to in verification errors with various customer apps on various releases of the Blackberry platform. It be said though that a couple of them seem a bit odd. For instance unnecessary imports (3) should be harmless, and using "package private" incorrectly (4) should cause Java compilation errors ... I'd have thought. And I don't like the fact that the list often don't say why these measures might be necessary.

Judging from this note, I get the feeling that some of the tools in the Blackberry development toolchain are rather poorly engineered. (Surely it cannot be that hard for the verifier to produce informative diagnostics instead of undocumented "internal" error codes. And some of the things mentioned "smell" like workarounds for bugs.)



来源:https://stackoverflow.com/questions/4459239/how-to-debug-a-blackberry-verification-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!