Unable to checkin a document using 'CHECKIN_UNIVERSAL" service through java

Hi All,
I am trying to checkin a document through java code and following is my code part for the same( UCM 11g)
But whenever i run this code part, it throws the following exception
intradoc.common.ServiceException:csUnableToCheckin,<null>!csUnabletoExecMethod,populateMissingDocumentValues
Can anyone help me with this?
Code part
private void checkinDoc()
File f=new File("D:/testfolder/BPEL.pdf");
System.out.println(" absolute path :"+f.getAbsolutePath());
String filePath = f.getAbsolutePath().replace("\\", "/");
checkedOutDataBinder.putLocal("IdcService", "CHECKIN_UNIVERSAL");
checkedOutDataBinder.putLocal("dDocTitle","test");
checkedOutDataBinder.putLocal("dDocAuthor", "weblogic");
checkedOutDataBinder.putLocal("dDocType","Document");
checkedOutDataBinder.putLocal("dSecurityGroup","public");
checkedOutDataBinder.putLocal("doFileCopy", "1");
checkedOutDataBinder.putLocal("primaryFile", filePath);
checkedOutDataBinder.putLocal("xCollectionID", "425180507509000004");
checkedOutDataBinder = executeService(checkedOutDataBinder,
"weblogic");
private DataBinder executeService(final DataBinder binder,
final String userName) throws DataException, ServiceException
// obtain a connection to the database
Workspace workspace = getSystemWorkspace();
// check for an IdcService value
String cmd = binder.getLocal("IdcService");
if (cmd == null)
throw new DataException("!csIdcServiceMissing");
// obtain the service definition
ServiceData serviceData = ServiceManager.getFullService(cmd);
if (serviceData == null)
throw new DataException(LocaleUtils.encodeMessage(
"!csNoServiceDefined", null, cmd));
// create the service object for this service
Service service = ServiceManager.createService(serviceData.m_classID,
workspace, null, binder, serviceData);
// obtain the full user data for this user
UserData fullUserData = getFullUserData(userName, service, workspace);
service.setUserData(fullUserData);
// binder.m_environment.put(REMOTE_USER, userName);
ServiceException error = null;
try
// init the service to not send HTML back
service.setSendFlags(true, true);
// create all the ServiceHandlers and implementors
service.initDelegatedObjects();
// do a security check
service.globalSecurityCheck();
// prepare for the service
service.preActions();
// execute the service
service.doActions();
// do any cleanup
service.postActions();
// store any new personalization data
// service.updateSubjectInformation(true);
//service.updateTopicInformation(binder);
catch (ServiceException e)
error = e;
e.printStackTrace();
finally
// Remove all the temp files.
service.cleanUp(true);
workspace.releaseConnection();
// handle any error
if (error != null)
// throw new ServiceException(error.m_errorCode, error
// .getMessage());
return binder;
}

I have been running into the same exception, albeit with UCM 10g:
Content item 'xxx' was not successfully checked in. Unable to execute service method 'populateMissingDocumentValues'. (System Error: Runtime error: java.lang.NullPointerException
at collections.CollectionMetaHandler.validateMetaDataDates(CollectionMetaHandler.java:771)
at collections.CollectionMetaHandler.fillInUndefinedMeta(CollectionMetaHandler.java:806)
at collections.CollectionUserHandler.setUndefinedMetaData(CollectionUserHandler.java:1353)
at collections.CollectionUserHandler.populateMissingDocumentValues(CollectionUserHandler.java:1275)
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)
at intradoc.common.IdcMethodHolder.invokeMethod(ClassHelperUtils.java:617)
at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:293)
at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:79)
at intradoc.server.Service.doCodeEx(Service.java:490)
at intradoc.server.Service.doCode(Service.java:472)
at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1360)
at intradoc.server.Service.doAction(Service.java:452)
at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1201)
at intradoc.server.Service.doActions(Service.java:447)
it seems to have something to do with the xCollectionID.
If I don't set this, it works fine (checking in and out, checking in new revision). If I set it I can check in a new item using CHECKIN_NEW but I am unable to use CHECKIN_UNIVERSAL to check in a new revision.
Any pointers would be appreciated.
Edited by: Jaap on 6-jun-2011 2:41
Edited by: Jaap on 6-jun-2011 3:09

