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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
Developer
nathanpc
Posts: 126
Registered: ‎05-19-2012
My Carrier: VIVO Brazil
Accepted Solution

Package ID must match Package ID in original file bundle

I've ported my PlayBook WebWorks application to BlackBerry 10, the problem is that when I submit the bundle to the App World (the product already had the previous PlayBook version) I get this error:

File bundle (CherryNotes.bar) has been rejected. Package ID is required for all .bar file. If this is an upgrade, Package ID must match Package ID in original file bundle.

I've unpacked the BARs and checked their MANIFEST.MF and the Package-ID is different, but I think this is because I've used the PlayBook SDK to compile the old version and used the BlackBerry 10 SDK for the newer one. Is there anyway to correct this and make it work in the App World without having to create a new product?

If I helped you please click the "Like" button to support my work.
My apps: GAGmobile - CherryNotes - Requests
Social Me: about.me - Twitter
Please use plain text.
Developer
HorizonXP
Posts: 131
Registered: ‎03-28-2011
My Carrier: Bell

Re: Package ID must match Package ID in original file bundle

As far as I know, you need to keep the Package ID the same across the entire app, including the different file bundles. You can manually modify the Manifest to do this, I don't think it affects signing or anything. Only thing is to make sure that you keep your signing keys the same across all packages and never lose them.


Founder of Pulsecode Inc. and taab
Authomator - Two-factor authentication codes on BlackBerry 10 - http://www.xitijpatel.com/ - Follow @xitijpatel
Is there a helpful or useful post in this thread? Click the thumbs up on it so that other people can find it more easily!
Please use plain text.
BlackBerry Development Advisor
oros
Posts: 839
Registered: ‎04-12-2010
My Carrier: Bell

Re: Package ID must match Package ID in original file bundle

Hi there,

This will come as a result of the code signing key changes that occurred while we were battling that last issue. You can find a writeup and some recommendations here though:
http://devblog.blackberry.com/2012/03/package-id-rejected-by-app-world/

Short-version: If you still have the original signing files, you should be able to leverage those to submit a new release to an existing product. Otherwise, a new product for BB10 will likely be required.
Please note that I will be unavailable between May 19th and June 4th. Sincere apologies for any delays during this time. I will do my best to follow-up as soon as I am able.

Erik Oros
BlackBerry Development Advisor
@WaterlooErik
Please use plain text.
Developer
nathanpc
Posts: 126
Registered: ‎05-19-2012
My Carrier: VIVO Brazil

Re: Package ID must match Package ID in original file bundle

The problem is that I used the same signing keys, since both versions were being developed simultaneously, for the PlayBook and the BB10 versions and I'm still getting through same error.

 

 

Sent from my PlayBook

If I helped you please click the "Like" button to support my work.
My apps: GAGmobile - CherryNotes - Requests
Social Me: about.me - Twitter
Please use plain text.
Developer
nathanpc
Posts: 126
Registered: ‎05-19-2012
My Carrier: VIVO Brazil

Re: Package ID must match Package ID in original file bundle

[ Edited ]

Taking a closer look at the -listManifest output I saw something very interesting... Why are all these "test" strings in my IDs?

Package-Type: application
Package-Author: Nathan Campos
Package-Author-Id: testTmF0aGFuIENhbXBvcyAgICA
Package-Name: CherryNotes
Package-Id: testRel_CherryNotes5876a888
Package-Version: 1.1.1.1
Package-Version-Id: testMS4xLjEuMSAgICAgICAgICA
Package-Architecture: armle-v7

Application-Name: CherryNotes
Application-Id: testRel_CherryNotes5876a888
Application-Description: The awesome text editor.
Application-Version: 1.1.1.1
Application-Version-Id: testMS4xLjEuMSAgICAgICAgICA
Application-Requires-System: Tablet OS/10.0.4.0
Application-Development-Mode: false

Which are not present in the PlayBook version:

Package-Type: application
Package-Author: Sample Inc.
Package-Author-Id: testU2FtcGxlIEluYy4gICAgICA
Package-Name: CherryNotes373b85774e102a5050c82f5df0f45561
Package-Id: testDev_f5df0f455614b7088b8
Package-Version: 1.0.1.27
Package-Version-Id: testMS4wLjEuMjcgICAgICAgICA
Package-Architecture: armle-v7

Application-Name: CherryNotes
Application-Id: testDev_f5df0f455614b7088b8
Application-Description: The awesome text editor.
Application-Version: 1.0.1.27
Application-Version-Id: testMS4wLjEuMjcgICAgICAgICA
Application-Category: core.all
Application-Requires-System: Tablet OS/1.0.7.0
Application-Development-Mode: true

Here's the config.xml beginning for both versions:

<widget xmlns="http://www.w3.org/ns/widgets"
        xmlns:rim="http://www.blackberry.com/ns/widgets"
	version="1.1" id="CherryNotes">

  <name>CherryNotes</name>
  <author>Nathan Campos</author>
  <description>
       The awesome text editor.
  </description>

 

 

Any ideas?

If I helped you please click the "Like" button to support my work.
My apps: GAGmobile - CherryNotes - Requests
Social Me: about.me - Twitter
Please use plain text.
Developer
biggerCC
Posts: 267
Registered: ‎12-13-2010
My Carrier: o2 (de)

Re: Package ID must match Package ID in original file bundle

These test IDs are automatically added if you sign and build your package with the debug option (and token).

For release, you should not build a debug version...

- - -
My approved apps @ App World
Please use plain text.
Developer
nathanpc
Posts: 126
Registered: ‎05-19-2012
My Carrier: VIVO Brazil

Re: Package ID must match Package ID in original file bundle

But I'm not using the -d argument when I call bbwp. I've tried several times inspecting the BARs before and after they are signed, they are always like that.

 

This is just getting more and more frustrating. :smileysad:

If I helped you please click the "Like" button to support my work.
My apps: GAGmobile - CherryNotes - Requests
Social Me: about.me - Twitter
Please use plain text.
BlackBerry Development Advisor
Nukul
Posts: 115
Registered: ‎06-06-2011
My Carrier: Rogers

Re: Package ID must match Package ID in original file bundle

The id attribute is required. If you resubmit an application to BlackBerry App World that was initially packaged using a previous version of theBlackBerry WebWorks SDK, the value you specify for this attribute must be the same as the value for the Package-Name in your existing application's .bar MANIFEST file (for example,sampleApp6d5d8d2973ab439a52d274dffa2b018).
@nukulb
Please use plain text.
Developer
nathanpc
Posts: 126
Registered: ‎05-19-2012
My Carrier: VIVO Brazil

Re: Package ID must match Package ID in original file bundle

Thanks very very very much for your response, this was exactly my problem, since the old PlayBook SDK didn't used the ID in my config.xml (which is mostly shared between both apps) and created it's own using the App Name, when the new BlackBerry 10 SDK was using the ID in the config.xml, not generating one like the PlayBook does.

 

I think there should be a blog post about this in the Inside BlackBerry Developer Blog since it might be something other BlackBerry developers may run into when porting their WebWorks applications to BlackBerry 10. I'll email them about this to see if they can do it. :smileyhappy:

If I helped you please click the "Like" button to support my work.
My apps: GAGmobile - CherryNotes - Requests
Social Me: about.me - Twitter
Please use plain text.
Contributor
kovy
Posts: 13
Registered: ‎08-25-2011
My Carrier: bell

Re: Package ID must match Package ID in original file bundle

Thank you! You saved me a lot of time.
Please use plain text.