Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Testing and Deployment

Reply
Developer
borceg
Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB
My Carrier: Vip
Accepted Solution

Signing problems with marmalade sdk

Hello. I'm trying to sign m marmalade app but constantly I'm getting invalid value "..." for Archive-Asset-x-Digest. 

I modified marmalade py files from few posts on marmalade support forum, bacause the default config was producing bar files with inclusion of empty directories. I solved that, checked the new bar file (verify is ok) but when I try to sign with blackberry-signer -storepass xxx MyBar.bar I only get invalid value "..." for Archive-Asset-x-Digest.

 

==

Somehow I solved that. Just providing author.p12 file to marmalade deploy tool produces sign-able bar file. But still problems exist. I can't deploy the signed bar. It give failure 500 'NoneType' object has no attribute 'kind'

 

 

 

Very bad from marmalade site. They say come and use our "semi working" sdk

Please use plain text.
Developer
KermEd
Posts: 175
Registered: ‎05-18-2009
My Device: NA
My Carrier: NA

Re: Signing problems with marmalade sdk

[ Edited ]

Lets be real here for a second.  They didnt say "hey, come use this (sdk its flawless)".  They offered you a free 32GB PlayBook + 1 year of SDK in exchange for building an application.

 

Your chances of meeting success for support on the BlackBerry support forums for a third-party SDK is very minimal.  You will have to work for your PlayBook + SDK software - sorry - its not just a handout :smileyhappy:.

 

Without knowing everything you changed, I can't give you advice on it.  

 

Correction:  This link will show you where you went wrong: http://stackoverflow.com/questions/414230/python-nonetype-object-has-no-attribute-encode (probably a coding issue - or SDK bug). 

Please use plain text.
Developer
borceg
Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB
My Carrier: Vip

Re: Signing problems with marmalade sdk

[ Edited ]

First of all, I said that because I was dissapointed a lot. Recently I got a chance to work with various engines for qnx, I my final conclusion is - a lot of work remains to be done.
Everything is fast coded, just to release it on the market, support is really slow, server side is always at fixing stage.

What I've done so far:
1. Created simple puzzle game, following a tutorials on net
2. Built it and tested on pc simulator, works ok
3. test on playbook device with debug token, passes ok
4. Create signed bar file. First try fails (Invalid digest xxxx). OK, somehow fixed it(the main point was to add author.p12 and pass to deploy utility). Still bar file is not signed properly, just author signed.
5. Signed it completely - with blackberry-signer tool. Goes ok, but bar contains empty directories (zip utility that creates bar package adds empty dirs).
6. OK, fixed that (zip -d barfile.bar native/)
7. Trying to deploy that final, fully signed bar to device - I get failure 500 'NoneType' object has no attribute 'kind'

 

I assume that it's due to inclusion of .jpg splashscreen to the bar package. look here 

And another thing, during build I get 

 

SUCCESS (WITH WARNINGS): EVALUATION USE ONLY package written to 'D:\jDownloader\SimplePuzzlef_Marmalade.s3dxproj\build_simplepuzzlef_vc10\deployments\default\playbook\release' [took 17.29s]. This package is not licensed for commercial use

 explain to me how to publish that package to App World ?

 

Clearly something is wrong. Whether on my side or theirs. 

Please use plain text.
abx
Contributor
abx
Posts: 26
Registered: ‎10-03-2012
My Device: Playbook
My Carrier: lebara

Re: Signing problems with marmalade sdk

After step 5 (2nd signing),   can you run verify on your .bar file:

 

blackberry-signer -verbose -verify yourapp.bar

 

Please use plain text.
Developer
borceg
Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB
My Carrier: Vip

Re: Signing problems with marmalade sdk

I forgot to mention that I tried with verify verbose. I get this error because of inclusion of META-INF and native directories. 

 

