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
Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: Application with UltraliteJ

Testing it on Device or Simulator?

Is SQLAnywhere DByou trying to sync on public IP for device to reach?


Use Search. "Accept Solution" If the problem is resolved.
New Developer
Posts: 29
Registered: ‎02-04-2009
My Device: Not Specified

Re: Application with UltraliteJ

I am testing it on device.

I have created the db in Sql Server 2005 and attached the DSN to the mobilink which is on the public IP.

 

Is there anything else that I am missing?

Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: Application with UltraliteJ

Were you able to test the same on Simulator? If not, please check the Mobilink setup again. In your code check the name of the moblink connection, IP, Port, Userid, password etc..

 

Are you connecting from UltraliteJ to SqL server 2005? is that supported?


Use Search. "Accept Solution" If the problem is resolved.
New Developer
Posts: 29
Registered: ‎02-04-2009
My Device: Not Specified

Re: Application with UltraliteJ

Yes yes...I tried it on simulator...and it worked fine.

 

I am connecting to the mobilink...and mobilink handles the DSN of SQL server so it also worked well on simulator.

 

Dont know what was this error all about?

 

Communication error Open tunnel - failure.

Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: Application with UltraliteJ

Where exactly the exception is thrown? "Connection.synchronize( SyncParms )" method?

Did you check is any of your application able to connect to web and get data. Check for TCP/IP settings.


Use Search. "Accept Solution" If the problem is resolved.
New Developer
Posts: 29
Registered: ‎02-04-2009
My Device: Not Specified

Re: Application with UltraliteJ

The device can connect to internet.

 

Following is my code...

 

try
            {
                if( _syncParms == null )
                {
                    String host = "172.16.3.152";
                    _syncParms = _conn.createSyncParms( "mluser", "SyncModel" );
                               
                    _syncParms.setPassword("mlpassword");
                    _streamParms = _syncParms.getStreamParms();
                    _streamParms.setPort( 8081 ); // use your own
                    _streamParms.setHost( host ); // use your own
                }
                System.out.println( "Synchronizing" );
                _conn.synchronize( _syncParms );
            }
            catch( ULjException uex){
                System.out.println(uex.toString());
            }

 

and following is the output...

 

Synchronizing
CMM: UltraLiteJ(4111) no sig from 0x33
ianywhere.ultralitej.implementation.JrException: UltraLiteJ Error[-85]: Communication error Open tunnel - failure

 

I guess it is giving me the error on the _conn.synchronize( _syncParms ).

Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: Application with UltraliteJ

If possible please check with connecting to web using some blackberry application not just the blackberry browser. some times it may happens because of the data plan which you have. Check for the connection speed.

 


Use Search. "Accept Solution" If the problem is resolved.
New Developer
Posts: 29
Registered: ‎02-04-2009
My Device: Not Specified

Re: Application with UltraliteJ

I tried and trying...

 

Anyways... thaks a lot for touy quick help and support.

New Developer
Posts: 29
Registered: ‎02-04-2009
My Device: Not Specified

Re: Application with UltraliteJ

I have one doubt, I don't have licenced copy of UltraliteJ, I am using developer edition on BB device. Can it be the reason for unsuccessful synchronization?
Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: Application with UltraliteJ

Hmmm I dn't think that is the problem. I tried the developer version, it worked for me. Only difference is i tried with UltraliteJ to SQL Anywhere DB and you trying from UltraliteJ to SQL Server 2005.

 

 


Use Search. "Accept Solution" If the problem is resolved.