Results 1 to 5 of 5

Thread: Login Problem

  1. #1
    PAUL12 is offline Registered User
    Name: paul muntean
    Organization: Personal
    Project: Android testing
    Join Date
    Nov 2011
    Posts
    12

    Login Problem

    Hy,

    I trye to run the android database demo from the Ice3.4.2 demos.
    I start the app in the Simulator and it conects to the server running on the same computer.

    Now I put the Client app on a Motorola XOOM and trye to connect to the server.
    I put in the ip which the server is giving me. After he connects to the database (the server I meean) I get is:

    Login failed:Ice.ConnectTimeoutException on a popup window.

    This message appears after some 5 sec. In this time I think is doing something.

    I have to mention that the application has runned on my PC and smartphone some 2 weeks ago with the glacier started and also without.

    What should I do?
    Reinstall windows?

  2. #2
    xdm's Avatar
    xdm
    xdm is online now ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruņa, Spain
    Posts
    588
    That could be a problem with the server endpoints configuration, by default server is configured to listen on all addresses.

    The timeout could happen when some of the server addresses are not reachable from the device.

    Try to set the SessionFactory endpoints in config.server to an address that is reachable from the device.

    Code:
    SessionFactory.Endpoints=tcp -h 192.168.50.2 -p 10000:ssl -h 192.168.50.2 -p 10001
    See also Object Adapter Endpoints - Ice 3.4 - ZeroC

  3. #3
    PAUL12 is offline Registered User
    Name: paul muntean
    Organization: Personal
    Project: Android testing
    Join Date
    Nov 2011
    Posts
    12

    The problem stil persists.

    I connect fine from the emulator.
    I use ase above indicated.
    Code:
    SessionFactory.Endpoints=tcp -h 192.168.50.2 -p 10000:ssl -h 192.168.50.2 -p 10001
    But when connecting from the Android Phone(Motorola XOOM) I get.

    Code:
    -- 2/21/12 23:06:11:820 demo.Database.library.Server: ConnectionPool: establishing 5 connections to jdbc:oracle:thin:mobtest@//129.187.64.237:1521/orcl
    !! 2/21/12 23:06:14:512 demo.Database.library.Server: error: main: Ice.SocketException
           error = 0
       	at IceInternal.Network.doBind(Network.java:209)
       	at IceInternal.TcpAcceptor.<init>(TcpAcceptor.java:119)
       	at IceInternal.TcpEndpointI.acceptor(TcpEndpointI.java:403)
       	at IceInternal.IncomingConnectionFactory.<init>(IncomingConnectionFactory.java:367)
       	at Ice.ObjectAdapterI.<init>(ObjectAdapterI.java:1000)
       	at IceInternal.ObjectAdapterFactory.createObjectAdapter(ObjectAdapterFactory.java:130)
       	at Ice.CommunicatorI.createObjectAdapter(CommunicatorI.java:77)
       	at library.Server.run(Server.java:103)
       	at Ice.Application.doMain(Application.java:202)
       	at Ice.Application.main(Application.java:182)
       	at Ice.Application.main(Application.java:118)
       	at library.Server.main(Server.java:139)
       Caused by: java.net.BindException: Cannot assign requested address: bind
       	at sun.nio.ch.Net.bind(Native Method)
       	at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
       	at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
       	at IceInternal.Network.doBind(Network.java:203)
       	... 11 more
    Anibody an Ideea?
    Last edited by PAUL12; 02-21-2012 at 05:12 PM.

  4. #4
    PAUL12 is offline Registered User
    Name: paul muntean
    Organization: Personal
    Project: Android testing
    Join Date
    Nov 2011
    Posts
    12

    If I use

    Code:
    SessionFactory.Endpoints=tcp -p 10000:ssl -p 10001
    Code:
    -- 2/21/12 23:09:16:506 demo.Database.library.Server: ConnectionPool: establishing 5 connections to jdbc:oracle:thin:mobtest@//129.187.64.237:1521/orcl
    -- 2/21/12 23:09:19:217 demo.Database.library.Server: Network: accepting tcp connections at 0.0.0.0:10000
       local interfaces: 192.168.1.7, 129.187.211.250, 127.0.0.1
    -- 2/21/12 23:09:19:279 demo.Database.library.Server: Network: accepting ssl connections at 0.0.0.0:10001
       local interfaces: 192.168.1.7, 129.187.211.250, 127.0.0.1
    -- 2/21/12 23:09:19:382 demo.Database.library.Server: Network: published endpoints for object adapter `SessionFactory':
       tcp -h 192.168.1.7 -p 10000:tcp -h 129.187.211.250 -p 10000:ssl -h 192.168.1.7 -p 10001:ssl -h 129.187.211.250 -p 10001

    Then I trye to connect from the Motorola XOOM and I get the Ice.ConnectTimeoutException.
    Any Ideea.

    I am getting to frustration with this!

  5. #5
    xdm's Avatar
    xdm
    xdm is online now ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruņa, Spain
    Posts
    588
    Hi Paul,

    Code:
    SessionFactory.Endpoints=tcp -h 192.168.50.2 -p 10000:ssl -h 192.168.50.2 -p 10001
    You must replace 192.168.50.2 for you actual ip address.

    Caused by: java.net.BindException: Cannot assign requested address: bind
    The error means the address don't belong to your network interfaces, so cannot assign.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Client/Server authentication after Login
    By stefanjp in forum Help Center
    Replies: 1
    Last Post: 03-17-2010, 10:43 AM
  2. How to realize login manager with ICE?
    By dzw in forum Help Center
    Replies: 6
    Last Post: 08-02-2004, 02:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •