CORBA Exception whiel recieving document from rightsmanagement server

Hello again,
i have a problem with livecycle es rightsmanagement. after a policy was applied to a document i try to save the secured document via
>Document.copyToFile(aFile)
While saving tis exception is thrown:
>26.01.2009 08:26:01 com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl readFully
WARNUNG: "IOP00410215: (COMM_FAILURE) Read of full message failed : bytes requested = 3.331.736 bytes read = 803.128 max wait time = 3.000 total time spent waiting = 3.190"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 215 completed: No
at com.sun.corba.se.impl.logging.ORBUtilSystemException.transportReadTimeoutExceeded(ORBUtil SystemException.java:2572)
at com.sun.corba.se.impl.logging.ORBUtilSystemException.transportReadTimeoutExceeded(ORBUtil SystemException.java:2598)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.readFully(SocketOrChannelCo nnectionImpl.java:628)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.read(SocketOrChannelConnect ionImpl.java:559)
at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.readGIOPBody(MessageBase.java:4 13)
at com.sun.corba.se.impl.transport.CorbaContactInfoBase.finishCreatingMessageMediator(CorbaC ontactInfoBase.java:183)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.finishReadingBits(SocketOrC hannelConnectionImpl.java:380)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConne ctionImpl.java:1184)
at com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.j ava:417)
26.01.2009 08:26:01 com.adobe.idp.DocumentManagerClient requestRemotePassivation
SCHWERWIEGEND: DOCS001: Unexpected exception. See the stack trace for details.
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 208 completed: Maybe
at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectionAbort(ORBUtilSystemExcepti on.java:2372)
at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectionAbort(ORBUtilSystemExcepti on.java:2390)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.finishReadingBits(SocketOrC hannelConnectionImpl.java:421)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConne ctionImpl.java:1184)
at com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.j ava:417)
Caused by: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 215 completed: No
at com.sun.corba.se.impl.logging.ORBUtilSystemException.transportReadTimeoutExceeded(ORBUtil SystemException.java:2572)
at com.sun.corba.se.impl.logging.ORBUtilSystemException.transportReadTimeoutExceeded(ORBUtil SystemException.java:2598)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.readFully(SocketOrChannelCo nnectionImpl.java:628)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.read(SocketOrChannelConnect ionImpl.java:559)
at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.readGIOPBody(MessageBase.java:4 13)
at com.sun.corba.se.impl.transport.CorbaContactInfoBase.finishCreatingMessageMediator(CorbaC ontactInfoBase.java:183)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.finishReadingBits(SocketOrC hannelConnectionImpl.java:380)
... 2 more
Does anyone know this problem?
Here is the code to apply the policy:
>ServiceClientFactory factory = ServiceClientFactory.createInstance(connectionProps);
>RightsManagementClient rightsClient = new RightsManagementClient(factory);
FileInputStream is = new FileInputStream("C:\\file.pdf");
Document inPDF = new Document(is);
DocumentManager documentManager = rightsClient.getDocumentManager();
Document protectPDF = documentManager.applyPolicy(inPDF, "doc", "Global GL Policy Set", "Policy",
"Domain", "user");
protectPDF.passivate();
File myFile = new File("C:\\secured.pdf");

As I expected, it was a client/server classpath order issue...

