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
Contributor
patavarini
Posts: 35
Registered: ‎12-01-2011
My Device: BlackBerry 8520
Accepted Solution

Blackberry Package project issue -1.debug

 

I'm using BlackBerry_JDE_PluginFull_1.1.2.201003212304-12 (BB 5 SO).

 

When i rich click project -> BlackBerry -> Package Project its, generates some files on my deliverable folder. This files are the one u use to put the App on the web so my client can download the app and install it on his BlackBerry.

 

Now i'm facing a problem, some times, its create a file that prevent me install the app on BB. this file is ProjectName-1.debug.

 

What is making this error is why i am here. I don't know why this is happening.

 

My code that works fine:

public void agendar(){
    String msg = "asdasd";      
    boolean seguir = true;
    if(_cedula.getText() == null){
        seguir = false;
    }
    if(seguir && _fechaNac.getDate() < 1){
        seguir = false;
    }
    if(seguir && _tel.getText() == null){
        seguir = false;
    }
    if(seguir && _pnombre.getText() == null ){
        seguir = false;
    }
    if(seguir && _papellido.getText() != null){
        seguir = false;
    }
    int i = Dialog.ask(Dialog.D_OK, msg);
}

Same code with one line that makes the "error":

public void agendar(){
    String msg = "asdasd";      
    boolean seguir = true;
    if(_cedula.getText() == null){
        seguir = false;
        msg = " xxx ";
    }
    if(seguir && _fechaNac.getDate() < 1){
        seguir = false;
    }
    if(seguir && _tel.getText() == null){
        seguir = false;
    }
    if(seguir && _pnombre.getText() == null ){
        seguir = false;
    }
    if(seguir && _papellido.getText() != null){
        seguir = false;
    }
    int i = Dialog.ask(Dialog.D_OK, msg);
}

The only difference is the line msg = " xxx ".

The components im using are BasicEditField and one DateField.

Also if i add this

int i = Dialog.ask(Dialog.D_OK, "aaaaaaaaa asdasd ");

the package get corrupted.

 

Yesterday, i created a new class in the project and just that was enough to corrupt the package.

 

So far, i re installed the eclipse plugin, and nothing changed. I can't fine any reference to this problem on google. Im stuck here with this and i dont know what else to check. On the simulator its works fine.

What is making this happening? What does -1.debug mean? When i try to install the app it looks for -1.cod file.

 

Any help is appreciated.

Regards.

Please use plain text.
Developer
peter_strange
Posts: 19,609
Registered: ‎07-14-2008
My Device: Not Specified

Re: Blackberry Package project issue -1.debug

No corruption, what is happening here is that your project has got large enough to exceed the limits of a single cod, and so the project is being built into mutliple cods.

 

Typically you don't see that, becuase as part of the build process, it zips up the individual cods, and puts them all in one large cod.  However the debug-n files are a good indication. 

 

So take your single file "<name>.cod", rename it to "<name>.zip", and then open the zip file.  You will probably see 2 cods in there.

 

Unzip this and put the multiple cod files on the web site for download.  If you check the jad file that has been created, you will see that it lists multiple cods.

 

Let us know if this does not answer your question.

 

If you want to read more about this, search the forum for 'sibling'.  The mutliple cod files are generally referred as sibling cod files. 

 

See here for more on this:

http://supportforums.blackberry.com/t5/Testing-and-Deployment/The-maximum-size-of-a-BlackBerry-7-or-...

Please use plain text.
Contributor
patavarini
Posts: 35
Registered: ‎12-01-2011
My Device: BlackBerry 8520

Re: Blackberry Package project issue -1.debug

U are my HERO. 

 

One more quesiton, if u have time. 

 

I re installed my plugin and now i get two folders, Standard\5.0.0\ and Web\5.0.0\ .

 

which is the difference between them?

 

Regards.

Please use plain text.
Developer
peter_strange
Posts: 19,609
Registered: ‎07-14-2008
My Device: Not Specified

Re: Blackberry Package project issue -1.debug

I believe Simon Hain explained that in another Thread but I have no idea how to find that Thread nor really what it means. 

 

But as I understand it, the Standard is set up to do what you have done - i.e. creates 1 cod.  The project build can alternatively deliver to the Web folder as individual cods, so you don't have to unzip as you have currently done.  However I do not know how to tell the project build which of these it is to do.

 

The lower level folder is just dependent on the JRE you are using, so that you can compile the same source into different 'levels', which is especially useful if you have some code that only runs in later OS levels - you can use the preprocessor to select the code dependent on the JRE level.

 

Personally I generally always build into the Standard\5.0.0\ folder and unzip when distributing to the Web. 

 

Hope this is helpful. 

Please use plain text.