I managed to test the appletPage.htm and its execution of SessionApplet independently from the rest of the code by using Object Browser test function. For me, it seems that the ICMS connection is ok on its own:
Note: the result is the same with Java 1.5.0_03.
Java(TM) Plug-in: Version 1.4.2_08
Using JRE version 1.4.2_08 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\janini
Proxy Configuration: Automatic Proxy Configuration
URL: http://autoproxy/autoproxy/autoproxy----
<--JN: delete the extra stuff>
-
Info: SAP/IC Messaging v.98v
Info: applet.init()
Config: logLevel=0
Config: server=HOST1.EMEA.HPQCORP.NET
Config: port=10402Config: path=/icms/Server
Config: InQueueSize=21
Config: OutQueueSize=21
Config: InTimeout=0
Config: OutTimeout=0
Config: connect=true
Config: Connection: timeout=0
Info: connection:applet.createSession
Info: Session:icms.Session:applet.start
Debug: addSessionEventListener=com.sap.ic.service.messaging.SessionApplet[panel0,0,0,1x1,hidden,layout=java.awt.FlowLayout]
Info: applet.start()
Info: applet.connect()
Info: Socket[addr=host1.emea.hpqcorp.net/16.50.170.136,port=10402,localport=4036]
Info: connection: connecting...
Debug: <-Message[I,origin=null,topic=<ic.topic.connect>,time=Jan 1, 1970 2:00:00 AM,data=null,param=null,1118832836028]
Debug: .
Debug: ->Message[E,origin=null,topic=<ic.topic.connect>,time=Jan 1, 1970 2:00:00 AM,data=null,param=null,1118832836429]
Info: connection: connected
Info: connection:applet.start
Info: icms.InputWorker.start
Info: icms.OutputWorker.start
However, the WebClient at login generates these additional JavaConsole messages and finally hits the NullPointerException when sending message(sorry for the long dump):
liveconnect: Invoking method: public boolean com.sap.ic.service.messaging.SessionApplet.subscribe(java.lang.String,java.lang.Object,boolean)
liveconnect: Needs conversion: java.lang.String --> java.lang.String
liveconnect: Needs conversion: sun.plugin.javascript.ocx.JSObject --> java.lang.Object
liveconnect: Needs conversion: java.lang.Boolean --> boolean
Info: subscribe entering=Subscriber[topic=100121032AA88000001047FB0AB1B41C2BFA3.ic.mcm,noLocal]
Info: subscribe exiting=Subscriber[topic=100121032AA88000001047FB0AB1B41C2BFA3.ic.mcm,noLocal]
liveconnect: Invoking method: public boolean com.sap.ic.service.messaging.SessionApplet.subscribe(java.lang.String,java.lang.Object,boolean)
liveconnect: Needs conversion: java.lang.String --> java.lang.String
liveconnect: Needs conversion: sun.plugin.javascript.ocx.JSObject --> java.lang.Object
liveconnect: Needs conversion: java.lang.Boolean --> boolean
Info: subscribe entering=Subscriber[topic=icms.connection]
Info: subscribe exiting=Subscriber[topic=icms.connection]
liveconnect: Invoking method: public boolean com.sap.ic.service.messaging.SessionApplet.publish(java.lang.String,java.lang.Object)
liveconnect: Needs conversion: java.lang.String --> java.lang.String
liveconnect: Needs conversion: java.lang.String --> java.lang.Object
Info: publish entering =Message[I,origin=null,topic=ic.session_id,time=Jun 15, 2005 2:09:45 PM,data=100121032AA88000001047FB0AB1B41C2BFA3,param=applet,0]
Info: publish exiting
liveconnect: Invoking method: public boolean com.sap.ic.service.messaging.SessionApplet.publish(java.lang.String,java.lang.Object)
liveconnect: Needs conversion: java.lang.String --> java.lang.String
liveconnect: Needs conversion: java.lang.String --> java.lang.Object
Info: publish entering =Message[I,origin=null,topic=100121032AA88000001047FB0AB1B41C2BFA3.ic.mcm.userState,time=Jun 15, 2005 2:09:45 PM,data=,param=applet,0