Unable to install application on BlackBerry due to Error 907

社会主义新天地 提交于 2019-12-12 04:05:17

问题


I am presently developing a PhoneGap application ( targeting BlackBerry OS 6/7 ).The application runs fine on the Ripple Emulator, and builds OK on the PhoneGap Build Service.

When I try to install over-the-air from PhoneGap build on a physical test device ( a BlackBerry Curve 9300 ), I constantly get variations of the "907 error" - invalid Jar / Invalid cod etc. I have also tried to install from my own server, with a JAD that I created and verified, and with MIME types correctly set - with the same result.

When I attempt the installation via BlackBerry Desktop software, I get "silent failures" ie BB Desktop simply loops back to the application list, without installing the software.

I have searched through the BlackBerry forums and knowledge bases, and tried to apply the recommendations contained there. For example:

BlackBerry Forum Entry on the 907 Error

Knowledge Base Article

The physical test device has BlackBerry service ( push email, BlackBerry App World etc are working ). This problem has so far defined my attempts to resolve it ( although I am not giving up yet ). Any pointers in what I should consider?


回答1:


I found the cause of this 907.

My compiled application had more than 127 sibling CODs. On "traditional" BlackBerry ( up to Blackberry 7; I am not sure this behavior extends to BB10 and PlayBook ), an application cannot have more than 127 sibling CODs.

There are also absolute size limits, related to the fact that each COD has a size limit of 128kB ( 64kB Data / 64kB code ). The practical absolute size limit is therefore dependent on what fraction of your app is code and what fraction is data ( there is a strict separation ).

My current headache is on how to embed my content in the app, in spite of this limit. I have posted that as an independent question:

I need to embed a > 4MB Content File in a BlackBerry Webworks Application ( fror BlackBerry 6/7 ). What are my options?



来源:https://stackoverflow.com/questions/10896736/unable-to-install-application-on-blackberry-due-to-error-907

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