powered by Jive Software

No enum const class - Why i get this?

2005.08.08 11:58:37 org.jivesoftware.messenger.PresenceRouter.handle(PresenceRouter.java:114) Could not route packet

java.lang.IllegalArgumentException: No enum const class org.xmpp.packet.Presence$Type.invisible

at java.lang.Enum.valueOf(Enum.java:192)

at org.xmpp.packet.Presence$Type.valueOf(Presence.java:308)

at org.xmpp.packet.Presence.getType(Presence.java:93)

at org.jivesoftware.messenger.PresenceRouter.handle(PresenceRouter.java:77)

at org.jivesoftware.messenger.PresenceRouter.route(PresenceRouter.java:59)

at org.jivesoftware.messenger.PacketRouter.route(PacketRouter.java:73)

at org.jivesoftware.messenger.net.SocketReadThread.readStream(SocketReadThread.jav a:240)

at org.jivesoftware.messenger.net.SocketReadThread.run(SocketReadThread.java:105)

2005.08.08 11:58:56 org.jivesoftware.messenger.PresenceRouter.handle(PresenceRouter.java:114) Could not route packet

java.lang.IllegalArgumentException: No enum const class org.xmpp.packet.Presence$Type.invisible

at java.lang.Enum.valueOf(Enum.java:192)

at org.xmpp.packet.Presence$Type.valueOf(Presence.java:308)

at org.xmpp.packet.Presence.getType(Presence.java:93)

at org.jivesoftware.messenger.PresenceRouter.handle(PresenceRouter.java:77)

at org.jivesoftware.messenger.PresenceRouter.route(PresenceRouter.java:59)

at org.jivesoftware.messenger.PacketRouter.route(PacketRouter.java:73)

at org.jivesoftware.messenger.net.SocketReadThread.readStream(SocketReadThread.jav a:240)

at org.jivesoftware.messenger.net.SocketReadThread.run(SocketReadThread.java:105)

2005.08.08 11:59:06 org.jivesoftware.messenger.PresenceRouter.handle(PresenceRouter.java:114) Could not route packet

java.lang.IllegalArgumentException: No enum const class org.xmpp.packet.Presence$Type.invisible

at java.lang.Enum.valueOf(Enum.java:192)

at org.xmpp.packet.Presence$Type.valueOf(Presence.java:308)

at org.xmpp.packet.Presence.getType(Presence.java:93)

at org.jivesoftware.messenger.PresenceRouter.handle(PresenceRouter.java:77)

at org.jivesoftware.messenger.PresenceRouter.route(PresenceRouter.java:59)

at org.jivesoftware.messenger.PacketRouter.route(PacketRouter.java:73)

at org.jivesoftware.messenger.net.SocketReadThread.readStream(SocketReadThread.jav a:240)

at org.jivesoftware.messenger.net.SocketReadThread.run(SocketReadThread.java:105)

2005.08.08 11:59:33 org.jivesoftware.messenger.PresenceRouter.handle(PresenceRouter.java:114) Could not route packet

java.lang.IllegalArgumentException: No enum const class org.xmpp.packet.Presence$Type.invisible

at java.lang.Enum.valueOf(Enum.java:192)

at org.xmpp.packet.Presence$Type.valueOf(Presence.java:308)

at org.xmpp.packet.Presence.getType(Presence.java:93)

at org.jivesoftware.messenger.PresenceRouter.handle(PresenceRouter.java:77)

at org.jivesoftware.messenger.PresenceRouter.route(PresenceRouter.java:59)

at org.jivesoftware.messenger.PacketRouter.route(PacketRouter.java:73)

at org.jivesoftware.messenger.net.SocketReadThread.readStream(SocketReadThread.jav a:240)

at org.jivesoftware.messenger.net.SocketReadThread.run(SocketReadThread.java:105)

2005.08.08 11:58:37 Stream error detected

java.lang.IllegalArgumentException: No enum const class org.xmpp.packet.Presence$Type.invisible

at java.lang.Enum.valueOf(Enum.java:192)

at org.xmpp.packet.Presence$Type.valueOf(Presence.java:308)

at org.xmpp.packet.Presence.getType(Presence.java:93)

at org.jivesoftware.messenger.net.SocketReadThread.readStream(SocketReadThread.jav a:246)