Similar Messages

  • Unable to check-in file using CHECKIN_UNIVERSAL in UCM11g through SOA

    Hello all,
    I am unable to checkin/uploading files using CHECKIN_UNIVERSAL in UCM 11g through SOA. I am getting below error:
    error">Error: java.lang.NullPointerException
    Below are invoke operation that I am using:
    <messages>
    <Invoke_Generic_Soap_Port_Ref_GenericSoapOperation_InputVariable>
    <part  name="GenericRequest">
    <GenericRequest  webKey="cs">
    <tns:Service  IdcService="CHECKIN_UNIVERSAL">
    <tns:Document>
    <tns:File  name="primaryFile"  href="/u01/app/oracle/ftp/test/Test_UCM_Upload.txt"/> 
    </tns:Document>
    </tns:Service>
    </GenericRequest>
    </part>
    </Invoke_Generic_Soap_Port_Ref_GenericSoapOperation_InputVariable>
    <Invoke_Generic_Soap_Port_Ref_GenericSoapOperation_OutputVariable>
    <part  name="GenericResponse">
    <ns2:GenericResponse  webKey="cs">
    <ns2:Service  IdcService="CHECKIN_UNIVERSAL">
    <ns2:Document>
    <ns2:Field  name="error">Error: java.lang.NullPointerException</ns2:Field> 
    </ns2:Document>
    </ns2:Service>
    </ns2:GenericResponse>
    </part>
    </Invoke_Generic_Soap_Port_Ref_GenericSoapOperation_OutputVariable>
    </messages>
    Can anyone help me out please.
    -Ayan

    Hi TDN,  
    Thanks for your post.
    You’re using TFS 2013 Update 4 and VS 2013 Update 4?
    According the error message, it seems TFS Server think this file is not changed.
    After step 8, if there’s the edited icon shows on your testfile1.txt in Source Control Explorer?
    Please click Refresh button in your Source Control Explorer, then re-edit your testfile1.txt file and try check-in again.
    And try to reproduce this scenario on your another client(VS 2013 installed), check if this issue can be reproduce on another client or not.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do I edit a scanned document using Adobe services?

    how do I edit a scanned document using Adobe services?

    To edit a document you will need Acrobat Pro.

  • How to Upload documents using Gateway Service in SAP UI5?

    Hi Team,
    How to upload documents using Gateway Service in UI5 app.
    This is Attachment Functionality.using Gateway Service in Controller.JS/View.JS.
    Thanks in Advance.
    Regards,
    Satya

    Hi,
    I suggest you use the search function on scn/google...
    Anyways, here are some usefull links:
    How To Upload and Download Files Using SAP NW Gateway SP06
    Uploading files to SAP using HTML5 /AJAX/Gateway media links with real-time progress bar
    Kind regards,
    RW

  • Want to access RESTful Services through Java Program

    We are trying to access RESTful Services exposed by Oracle database cloud through our Java code, with authentication enabled for a particular user.
    Till now, we have completed below steps:
    1) We have a working account with Oracle database cloud (Username – xxx.xxx)
    2) We log in using the credentials for above account, and navigate to Oracle Apex ? SQL Workshop ? RESTful Services
    3) We create a new “RESTful Service Module” by filling out the details as below:
         Name:                                  SampleTest 
         URI Prefix:                            test
         URI Template:                       /getallemp
         Pagination Size:                    25 (kept to default)
         Required Privilege:                 TestGroupPrivilege
         Resource Handler Details:
                    Method:              GET
                    Source Type:      Query
                    Format:               JSON
                    Source:               select * from emp
    After creating the above module and testing it, it works fine and the data is retrieved in JSON successfully.
    The resulting URL for above RESTful Service Module is: https://<HOST_URL>/apex/test/getallemp
    Note that “TestGroupPrivilege” is a privilege assigned to the user group “RESTful Services” and the user “xxx.xxx” is a member of “RESTful Services” user group.
    4) We are unable to call the RESTful services from Java program. We are passing username and password in request header as basic authentication. But, we are getting: Error 500--Internal Server Error
    5) If we change the “Required Privilege” to default i.e. no privileges present on the module, we can get the response through Java code and everything works perfectly fine.
    Please suggest us in: How to access RESTful Services through Java code by passing user credentials in HTTP header for authentication. Also let us know if we have to do any settings through Apex, in case we are missing any.
    Message was edited by: NeerajGirolkar
    - When we are logging in to Oracle cloud on browser and execute the Oracle cloud RESTful service in another tab of same browser, we are able to get the result. But when executed the same RESTful service from a different browser or java program we get internal server error.
    - After investigation, we found that when user logs in to oracle database cloud, a cookie is set in browser with name s “OAMAuthnCookie_cstest-domo.db.us1.oraclecloudapps.com:443” and value as some random token. This cookie is passed in the subsequent requests to the RESTful Service calls when using same browser and as a result, we are able to get the results
    - In the Java program, we copied the same cookie with random token in the HTTP Request header and we got the proper response from REST APIs.
    - It seems that this cookie is created by an Oracle Middleware tool/server called as OAM – Oracle Accounts Manager, which sends the authentication token after successful authentication and creates the cookie.
    - We found that the cookie that OAM creates on authentication is exactly in the same format i.e. ‘OAMAuthnCookie_cstest-domo.db.us1.oraclecloudapps.com:443’. So, we are guessing that Oracle cloud uses OAM for authentication. Please refer to following link for same : http://docs.oracle.com/cd/E14571_01/doc.1111/e15478/sso.htm
    Can anyone please suggest:
    1.     How to provide authentication to Oracle Cloud REST APIs from java program?
    2.     How to pass the username and password in Java code to OAM (or how to communicate with OAM using Java) so that we can receive the unique token from OAM. We can use the token in the further requests? 3.     Also in Oracle cloud white papers , it is mentioned that they support OAuth2.0. But we didn’t find any URLs for same. Can anyone please confirm?
    Thanks
    ~ Neeraj Girolkar

    Hi Nilesh,
    We tried to connect to Oracle Cloud Database using the way you suggested above, but unfortunately it is not working as well.
    Can you let us know the authentication process with Oracle Cloud Database? We found in documentation that it uses OAM (Oracle Access Manager) for authentication. Can you tell us a bit about that? That will be extremely helpful.
    Thanks,
    - Neeraj

  • Getting windows services through java

    Hi,
    I just want to get the status of windows services( SERVICE_NAME: DWMRCS)
    and also i have to stop and start the services through java code is there any help?
    thanks

    Use "sc" util with Runtime.exec().

  • Link IDoc to FI document using Object Services

    We are using a custom IDoc to post financial documents to the R/3 system. There is a requirement to determine the IDoc number that created the accounting document as happens automatically with Incoming Invoices (object type BUS2081).
    I'd like to form the link between the IDoc and the Financial document using Generic Object Services so that the Relationships functionality in transaction FB03 can be used. Does anyone know how I can form the link between the IDoc and the Accounting document when posting the document? We use BAPI_ACC_DOCUMENT_POST to post the Accounting document.
    Thanks in advance for any help.
    Regards,
    JB

    call function 'BDS_BUSINESSDOCUMENT_CREA_URL'
          exporting
            logical_system = logical_system
            classname      = classname_select
            classtype      = classtype_select
            client         = sy-mandt
            object_key     = objkey_select
          tables
            uris           = i_uris
          exceptions
            error_kpro     = 1
            internal_error = 2
            others         = 3.
        if sy-subrc <> 0.
          message id sy-msgid type sy-msgty number sy-msgno
                  with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        endif.
    for logical_system use FM OWN_LOGICAL_SYSTEM_GET to get your logical system name.
    class name= BKPF
    classtype = BO
    object_key = <companycode><doc number><year> e.g 011000001234562007
    in uris talbe pass the urls to be created.
    Raja

  • Unable to correctly download Document using wpg_docload.download_file.

    I am using default MOD/PLSQL Portal Functionality to Upload the files into the Portal. I am able to download the documents uploaded by me, but I am unable to view the documents uploaded by others
    I have used the following procedure for download. Is there something severly wrong.
    I need some urgent help to save my neck
    Create or replace Procedure downloadfile
    V_FILEID IN VARCHAR2)
    as
    begin
    wpg_docload.download_file(v_fileid);
    exception
    when others then
    htp.p(sqlerrm);
    end;

    helo there.
    I TRIED THE SAME BUT I DIDN'T SUCCEED.. SINCE MY SYSTEM CACHING HAD A PROBLEM.
    ANY SUGGESTIONS ARE HIGHLY APPRICIATED.
    BYE

  • Unable to support application while using data services

    I have a curve9220
    all time good product
    but unable to use any application while using data services 
    but i can browes from explore. 

    Yes, if you want to use them on mobile network you must have a BB data plan.
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • Storing documents using Object Services

    Hello,
    Does anybody know how to activate the Menu Entry 'Store Business Document' ?
    Thank you ,
    Aranka

    Hi Chris,
    from the document point of view I do not know any restrictions which lead to a loss in performance if you attach more documents to a service order or something else.
    Best regards,
    Christoph

  • Attaching documents using object services

    Hello,
    Are there any performance/sizing guidelines for utilizing the object services function to attach documents to service orders, notification, equipment, etc?
    Our users would like to do this, and I am concerned about performance.
    chris

    Hi Chris,
    from the document point of view I do not know any restrictions which lead to a loss in performance if you attach more documents to a service order or something else.
    Best regards,
    Christoph

  • Unable to sign a document using latest adobe reader.

    Hi guys,
    I've never had to sign a document using reader before so I'm really lost. I've downloaded the latest adobe reader version and created an adobe account. The form is enabled for reader and signatures as far as I can tell.
    I'm logged in while the file is open but under the right side tab "sign" all the options are grayed out, I also cant just click on the signature box like it mentions in the help vids.
    I've added a screen shot to show you what I mean.
    Thanks guys,
    Mike

    Try updating the software, first? PKCS12 is the latest one.
    Also-- you have to make sure you have a digital ID stored in the computer (or through a server), or you can create one.

  • How to use admin services through RIDC ?

    I am trying to invoke admin services like GET_ADMIN_OUTPUT through http protocol. But RIDC uses PING_SERVER service internally which populates environment variable and does authentication. As PING_SERVER service is defined in Intradoc core services only, I am getting service not found and hence I am unable to use admin service.
    Is there a work around?
    Thanks

    I'm not sure, but I think RIDC does not provide all the services. You could go with CIS, or WebServices (you might have to create WSDL definition for your service, though).
    Check http://docs.oracle.com/cd/E21764_01/doc.1111/e10807/toc.htm

  • Error while uploading document using Link Service

    Hi
    I have created a webcenter portal application ( in jedeloper 11.1.1.4) with Link service integrated.(Database and UCM connections are intact)
    But when i click on link to new->document and click on Upload it gives a popup error saying connection to the server has failed, even though the connection exists.
    I find that the document is checked in to the UCM even after the error was thrown, and once i re-run the application it shows up the link in the dialog.
    Am i missing any configurations to be done?
    Thanks

    hi
    what is your solman version? chk the sap note
    [ Note 1401196 - Work Centers: attachment not saved in Incident Management|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1401196]
    might be this helps,
    [Message No: SKWF_SDOKERRS119|Message No: SKWF_SDOKERRS119]
    jansi

  • Unable to fetch the headers in the response of a service through java code

    Hi All,
    Im working with the IDE eclipse-jee-galileo-SR2-win32.In my code Im sending the request to a service using ServiceClient.sendReceive() method. The response from the service is an empty text in the soap Body but with a http status:200 OK . The reponse is as below when testing the service directly:
    Response:
    HTTP/1.1 200 OK
    Server: --
    Content-Type : text/xml
    Content-length : 141
    Date : --
    <SOAP-ENV: Envelope xmlns:SOAP-ENV:"http://schemas.xmlsoap.org/soap/envelope">
    <SOAP-Env:Body/>
    </SOAP-ENV : Envelope>
    Please let me know your inputs to fetch the http response from the service using ServiceClient or Options. Any help is greatly appreciated.
    Thanks,
    Vyshnavi

    Hi Vyshnavi,
    This post is probably more appropriate for the Web Services forum on OTN. This forum is intended to help with questions about Oracle Enterprise Pack for Eclipse and the tooling it provides.
    Here's a good reference for working with ServiceClient. It includes a detailed example.
    http://today.java.net/pub/a/today/2006/12/13/invoking-web-services-using-apache-axis2.html#working-with-serviceclient
    If you're still having issues with your client code, try the "Java Technologies for Web Services" forum on OTN...
    Java Technologies for Web Services
    Your post to the Web Services forum should also state whether the issue is specific to the particular service or if you're unable to get any WS clients running in your development environment. Also include a code snippet.
    Kind regards,
    Carlin

Maybe you are looking for

  • SQLEXEC not able to filter extract on sql statement or function call.

    hi all, i'm trying to do some basic extract filtering using a stored function and am not having much success. i started off using a procedure call but have been unsuccessful getting that working, i've simplified it to use a sql statement calling a fu

  • Can I have a common itunes library on a shared drive?

    All of my music library is stored on my Power PC G5 iMac. Itunes no longer supports PowerPC iMacs and so I can no longer sync my iPhone to my PC.  Since I cannot upgrade iTunes I can't use features such as Home Sharing or iTunes match.  Whjat I want

  • Reply/Forward Indicator in Mail

    For some odd reason, any message that I either "Forward" or "Reply" to in my Inbox, does not show the respective arrow icons. The Forward arrow icon being a horizontal arrow pointing to the right and the Reply icon being curved arrow which goes from

  • Htmlb:tableView Recover the selected row

    Hi. How can I recover the selected row in a internal table, with the htmlb:tableView, in the onInputProcessing? Thanks very much! I'm using this sentence in the "layout": <!-- Visualizamos Línea de selección + tabla interna -->     <htmlb:tableView i

  • Complete install package for hp office jet j4680

    Each time I go to the website to download the package I get a message to enter a password...what is this?