instantreality forum
news: Welcome to the instantreality forums!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
February 24, 2018, 06:43:45 pm


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: EAI Connection Failure -WinXP  (Read 2741 times)
pyth7
Jr. Member
**
Posts: 86


View Profile
« on: June 11, 2010, 06:17:37 pm »

Hi,
A friend of mine can't get an EAI connection with Instant Player and my Java application.
The Java application has worked succeeded getting the EAI browser for myself and numerous others:
 try {
    InetAddress    address = InetAddress.getByName("localhost");
   browser = BrowserFactory.getBrowser(address, 4848);
   System.out.println("Browser achieved!");
   
  }
After 25 trys he only gets: InvalidBrowserException getting browser try count:
24 vrml.eai.ConnectionException: Connection refused: connect - localhost/127.0.0.1:4848

His system is virtually identical to mine:
OS name: windows xp
OS arch: x86
OS version: 5.1

His Java version: !.6.0_20

We are both using the same Instant Player build:
Instant_Player-Win32_NT-5.1-i686-2.0.0-b13389.5357

The only significant difference is he has multiple drives C - E

Here is a summary of attempted tests:
In terms of the localhost/127.0.0.1 connection itself:
1. It is listed in his C:\WINDOWS\system32\drivers\etc\hosts file:
 127.0.0.1       localhost
2. he can ping it successfully:C:\Documents and Settings\Peter>
ping 127.0.0.1

Pinging 127.0.0.1 with 32 bytes of data:

Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
3. He turned off firewalls and anti-virus to run the Java EAI application.
4. He successfully ran two small Java test applications
that were able to achieve a connection on localhost:4848

Besides the localhost connection, With both Instant Player and the EAI application running
he opened up the Web Interface Scenegraph and in the Network Services box
there was this:
aei://(his computer name) .cable.rogers.com:4848

Which is what usually appears when a normal EAI connection is achieved.
Running netstat shows no connection however.

Are there any other places to look for clues to his problem?
Any log files?

Thanks!
Russ
Logged
pyth7
Jr. Member
**
Posts: 86


View Profile
« Reply #1 on: June 14, 2010, 09:28:16 am »

Hi,
In reference to the previous post, setting the networkEventLogLevel to 1
for the defaultExternalInterfaceJob Node and then running the Java EAI application doesn't produce any debugging info on Instant Player's console either.
Thanks!
Russ
Logged
pdaehne
Administrator
Sr. Member
*****
Posts: 250


View Profile
« Reply #2 on: June 14, 2010, 11:35:40 am »

No, you won't get any debugging info from the player because your client did not even connect to the player. To be honest, I do not have any clue what's going wrong. Virus scanners should not block network connections, and the firewall does not block connections to localhost.

What happens when you enter "telnet localhost 4848" on the command line?

Maybe you can replace

Code:
java.net.InetAddress address = java.net.InetAddress.getByName("localhost");
browser = vrml.eai.BrowserFactory.getBrowser(address, 4848);

with

Code:
java.net.InetAddress[] addresses = java.net.InetAddress.getAllByName("localhost");
for (int i = 0; (i < addresses.length) && (browser == null); ++i)
{
  try
  {
    browser = vrml.eai.BrowserFactory.getBrowser(addresses[i], 4848);
  }
  catch (vrml.eai.ConnectionException ex) {}
}

so that all known addresses for localhost are checked.

Bye, Patrick
Logged
pyth7
Jr. Member
**
Posts: 86


View Profile
« Reply #3 on: June 29, 2010, 09:14:23 pm »

It seems the user was having other issues with the system, so the problem was fixed, but only by over-hauling his computer.
So it will never be known what the exact problem was. However my vote goes to corrupt system files.
Thanks for your help!

Russ
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.15 | SMF © 2011, Simple Machines