KM document send Exception

Hi, All
the steps I followed
1-create mail system
2-Email Transport Creation
when I select a document and send it I am getting exception
com.sapportals.wdf.WdfException
     at com.sap.ip.collaboration.gwui.api.GWUtils.formatMessageWDF(GWUtils.java:376)
     at com.sap.ip.collaboration.gwui.api.wdf.mail.SendTo.render(SendTo.java:529)
     at com.sapportals.wdf.layout.VerticalLayout.renderControls(VerticalLayout.java:43)
     at com.sapportals.wdf.stack.Pane.render(Pane.java:155)
     at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
     at com.sapportals.wdf.WdfCompositeController.internalRender(WdfCompositeController.java:708)
     at com.sapportals.wdf.WdfCompositeController.buildComposition(WdfCompositeController.java:676)
     at com.sap.ip.collaboration.core.api.ui.wdf.portal.WdfController.buildComposition(WdfController.java:90)
     at com.sapportals.htmlb.AbstractCompositeComponent.preRender(AbstractCompositeComponent.java:33)
     at com.sapportals.htmlb.Container.preRender(Container.java:120)
     at com.sapportals.htmlb.Container.preRender(Container.java:120)
     at com.sapportals.htmlb.Container.preRender(Container.java:120)
     at com.sapportals.portal.htmlb.PrtContext.render(PrtContext.java:406)
     at com.sapportals.htmlb.page.DynPage.doOutput(DynPage.java:238)
     at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:133)
     at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
     at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
     at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
     at com.sap.ip.collaboration.core.api.ui.wdf.portal.WdfPortalComponent.service(WdfPortalComponent.java:39)
     at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
     at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
     at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
     at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
     at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
     at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
     at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)
     at java.security.AccessController.doPrivileged(Native Method)
     at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
     at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
     at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
     at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
     at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
     at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
     at java.security.AccessController.doPrivileged(Native Method)
     at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
     at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
--- Nested WDF Exception -
java.lang.NumberFormatException: null
     at java.lang.Integer.parseInt(Integer.java:436)
     at java.lang.Integer.parseInt(Integer.java:518)
     at com.sap.ip.collaboration.gwui.api.wdf.mail.SendTo.checkCanSend(SendTo.java:1228)
     at com.sap.ip.collaboration.gwui.api.wdf.mail.SendTo.onSend(SendTo.java:1150)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:324)
     at com.sapportals.wdf.stack.Control.dispatchHtmlbEvent(Control.java:386)
     at com.sapportals.wdf.WdfEventDispatcher.dispatch(WdfEventDispatcher.java:176)
     at com.sapportals.wdf.WdfCompositeController.onWdfEvent(WdfCompositeController.java:550)
     at sun.reflect.GeneratedMethodAccessor674.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:324)
     at com.sapportals.htmlb.page.DynPage.doProcessCompositeEvent(DynPage.java:205)
     at com.sapportals.htmlb.page.DynPage.doProcessCurrentEvent(DynPage.java:143)
     at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:119)
     at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
     at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
     at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
     at com.sap.ip.collaboration.core.api.ui.wdf.portal.WdfPortalComponent.service(WdfPortalComponent.java:39)
     at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
     at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
     at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
     at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
     at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
     at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
     at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)
     at java.security.AccessController.doPrivileged(Native Method)
     at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
     at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
     at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
     at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
     at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
     at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
     at java.security.AccessController.doPrivileged(Native Method)
     at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
     at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
Regards
ABH

Hi
Please go to Km Config->Global Service(Advanced options)->Notificator Service.you will have to see if the channel is enabled there.. This should be your EMAIL channel.which should be configured priorly.
Try to configure email cannel and channel originator properly and then restart the SAPJ2EE engine.
Hope this will solve your problem.
Thanks
Puneet

