02-17-2010 04:52 PM - edited 02-17-2010 05:06 PM
We have built a product built using the BAS API 184.108.40.206 that when run against a 220.127.116.11 BES an exception
com.rim.bes.bas.baa.corews.CoreBean method getUser - java.lang.NoSuchMethodError: com.rim.bes.bas.dto.User.getFailedLoginCount()I
FailedLoginCountSpecified is checked before calling the method.
That method is in the docs for the 5.0.1 API. It worked fine against our 5.0.0 BES.
What could be going on? The version differences? Wouldn't new versions support older api calls?
Thanks for any help...
03-10-2010 02:47 PM
The proxy you are using is looking for the User object in package: com.rim.bes.bas.dto
But it is actually located in: com.rim.bes.bas.baa.dto
It seems like you may need to recreate your proxy. BAA proxies should be forwards compatible.
If recreating the proxy does not would could you confirm the versions of BAA and BAS as found in Control Panel > Add or Remove Programs (select each item then select "Click here for support information")
03-16-2010 01:26 PM
I started developing an application using the BAA, too and ran in the same problem:
Caught unhandled RuntimeException in com.rim.bes.bas.baa.corews.CoreBean method getUser - java.lang.NoSuchMethodError: com.rim.bes.bas.dto.User.getFailedLoginCount()I
At line:1 char:19
+ Get-BlackBerryUser <<<< 33
+ CategoryInfo : NotSpecified: ( [Get-BlackBerryUser], SoapHead
+ FullyQualifiedErrorId : System.Web.Services.Protocols.SoapHeaderExceptio
BES Version is 5.0.1 MR1
BAA Version is 18.104.22.168
I already recreated the proxy class.
Is there any solution to this?
03-16-2010 01:50 PM
So I am sure we are testing the same scenario, could you try running the C# sample in the following article to create a user and let me know if the same issue occurs:
I was able to run this sample against a BES 5.0.1MR1 and it ran successfully. Let me know your results.
03-16-2010 03:06 PM
I tried to create a new account resulting in the following:
Caught unhandled RuntimeException in com.rim.bes.bas.baa.corews.CoreBean method createUser - java.lang.RuntimeException: java.lang.NoSuchMethodError: com.rim.bes.bas.usermanager.UserManager.createBlac
03-17-2010 04:06 PM
I was unable to reproduce this in our environment, it looks as though this occurs when you first install BES 5.0.1 and then install the BAA for BES 5.0.0. BAA is bundled with BES 5.0.1, in 5.0.0 you needed to install this separately. By installing the 5.0.0 BAA into 5.0.1 it causes issues with communication between the BAA and the BAS which would explain why it is returning errors about not being able to find the method being used.
The way to resolve this would be to re-install the BES 5.0.1 right over the existing install which would repair the BAA and allow it to function as expected again.
03-18-2010 10:54 AM
Your analysis was correct.
It seems our BlackBerry Admin started out with Version 5.0.0 and upgraded to 5.0.1 MR1.
Being a nice admin and all he also installed the API again after the upgrade.
I adviced him to uninstall the API and reinstall the 5.0.1 MR1 version.
After recreating the proxy class everything works just fine now
Thanks a lot!