Similar Messages

  • How to mimic Deski document from BOXI server to local machine, pass parameter, execute and save in a mutiple report format then store in a network drive.

    Post Author: usaitconsultant
    CA Forum: JAVA
    To Guru's, Would you know if there's a way to mimic Deski document from BOXI server to local machine, pass parameter, execute and save in a mutiple report format then store in a local drive or network drive? Most examples and tutorials in BO XI R2 I've seen are scheduling while drilling report is for web intelligence only.  Please let me know your ideas. I would really appreciate your help. Thanks. 

    Give Chronosync a go - have been using for over a year and it works great; if you like Syncback you'll like this app.

  • Retrieving documents from cache server using Bapi_Document_Checkoutviewx

    Hello,
    how can I retrieve the documents from cache server instead from content server, which are stored in SAP R/3 system.
    I use the bapi "BAPI_DOCUMENT_CHECKOUTVIEWX" in a Rfc-Client Programm to retrieve the documents. This BAPI retrieves the documents allways from content server and don't use the existent cache server.
    Thanks for any help!
    Birol

    Hi Birol,
    Can you please tell me is the content you have used in that "BAPI_DOCUMENT_CHECKOUTVIEWX programme"????
    Regards
    Harshavardhan.G

  • Pulling Documents from Content Server

    I'm trying to write a .NET webservice that will retrieve documents from the SAP Content Server.
    I understand that I need to build a URL to the content server to retrieve each document, and that part of this URL is a security key 'secKey'.
    I've such documents as:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/f5/9561c8f3b111d1955b0000e82deb58/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9b/e8c192eaf811d195580000e82deb58/content.htm
    And everything seems fine, except for how to create the 'secKey'. I can hash the URL parameters as required, but I don't know how to sign it - how do I obtain the sender's private key in order to do this?
    Any help with this would be greatly appreciated!

    Sorry, I realise that this is a Java forum, and I specified that I'm writing in .NET.
    The reason I'm posting here is that if I can't do it in .NET , I'm happy to use Java instead.

  • Geting exception whiel sending mail from OIM

    Hi,
    Currently we are using Exchange 2010 and our OIM version is 9.1.0. We have written custom code for Exchange provisioning. We have migrated the admin account, through which OIM sends out mail, to Exchange 2010. We are trying to create new OIM user in IDM. We have a custom code which sends out mail to supervisor when a new contractor is created in IDM. Whiel sending mail from that admin account to supervsior we get this below error:
    ERROR,08 Nov 2012 00:03:28,026,[XELLERATE.REQUESTS],Class/Method: tcEmailNotificationUtil/sendEmail encounter some problems: Sending failed;
    nested exception is:
    class javax.mail.MessagingException: xxx x.x.x Client was not authenticated
    javax.mail.SendFailedException: Sending failed;
    nested exception is:
    class javax.mail.MessagingException: xxx x.x.x Client was not authenticated
    at javax.mail.Transport.send0(Transport.java:218)
    at javax.mail.Transport.send(Transport.java:80)
    at com.thortech.xl.dataobj.util.tcEmailNotificationUtil.sendEmail(Unknown Source)
    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:585)
    Please help us on this. Is firewall a issue as exchange server is installed on some other remote server?
    Thanks.
    Edited by: user11957197 on 8 Nov, 2012 1:15 AM

    I resolved this issue by using tcEmailNotificationUtil instead of other API
    In the Adapter's Java Code, I read values from "Email Server" IT Resource and my custom Email Template definition...by using tcITResourceOperationsIntf and tcEmailDefinitionOperationsIntf)
    Then by using OOTB class found in mail.jar and xlDataObjects.jar, I sent the mail..
    By using OOTB class found in mail.jar and xlDataObjects.jar, I sent the mail..
    import com.thortech.xl.dataobj.util.tcEmailNotificationUtil;
    tcEmailNotificationUtil emailNotificationUtil = new tcEmailNotificationUtil(dataProvider);
    emailNotificationUtil.constructEmail(emailTemplateName);
    emailNotificationUtil.sendEmail(toEmailAddress);

  • DMS document from Cache server!

    We are able to retrieve DMS document(PDF) from Content server but not from Cache Server using URL generated from
    CALL FUNCTION 'SCMS_URL_GENERATE'.I even tried Pushing the Doc to cache using DMS_KPRO_FILL_CACHE, Doc exists in Cache when i check operation=statGet2 but my URL does not give me the document
    *-Cache server
    SELECT SINGLE * INTO S_SCMSCACHE
    FROM SCMSCACHE
    WHERE HOST = 'TSTCS2'.
    CALL FUNCTION 'SCMS_URL_GENERATE'
    EXPORTING
    COMMAND = 'get'
    CONTREP = CREP_ID
    DOCID = P_DMS_DOC2LOIO_LO_OBJID
    COMPID = 'data'
    ACCESSMODE = 'r'
    SIGNATURE = 'X'
    SECURITY = 'F'
    *USE_LOCATION = 'A'
    *LOCATION = 'TSTCS2'
    *CACHE_TO_USE = S_SCMSCACHE
    IMPORTING
    ABSOLUTE_URI = URI_STRING
    HTTP_URI = HTTP_URI
    HTTPS_URI = HTTPS_URI
    CACHE = S_SCMSCACHE_O
    ENDIF.
    ELSE."Content Server
    CALL FUNCTION 'SCMS_URL_GENERATE'
    EXPORTING
    COMMAND = 'docGet'
    CONTREP = CREP_ID "'Z_DLS_DOC_DU1'
    DOCID = P_DMS_DOC2LOIO_LO_OBJID
    ACCESSMODE = 'r'
    SECURITY = 'F'
    ENDIF.
    Edited by: Madhu Gudur on Oct 24, 2009 3:59 AM

    I'm not expert in this area, but I don't understand why you try to read directly the cache as by definition, a cache is managed by the application itself. Why don't you read the document as usually, and let the system read the cache by itself?

  • How to open word document from application server?

    hello ,
    I want to open a word document that is placed on the application server.
    the function module 'ws_execute' works fine for displaying documents placed on ur local file system. But if i want to open from application server, what needs to b done?
    i m referring to the following demo program 'SAPRDEMOOFFICEINTEGRATION'
    is this the correct reference or there is some other way to do the same?
    kindly help.
    Regards,
    Roshani

    Hi Roshani,
              The solution is like this.
    1> Execute - this is the solution to your program. The file is generated and put in the Application Server for the data to be sent by some means to the intended Place.
    2> To Display/View - This is for the person (who runs the program) to view if the output generated is correct or not.
             So to accomplish this use the same internal table for both Open Dataset and Gui download.
    Open dataset puts data onto the Application server and Gui_download puts the data onto the Desktop or Presentation server for the user to see the data thats fetched.
    So use them as directed to achieve the desired output.
    Reward Points.
    Thanks,
    Tej..

  • Display Document from BI Server in Crystal Report

    Hi all,
    I accessed BI Query from BI server in Crystal Report. We can upload any comments or documents to the query. I want to display the document and comments in Crystal Report from the BI server.
    Is it possibel? If possible how can i do this?
    Thanks & Regards,
    Hemalatha J

    As I see there was no response on these issue although it is marked as answered. I'll give a hint for the ones that might want to try this.
    One could extract the metadata and documents from the tables names to be found in the tables SDOKLOTAB and SDOKPHTAB (as an example, for InfoObject documentation we have the tables BDSLOIO8, BDSLOIOT8, BDSLOPR8, BDSPHIO8 and BDSPHF8) or one could export the metadata from the BI repository (though, this is a manual approach).
    Edited by: marius.grunca on Apr 27, 2009 5:58 PM

  • Checkin PDF document from Appliction server onto DMS

    Hi All,
    We have pdf documents on a file server which we need to attach/checkin to a document info record using CV02N transaction.The file server will be mounted onto SAP's application server. i'm using the bapi BAPI_DOCUMENT_CHECKIN2 to achive this functionality programatically. I'm getting the following error when I try to pick a file from application server. 'Error while checking in and storing: /tmp/test.pdf'. However, when I pick the file from desktop(through the program itself), the document is getting successfully attached.
    I would greatly appreciate if someone could help me in correcting this issue.
    regards,
    Arun

    Hi,
    I resolved the issue my self. I included an additional parameter     PF_FTP_DEST             = 'SAPFTPA' in the function module BAPI_DOCUMENT_CHECKIN2 which seems to have resolved the issue.
    regards,
    Arun

  • How to get documents from content server on web pages

    Hello,
    I want to get the documents from the ECM(UCM server) of same document type and also want their metadata fields to displayed on adf application.
    How can i fetch these documents?

    Hi,
    You mean Data transfer between two components..
    To pass the value from one component to other component, you can use used component scenario.
    For example let use assume we have two comp ..
    Comp A,
    Comp B.
    now we need to pass the value from Comp A to Comp B.
    Then declare the Comp A as used component in Comp B.
    Now then you can create a node in the comp A component controller and check the interface check box there then the
    node and the attribute will be present in the interface controller also .
    and this interface controller context you can access in the component and map it to view there and display it.
    Webdynpro Application Integration..
    http://wiki.sdn.sap.com/wiki/display/WDABAP/WebdynproApplicationsIntegration
    cheers,
    Kris.

  • Re: Sending SMS and Recieving SMS from chat server

    Hi all, I would like to know how can i send sms from J2ME wireless toolkit to a macromedia flash socket server (electroserver) and recieved a feedback from the server that the message is successfully recieved.
    as example of what i want was:-
    1. user send a sms using j2me wireless toolkit to chat in the flash client chat (IRC)
    2. if is a new user, user will need to register their nickname on the server and the server will acknowledge them wether their nickname is already in used or not. so the server will reply the SMS.
    Is there any way to do it using J2ME wireless Toolkit or the server may not support such function. please help me and give some advice on how to make this work. Help from all is much appreciated.
    Thanks.

    You may try this tip for sending SMS from your computer:
    Send/Recieve SMS from computer
    http://www.java-tips.org/content/view/96/39/

  • Need FM to read XML document from appliacation server.

    Hi all .
       I need a FM which can read the XML data from Apllication server into internal table.Example code will be very helpful.
    Kind Regards,
    sami.

    Check This code :
    ===============
    Local data delaration.
      DATA: v_string    TYPE  string.
    Opening the file from the given location.
      OPEN DATASET p_pathup FOR INPUT IN TEXT MODE ENCODING DEFAULT.
      IF sy-subrc <> 0.
        MESSAGE i000 WITH text-018.
        LEAVE LIST-PROCESSING.
      ENDIF.
    File opened, Reading the contents and transfering to internal table.
      DO.
        READ DATASET p_pathup INTO v_string.
        IF sy-subrc = 0.
          SPLIT v_string AT c_sep
                         INTO w_upload-lifnr
                              w_upload-loevm_ven
                              w_upload-banksrec
                              w_upload-bankkrec
                              w_upload-banknrec
                              w_upload-loevm_rec
                              w_upload-waers
                              w_upload-bankssnd
                              w_upload-bankksnd
                              w_upload-loevm_snd
                              w_upload-chainno
                              w_upload-chainbankt
                              w_upload-chainbanks
                              w_upload-chainbankk
                              w_upload-chainbankn
                              w_upload-loevm_cor.
        ELSE.
          EXIT.
        ENDIF.
        APPEND w_upload TO i_upload.
        CLEAR: w_upload,
               v_string.
      ENDDO.
    Closing the file.
      CLOSE DATASET p_pathup.
    Let me know if you need any help on understanding the logic.
    Regards

  • Print html document from presentation server with no intervention of user

    Hello,
    I have been able to create HTML output for my smartform.
    They are saved on my machine.
    I need to print these HTML outputs as a part of process without intervention of the user.
    Is it possible?
    I have tried method 'EXECWB' of 'cl_gui_html_viewer', but that gets fired only on some action and shows the Print dialog for the selection of printer.
    It would be great if anyone can help me with us.
    Thanks
    Mona

    PDL -- thank you for your reply.
    What you gave me did spawn the print dialog allowing me to select a printer. However, when the document printed, the number of pages in the document was correct but the pages were empty except for the page x of y along the top and the name of the document along the bottom. Have you seen this before and do you know how to correct? Also, how do you suppress the info across the top and bottom of the report from printing?
    Thanks

  • Timeout when retrieving document from Content Server

    Dear experts,
    after the migration of an R/3 Enterprise system with a file-based Content Server (CS without database) we experience significant delays when a document shall be retrieved from the Content Server and displayed.
    The repository, from which documents are retrieved, has the following properties:
    Document Area = ArchiveLink
    Storage Type = HTTP content server
    Obviously the delay is caused by time-outs when R/3 tries to access the content sever.
    The RFC trace recorded during the document retrieval contains the following entries:
    Trace file opened at 20100825 104048 CEST SAP-REL 640,0,304 RFC-VER 3
    Trace file opened at 20100825 104115 CEST SAP-REL 640,0,304 RFC-VER 3
    End of trace *****
    ======> CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=456
    Timeout beim Verbindungsaufbau (Partner vorhanden ?)
    ABAP Programm: SAPLSCMS_CLTFC (Transaction: )
    Called function module: RFC_PING
    User: TSI0403 (Client: 007)
    Destination: SAPCMS (handle: 4, , {4C74C1A6-BD3B-3B59-E100-00001A5F0A18})
    SERVER> RFC Server Session (handle: 1, 41571399, {4C74D031-BD2C-3B58-E100-00001A5F0A18})
    SERVER> Caller host: cimpd38_MPD_38
    SERVER> Caller transaction code: MIR4 (Caller Program: CL_GOS_TOOLBOX_VIEW===========CP)
    SERVER> Called function module: GOS_EXECUTE_SERVICE
    Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 3268
    CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=456
    Timeout beim Verbindungsaufbau (Partner vorhanden ?)
    Error RFCIO_ERROR_MESSAGE in abrfcio.c : 1660
    ======> CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=456
    Timeout beim Verbindungsaufbau (Partner vorhanden ?)
    ABAP Programm: SAPLSCMS_FE_RFC (Transaction: )
    Called function module: RFC_PING
    User: TSI0403 (Client: 007)
    Destination: SAPHTTP (handle: 6, , {4C74C1B4-BD3B-3B59-E100-00001A5F0A18})
    SERVER> RFC Server Session (handle: 1, 41571399, {4C74D031-BD2C-3B58-E100-00001A5F0A18})
    SERVER> Caller host: cimpd38_MPD_38
    SERVER> Caller transaction code: MIR4 (Caller Program: CL_GOS_TOOLBOX_VIEW===========CP)
    SERVER> Called function module: GOS_EXECUTE_SERVICE
    Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 3268
    CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=456
    Timeout beim Verbindungsaufbau (Partner vorhanden ?)
    Error RFCIO_ERROR_MESSAGE in abrfcio.c : 1660
    I wonder why R/3 first attempts to contact the Content Server via the SAPCMS RFC destination rather than using HTTP (SAPHTTP)? - The connection tests for both RFC connections are successful.
    Is there a way to instruct R/3 to go via the SAPHTTP RFC destination as the first choice and NOT via SAPCMS when documents shall be retrieved and displayed?
    Thank you,
    Rainer Walter
    Edited by: Rainer Walter on Sep 3, 2010 3:07 PM

    Hi Ravindra,
    thank you for looking into this problem. The Content Server is not based on SAP DB/MaxDB. The repositories are represented as plain directory structures in a file system.
    My issue is that R/3 is not using the SAPHTTP RFC connection as first choice although the repository is flagged as "HTTP Content Server" but uses another RFC destination instead. When this attempt is timed out, R/3 eventually picks the appropriate RFC destination. So it takes a considerable amount of time until a requested document is finally retrieved from the repository in the Content Server.
    I am confused because the system where I experience this behaviour has been built from a system copy of a production system, and the Content Server for this new system has been built from scratch. In the original production system, no timeout is found when users are retrieving documents, and obviously the original R/3 system is using SAPHTTP right away. The original production system and the new system built from a system copy are accessing different Content Servers.
    I am looking for a way to instruct the new R/3 system to immediately use the SAPHTTP connection when talking to the Content Server, and I would be grateful for a hint where I can configure this to get rid of these timeouts.
    Best regards,
    Rainer

  • Error when viewing documents from content server

    hi all,
    I have a question.
    we have installed an SAP Content Server on Windows 2003 server, and have connected it to our SAP ECC 5.00 ERP.  The purpose is so that documents that are attached to a transaction (through Generic Objects Services - Create Attachment), get stored onto the content server rather than the SAP database.  We have done all the necessary configuration in oac0, oact, and SKPR08.  We are able to attach a document to the transaction, and it gets stored onto the content server.  Our issue is when viewing the attachment. 
    This is the error we are getting as soon as we try to view the attachment:
    "Windows cannot find c:\documents and settings\<username>\SAPWorkDir\<filename>.  Make sure you typed the name correctly, and then try again.  To search for a file, click the Start button, and then click Search."
    After pressing OK to the message, the system then gives this error:
    "File could not be exported
    Message no. SO315
    Diagnosis
    You have selected either the Export function or a PC document to be exported from the system. The file could not be exported to the
    PC. Possible reasons:
    1. The file is already open and is being used by an application.
    2. The directory to which the file is to be exported is write-protected.
    Procedure
    In the first case, close the application.
    In the second case, remove the write-protection attribute from the directory or enter another directory."
    Why is the system trying to open the file from the user's C:\ drive?
    Does anyone have a solution to this error?
    Cheers,

    Hi Aleem,
    Refer to below KB & note, this should help you.
    1849203 - Error message Database error for <GET DATA FROM KPRO> (SO013) and/or File could not be exported (SO315) when opening a document in Attachment list
    764972 - Errors when creating workflow attachment
    Regards,
    Ravi

