blackberry linkedin and twitter implementation error - blackberry

I used Scribe1.2.jar file for implementing twitter.I use the following code
OAuthService service = new ServiceBuilder().provider(TwitterApi.class).apiKey("key").apiSecret("secret").build();
Token requestToken = service.getRequestToken();
When i compile the code, its showing the following error - org/scribe/builder/api/Api.class: Error!: Invalid class file: Incorrect classfile version. The same problem happends in Linkedin also. How to resolve the problem ?. I referred this link scribe doc

The jars you mentioned, scribe-1.2.0.jar and Linkedin-j.jar (You didn't mention the LinkedIn's one explicitly, but I guess you meant this one) are Java SE versions and can't be used on BlackBerry. You need to look for Java ME versions and if you find ones, you need to preverify them first.
Refer to this question on additional information on preverification.
Update: I downloaded scribe-1.2.0.jar and tried to preverify it. I got the following error:
Error preverifying class org.scribe.extractors.BaseStringExtractorImpl
VERIFIER ERROR org/scribe/extractors/BaseStringExtractorImpl.getSortedAndEncodedParams(Lorg/scribe/model/OAuthRequest;)Ljava/lang/String;:
Cannot find class java/util/Map
The reason is that java.util.Map doesn't exist in Java ME.

Related

how to use php thumb in zend framework 2

I am using webino/WebinoImageThumb module to generate thumbnail in my zend 2 application but it shows an error
"Fatal error: Class 'GD' not found ..."
Is there is any other module or library available to do this like php thumb etc.
Please help.
The error message obviously says the problem. You need the GD extension enabled on your system to use image processing capabilities of WebionoImageThumb module.
You should read installation documentation and follow the steps described there.

launchimage module 2.1: Validation failed for module 'launchimage' with error: ipad

trigger.io;
after upgrading to launchimage module 2.1 I just get error 'Validation failed for module 'launchimage' with error: ipad'
any ideas what this error is about?
the old docs were really good, providing a very clear spec:
http://legacy-docs.trigger.io/en/v1.4/modules/launchimage.html
the new docs for version 2.1 are totally opaque:
https://trigger.io/modules/launchimage/current/docs/index.html
n.b. apologies for posting this to SO - its basically a trigger.io support request
I believe this error indicates that you haven't filled out the public lauchimage module in its entirety like this.
If you are packaging the app as universal I think you'll need to have all the fields filled out as Trigger then prepares your ipa for all platforms(iPad and iPhone).
I found its easiest to just ignore the docs, create a demo project and use the trigger.io toolkit app to generate example config - prevents toolkit app from overwriting existing app config.
have to say I'd way prefer to work from the documentation and edit json config files directly rather than spend my time going through tedious point-and-click config..

Paypal Direct Payment path errors

I'm using Paypal's Classic API to do Direct Payment on my site.
At the beginning of the DirectPayment sample on DoDirectPayment.php there is this line:
require_once('../PPBootStrap.php');
and it gives me this error:
Fatal error: require(): Failed opening required 'PPAutoloader.php' (include_path='.:/Applications/MAMP/bin/php/php5.4.4/lib/php') in /Users/jasonburton/Sites/georgetown/wp-content/themes/georgetown/paypal_direct_payment/samples/PPBootStrap.php on line 12
Now, that PPAutoloader.php call is an include within bootstrap. This doesn't just happen in bootstrap, it happens with all files that I try to include. The paths are just not right and I don't know what to do. I've echoed out my path in terminal and it just gives me:
/Applications/MAMP/bin/php/php5.4.4/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin
Any hints on how I can fix this problem? I know I'm not giving much information here but it's all I've got at the moment.
Any help is appreciated!
Did you run Composer ? We are using Composer for dependency management.
https://getcomposer.org/
Instructions are in the SDK Readme file too: https://github.com/paypal/merchant-sdk-php/blob/master/README.md

When i used SMS plugin in grails i am getting error

i have service to send sms to the mobile through Application. I am getting the follwing error.
2011-06-06 19:37:35,729 [http-8080-2] ERROR sipgate.SipgateService - Server returned HTTP response code: 401 for URL: https://samurai.sipgate.net/RPC2
This probably means you are using an invalid username or password
Have you set up the config as explained on the plugin page (at the top of the documentation)?
I also assume that this means your earlier problem was solved... Can you accept the answer if my answer helped, or explain what you did to fix it if it did not?
I agree with Tim. You can only log in, if your Sipgate-Registration was verified by Sipgate.
Points, which you can check to see if your account is not working:
Try to log in on the sipgate.de webpage
Use the Perl-Client given here: http://www.sipgate.de/basic/api
The client can be downloaded at this location:http://www.sipgate.de/beta/public/static/downloads/basic/api/sipgate_api_perl_examples.zip
Hopefully you should not be able to do at least one of these things. Then you know you have to talk to the support # sipgate
The documentation on the plugin-page says, you have to have a 'conf/Config.groovy'-file. This means that you should have the basic Config.groovy file in the folder 'grails-app/conf/', which ships with every Grails installation. So my guess is that you might have created a different Config.groovy-file. So better check on the Config.groovy-file. The SMS-plugin should have generated some placeholders for you, where you need to enter your sipgate-account-data.

Twitter APIs for blackberry implementation

I am trying to implement the blackberry application which will help the user to update his status through application.
Its like user will enter the username, password and status it will update his status on twitter.
I have seen Twitter API docs but didnt understood how to start. It has many things like application registration and OAuth process which i felt very ambiguity.
I have also tried to use some external jar for blackberry but some of its classes/packages is not supported
twitter4j-core-2.1.1-SNAPSHOT.jar ----> Error preverifying class twitter4j.TwitterBase
java/lang/NoClassDefFoundError: java/io/Serializable
jtwitter.jar ---> VERIFIER ERROR org/json/Test.main([Ljava/lang/String;)V:
Cannot find class java/io/StringWriter
signpost-core-1.2.1.1.jar ---> Error preverifying class oauth.signpost.http.HttpParameters
java/lang/NoClassDefFoundError: java/util/Map
Please friends help me with how to start. it will be appreciated if any link or jar which support on blackberry can shared.
For a 10,000 mile view, you first need to preverify your jar files using the preverify.exe tool in the bin directory of your simulator.
You then need to create a new project, change the project type from CDLC -> Library and add your twitter4j-*.jar to it. Set this project as a reference (right click your main project and it's somewhere in the properties) to your main project. Next, configure build path for the main project and add twitter4j-* to your build path.
A detailed view with screenshots for eclipse is provided for a different library at -
http://www.craigagreen.com/index.php?/Blog/blackberry-and-net-webservice-tutorial-part-1.html
More info -
http://supportforums.blackberry.com/t5/Java-Development/Tutorial-How-To-Use-3rd-Party-Libraries-in-your-Applications/m-p/177543
If it's a simple tweet, you might be better of just doing a HTTP POST with the appropriate parameters.
Check URLEncodedPostData and HTTPConnection for more info about HTTP Post requests.

Resources