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

http://host:port/prweb generates error in Pega 7.1.8

SA-10400

Summary



When setting the following prconfig settings in Pega 7.1.8 system and accessing Pega 7 using http://host:port/prweb generates exceptions: 

<env name="initialization/contextrewriteenabled" value="true"/> 
<env name="initialization/setbasehtmlcontext" value="url to prpc"/> 


Error Messages



2015-05-18 15:16:31,829 [ttp-apr-39080-exec-7] [ ] [ ] [ ] (ngineinterface.service.HttpAPI) ERROR - <ip address>: java.lang.StringIndexOutOfBoundsException
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1911)
at com.pega.pegarules.session.external.engineinterface.etier.engine.WebRequestBase.parseURL(WebRequestBase.java:811)
at com.pega.pegarules.session.external.engineinterface.etier.engine.WebRequestBase.mapHeadersToRequestorData(WebRequestBase.java:591)
at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.setRequestMap(HttpAPI.java:1039)
at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.preLockSetup(HttpAPI.java:1335)
at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequest(EngineAPI.java:323)
at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.invoke(HttpAPI.java:839)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl._invokeEngine_privact(EngineImpl.java:315)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:263)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:240)
at com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngineInner(JNDIEnvironment.java:278)
at com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngine(JNDIEnvironment.java:223)
at com.pega.pegarules.web.impl.WebStandardImpl.makeEtierRequest(WebStandardImpl.java:485)
at com.pega.pegarules.web.impl.WebStandardImpl.doPost(WebStandardImpl.java:290)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)


Steps to Reproduce



Set the following prconfig settings in the Pega 7.1.8 system and access PRPC using http://host:port/prweb

<env name="initialization/contextrewriteenabled" value="true"/> 
<env name="initialization/setbasehtmlcontext" value="url to prpc"/> 


Root Cause



The root cause of this problem is a defect in Pegasystems’ code/rules.

Resolution



This issue is resolved by HFix-22433.

Published June 12, 2015 - Updated October 8, 2020

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