Niklas Gustavsson wrote: > On Tue, May 4, 2010 at 5:34 PM, Bernd Fondermann <bf_...@brainlounge.de> > wrote: >> BTW, that's common in real life XMPP streams: arbitrary whitespaces. >> Some clients send spaces as keep-alives. > > The problem struck me right after sending the last email (after which > I had to run of to go home). Now fixed and test updated :-)
Probably the test coverage is not sufficient. Did you actually try to connect a real client to a real server? Still getting errors: 10:43:13,219 | DEBUG | org.apache.vysper.xml.sax.impl.XMLParser | Fatal error: null java.lang.NullPointerException at org.apache.vysper.xml.decoder.XMPPContentHandler.characters(XMPPContentHandler.java:79) at org.apache.vysper.xml.sax.impl.XMLParser.characters(XMLParser.java:306) at org.apache.vysper.xml.sax.impl.XMLParser.token(XMLParser.java:142) at org.apache.vysper.xml.sax.impl.XMLTokenizer.emit(XMLTokenizer.java:156) at org.apache.vysper.xml.sax.impl.XMLTokenizer.parse(XMLTokenizer.java:81) at org.apache.vysper.xml.sax.impl.XMLParser.parse(XMLParser.java:123) at org.apache.vysper.xml.sax.impl.DefaultNonBlockingXMLReader.parse(DefaultNonBlockingXMLReader.java:180) at org.apache.vysper.xml.decoder.XMPPDecoder.doDecode(XMPPDecoder.java:96) at org.apache.mina.filter.codec.CumulativeProtocolDecoder.decode(CumulativeProtocolDecoder.java:178) at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:225) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:793) at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:71) at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63) at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTask(OrderedThreadPoolExecutor.java:780) at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTasks(OrderedThreadPoolExecutor.java:772) at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(OrderedThreadPoolExecutor.java:714) at java.lang.Thread.run(Thread.java:637) 1