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

Java Development

Reply
New Developer
hariprasad
Posts: 29
Registered: ‎07-18-2011
My Device: Torch
My Carrier: Developer

Application not upgrading!! Error "Multiply defined"

Hi All,

 

I would like to have one application running on the device.Pushed to the device through BES(using .alx and .cod files).

So the application (older) is installed in the Device,

 

Then I added few classes to the application(changed  vendor in the .alx file) and now  I need to install the application(newer) to the device through BES.

 

So while pushing to device, it is taking as a new application and when I open that application it is showing  ERROR as "Multiply Defined".

 

So anything I have to change in the .alx file ,so as to replace older app wth newer app.

The .alx file which I used is shown below

 

<loader version="1.0">
<application id="News">
<name >
News
</name>
<description >

</description>
<version >
1.0.0
</version>
<vendor >
Developer
</vendor>
<copyright >
Copyright (c) 2012 Developer
</copyright>
<fileset Java="1.54" _blackberryVersion="[7.0.0)">
<directory >
7.0.0
</directory>
<files >
News.cod

</files>

</fileset>

</application>

</loader>

 

OR anything else I have to do through coding for overriding older app with the newer app.

 

 

Thanks and Regards,

hari.

 

 

 

Please use plain text.
Developer
Developer
CMY
Posts: 1,120
Registered: ‎02-10-2009
My Device: 8130 / 8350 / 9530 / 9550 / 9850 / PlayBook
My Carrier: Verizon

Re: Application not upgrading!! Error "Multiply defined"

The multiply defined error usually means you have more than one class with the same qualified name in two separate cod files.
ie..
my.custom.file.java in cod 1
my.custom.file.java in cod 2

You can usually get by this by qualifying your packages with the app name
ie......
app1.my.custom.file.java
app2.my.custom.file.java
Please use plain text.
New Developer
hariprasad
Posts: 29
Registered: ‎07-18-2011
My Device: Torch
My Carrier: Developer

Re: Application not upgrading!! Error "Multiply defined"

Hi thanks for reply.

 

This one I  got it ,but that is my problem..

So you are telling that ,if I need to upgrade my application then I have to change the package struture?

 

 

But the application is already running on the device,In the new application I just added label field and made It as newer application(we can say version 1.0 to version 1.1).So now that newer application is pushed by BES to devices.User does not have rites to remove the existing application.So what am asking is that anything I have change in .alx file.

 

 

 

 

Please use plain text.
Developer
Developer
CMY
Posts: 1,120
Registered: ‎02-10-2009
My Device: 8130 / 8350 / 9530 / 9550 / 9850 / PlayBook
My Carrier: Verizon

Re: Application not upgrading!! Error "Multiply defined"

I'm not sure how things work on a BES, but possibly changing the vendor name is enough to make it think this is a new separate application in which case is why you are getting the error.
Please use plain text.
New Developer
hariprasad
Posts: 29
Registered: ‎07-18-2011
My Device: Torch
My Carrier: Developer

Re: Application not upgrading!! Error "Multiply defined"

Thanks once again,

Ya I changed the vendor name,but no use..

Can you ask you colleague and cofirm !!


thanks and regards,
hariprasad.
Please use plain text.
New Developer
hariprasad
Posts: 29
Registered: ‎07-18-2011
My Device: Torch
My Carrier: Developer

Re: Application not upgrading!! Error "Multiply defined"

If I need to upgrade my application ,then I have to change version number in alx file?

or with same version number application wil over ride?

Please use plain text.