addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramlinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Save this Meetup!

This Meetup no longer has an Organizer.
Without an Organizer, it will disappear from our website in 11 day(s).

You can join this Meetup and become the Organizer.

Blackberry issues with phonegap and sybase SUP

From: Alan R.
Sent on: Monday, October 24, 2011 4:04 PM
Hi my BB friends,

I have just joined this meetup - seems very interesting group.

We are developing an enterprise class application for different platforms using phonegap (http://www.phonegap.com/) and I'm experiencing problems for linking with 3rd party libraries with the blackberry flavour of the application. 

I was wondering if someone here has any experience with phonegap + blackberry, more specifically phonegap + blackberry + SUP (Sybase Unwired Platform - http://www.sybase.com/products/mobileenterprise/sybaseunwiredplatform) ? 

Sorry for so many technical information, but I think it would be difficult to understand the issue without it :).

We are currently trying to get SUP to work on blackberry using the blackberry webworks 2.2 and phonegap 1.1.

What we have successfully managed to this point:
-We got the SUP101 tutorial to run on Simulator and device.
-We can run Phonegap projects.
-We can create our own plugins between phonegap and native code (calling java code from the HTML5/javascript)
-We created and called from phonegap our own jar files
-We were able to add other third party jars to a project and call it.

What we are not able to do:
-Call the SUP jar from HTML5/javascript with a Phonegap plugin

We have been pursuing 2 methods to get SUP to work with webworks:

1)Adding sup_client_rim, UltraLiteJ, CommonClient inside the phonegap plugin.
This method works fine for other Jar files (that we created ourselves or that downloaded such as the twitter libraries).
The project compiles correctly with BlackBerry Web Packer and the project get uploaded to the device. 

Unfortunately when we try to launch the application we get an error:
Error starting MyApp: Module 'MyApp' has verification error 1691 at offset 0ed9 (code file version 79).

Our understanding of this error is that the sup jar do not follow the blackberry code recommendations and when passed through BlackBerry Webworks Packager, it generate some invalid code that prevent the application form launching.

2)The second method we tried is to do like for the SUP101 tutorial: compile the code without uploading the SUP jar inside the application, and then pushing the SUP libraries onto the device separately.
However when we try run our code, we get a class not found exception that indicates that the application doesn’t find the SUP libraries in the same way as the native application does.

Our research into this problem led us to the to the 2 following questions :

1)Why does the sup jar files create a verification error in blackberry webworks?
2)How can we configure a webworks project so that it can access the sup libraries in the same way that the blackberry eclipse plugin native project does?

Thank you !
Alan Rubin

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy