Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (579)
games submitted by our members
Games in WIP (500)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  NPE when not using validator  (Read 967 times)
0 Members and 1 Guest are viewing this topic.
Offline dhilder

Junior Newbie





« Posted 2006-04-05 07:30:03 »

I'm getting a NullPointerException when I try to connect to the server without a validator. I've configured this by simply commenting out the VALIDATOR element in my deploy.xml file. Is anything else needed? With this configuration, the server logs the following when the client attempts to connect:

Apr 4, 2006 10:17:52 PM com.sun.gi.comm.users.server.impl.TCPIPUserManager newConnection
FINER: New connection received by server
Apr 4, 2006 10:17:52 PM com.sun.gi.utils.nio.NIOSocketManager handleRead
FINER: THROW
java.lang.NullPointerException
        at com.sun.gi.comm.users.server.impl.TCPIPUserManager.newConnection(TCPIPUserManager.java:164)
        at com.sun.gi.utils.nio.NIOSocketManager.handleAccept(NIOSocketManager.java:405)
        at com.sun.gi.utils.nio.NIOSocketManager.processSocketEvents(NIOSocketManager.java:303)
        at com.sun.gi.utils.nio.NIOSocketManager.run(NIOSocketManager.java:272)
        at java.lang.Thread.run(Thread.java:613)
Apr 4, 2006 10:17:52 PM com.sun.gi.utils.nio.NIOConnection$PacketHandler close
FINE: Closing java.nio.channels.SocketChannel[connected local=/127.0.0.1:1180 remote=/127.0.0.1:53431]
Apr 4, 2006 10:17:52 PM com.sun.gi.utils.nio.NIOConnection$PacketHandler close
FINE: Closing sun.nio.ch.DatagramChannelImpl@a5fdb9
Apr 4, 2006 10:17:52 PM com.sun.gi.utils.nio.NIOConnection$PacketHandler open
FINER: THROW
java.nio.channels.ClosedChannelException
        at java.nio.channels.spi.AbstractSelectableChannel.register(AbstractSelectableChannel.java:167)
        at com.sun.gi.utils.nio.NIOConnection$PacketHandler.open(NIOConnection.java:179)
        at com.sun.gi.utils.nio.NIOConnection.open(NIOConnection.java:130)
        at com.sun.gi.utils.nio.NIOSocketManager.run(NIOSocketManager.java:234)
        at java.lang.Thread.run(Thread.java:613)


The client is logging:

Apr 4, 2006 10:17:52 PM com.sun.gi.utils.nio.NIOSocketManager run
FINEST: Calling select
Apr 4, 2006 10:17:52 PM com.sun.gi.comm.users.client.impl.TCPIPUserManagerClient connect
FINE: Attempting to connect to a TCPIP User Manager on /127.0.0.1:1180
Apr 4, 2006 10:17:52 PM com.sun.gi.utils.nio.NIOSocketManager run
FINER: selector: 0 ready handles
Apr 4, 2006 10:17:52 PM com.sun.gi.utils.nio.NIOSocketManager run
FINEST: Calling select
Apr 4, 2006 10:17:52 PM com.sun.gi.utils.nio.NIOSocketManager run
FINER: selector: 1 ready handles
Apr 4, 2006 10:17:52 PM com.sun.gi.utils.nio.NIOSocketManager run
FINEST: Calling select
Apr 4, 2006 10:17:52 PM com.sun.gi.utils.nio.NIOSocketManager run
FINER: selector: 2 ready handles
Apr 4, 2006 10:17:52 PM com.sun.gi.utils.nio.NIOConnection$PacketHandler handleRead
FINEST: channel is a class sun.nio.ch.SocketChannelImpl
Apr 4, 2006 10:17:52 PM com.sun.gi.utils.nio.NIOSocketManager handleRead
FINER: THROW
java.io.IOException: Error reading
    at com.sun.gi.utils.nio.NIOConnection$PacketHandler.handleRead(NIOConnection.java:255)
    at com.sun.gi.utils.nio.NIOSocketManager.handleRead(NIOSocketManager.java:324)
    at com.sun.gi.utils.nio.NIOSocketManager.processSocketEvents(NIOSocketManager.java:311)
    at com.sun.gi.utils.nio.NIOSocketManager.run(NIOSocketManager.java:272)
    at java.lang.Thread.run(Thread.java:613)
Apr 4, 2006 10:17:52 PM com.sun.gi.utils.nio.NIOConnection$PacketHandler close
FINE: Closing java.nio.channels.SocketChannel[connected local=/127.0.0.1:53431 remote=/127.0.0.1:1180]
Apr 4, 2006 10:17:52 PM com.sun.gi.utils.nio.NIOConnection$PacketHandler close
FINE: Closing sun.nio.ch.DatagramChannelImpl@989f84
Apr 4, 2006 10:17:52 PM com.sun.gi.apps.battleboard.client.BattleBoardClient disconnected
FINE: disconnected


In this case, I used the BattleBoard app, but I get the same results with a simple app of my own that doesn't specify any validation callbacks. Is this a known issue, or did I miss something in the configuration?
Offline Jeff

JGO Coder




Got any cats?


« Reply #1 - Posted 2006-04-05 07:44:49 »

Nope., its not a known one. In fact, it was fairly recently tested validator-less.

Maybe something regressed or got messed up.  Ill look into it tomorrow....

JK

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline Jeff

JGO Coder




Got any cats?


« Reply #2 - Posted 2006-04-05 23:30:22 »

Yep your right its a real bug.  We're lookign into it now!

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (31 views)
2014-04-15 18:08:23

BurntPizza (28 views)
2014-04-15 03:46:01

UprightPath (43 views)
2014-04-14 17:39:50

UprightPath (26 views)
2014-04-14 17:35:47

Porlus (43 views)
2014-04-14 15:48:38

tom_mai78101 (64 views)
2014-04-10 04:04:31

BurntPizza (124 views)
2014-04-08 23:06:04

tom_mai78101 (224 views)
2014-04-05 13:34:39

trollwarrior1 (190 views)
2014-04-04 12:06:45

CJLetsGame (198 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!