Article - CS435404

Unable to invoke Jasper Report with an error "java.io.IOException: Server returned HTTP response code: 503 for URL" via custom code inside Workflow Expression Robot in Windchill PDMLink

Modified: 22-Jul-2025   


Applies To

  • Windchill PDMLink 12.0.2.20 to 13.0

Description

  • Unable to invoke Jasper Report with an error "java.io.IOException: Server returned HTTP response code: 503 for URL" via custom code inside Workflow Expression Robot
  • This issue occurs when attempting to invoke Jasper Report via custom code inside Workflow Expression Robot
  • Windchill PDMLink is configured with a Dedicated Cluster Master
  • The Master Node is configured with only a BackgroundMethodServer (BGMS) and lacks a Foreground Method Server/Method Server (FGMS/MS)
  • Below error message is observed in Method Server logs :
    xxxx-xx-xx xx:xx:xx,xxx DEBUG [WfUserWorkQueue.PoolQueueThread-2416] com.Test.plm.wf.TestChangeRequestWorkflowHelper - Exception generating Summary Report:net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.JRException: Error opening input stream from URL: https://xyz.ptc.com/Windchill/servlet/ReportServlet?proc=com_ptc_windchill_enterprise_report_ReportTask%23TestECNObjectData&changeorderoid=wt.change2.WTChangeOrder2:9999999999&changeorderstate=RESOLVED&isDraft=0&uid=Testadmin&locale=EN.
     
                  at net.sf.jasperreports.repo.DefaultRepositoryService.getInputStream(DefaultRepositoryService.java:139)
     
                  at net.sf.jasperreports.repo.InputStreamPersistenceService.load(InputStreamPersistenceService.java:51)
     
    Caused by: net.sf.jasperreports.engine.JRException: Error opening input stream from URL: https://xyz.ptc.com/Windchill/servlet/ReportServlet?proc=com_ptc_windchill_enterprise_report_ReportTask%23TestECNObjectData&changeorderoid=wt.change2.WTChangeOrder2:9999999999&changeorderstate=RESOLVED&isDraft=0&uid=Testadmin&locale=EN.
     
                  at net.sf.jasperreports.engine.util.JRLoader.getInputStream(JRLoader.java:291)
     
                  at net.sf.jasperreports.repo.DefaultRepositoryService.getInputStream(DefaultRepositoryService.java:122)
     
    Caused by: java.io.IOException: Server returned HTTP response code: 503 for URL: https://xyz.ptc.com/Windchill/servlet/ReportServlet?proc=com_ptc_windchill_enterprise_report_ReportTask%23TestECNObjectData&changeorderoid=wt.change2.WTChangeOrder2:9999999999&changeorderstate=RESOLVED&isDraft=0&uid=Testnbadmin&locale=EN
     
                  at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1924)
     
                  at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520)
  • The Data Monitor report created using JasperReports is not functioning as expected on Windchill Cluster environment. It consistently remains in the "Executing" status. This report is developed using the Info*Engine Report Task in JasperReports. MethodServer reports following error while executing the data monitor report:
Caused by: java.io.IOException: Server returned HTTP response code: 503 for URL: http://<windchill_url>/Pdmlink/servlet/ReportServlet?proc=com_ptc_windchill_enterprise_report_ReportTask%23GenericWFCompletedMetrics&SubTypeDoc=<name of subtype>=All&ExtContextName=Pistons+-+Global+RES&TaskName=Assignee+Completes+Assignment&LowTaskEndTime=2024-01-01&HighTaskEndTime=2024-12-31&ExtRequestType=Analysis&LowTaskTimeStamp=00:00:00&HighTaskTimeStamp=23:59:59&uid=Administrator&locale=en_US
This is a printer-friendly version of Article 435404 and may be out of date. For the latest version click CS435404