Similar Messages

  • Adding "document sending" functionality

    Hi All,
    A customer told me that they want to add a new option in the UCM menu, something like "Document Sending". That is, it should allow the user to choose a group of documents and then send them using different options: FTP, links by email, etc. A sent documents history should be kept in the database. I thought this functionality should be implemented using a custom component, but I have little experience with custom component development and have a couple of questions:
    1. Should we use folios to implement that group of documents or it's not needed?
    2. I guess there's no problem for the component to store in the database any metadata from the sent documents, right?
    Thanks and Best Regards
    Edited by: rnoguera on 16-feb-2011 12:16

    i also played around with it... it is working fine on my local safari. but it does not on the iPad.
    The description is missing as well as the "Save" button is not working. does anyone discovered similiar issue?

  • SD billing documents send to Customer though EMAIL.

    Dear All,
    We want to send SD Billing documents to Customers through EMAIL. For that we have created new output type ZMAL and done the determination procedure for output type. Also we have maintained Customer Codes with Sales Org. in VV31. But when we raise the Invoice, output type should be come automatically (ZMAL) but it's won't come.
    Please guide us what Config/Setting is missing or provide us all steps to be follow, so we can check and make correction.
    Please help.
    Thanks
    Prashant

    Hi,
    In Configuration of Output type maintain in the Default values tab
    Dispatch time 4
    Transmission Medium 5
    Partner Function CP
    Communication strategy CS01
    Another option might be to maintain Contact Person(s) for the Customer and enable the form for that Partner.
    Maintain customer as the contact person and email address in General data of customer master.Also trigger the partner during the Billing.
    Also ensure that the output type will be triggered automatically once it is released to accounting.There is a routine in O/P determination procedure.
    Regards,

  • PDF Document Creation Exception in MSS

    Hello,
    We are implementing EP 7.0 SP11 along with ESS and MSS business package implementation.
    Version :     SAP_MSS  600 SP6
         BP_ERP5MSS  1.0 SP9 
         ADSSAP  7.00 SP9
    We have configured Adobe document services according to configuration document.
    But while using Personal Change Request, we are getting an Error.
    Screen shot of the error and Default Trace log file are attached with the message.
    When we are trying following URL, we are able to go ahead and get the version as output after login thhrough user ADSUSER.
    http://vporprd.voltas.com:50000/AdobeDocumentServices/Config
    But Personal Change Request iView is giving this exception and we are not able to move ahead.
    Please suggest some solution to this problem.
    Exception Chain
    com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: Failed to  UPDATEDATAINPDF
         at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:392)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterApplicationModification(ClientApplication.java:1132)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.afterApplicationModification(ClientComponent.java:895)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doRespond(WindowPhaseModel.java:573)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:152)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:779)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:714)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:69)
         at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:860)
         at com.sap.tc.webdynpro.portal.pb.impl.localwd.LocalApplicationProxy.sendDataAndProcessAction(LocalApplicationProxy.java:77)
         at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1303)
         at com.sap.portal.pb.PageBuilder.SendDataAndProcessAction(PageBuilder.java:325)
         at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:872)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:755)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java:717)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:136)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:759)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:712)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.tc.webdynpro.services.exceptions.PDFDocumentCreationException: ../../sap.com/msspcr/PcrApplication/wd_key29_1207734468606/Error+PDF.pdf?sap-wd-download=1&sap-wd-dl_behaviour=1&sap-wd-cltwndid=DefaultExternal1207734332748&sap-ext-sid=aP996vxKc%2Ft%2BqeG4JkNRRw%3D%3DhOZ0Ng2lx5xmmyA6mG94Vw%3D%3D%2Fpcd%3Aportal_content%2FVoltasMSS.VoltasMSS%2FVoltasMSS.VoltasMSS%2FVoltasMssRole.VoltasMssRole%2FVoltasMSSWorkSet.VoltasMSSWorkSet%2Fcom.sap.pct.erp.mss.pcrapplication_page%2Fsap.com%2Fmss%7Epcr%2FPcrApplication%2Fbase&sap-wd-norefresh=X&sap-ep-version=7.00.200702010738
         at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:379)
         ... 45 more
    Thanks in advance.
    Ganesh

    Hi,
    Can you test the connection settings from R/3. Run the program FP_PDF_TEST_00 in R/3, this should return ADS version information.
    Also test whether standard forms are working or not.
    Regards
    Srikanth KV

  • How to send exception in SXMB_MONI from proxy ?

    Hi @,
    I am working on a scenarion file to proxy where i need to throw exception in xi monitor which can be viewed thru sxmb_moni ,how to do this thru abap cod ein proxy I dont know .
    Please suggest any possible solution to do tht .
    thx in advance
    Regards

    They won't be returned to the sender, since it is an async scenario.
    But it will appear as an application error in the SXMB_MONI log.
    Make sure you define a fault message type and insert it in the inbound interface you use to create inbound proxy.
    Then in proxy generation, an exception will be automatically created.
    You have to create the code to explicitely thrown this exception by some defined criteria (for example, if the input data fails some validation).
    When the exception is thrown, the fault message is sent back to XI and the application error is logged in moni.
    Regards,
    Henrique.

  • Sending Exception Information

    I have recently ran through the ExceptionHandling sample project, and I am attempting to extend it slightly.
    I have created a Business Exception object called Test_Exception. Within this exception object, I have created three attributes: id, activity, message. The idea behind these properties is that I can set their values when an exception is thrown. I also created a notifyException method that I use to send this information to someone who is charged with investigating/handling these exceptions.
    I have a Process Exception flow that looks like this: Process Exceptions >> Notify Exception Handler >> Exception Review. The transition to, "Notify Exception Handler," references my Test_Exception object. The variable that will hold the exception is the default, "exceptionHolder."
    So I have some code in an Automatic activity that looks like this:
    try{
         Test.doSomething();
    }catch (Exception ex){
         Test_Exception te = new Test_Exception();
         te.instanceId = this.id.id;
         logMessage("TE Instance = " + te.instanceId + ".");
         te.activity = this.activity.name;
         logMessage("TE Activity = " + te.activity + ".");
         te.message = "Message = " + ex.message + "\rStackTrace = " + ex.stackTrace;
         logMessage("TE Message = " + te.message + ".");
         throw te;
    I can look at the logs and see that te's attributes are being populated.
    In, "Notify Exception Handler," there is code to send mail using the attributes of the Test_Exception object.
    Mail email = new Mail();
    email.recipient = "[email protected]";
    email.from = "[email protected]";
    email.subject = "An Exception Has Occured";
    email.message = "Instance, " + Test_Exception.instanceId + ", in Activity, " + Test_Exception.activity + ", has encountered a problem."
         "\r\rError Details: " + Test_Exception.message + "\r\rThank you.";
    email.send();
    Here, the attributes of the Business Exception are blank. Does anyone have any thoughts or opinions about this approach?

    You notification code should look more like the code below. Because exceptionHolder is of type any you must first cast it to a Test_Exception.
    Test_Exception te = ((Test_Exception)exceptionHolder);
    Mail email = new Mail();
    email.recipient = "[email protected]";
    email.from = "[email protected]";
    email.subject = "An Exception Has Occured";
    email.message = "Instance, " + te.instanceId + ", in Activity, " + te.activity + ", has encountered a problem."
    "\r\rError Details: " + te.message + "\r\rThank you.";
    email.send();

  • Sending exceptions back to the client : in return object or in a SOAPFault?

    Hi.
    A question for all the JAX-RPC/SOAP experts out there.
    What is your recommendation for the cleanest way to handle exceptions in a Java web service and send the info back to the client ?
    I am considering two options :
    1- Put the exception info in fields of the object returned by the web service method.
    2- Throw a SOAPFaultException and add any necessary info in the Detail attribute of the Exception using a SAAJ SOAPFactory. In this case, how does the client retrieve the SOAPFaultException attributes ?
    What is the best option ? Pros and cons ?
    Thanks in advance.
    Fabien

    It throws jvm bind error. Please show the full exception stack trace and the block of code it occurs in. The server shouldn't be trying to do a bind at this point.

  • DMS documents send

    Hello Experts,
    we are working in DMS Documents and my requirement is to send any type of documents (PDF, JPEG, XLS etc) to vendor using ME22N transaction.
    i have created one function module which retries document from DMS server and give hexadecimal values. i am sending this values in my Address id SO-NEW-DOCUMENT-ATT-SEND-API1 as an attachment but  i am getting the junk in the  attachment.
    could you please suggest how to send the hexadecimal string as attachment in correct format.
    please note that this is an requirement and i need to give this today to customer for testing.
    thanks
    sachin.

    Hello,
    Message : DOCMAS, CLFMAS for Classification
    Establish an ALE Interface and configure the above mentioned message and transfer the DIS by program RBDSEDOC.
    For further details refer to the book: ALE,EDI and IDocs by Arvind Nagpal
    or
    SAP help.
    Hope this helps you.
    Best Regards, Murugesh AS

  • BPM Syncron Sender Exception Processing , Mapping and Sending To Asyncronus

    Hi!
    Im forming out a scenario in BPM where I should get the content of the syncron sending's exception and after all I would like to map the exception message content and send asyncronously. How should I grab and process the exception message in the exception branch of the block where the syncron send step located?
    PI version 7.1
    Regards A. Héger
    Edited by: Andras Heger on Feb 2, 2010 8:51 PM

    The question is resolved...
    A Héger

  • ServerSocket not sending exception

    I have a multithreaded server with clients connected to it. There is a while loop on the client side constantly reading for inputs from the server and vice versa. Now if I close the client it causes a connection reset exception on the server and I can catch it, however if I close the server, there seems to be no exception throw to the client. Any ideas? Here's some sample code on the client..
    String response;
    try{
    socket = new Socket("127.0.0.1", 4587);
    socketInput = new BufferedReader(new InputStreamReader(socket.getInputStream()));
    socketOutput = new PrintStream(socket.getOutputStream());
    System.out.println("Connected to localhost on port 5000...");
         String send = "LOGIN"+account+"+"+pwd;
         socketOutput.println(send);
         }catch(Exception e){
              JOptionPane.showMessageDialog(null, "Could not connect to Server, try again", "Server Error", JOptionPane.ERROR_MESSAGE );
         while (true) { //start while
         try{
         response = socketInput.readLine();
         System.out.println(response);
         }catch(Exception e){
         System.out.println(e); //No exception thrown when server shuts down
         }

    Hi.,
    Have you closed your sockets or not!.. ..After try catch., using finally loop close your sockets. reply me what happend.
    try{   
         while( true ){
            tmp = input.readLine();
            System.out.println(tmp);
            tokens = new java.util.StringTokenizer(tmp, "/"); 
            String a=tokens.nextToken();
            String b=tokens.nextToken();
    } catch(Exception e){ System.out.println("Connection Exception "+e); }
    finally {
         try{  socket.close();  }
         catch( java.io.IOException e ) { }
    }bye

  • Mail sending exception

    Hi All,
    I am developing a Contact Us form. The application is giving me the foll. exception
    javax.mail.SendFailedException: Sending failed;  nested exception is: javax.mail.MessagingException: Unknown SMTP host: mail.exchange.com;  nested exception is: java.net.UnknownHostException: mail.exchange.com
    My code is as follows:
         Properties properties = new Properties();
         String SMTPIPAddress = "smtpipaddress";     
         String SMTPAddress = "smtpaddress";     
         String mailId = "[email protected]";
         Session session;
         Provider p;
         properties = System.getProperties();
         properties.put("SMTPAddress ", "SMTPIPAddress");
         session = Session.getDefaultInstance(properties, null);
         Message message = new MimeMessage(session);
         try{
                   message.setFrom(new InternetAddress(mailId));
                   message.addRecipient(Message.RecipientType.TO,
                   new InternetAddress(mailId));
                   message.setSubject("Conference");
                   message.setText("Hello");
                   Transport.send(message);
         }catch (AddressException ade) {
              wdComponentAPI.getMessageManager().raiseException(ade.toString(),false);
         }catch(MessagingException msge){
              wdComponentAPI.getMessageManager().raiseException("MessagingException "+msge.toString(),true);     
         }catch(Exception e){
              wdComponentAPI.getMessageManager().raiseException("Exception "+e.toString(),true);
    Please let me know what is wrong.
    Regards
    Nikhil Bansal

    Hi Abhijeet,
    Thanks for the reply.
    I have given the IP address of SMTP address in Java Mail Client in Visual Admin.
    However, I am getting the foll. exception
    MessagingException javax.mail.SendFailedException: Sending failed;  nested exception is: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;  nested exception is: java.net.ConnectException: Connection refused: connect
    Has it got something to do with the port being opened for SMTP host.
    Please let me know.
    Regards
    Nikhil

  • Xml document parse Exception

    Hi,
    when i am parsing the document having encoding scheme is US-ASCII
    doc = docBuilder.parse(url);     
    it throws Exception :
    com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Byte "146" is not a member of the (7-bit) ASCII character set.
    how can i resolve it ?

    Read url and convert the String to bytes using UTF-8, which is the default character encoding for XML.

  • Block a sender except for one reepient

    Hi again,
    Is there a way to block one sender from sending emails to a hosted domain , except for one recepient. Say mydom.com email hosting id done on our server, and a sender [email protected] is trying to send emails to users in the @mydom.com , we need to block those emails except emails sent to [email protected]
    Is there a way to do this?

    You're going to have to start out by rquiring all your users to authenticate. Then you're going to have to build a sieve script to do your filtering.
    That's if "one sender" is IN your domain. If he's not, then you're talking about some kind of "blacklist". If that's the case, you might want to look at SpamAssassin, "by user", and include all users, except for your admin account.

  • How copy article from Internet,paste into document,send as email attachment

    A friend has asked me to do some research for her. She has limited online hours. She wants me to copy articles from Internet, paste them into a document, then send that document AS AN ATTACHMENT to an email. I know how to copy the article, BUT I DO NOT KNOW HOW TO PASTE IT INTO A DOCUMENT, NOR DO I KNOW HOW TO SEND THAT DOCUMENT AS AN ATTACHMENT TO EMAIL.
    Normally when I copy and paste, it goes directly into the email. The goal of this method I have been asked to use, is so that the recipient can download the document and read it off line. Thanks for any advice on this.

    Others give good advice, here - but, to answer your question...
    First, you'll need to use a text editor to create the document that will contain the pasted information, and which will become the attachment to your email. TextEdit, which probably came with your Mac, will work. Whatever text editor or word processor you use, be sure to Save the document in a format she can open. Rich text is probably the safest choice, because almost any word processor can open that format.
    So, start TextEdit, and when the new document appears, select Save from the File menu. When the Save window pops up, give the new document a name, and select your Desktop for the location. Down at the bottom of the Save window, for File Format, choose Rich Text Format (RTF). If she is not on a Mac, be sure the Hide Extension box is NOT checked. Click the Save button.
    Now you can start copying and pasting from websites. The process will go like this:
    Select some text, then choose Copy from your browser's Edit menu. Next, switch to TextEdit, put your cursor where you want the text to appear, and select Paste from TextEdit's Edit menu. (If you are going to do a lot of this, it will pay to learn the keyboard shortcuts.)
    Selecting text on web pages can be somewhat frustrating. For really long selections, click once to put your cursor where you want to start copying, scroll down to where you want to end, and - while holding down the Shift key - click again; everything between the clicks will be selected. Try to select text, only. If you paste any graphics into your RTF document, TextEdit will prompt you to re-Save the document in RTFD format. If she really needs graphics, you can do that, but before you do, be sure she can open documents in that format. Most tables on web pages are impossible to copy and paste without the columns and rows going all out of alignment, so screen shots - which are images - are the best bet for tables. (If she can't open a RTFD document, you can convert the FINISHED file to a non-editable, but easily viewable, PDF document by choosing that option from the Print window. Be warned that if you create a long document with many graphics, and then convert it to PDF, the file size can get big - possibly preventing some mail servers from delivering it.)
    When you start pasting into TextEdit, you are going to get all sizes of text in various colors and fonts. If you paste text from a web-page that has white text on a black background, you will not see the white letters on your white page (tip: select the white area). After the first text is pasted into TextEdit, go to the Format menu and select Font>Show Fonts and a new tool window will appear. Select the text you just pasted, and format it to a readable size and font, then de-select the text. From now on, whenever you want to paste: from TextEdit's Edit menu, select Paste and Match Style.
    When you are ready to send the file, Save and Close your TextEdit document. From Mail's File menu, select Attach File. Navigate to your Desktop, select your document, and, if she is using Windows, check the box to Send Windows Friendly Attachments. Click Choose File, to add the attachment to your email.

  • Help needed to view documents send in .pdf portfolio - only gray screen visible

    Various clients are complaining that they are unable to view/retrieve documents I have forwarded in .pdf portfolio format. All they see is a blank - grey - screen.   Any help to resolve this would be appreciated.

    Make sure they are opening the files in Adobe Reader or Acrobat only, or in Internet Explorer using one of those. Make sure you understand the various ways they might open the file without using Adobe Reader or Acrobat, such as in FireFox, Chrome or Safari, or Preview on a Mac. Make sure they have a sufficiently up to date copy of Reader/Acrobat too.

Maybe you are looking for