voyent
Client connection storm when application is restarted.  XML
Forum Index -> ICEpush General
Author Message
bfuller18

Joined: 06/May/2014 11:50:53
Messages: 47
Offline


I am just starting to use IcePush and have noticed some odd behavior.

- Start normal browsing session with push enabled
- Restart tomcat server with client browser still open

Once the server is back up, the client goes into a infinite loop on 'unknown content in response - application/xml, expected text/xml ' until I close the browser. Any ideas on how to debug/correct?

IE9 is the client. Server is Tomcat 6.

Here is the javascript log:
Code:
[icepush.32c91.async-connection] Blocking connection cannot be shared among multiple web-contexts.
 Initiating blocking connection for "."  web-context... 
 [icepush.32c91.async-connection] connection monitoring started within window 32c91 
 [icepush.32c91] bridge loaded! 
 [icepush.32c91.async-connection] initialize connection within window 32c91 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 LOG: [icepush] received noop 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 LOG: [icepush] received noop 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 LOG: [icepush] received noop 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 LOG: [icepush] received noop 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 LOG: [icepush] received noop 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 LOG: [icepush] received noop 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 LOG: [icepush] received noop 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 LOG: [icepush] received noop 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 LOG: [icepush] received noop 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 LOG: [window] persisted focus for element "_t24" 
 LOG: [window] persisted focus for element "taskEditForm:taskDetailTabSet:0:title" 
 LOG: [window] persisted focus for element "taskEditForm:taskDetailTabSet:0:title" 
 LOG: [window] persisted focus for element "" 
 LOG: [window] persisted focus for element "" 
 LOG: [window] applied updates >>
 update["javax.faces.ViewState"]: 3343740127407111734:2787090443300023608....
 extension 
 LOG: [window] persisted focus for element "contentwrapper" 
 LOG: [window] persisted focus for element "taskEditForm:taskDetailTabSet:0:number" 
 LOG: [window] persisted focus for element "taskEditForm:taskDetailTabSet:0:number" 
 LOG: [icepush] received noop 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 LOG: [window] persisted focus for element "" 
 LOG: [icepush] received noop 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 LOG: [icepush] received noop 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 LOG: [icepush] received noop 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 LOG: [icepush] received noop 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 LOG: [icepush] received noop 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 LOG: [icepush] received noop 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 LOG: [icepush] received noop 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 [icepush.32c91.async-connection] failed to connect, first retry... 
 [icepush.32c91] connection in trouble 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 [icepush.32c91] unknown content in response - application/xml, expected text/xml 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 [icepush.32c91] unknown content in response - application/xml, expected text/xml 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 [icepush.32c91] unknown content in response - application/xml, expected text/xml 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 [icepush.32c91] unknown content in response - application/xml, expected text/xml 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 [icepush.32c91] unknown content in response - application/xml, expected text/xml 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 [icepush.32c91] unknown content in response - application/xml, expected text/xml 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 [icepush.32c91] unknown content in response - application/xml, expected text/xml 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 [icepush.32c91] unknown content in response - application/xml, expected text/xml 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 [icepush.32c91] unknown content in response - application/xml, expected text/xml 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 [icepush.32c91] unknown content in response - application/xml, expected text/xml 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 [icepush.32c91] unknown content in response - application/xml, expected text/xml 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 [icepush.32c91] unknown content in response - application/xml, expected text/xml 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 [icepush.32c91] unknown content in response - application/xml, expected text/xml 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 [icepush.32c91] unknown content in response - application/xml, expected text/xml 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 [icepush.32c91] unknown content in response - application/xml, expected text/xml 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 [icepush.32c91] unknown content in response - application/xml, expected text/xml 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 [icepush.32c91] unknown content in response - application/xml, expected text/xml 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 [icepush.32c91] unknown content in response - application/xml, expected text/xml 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 [icepush.32c91] unknown content in response - application/xml, expected text/xml 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 [icepush.32c91] unknown content in response - application/xml, expected text/xml 
 LOG: [icepush.32c91.async-connection] closing previous connection... 
 LOG: [icepush.32c91.async-connection] connect... 
 [icepush.32c91] unknown content in response - application/xml, expected text/xml 


