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

Java Development

Reply
New Developer
Wamou
Posts: 9
Registered: ‎07-02-2009
My Device: Not Specified

Trying to log a domino user in a custom BB JAVA Application

Hi everyone,

 

I want to realise a connection between a BB Java Application and a Domino Server using DIIOP.

I have test this same connection with a Classic Java Application and it works perfectly :smileywink:, but when i try to use the createSession method from the NotesFactory in a BB Application i have got this error when i launch it from the BB : Module 'NCSO' Not found.

 

I really don't understand because my project buildpath contain the NCSO.jar and this JAR are import in the .cod generated.

I use JDE Plugin for Eclipse, Component Pack 4.7.0 and until now i haven't got other issues :smileyhappy:

 

So if anyone can help me thk

 

Regards

Cyril 

Please use plain text.
Developer
BBDeveloper
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: Trying to log a domino user in a custom BB JAVA Application

[ Edited ]

NCSO library should also present on device.

 

Check this KB article.

 

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800901/How_To_-_Compi...

Message Edited by BBDeveloper on 02-07-2009 03:41 PM

Use Search. "Accept Solution" If the problem is resolved.
Please use plain text.
Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: Trying to log a domino user in a custom BB JAVA Application

[ Edited ]

Even if you force your BB application to compile, it won't run on the device.

 

it won't pass the verification stage.

 

NCSO.jar created with J2SE and implements CORBA support.

 

BlackBerry does not support classes used in NCSFO.jar

 

It supports a subset of J2ME classes.

Message Edited by tbilisoft on 02-07-2009 11:16 AM
Please use plain text.
Developer
BBDeveloper
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: Trying to log a domino user in a custom BB JAVA Application

Sorry.. for my last post. I didn't think NCSO.jar is of J2SE.

Use Search. "Accept Solution" If the problem is resolved.
Please use plain text.
Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: Trying to log a domino user in a custom BB JAVA Application

[ Edited ]

NCSO.jar is a part of installation of Lotus Notes Domino server.

 

 

It implements CORBA support and implementation is based on J2SE classes.

Message Edited by tbilisoft on 02-07-2009 11:18 AM
Please use plain text.
Developer
BBDeveloper
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: Trying to log a domino user in a custom BB JAVA Application

Thank you tbilisoft.

Use Search. "Accept Solution" If the problem is resolved.
Please use plain text.
New Developer
Wamou
Posts: 9
Registered: ‎07-02-2009
My Device: Not Specified

Re: Trying to log a domino user in a custom BB JAVA Application

First of All tks for your anwers :smileyhappy:

 

So you telling me that i can't communicate with a Domino Server from a BB Application ??

If that the case, i'm really disappointed in this technology :smileysad:

 

Can i transform my NCSO.jar to NCSO.cod and deploy it in the device?

BB haven't a NCSO.cod dowloadable module ?

 

If you know an other solution to do this kind of thing, please let me know :smileywink:

 

I 'll update my thread if i find anything :smileyvery-happy:

 

Regards,

Cyril
Please use plain text.
Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: Trying to log a domino user in a custom BB JAVA Application

You can communicate to outside world from blackberry device.

 

Check this thread:

 

http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&thread.id=29103&jump=true

 

BlackBerry does not support CORBA/RMI classes.

 

There is no classes in RIM API to do that.

 

You can make NCSO.cod file from NCSO.jar file.

 

And even you can deploy it on the device.

 

But it won't make you happy, believe me :smileyhappy:

 

Because you'll get verification error.

 

Device operating system will check this cod file and will found unresolved references to not-supported classes.

 

You cannot use this cod file.

 

It will be just located in device memory and nothing more.

 

 

Please use plain text.
New Developer
Wamou
Posts: 9
Registered: ‎07-02-2009
My Device: Not Specified

Re: Trying to log a domino user in a custom BB JAVA Application

Hi

 

So, I try to do a Push Data from Domino to the Device.

My first issue is that i can't realise the Activation Entreprise in the device.

 

My Bes have a Disconnect SRP statut, and i don't understand because my SRP keys seems to be invalid (when a try to validate in the Blackberry Server Configuration ) :smileysad:

Error :

"Invalid SRP Key or ID

Warning : Error occured while receving server ID from wireless network"

 

I have a Bes 4.1.6 Trial and i have properly enter the key of this trial version :smileywink:

I have check all step in this support : http://www.blackberry.com/btsc/viewContent.do?externalId=KB04186&sliceId=1 and everything looks OK :smileyhappy:

 

If you have any idears, let me know :smileywink:

Regards,

Wamou

Please use plain text.
Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: Trying to log a domino user in a custom BB JAVA Application

I am sorry, but I have no idea what is going on in your case.

 

I think the better way is posting such question here:

 

http://supportforums.blackberry.com/rim/board?board.id=BlackBerryEnterpriseSolution

Please use plain text.