Question

exception.PRPCServiceException: org.apache.http.NoHttpResponseException

We are using jenkins to import smart dispute packages to our server. It works fine for small files, However its not working for large files

Error :

com.pega.pegarules.serviceclient.exception.PRPCServiceException: org.apache.http.NoHttpResponseException: XXX:443 failed to respond

Also i tried to get logs from pega, however i did not find any information in logs.

As per your post i have enabled below mentioned loggers.

com.pega.pegarules.integration.engine.internal.util.PRServiceUtils
com.pega.pegarules.integration.engine.internal.ServiceMappingUtils

com.pega.pegarules.integration.engine.internal.connect.rest.RESTClient

com.pega.pegarules.deploy.internal.inventory.SynchronizerImpl

com.pega.pegarules.deploy.internal.loaders.SaverLoader

com.pega.pegarules.deploy.internal.util.ImportImpl

com.pega.pegarules.deploy.internal.archive.ApplicationBundle

com.pega.pegarules.deploy.internal.archive.PegaArchiveImpl

If you are debugging the schema related changes as well the you can enable the below loggers as well:

com.pega.pegarules.data.internal.access.DatabaseSchemaGeneratorImpl
com.pega.pegarules.deploy.internal.util.SchemaImporterTool
com.pega.pegarules.deploy.internal.archive.SchemaArchiveImpl

Please help us with this

Comments

Keep up to date on this post and subscribe to comments

May 21, 2019 - 8:38pm

Did the request reach the destination server? If yes, can you share the logs there?

May 22, 2019 - 3:33pm
Response to KevinZheng_GCS

Hi Kevin , 

Request is reaching destination server. It starts installing the package also, however if package is large , it will fail the job with below mentioned failures in pega logs.

 

[          ] [                    ] [                    ] (        web.impl.HttpUtilities) ERROR   - IOException occurred while creating the response outputstreamjava.io.IOException: Broken pipe 

org.apache.catalina.connector.ClientAbortException: java.io.IOException: Broken pipe 

        at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:393) 

        at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:426) 

        at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:339) 

        at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:418) 

        at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:406) 

        at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:97) 

        at com.pega.apache.commons.httpclient.methods.multipart.FilePart.sendData(FilePart.java:223) 

        at com.pega.apache.commons.httpclient.methods.multipart.Part.send(Part.java:312) 

        at com.pega.apache.commons.httpclient.methods.multipart.Part.sendParts(Part.java:385) 

        at com.pega.apache.commons.httpclient.methods.multipart.MultipartRequestEntity.writeRequest(MultipartRequestEntity.java:164) 

        at com.pega.pegarules.web.impl.HttpUtilities.buildMultipartReponse(HttpUtilities.java:629) 

        at com.pega.pegarules.web.impl.WebStandardImpl.sendOutput(WebStandardImpl.java:1169) 

        at com.pega.pegarules.web.impl.WebStandardImpl.doPost(WebStandardImpl.java:409) 

        at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source) 

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 

        at java.lang.reflect.Method.invoke(Method.java:497) 

        at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:370) 

        at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:411) 

        at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingThrowable(AppServerBridgeToPega.java:224) 

        at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethod(AppServerBridgeToPega.java:273) 

        at com.pega.pegarules.internal.web.servlet.WebStandardBoot.doPost(WebStandardBoot.java:121) 

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:644) 

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) 

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291) 

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 

        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) 

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) 

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) 

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) 

        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:613) 

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142) 

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) 

        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610) 

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) 

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:516) 

        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1103) 

        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668) 

        at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:223) 

        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520) 

        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1477) 

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 

        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) 

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

Caused by: java.io.IOException: Broken pipe 

        at sun.nio.ch.FileDispatcherImpl.write0(Native Method) 

        at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47) 

        at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93) 

        at sun.nio.ch.IOUtil.write(IOUtil.java:51) 

        at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471) 

        at org.apache.tomcat.util.net.SecureNioChannel.flush(SecureNioChannel.java:140) 

        at org.apache.tomcat.util.net.SecureNioChannel.write(SecureNioChannel.java:505) 

        at org.apache.tomcat.util.net.NioBlockingSelector.write(NioBlockingSelector.java:101) 

        at org.apache.tomcat.util.net.NioSelectorPool.write(NioSelectorPool.java:173) 

        at org.apache.coyote.http11.InternalNioOutputBuffer.writeToSocket(InternalNioOutputBuffer.java:139) 

        at org.apache.coyote.http11.InternalNioOutputBuffer.addToBB(InternalNioOutputBuffer.java:197) 

        at org.apache.coyote.http11.InternalNioOutputBuffer.access$000(InternalNioOutputBuffer.java:41) 

        at org.apache.coyote.http11.InternalNioOutputBuffer$SocketOutputBuffer.doWrite(InternalNioOutputBuffer.java:320) 

        at org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:116) 

        at org.apache.coyote.http11.AbstractOutputBuffer.doWrite(AbstractOutputBuffer.java:256) 

        at org.apache.coyote.Response.doWrite(Response.java:503) 

        at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:388) 

 

May 28, 2019 - 4:16pm

Hi Kuldeep,

If your issue is specific to the large file import with the Jenkins then probably you can go through the below discussion which has so much information to troubleshoot it.

https://community1.pega.com/community/pega-support/question/unable-import-larger-product-jenkins

Regards,

Mahesh M

May 31, 2019 - 2:08pm
Response to Mahesh Midthuru

Hi Mahesh, 

I have increased the request time out parameter for import job to 600000 , still the jobs are failing for larger files.we also tried using Abort if struck plugin for this. However it also failed to yield any result.

Please help us with Load balancer parameters to be set for increasing the time for time out , as it was mentioned as solution in the link provided in your message.

Thanks

 

 

May 31, 2019 - 4:43pm
Response to kuldeeps9757

I am not aware of the load balancer parameters, i think in the other post user resolved it by testing the functionality in the lower environment where he doesn't have the load balancer. May be you can try the same to make sure if its the issue with load balancer configuration.

June 18, 2019 - 9:42am
Response to Mahesh Midthuru

Hi Team, 

We are still facing the issue in importing large file. Any help would be much appreciated.

June 19, 2019 - 4:32pm
Response to kuldeeps9757

I would suggest you to raise an SR with the GCS team for further troubleshooting on this issue.

Mod
June 19, 2019 - 10:41pm

Hi @kuldeeps9757

Please reference this URL to this post while creating the SR. Do let us know the SR# once created.

Regards,

Lochana | Community Moderator | Pegasystems Inc.