Configuration details:
Code:
May 28, 2014 11:40:47 AM com.sun.faces.config.ConfigureListener contextInitialized
  INFO: Initializing Mojarra 2.1.21 ( 20130409-1421 https://svn.java.net/svn/mojarra~svn/tags/2.1.21@11854) for context '/xxxxx'
  May 28, 2014 11:40:50 AM org.icefaces.util.EnvConfig init
  INFO: ICEfaces Configuration: 
  org.icefaces.render.auto: true [default]
  org.icefaces.autoid: true [default]
  org.icefaces.aria.enabled: true [default]
  org.icefaces.blockUIOnSubmit: false
  org.icefaces.compressDOM: false [default]
  org.icefaces.compressResources: true
  org.icefaces.compressIDs: false [default]
  org.icefaces.connectionLostRedirectURI: null [default]
  org.icefaces.diffConfig: null [default]
  org.icefaces.deltaSubmit: false
  org.icefaces.focusManaged: true [default]
  org.icefaces.lazyPush: true [default]
  org.icefaces.generateHeadUpdate: false [default]
  org.icefaces.includeScrollOffsets: true [default]
  org.icefaces.reloadOnUpdateFailure: false [default]
  org.icefaces.sessionExpiredRedirectURI: null [default]
  org.icefaces.standardFormSerialization: false
  org.icefaces.strictSessionTimeout: false [default]
  org.icefaces.subtreeDiff: true [default]
  org.icefaces.windowScopeExpiration = 1000 [default]
  org.icefaces.mandatoryResourceConfiguration: none [default]
  org.icefaces.uniqueResourceURLs: true [default]
  org.icefaces.lazyWindowScope: true [default]
  org.icefaces.messagePersistence: true [default]
  org.icefaces.disableDefaultErrorPopups: false [default]
  org.icefaces.fastBusyIndicator: false [default]
  org.icefaces.replayNavigationOnReload: false [default]
  org.icefaces.resourceVersion: 3_3_0_130829 [default]
  org.icefaces.versionableTypes: */javascript */css image/* [default]
  org.icefaces.coalesceResources: true
  org.icefaces.clientSideElementUpdateDetermination: false [default]
  org.icefaces.ace.fileEntry.requireJavascript: true [default]
  org.icefaces.publicContextPath: null [default]
  
  May 28, 2014 11:40:50 AM org.icefaces.impl.renderkit.DOMRenderKit <clinit>
  INFO: 
  ICEsoft Technologies Inc.
  ICEfaces-EE 3.3.0.GA_P01
  Build number: 13
  Build date: 130829
  Revision: 35307
  
  May 28, 2014 11:40:51 AM com.sun.faces.lifecycle.ELResolverInitPhaseListener populateFacesELResolverForJsp
  INFO: JSF1027: [null] The ELResolvers for JSF were not registered with the JSP container.
  May 28, 2014 11:40:51 AM org.icepush.EmailNotificationProvider <init>
  INFO: ICEpush Email Notification Provider Properties {mail.smtps.socketFactory.class=org.icepush.DummySSLSocketFactory, mail.smtp.auth=true, mail.smtps.socketFactory.fallback=false} nobody@localhost.com :0(hash)@localhost:25
  May 28, 2014 11:40:51 AM org.icepush.EmailNotificationProvider$AutoRegister contextInitialized
  INFO: ICEpush Email Notification Provider Registered.
  May 28, 2014 11:40:51 AM com.icesoft.icepush.GcmNotificationProvider$AutoRegister contextInitialized
  INFO: GCM Notification Provider is off
  May 28, 2014 11:40:51 AM com.icesoft.icepush.APNSNotificationProvider <init>
  INFO: APNS Notification Provider is on
  May 28, 2014 11:40:51 AM com.icesoft.icepush.BPNSNotificationProvider$AutoRegister contextInitialized
  INFO: BPNS Notification Provider is off
  May 28, 2014 11:40:51 AM com.icesoft.icepush.AmazonSNSNotificationProvider$AutoRegister contextInitialized
  INFO: Amazon SMS Notification Provider is off
  May 28, 2014 11:40:51 AM com.icesoft.icepush.TwilioSMSNotificationProvider$AutoRegister contextInitialized
  INFO: Twilio SMS Notification Provider is off
  
  May 28, 2014 11:44:04 AM org.icepush.servlet.MainServlet <init>
  INFO: 
  ICEsoft Technologies Inc.
  ICEpush-EE 3.3.0.GA_P01
  Build number: 13
  Revision: 35307

bfuller18

Joined: 06/May/2014 11:50:53
Messages: 47
Offline


With IE9, I can manipulate the windows to still read the console and refresh the main page. However with IE8, the windows are unresponsive and the browser consumes 100% CPU. I have to force close the browser to recover.

Any help here would be greatly appreciated.
bfuller18

Joined: 06/May/2014 11:50:53
Messages: 47
Offline


I have also noticed the client storm stops if another client logs in and causes the push servlet to start.

So I suppose a possible solution may be to have the push servlet auto-start instead of just starting when via the resource servlet. However I have not been successful in getting it to load on start up.

Here are my mappings:
Code:
	<servlet>
 		<servlet-name>Faces Servlet</servlet-name>
 		<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
 		<load-on-startup>1</load-on-startup>
 	</servlet>
 	<servlet-mapping>
 		<servlet-name>Faces Servlet</servlet-name>
 		<url-pattern>/faces/*</url-pattern>
 		<url-pattern>*.jsf</url-pattern>
 		<url-pattern>*.faces</url-pattern>
 		<url-pattern>*.xhtml</url-pattern>
 		<url-pattern>/icefaces/*</url-pattern>
 	</servlet-mapping>
 	<servlet>
 		<servlet-name>Resource Servlet</servlet-name>
 		<servlet-class>com.icesoft.faces.webapp.CompatResourceServlet</servlet-class>
 		<load-on-startup>1</load-on-startup>
 	</servlet>
 	<servlet-mapping>
 		<servlet-name>Resource Servlet</servlet-name>
 		<url-pattern>/xmlhttp/*</url-pattern>
 	</servlet-mapping>
bfuller18

Joined: 06/May/2014 11:50:53
Messages: 47
Offline


If anyone is curious, the way to auto start the push servlet is to modify the web.xml as such:
Code:
	<servlet>
 		<servlet-name>ICEPush Servlet</servlet-name>
 		<servlet-class>org.icepush.servlet.ICEpushServlet</servlet-class>
 		<load-on-startup>1</load-on-startup>
 	</servlet>
 
Forum Index -> ICEpush General
Go to:   
Powered by JForum 2.1.7ice © JForum Team