Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (480)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (547)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Game Development / Networking & Multiplayer / Strange ArrayIndexOutOfBoundsException on: 2006-09-23 14:27:59
Hi, I'm getting a ArrayIndexOutOfBoundsException and I'm not sure why this is happening. I'm developing a JME client. I've got this FakeDiscovery.xml file on a local web server
<DISCOVERY>
   <GAME id="1" name="MHack" >
      <USERMANAGER clientclass="com.sun.gi.comm.users.client.impl.TCPIPUserManagerClient" >
         <PARAMETER tag="port" value="1880" />
         <PARAMETER tag="host" value="127.0.0.1" />
      </USERMANAGER>
      <USERMANAGER clientclass="com.sun.gi.comm.users.client.impl.JMEHttpUserManagerClient" >
         <PARAMETER tag="port" value="1882" />
         <PARAMETER tag="host" value="127.0.0.1" />
         <PARAMETER tag="pollinterval" value="500" />
      </USERMANAGER>
   </GAME>
</DISCOVERY>

I did the following in my JME client
      mgr = new JMEClientManager("MHack"
            , new JMEDiscovererImpl(getAppProperty(DISCOVERY_XML))
            , getAppProperty(USER_MANAGER));
      mgr.setListener(this);
      mgr.discoverGames();

The respective values in DISCOVERY_XML points http://localhost:8080/FakeDiscovery.xml and USER_MANAGER is com.sun.gi.comm.users.client.impl.JMEHttpUserManagerClient.

So I start my web server and the game server. AFAIK, there is no problem with the GLOs because the game has a JavaSE client as well and that is working.

At the point when I invoke mgr.discoverGames(), I got a ArrayIndexOutOfBoundsException. This exception is not thrown in discoveredGames() method. So between discoverGames() and discoveredGames() method, something happen. The only  problematic thing I could think of here is the FakeDiscovery.xml file. I've check and I could not find any problems with the file.

Any pointers would be appreciated.

TIA

Regards
Chuk
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

atombrot (24 views)
2014-08-19 09:29:53

Tekkerue (24 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (13 views)
2014-08-16 06:20:21

Tekkerue (20 views)
2014-08-16 06:12:11

Rayexar (58 views)
2014-08-11 02:49:23

BurntPizza (38 views)
2014-08-09 21:09:32

BurntPizza (30 views)
2014-08-08 02:01:56

Norakomi (37 views)
2014-08-06 19:49:38

BurntPizza (67 views)
2014-08-03 02:57:17
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!