Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Getting error while logging into mobile app



Error occurs when logging in to the offline enabled mobile application.

Error Messages

org.apache.catalina.connector.ClientAbortException: Connection has been shutdown: Broken pipe (Write failed) 
    at org.apache.catalina.connector.OutputBuffer.doFlush( ~[catalina.jar:7.0.63] 
    at org.apache.catalina.connector.OutputBuffer.flush( ~[catalina.jar:7.0.63] 
    at org.apache.catalina.connector.CoyoteOutputStream.flush( ~[catalina.jar:7.0.63] 
    at com.pega.jcraft.jzlib.DeflaterOutputStream.flush( ~[prjzlib-1.1.0.jar:?] 
    at sun.nio.cs.StreamEncoder.implFlush( ~[?:1.8.0_191] 
    at sun.nio.cs.StreamEncoder.flush( ~[?:1.8.0_191] 
    at ~[?:1.8.0_191] 
    at com.pega.pegarules.web.impl.DirectStreamWriter.flush( ~[prwebj2ee.jar:?] 
    at com.pega.pegarules.web.impl.DirectStreamWriter.flush( ~[prwebj2ee.jar:?] 
    at com.pega.pegarules.web.impl.WebStandardImpl.sendOutput( ~[prwebj2ee.jar:?] 
    at com.pega.pegarules.web.impl.WebStandardImpl.doPost( ~[prwebj2ee.jar:?] 
    at sun.reflect.GeneratedMethodAccessor150.invoke(Unknown Source) ~[?:?]

Steps to Reproduce

  1. Generate a mobile application.
  2. Log in to the application with the offline user.

Root Cause

An option is present on the Access Group to select 'Enable Offline Troubleshooting with a browser'. This enables troubleshooting of the offline application in the browser.

After it is selected, log in with a user assigned to this access group on the browser on a desktop computer. The offline enabled application is launched with a new Tracer window which traces the offline application synchronization on the server.

Disable this option if it is not used.

However, with this checkbox selected, the user can still log in to the mobile application with the below settings.
  1. Offline troubleshooting requires the Authentication type to be set to 'basic' on the offlinehttp service package; whereas the mobile application log can use the 'oAuth 2.0' authentication. Therefore, this must be reverted for mobile log in.
  2. The 'Use service session cookie (REST/HTTP only)' checkbox on the offlinehttp service package must remain selected for offline browser to work.

    (The documentation in the following link will be updated:
    This must be checked for mobile application log in.


Perform the following local-change:

Disable the 'Enable Offline Troubleshooting with a browser' checkbox on the access group.

Published December 2, 2021

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us