Impossible to download the Document using the service GET_FILE

Hello
I have a personalized service of custom component called from a workflow, which downloads the file in an external file whenever a recording is made with the parameters corresponding to the criteria of the workflow.
Now the question is whenever the file is checked for the first time, the file that is downloaded only the information linking with the status message as:
"StatusMessage = failed to download"ABC022257". Cannot find the latest revision for the element "ABC022257". »
Can someone indicate probable causes?

For those who might need this, we discovered this thread actually consists of two questions:

#1-comment call a sub-service from a service
#2-Comment get the results of calling the function GET_FILE

Regarding the #1, this issue has been discussed in this thread: [best practices] how to call a custom Java code service (note that the solution has been achieved by decompiling the order of idocScript of executeService )

As for #2, I happened to find http://docs.oracle.com/cd/E28280_01/doc.1111/e11011/core.htm#CSSRG2319 which States that "this service call the sub-service GET_FILE, called using Java code for method intradoc.server.FormHandler.retrieveHtmlFormState ().", even once, I decompiled this class. ""

The end result may look like

  public void downloadDocument() throws DataException, ServiceException {

    SystemUtils.trace("system", "downloadDocumentInWorkflow starting");
    String dID = m_binder.getLocal("dID");
    String contentID = m_binder.getLocal("dDocName");
    String serviceName = "GET_FILE";
    String userName = m_binder.getLocal("dUser");

    SystemUtils.trace("system", "dID-->" + dID);
    SystemUtils.trace("system", "contentID-->" + contentID);
    SystemUtils.trace("system", "User:" + userName);

    DataBinder serviceBinder = new DataBinder();

    serviceBinder.putLocal("dID", dID);
    serviceBinder.putLocal("dDocName", contentID);
    serviceBinder.putLocal("IdcService", serviceName);
    Workspace workspace = getSystemWorkspace();

    try {
      SystemUtils.trace("system", "started");
      ServiceData serviceData = ServiceManager.getFullService(serviceName);
      workspace = getSystemWorkspace();
      Service service =
        ServiceManager.createService(serviceData.m_classID, workspace, null,
                                     serviceBinder, serviceData);
      UserData fullUserData = getUserData();
      service.setUserData(fullUserData);
      serviceBinder.m_environment.put("REMOTE_USER", userName);
      service.initDelegatedObjects();
      service.executeSafeServiceInNewContext(serviceName, true);
      SystemUtils.trace("system", "succeeded");
      String path = (String)service.getCachedObject("PrimaryFilePath");
      SystemUtils.trace("system", "Path-->" + path);
    } catch (Exception e) {
      SystemUtils.trace("system", "failed");
    }

  }

Note that this code has been tested in a system where the documents are stored on the file system and the returned parameter contains the full path to the directory of the vault.

Tags: Fusion Middleware

