Sparkweb can not start session in openfire3.6.0 beta

openfire: 3.6.0 alpha

sparkWeb: the latest code

senario:

start the sparkweb to connect to the openfire.

sparkweb will send

<?xml version="1.0"?>

to openfire.

then openfire will throw exception:

org.apache.mina.filter.codec.ProtocolDecoderException: java.lang.Exception: Disallowed character

please see the exception dump stack.

2008.08.10 04:06:09 Closing session due to exception: (SOCKET, R: /127.0.0.1:50372, L: /127.0.0.1:5222, S: 0.0.0.0/0.0.0.0:5222)
org.apache.mina.filter.codec.ProtocolDecoderException: java.lang.Exception: Disallowed character (Hexdump: 3C 3F 78 6D 6C 20 76 65 72 73 69 6F 6E 3D 22 31 2E 30 22 3F 3E 3C 66 6C 61 73 68 3A 73 74 72 65 61 6D 20 74 6F 3D 22 6C 6F 63 61 6C 68 6F 73 74 22 20 78 6D 6C 6E 73 3D 22 6A 61 62 62 65 72 3A 63 6C 69 65 6E 74 22 20 78 6D 6C 6E 73 3A 66 6C 61 73 68 3D 22 68 74 74 70 3A 2F 2F 77 77 77 2E 6A 61 62 62 65 72 2E 63 6F 6D 2F 73 74 72 65 61 6D 73 2F 66 6C 61 73 68 22 20 76 65 72 73 69 6F 6E 3D 22 31 2E 30 22 20 2F 3E 00)
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecF ilter.java:170)
at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(Ab stractIoFilterChain.java:299)
at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilt erChain.java:53)
at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceive d(AbstractIoFilterChain.java:648)
at org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java :239)
at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(Execut orFilter.java:283)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java: 650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.Exception: Disallowed character
at org.jivesoftware.openfire.nio.XMLLightweightParser.read(XMLLightweightParser.ja va:210)
at org.jivesoftware.openfire.nio.XMPPDecoder.doDecode(XMPPDecoder.java:32)
at org.apache.mina.filter.codec.CumulativeProtocolDecoder.decode(CumulativeProtoco lDecoder.java:133)
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecF ilter.java:163)
… 9 more

that in code org.jivesoftware.openfire.nio.XMLLightweightParser.read(XMLLightweightParser.ja va:210)
ch = buf[i];
if (ch < 0x20 && ch != 0x9 && ch != 0xA && ch != 0xD) {
//Unicode characters in the range 0x0000-0x001F other than 9, A, and D are not allowed in XML
throw new Exception(“Disallowed character”);
}

I don’t know why the last code is 0x00 always.

then the character is rejected here and connection is closed.

i compare this code with version 3.5.2 and find that this assertion is inserted in 3.6.0.

and version 3.5.2 works fine.

Hi,

I too am getting the same error

2008.08.20 14:00:42 Closing session due to exception: (SOCKET, R: /129.49.101.115:57629, L: /129.49.101.244:5222, S: 0.0.0.0/0.0.0.0:5222)
org.apache.mina.filter.codec.ProtocolDecoderException: java.lang.Exception: Disallowed character (Hexdump: 3C 70 6F 6C 69 63 79 2D 66 69 6C 65 2D 72 65 71 75 65 73 74 2F 3E 00)

This shows in the log after sparkweb hangs for 5-10 minutes trying to connect

I have sparkweb built using ant after svn co http://svn.igniterealtime.org/svn/repos/sparkweb/ sparkweb today and going into the

sparkweb/trunk/build/ directory

I am using the default sparkweb.html, changing to connectionType: “http” fails right away with “User Login Failed. PLAIN authentication failed”

https similarly hangs.

Interestingly I can use the my local build of the sparkweb client to connect to jivesoftware.com which I am told is also a 3.6 alpha build

NIck Hill has asked me to post here, but since the client can connect to another openfire server using sparkweb it is something peculiar with my server configuration.

(update)

I believe that the problem comes from security.loadPolicyFile

http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?con text=LiveDocs_Parts&file=00002649.html

Says that will be null terminated

using

3C:70:6F:6C:69:63:79:2D:66:69:6C:65:2D:72:65:71:75:65:73:74:2F:3E:00

http://www.dolcevie.com/js/converter.html

translates to ?

I tried hacking the line and adding ch != 0x00 which makes the error go away but I am still having problems connecting. I am not sure if the policy file is loading properly. I am wondering if sparkweb can (or does already) conditionally load the policy file based on if it resides on the same server or not.

Paul

A Few of us seem to be getting this error- More people aren’t trying to use SparkWeb w/ Openfire 3.6.0a?

I find that strange.

For now, all of the end users are up and running on the basic spark client v 2.5.8

I wish to go back to sparkweb!

Jeff