cancel
Showing results for 
Search instead for 
Did you mean: 

Developing BB OS 6.0 Application explicitly on Eclipse : Encountered Error

Former Member
0 Kudos

Hi All

Backend Used: SAP

Middleware: SUP 2.0

Development IDE: Eclipse with BB plug in

Application Name: PR

Earlier I made the same application in SUP 1.5.5 with the use of DAD (Device Application Designer) and ran successfully. This application shows a list of PR and perform an operation of approval or rejection of selected PR.

In latest SUP release it abandoned the use of DAD for RBS application in BB, then i tried app developent using SUP 2.0 BB custom application development manual. I did everything like

Deployed package on SCC

Imported generated files in Eclipse

Imported 3 JAR files (referenced through another project)

Used syncprofile and syncgroup methods

Project on Eclipse (PR) resulted in different behavior, different time :

1. Ran successfuly on opening the application 3 4 times after running simulator.

2. Showed "midilet exception" while compiling the project.

3. Compiled successfully and on running the application on simulator, it shows en exception immediately after clicking the app icon - com.sybase.persistence.PersistenceException: UltraLiteJ Error[-974] : File I/O failed for 'PR1_0.ulj

I have a doubt on JAR files that we need to import, those might be made again.

Please help on this issue, or share your views

Thanks

Pankaj

Edited by: mohanpankajgupta on Sep 22, 2011 7:19 AM

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hello to All,

I also created my own thread but want to find below solutions too early.

I am trying to develop A SAP Application in SUP 2.0 with DAD on blackberry Device , but when the Synchronization process will start, it generates an error.

Encounter an error while synchronizing package "SaleOrder:1.0" and synchronization group default ".

com.sybase.persistence.SynchronizedException : ianywhere.ultraLiteJ.Implementatoni.JrException: UltraLiteJ Error [-794] : Synchronized server, failed to commit the upload (SQLCODe -10225) Message Failure Occured while executing user supplied code in the server, Table name : NULL.

Please help me to solve this issue.

Thanks & Regards,

Tapan

Former Member
0 Kudos

Hi pankaj,

can you tell me please how to used blackberry plug-ins with SUP 2.0, Because i faced an error in Blackberry plug-ins like

JVM Error : 104 Synchronized Exception.

and then i continue with this error , another error occured like,

Uncaught Exception :

ianywhere.ultralitej.implementation.JrException:

UltraLiteJ Error[-85]:

Communication error

Local Connection timed out

after ~ 120000 Details:

StreamErrorCode=0

StreamErrorMessage=0

Regards,

Tapan

Former Member
0 Kudos

Hi Tapan

How did you install the blackberry plugin to SUP.

FYI

You have to install it in "C:\Sybase\UnwiredPlatform\Eclipse" if you have your SUP setup in C:/Sybase

After the plugin installation follow the procedure in the document i forwarded you.

Pankaj

Former Member
0 Kudos

I successfully ran a Travel Plan Request on blackberry simulator, using SUP 2.01 . If anybody has queries regarding SAP as backend, can ask me.

Thanks

Pankaj

Former Member
0 Kudos

Hello mohanpankajgupta,

Could you please provide more details about solving this issue? I'm facing the same error as mentioned above:

Uncaught exception: ianywhere.ultralitej.implementation.JrException:UltraLiteJ Error[-85]: Communication error Local connection timed out after 120000 Details: StreamErrorCode = 0 StreamErrorMessage = null

Thanks in advance.

Former Member
0 Kudos

Hi

For using Enterprise application, you must have BES connection while running BB Application. You must run MDS console while running application on simulator.

Right click on your project->run->run config->simulator->general-> launch MDS with simulator (check that).

If you installed eclipse plug-in.

Thanks

Pankaj

Former Member
0 Kudos

Hi Pankaj

Are you using and J2ME API's in a Blackberry UIApplication ?

Update your SUP 2.0 to 2.0.1 there are multiple bug fixes related to UltraliteJ

For the Client applicaion you have to import the jar files from the ClientAPI/RBS/BB folder also install the 3 cod files into the sim before launching the app.

You can get the update from sybase.com/downloads select SUP and the latest EBF. (Need registered user id(Free) for access )

Thanks

Pradeep

Former Member
0 Kudos

HI Pradeep

I was thru all those steps that you told, but the problem is not solved yet. Still getting the same error saying

com.sybase.persistence.PersistenceException: UltraLiteJ Error-974 : File I/O failed for 'PR1_0.ulj

Was you able to make any successful application with SAP or JDBC as backend in SUP ESD 2.0 #1, with custom coding?

Please assist. I am badly stuck with this issue.

Thanks All.

Pankaj

Former Member
0 Kudos

I done every thing that u told but the error of Ultralite still remain..........

Former Member
0 Kudos

hello Pankaj I done my application u r way but still the error remains As its 'error[794]failed to commit............ '

what should I do ??

Please Help Me!!

Former Member
0 Kudos

Hi

Please tell your whole implementation procedure. So that we can find the missing step.

One major mistake while runing application through blackberry simulator in enterprise application is:

you load the three .cod files before you start the application,

but don't paste those cod files into RIM directory ( from where blackberry simulator runs

(<RIM >\plugins\net.rim.ejde.componentpack6.0.0_6.0.0.30\components\simulator)).

Check this, if this can solve your problem, other wise tell the entire cycle by which you developed and run the application.

Thanks

pankaj

Former Member
0 Kudos

Hi mohan,

we are also trying the same retreiving the data from SAP thro SUP 2.0. the scenario falls like getting the SO list by giving the client name as input. we are doing the client development for BB device and have carried out the steps as you mentioned. we are able to login successfully but we face a prob with respect to retreiving the data from MBO using the sync parameter. we are seeking your help in knowing the correct method or function to be called for getting the data from MBO.

thanks in advance

regards

SK

Former Member
0 Kudos

HI Sivakumar

It seems that you are trying to retrieve a dynamic list. Whose input would be put by you while runing the application. Then you have to use personalization key concept.

In load parameters map the personalization value to your input.

And while making custom application just add these lines before you populate the list.

pp = SODB.getPersonalizationParameters();

pp.set<Pernr_key>(<your_input>);

pp.save();

refreshData();

SODB.synchronize();

* // considering that your project is named as SO*

Thanks

Pankaj

Former Member
0 Kudos

thanks mohan.. we got the data from SUP but tried in different way

Query query = new Query();

AttributeTest test = new AttributeTest();

test.setAttribute("<att name>");

test.setValue("<Value>");

test.setOperator(AttributeTest.EQUAL);

query.where(test);

result = new LabelField("Test criteria created..");

add(result);

<MBO PROJ NAME>DB.synchronize();

ObjectList soList = <MBO Name>.findWithQuery(query);

result = new LabelField("Size: "+soList.size());

add(result);

if it is not the correct process pls correct us.

thanks

SK

Former Member
0 Kudos

What is attributeTest here?

Former Member
0 Kudos

attribute is the field that will be used in the where clause to fetch the data from internal DB

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

Hi

I did that , i loaded 3 .cod files before running the application. This might not be the cause. Thanks anyways..

Pankaj