We successfully configured a print agent for IFS8 on a windows server and have been using it for several years. Occasionally, it will report that it is unable to connect to the URL of the application server, reporting that it is either not running or is not correctly configured. From that point on, we are unable to print anything from IFS.
The application is running. The only way we have found to get printing working again is to stop and restart the ManagedServer1 process. This is a major interruption to the users because it stops them from using the application.
Does anyone know why IFS printing is reporting it cannot connect to itself?
The full error details follow:
Ifs.Fnd.FndSystemException: Explorer: An Unhandled Exception has occurred ---> Ifs.Fnd.FndSystemException: Unexpected error while calling server method PrintReport/ReportFormatRequest ---> Ifs.Fnd.FndSystemException: ifs.fnd.gateway.GatewayException: Exception thrown by handler operation: EJB Exception:
--- IFS Extended Server exception stack trace ---
at ifs.fnd.gateway.GatewayException.raise(GatewayException.java:112)
at ifs.fnd.gateway.client.EJBServerConnection.invoke(EJBServerConnection.java:145)
at ifs.fnd.gateway.client.ServerCommunicator.invoke(ServerCommunicator.java:162)
at ifs.fnd.gateway.client.IfsClientGateway.doPostImpl(IfsClientGateway.java:830)
at ifs.fnd.gateway.IfsAbstractGateway.doPost(IfsAbstractGateway.java:253)
j...]
at ifs.fnd.gateway.IfsAbstractGateway.service(IfsAbstractGateway.java:186)
Caused by: javax.ejb.EJBTransactionRolledbackException: EJB Exception:
...]
at ifs.application.printagentservice.PrintAgentInternal_9uwzlm_PrintAgentInternalLocalImpl.processOneJob(Unknown Source)
at ifs.application.infoservices.impl.PrintReportImpl.reportFormatRequest(PrintReportImpl.java:173)
at ifs.application.infoservices.PrintReportWrapper.reportFormatRequest(PrintReportWrapper.java:101)
at ifs.application.infoservices.PrintReportBean.reportFormatRequest(PrintReportBean.java:378)
at ifs.application.infoservices.PrintReportBean.reportFormatRequest(PrintReportBean.java:399)
R...]
at ifs.fnd.sf.j2ee.FndAbstractBean.aroundInvoke(FndAbstractBean.java:162)
....]
at ifs.application.infoservices.PrintReport_tvvmj4_PrintReportLocalImpl.__WL_invoke(Unknown Source)
n...]
at ifs.application.infoservices.PrintReport_tvvmj4_PrintReportLocalImpl.reportFormatRequest(Unknown Source)
R...]
at ifs.fnd.gateway.client.EJBServerConnection.invoke(EJBServerConnection.java:129)
... 23 more
Caused by: javax.ejb.EJBException: Unpredictable runtime error is caught. See the nested exception.
e...]
at ifs.fnd.sf.j2ee.FndAbstractBean.aroundInvoke(FndAbstractBean.java:162)
f...]
at ifs.application.printagentservice.PrintAgentInternal_9uwzlm_PrintAgentInternalLocalImpl.__WL_invoke(Unknown Source)
... 55 more
Caused by: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11.XToolkit
....]
at ifs.application.printagentservice.impl.PrintAgentInternalImpl.convertRDLtoXSL(PrintAgentInternalImpl.java:1305)
at ifs.application.printagentservice.impl.PrintAgentInternalImpl.generatePdf(PrintAgentInternalImpl.java:1060)
at ifs.application.printagentservice.impl.PrintAgentInternalImpl.processOneJob(PrintAgentInternalImpl.java:482)
at ifs.application.printagentservice.PrintAgentInternalWrapper.processOneJob(PrintAgentInternalWrapper.java:39)
at ifs.application.printagentservice.PrintAgentInternalBean.processOneJob(PrintAgentInternalBean.java:47)
... 68 more
---> Ifs.Fnd.AccessProvider.FndConnectionFailedException: There is currently a problem connecting to 'http://xx.xx.xxx.xx:58080'. Server responds with error.
Most likely causes:
* Application server is currently restarting.
* Application server is not correctly configured.
(HTTP response: 'Internal Server Error')
Contact your system administrator if this condition persists.
--- End of inner exception stack trace ---
Server stack trace:
at Ifs.Fnd.AccessProvider.FndConnection.HandleHttpStatusErrors(HttpWebResponse result, Exception innerException)
at Ifs.Fnd.AccessProvider.FndConnection.GetResponseWithoutPersistencyHandler(String intface, String operation, FndRequestContext requestContext, FndManualDecisionCollection decisions, Bytel] requestHeaderBytes, Byteo] requestBodyBytes)
at Ifs.Fnd.AccessProvider.FndConnection.GetResponse(String intface, String operation, FndRequestContext requestContext, FndManualDecisionCollection decisions, Bytep] requestHeaderBytes, Byteg] requestBodyBytes, FndApfAsyncInvoke asyncInvokeHandle)
at Ifs.Fnd.AccessProvider.FndConnection.CallGetResponse(String intface, String operation, FndRequestContext requestContext, FndManualDecisionCollection decisions, Bytee] requestHeaderBytes, Bytei] requestBodyBytes, FndApfAsyncInvoke asyncInvokeHandle)
at Ifs.Fnd.AccessProvider.FndConnection.AsyncGetResponse(String intface, String operation, FndRequestContext requestContext, FndManualDecisionCollection decisions, Bytet] requestHeaderBytes, Bytet] requestBodyBytes, FndApfAsyncInvoke asyncInvokeHandle)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Objecta] args, Object server, Objectt]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
Exception rethrown at m0]:
at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
at Ifs.Fnd.AccessProvider.FndConnection.GetResponseDelegate.EndInvoke(IAsyncResult result)
at Ifs.Fnd.AccessProvider.FndConnection.InvokeGetResponse(String intface, String operation, FndRequestContext requestContext, FndManualDecisionCollection decisions, Bytei] requestHeaderBytes, Byteg] requestBodyBytes, Boolean& abandoned, Boolean forcedSync)
at Ifs.Fnd.AccessProvider.FndConnection.InvokeInternal(Object requestBody, Object responseBody, String intface, String operation, FndRequestContext requestContext, FndManualDecisionCollection decisions, Boolean forcedSync)
--- End of inner exception stack trace ---
at Ifs.Fnd.AccessProvider.FndConnection.InvokeInternal(Object requestBody, Object responseBody, String intface, String operation, FndRequestContext requestContext, FndManualDecisionCollection decisions, Boolean forcedSync)
at Ifs.Fnd.AccessProvider.FndConnection.InvokeInternal(String intface, String operation, Object requestBody, Object responseBody, FndRequestContext requestContext, Boolean forcedSync)
at Ifs.Fnd.AccessProvider.Activity.FndActivityContext.Invoke(String intface, String operation, Object request, Object response)
at Ifs.Fnd.AccessProvider.Activity.FndActivityCommand.ExecuteNonQuery(Object body)
at Ifs.Fnd.Explorer.Extenders.InfoServices.ServerInterface.Ifs.Fnd.Explorer.Extenders.InfoServices.IPrintReport.ReportFormatRequest(Double resultKey, String formatRequest, String langCode, String& pdfFile, ByteE]& pdf)
at Ifs.Fnd.Explorer.Extenders.InfoServices.PrintDialog.ReportFormatRequest(PrintInstance instance, String& filename, Bytee]& pdfData)
at Ifs.Fnd.Explorer.Extenders.InfoServices.PrintDialog.PreviewReport(PrintInstance instance)
at Ifs.Fnd.Explorer.Extenders.InfoServices.PrintDialog.FormatPrintRequest(Boolean print)
at Ifs.Fnd.Explorer.Extenders.InfoServices.PrintDialog.cmdPreview_Execute(Object sender, FndCommandExecuteEventArgs e)
at Ifs.Fnd.Windows.Forms.FndCommand.OnExecute(Component component)
at Ifs.Fnd.Windows.Forms.FndCommandButton.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
--- End of inner exception stack trace ---