Calendar pop-up reminder and weird error

[Fatal Error] :1:1: Premature end of file.

[Fatal Error] :1:1: Premature end of file.

java.io.EOFException

at com.iplanet.ens.gap.GapReader.readLine(Unknown Source)

at com.iplanet.ens.gap.GapReader.run(Unknown Source)

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

java.net.ConnectException: Connection refused

at java.net.PlainSocketImpl.socketConnect(Native Method)

at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)

at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)

at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)

at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)

at java.net.Socket.connect(Socket.java:516)

at java.net.Socket.connect(Socket.java:466)

at java.net.Socket.<init>(Socket.java:366)

at java.net.Socket.<init>(Socket.java:179)

at com.iplanet.ens.gap.Gap.<init>(Unknown Source)

at com.iplanet.ens.jms.EnsTopicConnection.createTopicSession(Unknown Source)

at com.iplanet.im.server.JMSSubscriber.createTopicSubscriber(JMSManager.java:173)

at com.iplanet.im.server.JMSSubscriber.start(JMSManager.java:183)

at com.iplanet.im.server.JMSProvider.startConnection(JMSManager.java:68)

at com.iplanet.im.server.JMSProvider.start(JMSManager.java:78)

at com.iplanet.im.server.JMSManager.connectionClosed(JMSManager.java:416)

at com.iplanet.im.server.JMSCalendarMessageListener.connectionClosed(JMSCalendarMessageListener.java:46)

at com.iplanet.im.server.CalendarMessageListener.onMessage(JMSCalendarMessageListener.java:86)

at com.iplanet.ens.jms.EnsTopicSubscriber.onMessage(Unknown Source)

at com.iplanet.ens.gap.GapReader.run(Unknown Source)

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

java.net.ConnectException: Connection refused

at java.net.PlainSocketImpl.socketConnect(Native Method)

at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)

at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)

at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)

at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)

at java.net.Socket.connect(Socket.java:516)

at java.net.Socket.connect(Socket.java:466)

at java.net.Socket.<init>(Socket.java:366)

at java.net.Socket.<init>(Socket.java:179)

at com.iplanet.ens.gap.Gap.<init>(Unknown Source)

at com.iplanet.ens.jms.EnsTopicConnection.createTopicSession(Unknown Source)

at com.iplanet.im.server.JMSSubscriber.createTopicSubscriber(JMSManager.java:173)

at com.iplanet.im.server.JMSSubscriber.access$000(JMSManager.java:151)

at com.iplanet.im.server.JMSSubscriber$RetryLater.run(JMSManager.java:215)

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

[Fatal Error] :1:1: Premature end of file.

[Fatal Error] :1:1: Premature end of file.

1) Does anybody have a clue on the fatal error?

2) What do I miss on the calendar pop-up reminder configuration to get a connection refused exception?

Product Version

-

IM: 7.2

Calendar: 6.3

All comes with Communications Suite 5.

Thanks.

[3241 byte] By [JoeChris@Suna] at [2007-11-27 11:23:41]
# 1

Hi,

Was the enpd process for calendar server up and running (was calendar server started)?

Can you connect to it using telnet (especially if calendar and IM are on different hosts/zones)?