D:\jDownloader\SimplePuzzlef_Marmalade.s3dxproj\build_simplepuzzlef_vc10\deploym
ents\default\playbook\release>c:\blackberry.tools.SDK\bin\blackberry-signer -ver
ify -verbose SimplePuzzlef.bar

        2062 Wed Oct 03 19:29:20 CEST 2012 META-INF/MANIFEST.MF
        1150 Wed Oct 03 19:29:20 CEST 2012 META-INF/AUTHOR.SF
         683 Wed Oct 03 19:29:20 CEST 2012 META-INF/AUTHOR.EC
        1150 Wed Oct 03 19:29:20 CEST 2012 META-INF/RDK.SF
         280 Wed Oct 03 19:29:20 CEST 2012 META-INF/RDK.EC
           0 Tue Jan 01 00:00:00 CET 1980 META-INF/
           0 Tue Jan 01 00:00:00 CET 1980 native/
sm       701 Wed Oct 03 19:27:38 CEST 2012 native/blackberry-tablet.xml
sm      6940 Wed Oct 03 19:27:38 CEST 2012 native/icon.png
sm     27845 Wed Oct 03 19:27:36 CEST 2012 native/mwm-splash-240.jpg
sm    488362 Wed Oct 03 19:27:38 CEST 2012 native/SimplePuzzlef
sm    1309933 Wed Oct 03 19:27:36 CEST 2012 native/SimplePuzzlef.s3e
sm    1543157 Wed Oct 03 19:27:22 CEST 2012 native/SimplePuzzlef.stk

  s = signature was verified
  m = entry is listed in manifest
  k = at least one certificate was found in keystore
  i = at least one certificate was found in identity scope

Error: Some files are missing signatures

 

Please use plain text.
abx
Contributor
abx
Posts: 26
Registered: ‎10-03-2012
My Device: Playbook
My Carrier: lebara

Re: Signing problems with marmalade sdk

After you remove the directory entries and re-sign the bar, what does verify report on the final bar?

Please use plain text.
Developer
borceg
Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB
My Carrier: Vip

Re: Signing problems with marmalade sdk

After zip.exe -d barfile native/ and meta-inf/

 

D:\jDownloader\SimplePuzzlef_Marmalade.s3dxproj\build_simplepuzzlef_vc10\deploym
ents\default\playbook\release>c:\blackberry.tools.SDK\bin\blackberry-signer -ver
ify -verbose SimplePuzzlef.bar

        2062 Wed Oct 03 19:29:20 CEST 2012 META-INF/MANIFEST.MF
        1150 Wed Oct 03 19:29:20 CEST 2012 META-INF/AUTHOR.SF
         683 Wed Oct 03 19:29:20 CEST 2012 META-INF/AUTHOR.EC
        1150 Wed Oct 03 19:29:20 CEST 2012 META-INF/RDK.SF
         280 Wed Oct 03 19:29:20 CEST 2012 META-INF/RDK.EC
sm       701 Wed Oct 03 19:27:38 CEST 2012 native/blackberry-tablet.xml
sm      6940 Wed Oct 03 19:27:38 CEST 2012 native/icon.png
sm     27845 Wed Oct 03 19:27:36 CEST 2012 native/mwm-splash-240.jpg
sm    488362 Wed Oct 03 19:27:38 CEST 2012 native/SimplePuzzlef
sm    1309933 Wed Oct 03 19:27:36 CEST 2012 native/SimplePuzzlef.s3e
sm    1543157 Wed Oct 03 19:27:22 CEST 2012 native/SimplePuzzlef.stk

  s = signature was verified
  m = entry is listed in manifest
  k = at least one certificate was found in keystore
  i = at least one certificate was found in identity scope

Info: Bar verified.

 

On first try deploy failed. Second one success. Something is really messing with me :smileysad:

Please use plain text.
Developer
borceg
Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB
My Carrier: Vip

Re: Signing problems with marmalade sdk

Now only remains

SUCCESS (WITH WARNINGS): EVALUATION USE ONLY package written to xxx. This package is not licensed for commercial use
Please use plain text.
abx
Contributor
abx
Posts: 26
Registered: ‎10-03-2012
My Device: Playbook
My Carrier: lebara

Re: Signing problems with marmalade sdk

This is a marmalade license issue and you may have better luck posting on their forums.  Try refreshing your license using the Marmalade Configuration Tool and redeploying (you will need to increase the version to avoid duplicate signing issues).  

Please use plain text.
Developer
borceg
Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB
My Carrier: Vip

Re: Signing problems with marmalade sdk

As of today it's fixed.
Please use plain text.