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

Web and WebWorks Development

Reply
Highlighted
New Developer
Posts: 3
Registered: ‎12-24-2013
My Device: Blackberry Curve 9300
My Carrier: Movistar

Error Packaging app with blackberry webworks sdk

I'm trying to build my application for blackberry OS, I am getting an error, I searched about this and still not be able to solve it.

 

I have downloaded the jdk 6 for 32-bit version, I have referenced it in the bbwp.properties file and I have made other changes such as the JAVA HOME environment variable, but it still does not work.

 

 

This is the command I am using:

 

bbwp C:\users\x\desktop\www.zip -o C:\users\x\desktop\output

 

And the result is the following:

 

[INFO] Parsing command line options
[INFO] Parsing bbwp.properties
[INFO] Validating application archive
[INFO] Parsing config.xml
[INFO] Populating application source
[INFO] Compiling BlackBerry WebWorks application
Exported static routine: .main(String[]) is multiply defined.
Exported static routine: .main(String[]) is multiply defined.
Exported static routine: .main(String[]) is multiply defined.
Exported static routine: .main(String[]) is multiply defined.
Exported static routine: .main(String[]) is multiply defined.
Exported static routine: .main(String[]) is multiply defined.
Exported static routine: .main(String[]) is multiply defined.
Exported static routine: .main(String[]) is multiply defined.
jline.ANSIBuffer: Error!: Missing stack map in: toString at label: 11
[ERROR] RAPC exception occurred

 

I've also tried to build with the emulator ripple, but I have the same error.

 

Thanks

Retired
Posts: 1,561
Registered: ‎04-12-2010
My Device: BlackBerry Z10
My Carrier: Bell

Re: Error Packaging app with blackberry webworks sdk

Could you please post your config.xml as a starting point?

This post here may be relevant as well (regarding having the same files multiple times / to do with the structure of the ZIP file):
http://stackoverflow.com/questions/12932609/bb-webworks-exception-javax-xml-rpc-jaxrpcexception-whil...

Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
New Developer
Posts: 3
Registered: ‎12-24-2013
My Device: Blackberry Curve 9300
My Carrier: Movistar

Re: Error Packaging app with blackberry webworks sdk

Hi, thanks for your reply and sorry for the delay, my config.xml would thus be composed:

 

<?xml version="1.0" encoding="UTF-8"?>
-<widget xmlns:rim="http://www.blackberry.com/ns/widgets" xmlns="http://www.w3.org/ns/widgets" version="1.0.0" id="bb_maz">

<name>MAZ</name>

<description>App Mutua MAZ</description>

<author>Jesus Lopez</author>

<feature id="blackberry.app"/>

<content src="index.html"/>

<icon src="icon.png"/>

<rimSmiley Tongueermissions> </rimSmiley Tongueermissions>

</widget>

 

Thanks

New Developer
Posts: 3
Registered: ‎12-24-2013
My Device: Blackberry Curve 9300
My Carrier: Movistar

Re: Error Packaging app with blackberry webworks sdk

If I remove the folder that contains the sencha sdk to create the package, well, creates a folder OTAInstall and other StandardInstall.

 

Now I have the problem when you try to install it from .jad file created

 

The error message that I receive is as follows:
907 Invalid code.

 

Can someone help me on this?

Thanks

Retired
Posts: 1,561
Registered: ‎04-12-2010
My Device: BlackBerry Z10
My Carrier: Bell

Re: Error Packaging app with blackberry webworks sdk

To install via JAD, you are navigating to the JAD file with the device's browser correct?

 

You can open the JAD file with a text editor to confirm that the paths that are listed there are what you are hosting on your web server. Note that you need to host all of the sibling COD files. If you are hosting just a single COD file, try opening it witih WinRAR (or similar program.) If it is a valid archive, you will want to extract its contents (the sibling COD files) and host those with the JAD, instead of the one, archive COD file.

 

Also, have you set up the MIME type for JAD files on your server?


Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.