at org.jivesoftware.messenger.net.SocketReadThread.run(SocketReadThread.java:105)

2005.08.08 11:58:56 Stream error detected

java.lang.IllegalArgumentException: No enum const class org.xmpp.packet.Presence$Type.invisible

at java.lang.Enum.valueOf(Enum.java:192)

at org.xmpp.packet.Presence$Type.valueOf(Presence.java:308)

at org.xmpp.packet.Presence.getType(Presence.java:93)

at org.jivesoftware.messenger.net.SocketReadThread.readStream(SocketReadThread.jav a:246)

at org.jivesoftware.messenger.net.SocketReadThread.run(SocketReadThread.java:105)

2005.08.08 11:59:06 Stream error detected

java.lang.IllegalArgumentException: No enum const class org.xmpp.packet.Presence$Type.invisible

at java.lang.Enum.valueOf(Enum.java:192)

at org.xmpp.packet.Presence$Type.valueOf(Presence.java:308)

at org.xmpp.packet.Presence.getType(Presence.java:93)

at org.jivesoftware.messenger.net.SocketReadThread.readStream(SocketReadThread.jav a:246)

at org.jivesoftware.messenger.net.SocketReadThread.run(SocketReadThread.java:105)

2005.08.08 11:59:33 Stream error detected

java.lang.IllegalArgumentException: No enum const class org.xmpp.packet.Presence$Type.invisible

at java.lang.Enum.valueOf(Enum.java:192)

at org.xmpp.packet.Presence$Type.valueOf(Presence.java:308)

at org.xmpp.packet.Presence.getType(Presence.java:93)

at org.jivesoftware.messenger.net.SocketReadThread.readStream(SocketReadThread.jav a:246)

at org.jivesoftware.messenger.net.SocketReadThread.run(SocketReadThread.java:105)

2005.08.08 15:22:02 Closing no longer valid connection

org.jivesoftware.messenger.net.SocketConnection@172c47b socket: d51a54[SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA: Socket[addr=/172.16.77.39,port=1100,localport=5223]] session: org.jivesoftware.messenger.ClientSession@1c187c8 status: 3 address: muthu.v@jabber.adeasolutions.com/Adea id: 97c82806 presence:

java.net.SocketException: Connection closed by remote host

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkWrite(SSLSocketImpl.java:1168)

at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:43)

at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336)

at sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:404)

at sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:408)

at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:152)

at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213)

at java.io.BufferedWriter.flush(BufferedWriter.java:236)

at org.jivesoftware.messenger.net.SocketConnection.validate(SocketConnection.java: 94)

at org.jivesoftware.messenger.SessionManager.isActiveRoute(SessionManager.java:625 )

at org.jivesoftware.messenger.handler.IQAuthHandler.login(IQAuthHandler.java:191)

at org.jivesoftware.messenger.handler.IQAuthHandler.handleIQ(IQAuthHandler.java:14 1)

at org.jivesoftware.messenger.handler.IQHandler.process(IQHandler.java:48)

at org.jivesoftware.messenger.IQRouter.handle(IQRouter.java:202)

at org.jivesoftware.messenger.IQRouter.route(IQRouter.java:73)

at org.jivesoftware.messenger.PacketRouter.route(PacketRouter.java:65)

at org.jivesoftware.messenger.net.SocketReadThread.readStream(SocketReadThread.jav a:285)

at org.jivesoftware.messenger.net.SocketReadThread.run(SocketReadThread.java:105)

Hi Muthu,

The reason you get this is that your JM version doesn’'t handle invalid presence types very well. Some jabber clients send incorrect types.

I believe this is fixed with a default behaviour in 2.2.0 release or in the latest nightly build. I can’'t remember which.

What version of JM are you using?

Conor.

A quick search for “org.xmpp.packet.Presence$Type” across the forums, throws up lots of links referring to your problem.

Have a browse around to get a better idea of this issue. Basically its only a JM problem in sense of how it handles these invalid presence types.

Hope that helps,

Conor.

Hey Conor,

I think that you were looking for JM-340. That improvement was included in beta 2 so it is already present in JM 2.2. JM 2.2 will not close the connection but instead just log a warning message and assume that the presence was of type available.

Regards,

– Gato

Hi Gato,

