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
Visitor
Posts: 1
Registered: ‎03-31-2010
My Device: 8900
My Carrier: Vodafone

RAPC exception Widget compliation error

Hi all, I'm trying to compile a simple widget to test and I keep getting the same error. " RAPC exception occurred".

 

This is my full command line out put:

 

C:\Program Files\Research In Motion\BlackBerry Widget Packager>bbwp.exe web/GroceryList.zip
[INFO]                  Parsing command line options
[INFO]                  Parsing bbwp.properties
[INFO]                  Validating widget archive
[INFO]                  Parsing config.xml
[INFO]                  Populating widget source
[INFO]                  Compiling widget
[ERROR]                 RAPC exception occurred

 

Obviously this is very helpful as it doesn't tell me what caused the exception.

 

Can anyone give me any suggestions where to look / what to try?

 

I'm using Widget SDK beta 3

 

SYSTEM:

Vista Business

Core 2 Duo

 

 

Many thanks

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: RAPC exception Widget compliation error

Can you run the command line with the "verbose" switch /v and post the results?

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
New Contributor
Posts: 5
Registered: ‎06-02-2010
My Device: BlackBerry Tour
My Carrier: Verizon

Re: RAPC exception Widget compliation error

[ Edited ]

im having same problem... im running windows 7 - 64 bit with the command prompt escalated to administrator

 

had same issue when my xml file was not in utf-8 saved in correct format and it got farter then spit this out

 

thanks for all your help

 

 

C:\Program Files (x86)\Research In Motion\BlackBerry Widget Packager>bbwp.exe jo
hnmoorewidget.zip /v
[INFO]                  Parsing command line options
[INFO]                  Parsing bbwp.properties
[INFO]                  Validating widget archive
[INFO]                  Parsing config.xml
[INFO]                  Validating config.xml
[INFO]                  Validating widget version
[INFO]                  Validating the <name> element
[INFO]                  Validating the <author> element
[INFO]                  Populating widget source
[INFO]                  Compiling widget
Note: C:\Users\Carter\AppData\Local\Temp\widgetGen.2714922591275514669029.tmp\bl
ackberry\web\widget\bf\BrowserFieldScreen.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\autogen\WidgetConfigAutoGen
.class
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\bf\BrowserFieldCustomErrorH
andler.class
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\bf\BrowserFieldScreen$1.cla
ss
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\bf\BrowserFieldScreen.class
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\bf\NavigationNamespace$1.cl
**bleep**
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\bf\NavigationNamespace$GetD
irection.class
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\bf\NavigationNamespace$GetO
ldFocus.class
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\bf\NavigationNamespace$GetR
imFocus.class
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\bf\NavigationNamespace$SetR
imFocus.class
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\bf\NavigationNamespace.clas
s
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\bf\WidgetBrowserFieldListen
er$UpdateBinsEventListener.class
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\bf\WidgetBrowserFieldListen
er.class
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\bf\WidgetFieldManager.class
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\bf\WidgetNavigationControll
er.class
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\bf\WidgetRequestController.
class
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\impl\WidgetConfigImpl.class
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\impl\WidgetError.class
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\impl\WidgetException.class
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\listener\HardwareKeyListene
r.class
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\loadingScreen\AnimatedGIFFi
eld$AnimatorThread$1.class
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\loadingScreen\AnimatedGIFFi
eld$AnimatorThread.class
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\loadingScreen\AnimatedGIFFi
eld.class
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\loadingScreen\LoadingScreen
.class
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\loadingScreen\PageManager$1
.class
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\loadingScreen\PageManager$2
.class
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\loadingScreen\PageManager.c
lass
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\loadingScreen\TransitionCon
stants.class
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\policy\WidgetPolicy.class
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\policy\WidgetPolicyFactory.
class
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\policy\WidgetWebFolderAcces
s.class
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\util\WidgetUtil.class
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\Widget.class
Parsing classfile: C:\Users\Carter\AppData\Local\Temp\rapc_233dea2d.dir\blackber
ry\web\widget88878933373e214089aa507b7fecd92bpackage\WidgetScreen.class
I/O Error: invalid UTF-8 encoding
[ERROR]                 RAPC exception occurred
Better Computing Through Lack Of Sleep
Highlighted
New Contributor
Posts: 2
Registered: ‎07-21-2010
My Device: 9700
My Carrier: Telefónica Movistar (Venezuela)

Re: RAPC exception Widget compliation error

I had the same error. When compiling with BB Widget Packager there's no other information. When compiling with the Eclipse Web Plug-in, an I/O error appears due to non recognized characters. 

 

My description and some values in tags had accents (because i'm latinamerican). Change all special characters and every thing goes fine.

 

Regards,