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: ‎01-29-2012
My Device: blackberry 9360
My Carrier: 13777064501

is webwork sdk2.3 ok? I got error even compiling helloworld app!

I find the file URLDecoder.java in ext\common\blackberry\common\util has error like below:

decodingMap.put( "%80", "€" );
decodingMap.put( "%81", " " );
decodingMap.put( "%82", "? );
decodingMap.put( "%83", "? );
decodingMap.put( "%84", "? );
decodingMap.put( "%85", "? );
decodingMap.put( "%86", "? );
decodingMap.put( "%87", "? );
decodingMap.put( "%88", "? );
decodingMap.put( "%89", "? );
decodingMap.put( "%8A", "? );
decodingMap.put( "%8B", "? );
decodingMap.put( "%8C", "? );

 

then i tried to fix it and save the file as UTF-8, but i also got failed in compiling...

 

I do not know why, and I do not know how, or the sdk is not suitable for Unicode System?

My system is Windows 7 x64

Trusted Contributor
Posts: 152
Registered: ‎02-12-2011
My Device: Not Specified

Re: is webwork sdk2.3 ok? I got error even compiling helloworld app!

I'm having a lot of trouble with the new SDK as well...compiling with ripple on a windows 7 x64
Contributor
Posts: 12
Registered: ‎02-17-2012
My Device: developer
My Carrier: developer

Re: is webwork sdk2.3 ok? I got error even compiling helloworld app!

Just to add to the above comments. I am working with the 2.3.0.9 blackberry phone sdk and I am also seeing this problem. The operating system is Windows7 (simplified chinese).

The probem is a compilation error in the generated code at

..AppData\Local\Temp\widgetGen.#.tmp\extension\blackberry\common\util\URLDecoder.java

The compilation errors start at line 139 with:

        decodingMap.put( "%80", "€" );
        decodingMap.put( "%81", " " );
        decodingMap.put( "%82", "? );
        decodingMap.put( "%83", "? );

and it appears to be an encoding issue.

 

For those of you who run into this issue. You can go to

C:\Program Files\Research In Motion\BlackBerry WebWorks SDK 2.3.0.9\ext\common\blackberry\common\util

and modify the source file there -- either add the proper characters as listed here

http://www.w3schools.com/tags/ref_urlencode.asp

Or if you are in a rush, comment out the lines that throw compile errors.

 

For the last developer who modified this file, I'm not sure what the intended encoding of this file is. I thought it might be utf-8, but its not so who knows. But it's important that you kow what the encoding is supposed to be and that in your packaging code that you specifically tell that to the java compilier. Otherwise its just one of those "It works on my machine" type of deals, but in reality the SDK is broken.

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

Re: is webwork sdk2.3 ok? I got error even compiling helloworld app!

Which Sun/Oracle JDK are you using... Is it JDK version 1.6 32-bit?

 

If not, this is one of the requirements for the SDK.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
New Member
Posts: 3
Registered: ‎07-11-2011
My Device: BlackBerry Bold 9780 / 9900
My Carrier: docomo

Re: is webwork sdk2.3 ok? I got error even compiling helloworld app!

Hi,

As a possible workaround, please try to use native2ascii command as below.

------

C:\BBWP\ext\common\blackberry\common\util>native2ascii -encoding ISO-8859-1 URLDecoder.java URLDecoder.java_Unicode

C:\BBWP\ext\common\blackberry\common\util>rename URLDecoder.java URLDecoder.java_bak

C:\BBWP\ext\common\blackberry\common\util>rename URLDecoder.java_Unicode URLDecoder.java

------

 

Please see also my blog.

http://blogs.embarcadero.com/teamj/2012/04/02/2992/

Trusted Contributor
Posts: 104
Registered: ‎02-05-2012
My Device: Bold 9900 (primary) Z10 LE (secondary)
My Carrier: Singtel

Re: is webwork sdk2.3 ok? I got error even compiling helloworld app!

This is a possible solution which helps to solve my similar issue. My system is Windows XP (Simple Chinese) with JDK 1.6_32 and WebWork SDK 2.3.1.5.
New Member
Posts: 1
Registered: ‎11-12-2012
My Device: 9930
My Carrier: 1

Re: is webwork sdk2.3 ok? I got error even compiling helloworld app!

[ Edited ]

Thanks. it's useful ! 

 

see @ttakahashi