There is a bug already open regarding this issue (bug #6294542 - Exception thrown on Terminal when agent-calendar is running & Cal-Server is stopped) but that is more regarding where the output occurs rather then the underlying error.

In this particular case the error occurred when the IM calendar agent was running and calendar server was stopped.

Regards,

Shane.

shane_hjortha at 2007-7-29 15:52:56 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Instant Messaging...
# 2

Hi,

The IM client connects to the multiplexor on one host. The multiplexor is connected to the IM server on another host.

I have double checked. The enpd process is started on the calendar server. I have setup calendar frontend/backend. Only the backend has the enpd running. IM server points directly to the backend.

Here are a few logs that may make things clearer.

xmppd.log @ IM Server

--

[24 Jul 2007 11:52:01,958] ERROR xmppd [Thread-34] MultiplexManager#20890333 read error java.io.IOException: Connection reset by peer

[24 Jul 2007 11:52:01,958] ERROR xmppd [Thread-35] MultiplexManager#23814595 read error java.io.IOException: Connection reset by peer

[24 Jul 2007 11:52:01,959] ERROR xmppd [Thread-34] MultiplexManager#20890333 error sending BYE

[24 Jul 2007 11:52:01,959] ERROR xmppd [Thread-35] MultiplexManager#23814595 error sending BYE

[24 Jul 2007 11:52:01,960] INFO xmppd [Thread-35] MultiplexManager#23814595 exiting

[24 Jul 2007 11:52:02,006] INFO xmppd [Thread-34] [IS-SSO] Session Expired: joseph@esuria.com.bn reason=3

[24 Jul 2007 11:52:02,012] INFO xmppd [Thread-34] MultiplexManager#20890333 exiting

[24 Jul 2007 11:52:06,480] INFO xmppd [Thread-25] [NioSelectAcceptor][0.0.0.0:5269] accepted /127.0.0.1

[24 Jul 2007 11:52:16,131] INFO xmppd [Thread-26] New Multiplexor Connection started from /172.16.3.130

[24 Jul 2007 11:52:16,131] ERROR xmppd [Thread-36] MultiplexManager#12659064 read error java.io.IOException: Connection reset by peer

[24 Jul 2007 11:52:16,132] ERROR xmppd [Thread-36] MultiplexManager#12659064 error sending BYE

[24 Jul 2007 11:52:16,140] INFO xmppd [Thread-36] MultiplexManager#12659064 exiting

[24 Jul 2007 11:52:16,159] INFO xmppd [Thread-26] New Multiplexor Connection started from /172.16.3.130

[24 Jul 2007 11:52:16,159] INFO xmppd [Thread-37] MultiplexManager#25805098 HELLO received version=4.1 maxchannels=1002

[24 Jul 2007 11:52:16,161] INFO xmppd [Thread-26] New Multiplexor Connection started from /172.16.3.130

[24 Jul 2007 11:52:16,161] INFO xmppd [Thread-38] MultiplexManager#15255515 HELLO received version=4.1 maxchannels=1002

[24 Jul 2007 11:52:25,161] INFO xmppd [org.netbeans.lib.collab.util.Worker 2] Authenticating using Identity Server SSO

[Fatal Error] :1:1: Premature end of file.

[24 Jul 2007 11:52:26,703] INFO xmppd [org.netbeans.lib.collab.util.Worker 2] [LDAPPool] saved uid=joseph,ou=People,o=esuria.com.bn,dc=esuria,dc=com,dc=bn

[24 Jul 2007 11:52:27,171] INFO xmppd [org.netbeans.lib.collab.util.Worker 3] could not parse input

java.lang.RuntimeException: could not parse input

at net.outer_planes.jso.io.XMLReader.read(XMLReader.java:243)

at com.iplanet.im.server.StreamEndPoint.importElement(StreamEndPoint.java:566)

at com.iplanet.im.server.UserSettings.getPrivateSettings(UserSettings.java:100)

at com.iplanet.im.server.PrivateHandler.process(PrivateHandler.java:191)

at com.iplanet.im.server.ClientPacketDispatcher.handle(ClientPacketDispatcher.java:302)

at com.iplanet.im.server.ClientSession.packetTransferred(ClientSession.java:434)

at net.outer_planes.jso.AbstractStream.firePacketTransferredEvent(AbstractStream.java:674)

at net.outer_planes.jso.AbstractStream$1.addExtendedData(AbstractStream.java:115)

at net.outer_planes.jso.AbstractStream$Input.process(AbstractStream.java:198)

at net.outer_planes.jso.AbstractStream.process(AbstractStream.java:1160)

at com.iplanet.im.server.ClientSession.process(ClientSession.java:650)

at com.iplanet.im.server.ClientSession.run(ClientSession.java:631)

at org.netbeans.lib.collab.util.Worker.run(Worker.java:208)

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

Caused by: org.xml.sax.SAXParseException: Premature end of file.

at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)

at net.outer_planes.jso.io.XMLReader.read(XMLReader.java:236)

... 13 more

mux.log @ IM multiplexor

-

[10:45:43 +0800] int-im-access mux[3186]: General Error: server[1]: received 0 bytes. Scheduling multiplexor restart.

[10:45:43 +0800] int-im-access mux[3727]: General Error: server[1]: received 0 bytes. Scheduling multiplexor restart.

[10:51:06 +0800] int-im-access mux[5115]: General Error: server[1]: received 0 bytes. Scheduling multiplexor restart.

[10:51:06 +0800] int-im-access mux[5119]: General Error: server[1]: received 0 bytes. Scheduling multiplexor restart.

[11:16:21 +0800] int-im-access mux[9894]: General Error: server[1]: received 0 bytes. Scheduling multiplexor restart.

[11:16:21 +0800] int-im-access mux[9898]: General Error: server[1]: received 0 bytes. Scheduling multiplexor restart.

It looks to me there is a communication problem between the multiplexor and IM server. If I telnet from the multiplexor host to IM server, I get disconnected after a short while.

Thanks.

JoeChris@Suna at 2007-7-29 15:52:56 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Instant Messaging...
# 3

Hi,

The ConnectException indicates that the calendar agent is unable to talk to the backend ens/calendar server.

From the calendar agent machine (typically, on the server box), can you check if you can telnet to the calendar server related port mentioned in the config file (iim.conf).

Looks like either the host is not reachable, there might be an error in the host/port mentioned, or server required is not running on the calendar node.

We do not support JMQ based calendar notifications as of now, but only rely on ENS - so that could be something to watch out for too.

Regards,

Mridul

MridulMa at 2007-7-29 15:52:56 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Instant Messaging...
# 4

Hi,

The log output related to the Exception seem to be related to some other problem. Looks like some users dont have private settings or have incorrect data stored in it. This is what is causing the xml related exception.

I dont think this is not related to the calendar agent problem you mentioned earlier.

The issue is a potential communication problem from agent-calendar to backend calendar server (mux is not really involved here). You could try to see if calendar agent (on im server) can connect to the backend calendar server it is configured to talk to.

About the disconnection - any socket connection if kept alive without establishing an xmpp session will get closed after some time.

Regards,

Mridul

MridulMa at 2007-7-29 15:52:56 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Instant Messaging...