Quantcast
Channel: Ignite Realtime : Unanswered Discussions - Support
Viewing all articles
Browse latest Browse all 4979

[3.9.1] Forbidden characters in Messages?

$
0
0

Hello everybody,

 

our company is currently building a application with the help of openfire.

We recently noticed that some specific emoticons sent by a Android App will result in a disconnect by the server.

 

We generated a message with serveral default emoticons provided in Android 4.2.2 and delivered it to the server.

This is the error which will then kill the apps connection:

 

2014.04.15 09:11:12 org.jivesoftware.openfire.nio.ConnectionHandler - Closing connection due to error while processing message: <message id="R37XF-7" to="+4915786529800_10@servicerooms.app4service.de" type="groupchat"><body>?????????????</body></message> 
   java.lang.NumberFormatException: For input string: "?" 
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) 
        at java.lang.Integer.parseInt(Integer.java:492) 
   at org.jivesoftware.openfire.net.MXParser.more(MXParser.java:384) 
   at org.jivesoftware.openfire.net.MXParser.nextImpl(MXParser.java:85) 
        at org.xmlpull.mxp1.MXParser.nextToken(MXParser.java:1100) 
        at org.dom4j.io.XMPPPacketReader.parseDocument(XMPPPacketReader.java:317) 
        at org.dom4j.io.XMPPPacketReader.read(XMPPPacketReader.java:154) 
   at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:159) 
   at org.jivesoftware.openfire.nio.ConnectionHandler.messageReceived(ConnectionHandl er.java:181) 
        at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived (AbstractIoFilterChain.java:570) 
        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.common.IoFilterAdapter.messageReceived(IoFilterAdapter.java:80)  
        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.codec.support.SimpleProtocolDecoderOutput.flush(SimplePr otocolDecoderOutput.java:58) 
        at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecF ilter.java:185) 
        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.runWorker(ThreadPoolExecutor.java:1145)  
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
        at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)  
        at java.lang.Thread.run(Thread.java:744) 

 

Is this a known bug or is there even a way around it so the server supports such special chars?

 

Thanks in advance


Viewing all articles
Browse latest Browse all 4979

Trending Articles