Thats the one I was thinking about,

Cheers for the clarification,

Conor.

I updated my jive software to Jive Messenger 2.2.0 before 2 days, still i am getting error as below…

at org.jivesoftware.messenger.IQRouter.route(IQRouter.java:73)

at org.jivesoftware.messenger.PacketRouter.route(PacketRouter.java:65)

at org.jivesoftware.messenger.net.SocketReader.processIQ(SocketReader.java:258)

at org.jivesoftware.messenger.net.ClientSocketReader.processIQ(ClientSocketReader. java:43)

at org.jivesoftware.messenger.net.SocketReader.readStream(SocketReader.java:230)

at org.jivesoftware.messenger.net.SocketReader.run(SocketReader.java:111)

at java.lang.Thread.run(Thread.java:595)

2005.08.09 17:43:07 org.jivesoftware.messenger.handler.IQHandler.process(IQHandler.java:71) Internal server error

org.jivesoftware.messenger.PacketException: Could not send packet - no route

at org.jivesoftware.messenger.spi.PacketDelivererImpl.deliver(PacketDelivererImpl. java:50)

at org.jivesoftware.messenger.handler.IQHandler.process(IQHandler.java:50)

at org.jivesoftware.messenger.IQRouter.handle(IQRouter.java:213)

at org.jivesoftware.messenger.IQRouter.route(IQRouter.java:73)

at org.jivesoftware.messenger.PacketRouter.route(PacketRouter.java:65)

at org.jivesoftware.messenger.net.SocketReader.processIQ(SocketReader.java:258)

at org.jivesoftware.messenger.net.ClientSocketReader.processIQ(ClientSocketReader. java:43)

at org.jivesoftware.messenger.net.SocketReader.readStream(SocketReader.java:230)

at org.jivesoftware.messenger.net.SocketReader.run(SocketReader.java:111)

at java.lang.Thread.run(Thread.java:595)

2005.08.09 17:43:07 org.jivesoftware.messenger.handler.IQHandler.process(IQHandler.java:71) Internal server error

org.jivesoftware.messenger.PacketException: Could not send packet - no route

at org.jivesoftware.messenger.spi.PacketDelivererImpl.deliver(PacketDelivererImpl. java:50)

at org.jivesoftware.messenger.handler.IQHandler.process(IQHandler.java:50)

at org.jivesoftware.messenger.IQRouter.handle(IQRouter.java:213)

at org.jivesoftware.messenger.IQRouter.route(IQRouter.java:73)

at org.jivesoftware.messenger.PacketRouter.route(PacketRouter.java:65)

at org.jivesoftware.messenger.net.SocketReader.processIQ(SocketReader.java:258)

at org.jivesoftware.messenger.net.ClientSocketReader.processIQ(ClientSocketReader. java:43)

at org.jivesoftware.messenger.net.SocketReader.readStream(SocketReader.java:230)

at org.jivesoftware.messenger.net.SocketReader.run(SocketReader.java:111)

at java.lang.Thread.run(Thread.java:595)


2005.08.09 15:36:16 Invalid presence type

java.lang.IllegalArgumentException: No enum const class org.xmpp.packet.Presence$Type.invisible

at java.lang.Enum.valueOf(Enum.java:192)

at org.xmpp.packet.Presence$Type.valueOf(Presence.java:318)

at org.xmpp.packet.Presence.getType(Presence.java:103)

at org.jivesoftware.messenger.net.SocketReader.readStream(SocketReader.java:200)

at org.jivesoftware.messenger.net.SocketReader.run(SocketReader.java:111)

at java.lang.Thread.run(Thread.java:595)

2005.08.09 16:13:42 Invalid presence type

java.lang.IllegalArgumentException: No enum const class org.xmpp.packet.Presence$Type.invisible

at java.lang.Enum.valueOf(Enum.java:192)

at org.xmpp.packet.Presence$Type.valueOf(Presence.java:318)

at org.xmpp.packet.Presence.getType(Presence.java:103)

at org.jivesoftware.messenger.net.SocketReader.readStream(SocketReader.java:200)

at org.jivesoftware.messenger.net.SocketReader.run(SocketReader.java:111)

at java.lang.Thread.run(Thread.java:595)


Any help ?

I am using exodus version 0.9.1.0