Maybe you are looking for

  • Mini displayPort to HDMi Adapter for Macbook

    ALCON, I need your assistance i recently purchased a mini displayPort to HDMI adapter for my Macbook to view my movies from ITUNES on my HDTV. The problem im having is there is no picture or sound on the HDTV once i hooked it up to my tv. My question

  • (RFC vs files), where Sender SAP and receiver multiple system

    Publish and Subscribe using  BPM or Without BPM (RFC vs files), where Sender SAP and receivers multiple system,. This is my 1st BPM scenario in sandbox system For this scenario I Created 2 Data types 2 MT, Service interface: Request interface Mode:As

  • Mail in MAC 10.8 does not includes notes

    when upgrading from 10.5 to 10.8, i lost my sync capabilities for my BB Memopad app. i was using Mail, which had Notes built in to it, but with 10.8, i cannot get them to sync as Notes is its own app now. any tips on how to sync BB Memopad on a Mac w

  • VISTA - Acrobat 8 Error - Windows Installer

    Operating System: Vista Ultimate Product: Acrobat 8 Professional We have managed to install Acrobat 8 Professional and it works perfectly with this one exception. Every time we start the computer, or click on a hard drive or such like we encounter a

  • InDesign CC missing fonts

    I have a laptop that I use when I have to work away from home.  My laptop is a macbook pro that I recently purchased (early October 2013).  Both my iMac and macbook have gone through the recent updates to Mavericks and my iMac is working fine with Cr