Similar Questions

  • Impossible to download the service pack Office

    My Microsoft Word is upward.  When I click on word on my desk, it pops up indicates that it is not a valid Windows image. I can't download the service pack for Office 2007.  When I looked at my history of update, I realized that I never had service pack 2 downloaded successfully either. How can I do?  Suggestions for my nd excellent Word works again?

    Hello


    Perform the steps from the link below and see if it helps.

    http://support.Microsoft.com/kb/942101

    Hope this information helps.

  • Problems after downloading the Service Pack 3 and Internet Explorer 8

    Hi, I have Windows Home Version 2002 and advises him to download the Service Pack 3 and decided to download Internet Explorer 8. It wouldn't let me download IE 8 and I got a blue screen. After apparently loaded, when it restarted check disk page it came and I noticed that a lot of pages in IE have been truncated. Now Internet Explorer or Firefox will load. Only Aol 9.7 will work. The update finally began to work with SP3, and while loading, the computer turns off. I did not disable Avast because I didn't know how. Please help it is very upsetting. It seems that every time that I update something it doesn't quite work.

    because sp3 is out for quite a long time your system has been widely exceeded and can have several problems.

    If I were you I backup all my data and perform a clean installation:

    http://Windows.Microsoft.com/en-us/Windows-XP/help/Setup/install-Windows-XP

    http://www.WindowsXPHome.WindowsReinstall.com/sp2installxpcdoldhdd/indexfullpage.htm

    http://aumha.NET/viewtopic.php?f=62&t=44636

    Clean install XP sites

    I have used the site before aumha.

  • I can't download the service pack 1 of windows vista.

    Impossible to download service pack 1 for vista

    I can't download the service pack 1 of windows vista.  I didn't bother with it so far because I now have a new router and I download to configure the router.

    Download the SP1 installation file in a folder and then double-click to manually install Service Pack 1

    http://www.Microsoft.com/download/en/details.aspx?ID=30

    Note: Service Pack 2 is also available: http://www.microsoft.com/download/en/details.aspx?id=16468

    J W Stuart: http://www.pagestart.com

  • Hi all, impossible to download the photos out of Lightroom 5 - I get a ' cannot read the message ' and 496 of the code ".". "  Help, please!

    Hi all, impossible to download the photos out of Lightroom 5 - I get a ' cannot read the message ' and 496 of the code ".". "  I previously used the crd of memory and it works ok.  It also displays images must be downloaded but just let me download them.  This is the message I received:

    The following files were not imported because they could not be read. (496)

    So what I did is launching a new catalog that then wiped out all the records and traces of my previous photos!

    You talk of out of the frying pan and into the fire!  Can someone help me with this?  I have an important project to present - I'm Freelancer and looking quite the fool.

    E.

    Your old catalog is still there, use the file-> open the recent item

    The error "cannot be read" indicates that the folder where your photos are to be copied in has no WRITE permission. Change your permissions on this folder.

  • Sourcefire Intellegence Feed (impossible to download the file)

    Hello team,

    We want to know what is this error 'code received Sourcefire_Intellegence_Feed (impossible to download the file).

    Hi John,.

    This error indicates that for some reason, since the management center that you are not able

    Join sourcefire intelligence cloud (intelligence.sourcefire.com on port 443) to download the latest feeds.

    Check if the port and the connection is allowed.

    Mark and rate if it can help.

    Thank you

    Ankita

  • Impossible to download the track of Photoshop CC.it says try again! However, the retry option is not working.any suggestion?

    Impossible to download the track of Photoshop CC.it says try again! However, the retry option is not working.any suggestion?

    Urban Baul for more information on how to resolve errors download please see error downloading applications Cloud Creative - http://helpx.adobe.com/creative-cloud/kb/error-downloading-cc-apps.html.

  • m251n impossible to activate the services web hp

    I just got a M251n printer and I tried to set up the wireless for hours through suggestions of support and none have worked.  Trying to activate the configuration of Web Services I receive a message "connection error. Check the internet connection. "The connection is fine and working and the printer is connected via ethernet, and my computer is connected to the printer by USB.

    I use a Mac and you have downloaded the latest driver for the printer.  A suggestion of support said I could have exceeded firmware but I can't find the updates of the firmware for this printer.

    I don't know what the problem is.  It is not straightforward and without the work of wireless, I'll have to return to this printer and buy another brand.

    Any suggestions are welcome.

    Hello neilthedirector,

    Welcome to the Forums of HP Support!

    I see that the color HP LaserJet Pro 200 M251n printer that you cannot activate Web Services. I was able to locate a utility to update the firmware that you can check the printer with, if you are using Mac OS X 10.5 - 10.8.

    HP LaserJet Pro Series Firmware Update Utility<>

    If the update is not present or is unable to solve the problem, try applying a manual IP and DNS address. For that;

    • Enter the IP Address of the printer in the address bar of Safari.
    • Click network, and then Configuration IPv4.
    • Define the INVESTIGATION period preferred to deal with the manual method.
    • Increase the last set of numbers from 50.
    • Subnet mask should be 255.255.255.0.
    • Default gateway is the IP address of your router.
    • Click Network on the left Identification.
    • Under primary DNS (IPv4), enter 209.244.0.3, and secondary (IPv4), enter 209.244.0.4.
    • Click on apply and then turn the printer off, then on.

    Now try to activate Web Services.

  • I can't download the Service Pack 2 because it keeps saying that I have not downloaded sp1?

    After a day of the sp2 download, it is finally over. Here is the problem.

    Run the sp2 > welcome to sp2 > license > you need to install windows vista service pack 1
    I really need help here. I am clearly using windows service pack 1, and my computer is windows Vista.

    Make sure that SP1 is installed really

    Click the Start button, right-click computer, and then click Properties.

    See if Service Pack 1 is listed in the Windows edition section

  • Impossible to download the .exe from the download page

    I have a creative cloud for 1 year license, and trying to download Adobe applications, I get a blank page every time just by clicking on the download link on the page of the APP.

    I was chatting to customer support for more than half an hour, where the Adobe employee went around in circles for nearly an hour, repeat several times and do not answer my question. Constantly, he tried to convince me that it was a problem with my computer, but I know that this was not the case. Using various browsers, whenever I was sent on a blank page while trying to download one of the CC app.

    If I'm unable to access the Web page, adobe has provided, I would ask other direct links to download Adobe CC Apps.

    Customer support chat service was terrible and great disgust towards Adobe.

    Hello

    I apologize for the experience you had with the support.

    You can try to download the Adobe CC app from the link below:

    https://creative.Adobe.com/products/download/creative-cloud

    At my end, the Web page opens very well; in case you experience the problem, try another browser, or clear the browser cookies/cache and try again.

    Kind regards

    Sheena

  • Impossible to download the BIOS for Portege Z930 - 404 error

    Hello

    My tool tempro says that there is a new BIOS for my Portege Z930.
    But the link does nothing.

    If anyone can solve this? Or have the correct link

    Thank you
    Markus

    You can use this direct link to download the BIOS file
    [Update BIOS 6.80 - WIN for Portege Z930 | http://support.toshiba-tro.de/tedd-files2/0/bios-20140212101921.zip]

  • Impossible to download the program of educational marketing

    * - Original - via cpu to agp that make title?

    Hi Im having trouble and I can come up with is the driver must be replaced, repaired updatedor? Im getting a 31 code and that the driver version is 6.0.6001.18000 pc turns on and when I try to download a program of educational marketing the mninute I hit the dwnl0oad he touches gos bananas and begins passing works and work. his panic and I barely get to stop before closing manually

    Hello

    1. What is the brand and model of the computer?

    2. What is the security software installed on the computer?

    3. What is the accurate and complete error message you get?

    4. What is the file type of the material that you download?

    5. What is the size of the file and which site you want to download the file?

    6. is the issue limited to this educational materials file?

    7. are you able to download other files on the internet?

    8. What are all the steps you've done so far?

    9. What do you mean exactly by "starts going to market and walk '?

    10. what web browser do you use to download?

    Please provide more relevant information to continue troubleshooting as a result.

    See the link on how to ask questions or help on the Forums.

    Suggestions for a question on help forums: http://support.microsoft.com/kb/555375

    Follow the resolution in this article: Code 31: this device does not work properly because Windows cannot load the drivers required for this device http://technet.microsoft.com/en-us/library/cc725584%28v=ws.10%29.aspx

    Method 1.

    Ry Tyour computer to start clean and control state if the same problem occurs. Tuning your system to start in mode minimum state helps to identify third-party applications or startup items are causing the problem.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or Windows 7:
    http://support.Microsoft.com/kb/929135

    Note: After the boot minimum troubleshooting step, follow step 7 in the link provided to return the computer to a Normal startup mode.

    Method 2.

    If no specific driver does not work, then follow the steps in this article and check.

    Update a hardware driver that is not working properly: http://windows.microsoft.com/en-us/windows-vista/Update-a-driver-for-hardware-that-isn ' t-work properly

    Method 3.

    You can run the Microsoft Safety Scanner to make sure that the computer is virus-free.

    Microsoft safety scanner: http://www.microsoft.com/security/scanner/en-us/default.aspx

    Warning of Security Scanner: there could be a loss of data while performing an analysis using the Microsoft safety scanner to eliminate viruses as appropriate.

    I hope this helps.

  • Impossible to download the driver (Deskjet F4580)

    Hello

    I recently bought a new laptop and am trying to install my Deskjet F4580 to use with it. The printer is connected to my network without problem as I have successfully run and print the wireless network test and network configuration pages and my laptop seems to recognize that it is there as it happens in my "devices and printers" in my control panel, however he told me that I need a driver.

    I have the installation CD, but when I use it it fails to install the driver. I put it in, follow the instructions in the wizard, the installation wizard where it is said so "of the control systems, the search for updates, download updates, application updates" then disappears completely and it stops before installation the installation is complete. He shows me a list of things it will do, including installing the driver, but he only puts out the first component before disapperaing. I don't know even why it checks updates until whatever it is has been installed.

    This process is repeated exactly the same way when I try and download the driver on the HP site, and I also tried to download the driver of basic with the same results.

    I don't know what to do as my phone tells me that I need a driver before I can use my printer, but I can't download a no matter how I try. I installed other programs on my laptop so I don't think that's the problem, and I checked that the driver is correct for my operating system (Windows 7 32-bit).

    Any advice would be greatly appreciated!

    Hi hkp206,

    It seems that the installation is having some problems with the updates. Is there a way to disable the updates through the beginning of the installation. Once you get to the part of the facility where he asked to accept the terms, there will be 4 lines of text in blue up, which you will be able to click on. Click on the line that says "the use of Internet connection settings." Select 'No' to all options in this window, then click on 'Ok '. Now, launch the installation and let me know if you still have the same problem.

  • Impossible to download the free version of Muze

    I clicked to download the Mu and it returns a blank page. I use Ubuntu15.10 and browser mozilla (with windows pop up unlocked). what I've done wrong?

    Muse does not work under Linux. Windows and Mac only.

  • Impossible to download the trial of coldfusion

    Install the Akamai Download Manager, is not an option in our environment. Using the direct link gives this error:

    Access denied

    You do not have permission to access to " " http://trials3.adobe.com/AdobeProducts/CSTD/11/Win64/ColdFusion_11_WWEJ_win64.exe "on this server. "

    Reference #18.460aa1cb.1448518545.12cd6bfa

    Carefully follow the steps below:

    N ° 1)

    Click on the link below and open Photoshop Elements download page.

    Download Photoshop Elements free trial | Adobe Photoshop Elements

    Then from the drop-down list 2 option select anyone randomly to the two.

    Then click on the Download button.

    It will ask you to save the file or cancel / / or it will start the download process.  " Cancel it immediately." ".


    ( We are not download Photoshop Elements.)


    Then click on the link below to download the direct installation file:


    http://trials3.adobe.com/AdobeProducts/CSTD/11/Win64/ColdFusion_11_WWEJ_win64.exe

    Note:

    If we do not follow above method, you will get the error message as Access Denied.

Maybe you are looking for