Close Action Wizard Pane After Running Action

Hello,
Is it possible to execute a few lines of JavaScript to close the action wizard pane once the action has completed running? Thanks.

No.
On Tue, Aug 12, 2014 at 3:32 PM, Shawnny Canuck <[email protected]>

Similar Messages

  • Premiere Elements 12 trial closes after run.

    I have a problem with my just-downloaded Adobe Premiere Elements 12 30 days trial. After normal running it, on an administrator account, Premiere Elepents pops-up an message, that I must run it from an admin account and closes. For addiction, when I press "Run as an Administrator", ther's no message, but it closes itself too, such as running without "Run as administrator". I use HP Pavilion  g6-2330ew Notebook PC 64bit Windows 8 I5 2.6 GHz 16GB RAM. Graphic cards:
    AMD Radeon HD 7600M Series (Additional)
    Intel(R) HD Graphics 4000 (Default)
    Both cards have actual drivers.
    Do you have an idea what should I do to fix it?

    >Do you have an idea what should I do to fix it?
    Start by asking in that forum... http://forums.adobe.com/community/premiere_elements
    Dual video problems (some for Premiere Pro, but the idea is the same)
    -http://helpx.adobe.com/premiere-pro/kb/error---preludevideo-play-modules.html
    -http://forums.adobe.com/thread/1001579
    -Use BIOS http://forums.adobe.com/thread/1019004?tstart=0
    -link to why http://forums.adobe.com/message/4685328
    -http://www.anandtech.com/show/4839/mobile-gpu-faceoff-amd-dynamic-switchable-graphics-vs-n vidia-optimus-technology/2
    The Elements Tutorial Links Page http://forums.adobe.com/thread/1275830 may also help
    -has links to the FAQ/TIPS pages
    A Moderator should be along soon to move this to the correct forum

  • After running KDE for some time, it will stop suspending on lid close

    I can use KDE for a day or two and it will behave just fine, but inevitably, after some time, it will stop going to sleep when I close the lid or after my 15 minute timeout that I have set up in the power manager thing.
    A reboot will fix it for a while. This does not happen in Xfce or Gnome. Hitting the suspend button works.
    There are about 10,000 things that could affect suspending, so I'm just wondering if anyone else has had a similar problem?

    I can use KDE for a day or two and it will behave just fine, but inevitably, after some time, it will stop going to sleep when I close the lid or after my 15 minute timeout that I have set up in the power manager thing.
    A reboot will fix it for a while. This does not happen in Xfce or Gnome. Hitting the suspend button works.
    There are about 10,000 things that could affect suspending, so I'm just wondering if anyone else has had a similar problem?

  • Macbook will not boot up after running Software Update (Couldn't fix it)

    Hi there,
    I also have been experiencing some problems after running Software Update (Security update + Java) a couple of days ago. Similarly to Jandaf (http://discussions.apple.com/thread.jspa?messageID=9000023) I have only the gray start up screen + Apple logo + gear wheel constantly rotating. Based on the information provided in this forum I have tried some procedures which didn't solved my problem so far. Below I describe I have tried:
    1) I have booted using the installation DVD and run the disk utility. When performing the First Aid/Verify Disk I found some errors ('Invalid node structure'). But I couldn't fix the problem using disk repair (same problem 'Invalid node structure' 'Volume check failed'.
    2) I also tried to boot in single user mode (command + s) to run fsck -fy. It didn't work. I got the following message (last 4 lines):
    CSRHIDTTransitionDriver::probe: -s
    CSRHIDTTransitionDriver::probe: booting in single user .. do not match
    Extension "com.apple.driver.AppleUSBTCKeyboard" has no kernel dependency.
    Extension "com.apple.driver.AppleUSBTCEventDriver" has no kernel dependency.
    3) When trying to boot in safe mode. I got a grey screen with the following message:
    'You need to restart your computer. Hold down the power button for several seconds or press the Restart button".
    4) I also tried to 'Archieve & Instal'. Again no success. After reading the DVD the action is terminated because some errors (does not specify).
    5) I also tried the 'German Medicine' (http://discussions.apple.com/message.jspa?messageID=8728797#8728797) (i.e. Connect the 'problematic MacBook' to my old G4 via firewire and reinstall the 2009-001 update). Again no success. The G4 cannot mount the MacBook hardrive.
    I don't know what to do any more.
    A) Can I resuscitate my old system? If yes how?
    B) If not, can I at least save the data I have in my old HD?
    C) Is it possible to format and reinstall the OS or is this this computer doomed?
    Apologies for writing so many questions but I'm really freaking out!
    Thank you.
    B.

    Hi BDAqua,
    I did as you said and got a firewire backup drive (Seagate - FreeAgent Desk 500GB). I tried to make a carbon copy of HD but it seems that the copy had some problems. Below I report both the CCC and console logs:
    1) "Cloning method: Backup everything
    Delete items on target that aren't on the source: No
    18:23:39 Enabling ownership on the target volume...
    18:23:50 The target volume has ownership enabled.
    18:23:50 The target volume has Access Control Lists enabled.
    18:23:50 Authenticating...
    18:23:50 Initiating synchronization engine...
    18:23:51 Cloning...
    18:31:20 rsync: readdir("/Applications/Utilities/Audio MIDI Setup.app/Contents/Resources/French.lproj"): Input/output error (5)
    19:04:41 rsync: readdir("/System/Library/Components/AudioCodecs.component/Contents/Resources/Fr ench.lproj"): Input/output error (5)
    19:05:41 rsync: readdir("/System/Library/CoreServices/Menu Extras/IrDA.menu/Contents/Resources/French.lproj"): Input/output error (5)
    19:06:01 rsync: readdir("/System/Library/CoreServices/Menu Extras/User.menu/Contents/Resources/French.lproj"): Input/output error (5)
    19:07:05 rsync: readdir("/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBC DCECMData.kext/Contents/Resources/French.lproj"): Input/output error (5)
    19:10:13 rsync: readdir("/System/Library/PrivateFrameworks/Assistant.framework/Versions/A/Resou rces/French.lproj"): Input/output error (5)
    19:50:10 rsync error: some files/attrs were not transferred (see previous errors) (code 23) at /Volumes/Home/Users/bombich/Development/Bombich_Software/rsync-3.0.5pre2/main.c (1047) [sender=3.0.5pre2] (51)
    19:50:11 rsync: Some errors were encountered during the backup., Error code: 51
    19:50:14 Sync Engine warnings: (
    "rsync: readdir(\"/Applications/Utilities/Audio MIDI Setup.app/Contents/Resources/French.lproj\"): Input/output error (5)",
    "rsync: readdir(\"/System/Library/Components/AudioCodecs.component/Contents/Resources/F rench.lproj\"): Input/output error (5)",
    "rsync: readdir(\"/System/Library/CoreServices/Menu Extras/IrDA.menu/Contents/Resources/French.lproj\"): Input/output error (5)",
    "rsync: readdir(\"/System/Library/CoreServices/Menu Extras/User.menu/Contents/Resources/French.lproj\"): Input/output error (5)",
    "rsync: readdir(\"/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSB CDCECMData.kext/Contents/Resources/French.lproj\"): Input/output error (5)",
    "rsync: readdir(\"/System/Library/PrivateFrameworks/Assistant.framework/Versions/A/Reso urces/French.lproj\"): Input/output error (5)",
    "rsync error: some files/attrs were not transferred (see previous errors) (code 23) at /Volumes/Home/Users/bombich/Development/Bombich_Software/rsync-3.0.5pre2/main.c (1047) [sender=3.0.5pre2]"
    2) "Mac OS X Version 10.4.11 (Build 8S2167)
    2009-03-01 10:30:14 +0100
    2009-03-01 10:30:21.962 SystemUIServer[213] lang is:en
    Mar 1 11:20:32 Bs-Home-Mac /usr/sbin/ocspd: starting
    Mar 1 11:38:25 Bs-Home-Mac ntpd[191]: sendto(17.72.255.12): Bad file descriptor
    Mar 1 12:46:40 Bs-Home-Mac ntpd[191]: sendto(17.72.255.12): Bad file descriptor
    Mar 1 13:54:55 Bs-Home-Mac ntpd[191]: sendto(17.72.255.12): Bad file descriptor
    Mar 1 15:03:13 Bs-Home-Mac ntpd[191]: sendto(17.72.255.12): Bad file descriptor
    Mar 1 16:11:31 Bs-Home-Mac ntpd[191]: sendto(17.72.255.12): Bad file descriptor
    Mar 1 17:19:46 Bs-Home-Mac ntpd[191]: sendto(17.72.255.12): Bad file descriptor
    Main starting
    2009-03-01 17:47:20.393 Skype[313] SkypeApplication::init called
    2009-03-01 17:47:21.554 Skype[313] SKInitDebugLogging
    2009-03-01 17:47:46.169 Skype[313] SkypeSound::setAudioDeviceUID: cannot find audio device with UID (null), trying to use default system output device instead
    2009-03-01 17:47:47.208 Skype[313] SkypeSound::setAudioDeviceUID: cannot find audio device with UID (null), trying to use default system output device instead
    Starting the process...
    2009-03-01 17:48:36.186 Skype[313] MacVideo getDimensions rc == NO, width 0, height 0
    2009-03-01 17:48:36.367 Skype[313] MacVideo getDimensions rc == NO, width 0, height 0
    2009-03-01 17:48:37.367 Skype[313] MacVideo getDimensions rc == NO, width 0, height 0
    2009-03-01 17:48:37.369 Skype[313] MacVideo getDimensions rc == NO, width 0, height 0
    2009-03-01 17:59:16.450 Skype[313] SkypeSound::setAudioDeviceUID: cannot find audio device with UID (null), trying to use default system output device instead
    Mar 1 17:59:19 Bs-Home-Mac crashdump[355]: Skype crashed
    Mar 1 17:59:20 Bs-Home-Mac crashdump[355]: crash report written to: /Users/bernardolima/Library/Logs/CrashReporter/Skype.crash.log
    Mar 1 18:23:50 Bs-Home-Mac authexec: executing /Applications/Carbon Copy Cloner.app/Contents/Resources/helper_tool
    Mar 1 18:28:01 Bs-Home-Mac ntpd[191]: sendto(17.72.255.12): Bad file descriptor
    Main starting
    2009-03-01 18:41:03.154 Skype[393] SkypeApplication::init called
    2009-03-01 18:41:12.433 Skype[393] SKInitDebugLogging
    Mar 1 19:36:16 Bs-Home-Mac ntpd[191]: sendto(17.72.255.12): Bad file descriptor
    Mar 1 19:55:54 Bs-Home-Mac mdimportserver[480]: -[ABAddressBook sharedAddressBook] Can't ABACQUIREFILELOCK Framework/AddressBook/ABAddressBook.m:2746
    Mar 1 19:57:12 Bs-Home-Mac mdimportserver[480]: * +[NSUnarchiver unarchiveObjectWithData:]: extra data discarded
    Mar 1 19:57:12 Bs-Home-Mac mdimportserver[480]: * +[NSUnarchiver unarchiveObjectWithData:]: extra data discarded
    Mar 1 20:44:34 Bs-Home-Mac ntpd[191]: sendto(17.72.255.12): Bad file descriptor
    Mar 1 21:52:51 Bs-Home-Mac ntpd[191]: sendto(17.72.255.12): Bad file descriptor
    Mar 1 23:01:07 Bs-Home-Mac ntpd[191]: sendto(17.72.255.12): Bad file descriptor"
    Due to my lack of knowledge I can't judge how bad this is. But I can tell you that every time I read the word bad in the log it scares the s*** out me.

  • HT4864 When trying to update my Mail Account Mailbox Behaviours settings, when I try to close the settings pane the following messages occur: Invalid Incoming Mail Server The "Incoming Mail Server" field cannot be empty. The incoming mail server box has p

    When trying to update my Mail Account Mailbox Behaviours settings, after making the changes when I try to close the settings pane the following messages occur: Invalid Incoming Mail Server The “Incoming Mail Server” field cannot be empty. The incoming mail server box has in light grey colour: p02-imap.mail.me.com in it and I cannot edit its content. Any ideas what is going on and how to fix it?

    Hi all,
    Mattreichenbach is probably on the right track here with a reset of settings.  I think I've determined the issue has to do with cached account information and inconsistencies for the account name.  This seems to crop up when I've changed my password and it hasn't propagated fully to all the servers, devices, certificates, etc.
    Hopefully many here are on their way to restoration of service by now but it's clear that a lot of people are having the same issues.  Very frustrating and definitely something Apple needs to resolve:  incoming mail server field grayed out, incorrect autopopulation of different fields, other unanticipated behaviors.  If you're still having issues, though, here's what worked for me...
    First, head to the iCloud preferences pane in System Configuration and choose "Sign Out".  When I did this it prompted me with a number of "are you sure" type questions about retaining information on my local machine.  I chose to delete/remove the info each time simply because it should all be restored by the cloud and I didn't want to risk a massive duplication of my data... I will say, I'm back up and running with no issues so I suspect you can make the same delete/remove choices...  But use your own judgment.  I don't want you to lose any data (ie.. please use care as you do this because I cannot bear the thought of causing anyone to experience the pain of data loss).
    Once you've signed out of iCloud, restart your system.  When you get back in, head to the Mail, Contacts and Calendars section of your System Preferences and add your account back by choosing the brushed aluminum "iCloud" button.  When it asks for your account name, use your @iCloud.com email address.  I am all but certain my issue had started because one of my devices (iPhone or whatever) had been set up with an email alias specified instead of my @iCloud.com address.
    Apple, if you're reading through any of these issues (there are TONS of users having this same problem).  Take note, that your icloud service somewhat frequently is not responding and yet tells the user that the password is wrong and this prompts people to be changing their passwords unnecessarily.  This has happened to me on numerous occasions.  Also, I noticed that last week's outage corresponded to a VERY similar outage exactly one year ago to the day.  Sounds like planned maintenance to me and I think you could do a better job notifying folks so we're not wasting HUGE amounts of time troubleshooting a problem that we have no hope of fixing.
    Hope that helps some of you!
    Terry Mullane
    Washington, DC

  • USB Keyboard not working after running Monolingual

    Okay, I'm not a Mac person and should have known that I was going to mess up my mother's iMac, but here it is -
    In an attempt to improve the mac's performance I performed all of the actions described in the following article: 11 Ways to Optimize your Mac's Performance     ( http://lowendmac.com/eubanks/07/0312.html ). Basically, I cleaned up files and 'other' system preferences. Things seemed to be fine and the computer did run much better. However, after running Monolingual and deleting what I understood to be 'unnecessary' PowerPC files the standard USB keyboard is no longer working.
    I've tried to search for various remedies, but have come to a dead end. So I'm left with reinstalling the Snow Leopard OS (I think it is 10.6.8?) BUT I can't because it is asking to input the account password (which I know) to make the change and I can't figure how to do that when the keyboard not working.
    Any help would be great!
    *feeling like a bone head*

    How are you trying to reinstall Snow Leopard? If you're booting from the Snow Leopard or iMac Install DVD that came with the system then that should eliminate any of the issues you may or may not have caused when you deleted did the clean up work on your mom's system.
    I suggest trying the following:
    0) Verify that the caps lock key is off. It can make inputting passwords difficult if you don't realize it is ON.
    1) Reset the PRAM by restarting the system then quickly press the command-option-P-R keys before the gray screen appears. Wait until you hear the computer restarts two times as indicated by the startup chime. For more info refer to http://support.apple.com/kb/ht1379.
    2) If the issue persists after the PRAM reset then boot from the Snow Leopard or iMac Install DVD, whichever you have. Once you see the menu asking you to choose a language try using the arrow keys on the keyboard to move the language choice selection. If the arrow keys are working at this point it indicates your keyboard is at least partially functional. Go ahead and select the language then proceed to step 3.
    3) Once the next screen appears move the cursor up to the menu bar area and pull down the Utilities menu. Select the 'Terminal' application. Once the Terminal application launches try typing the various keys on the keyboard and check to see if the correct characters are displayed. Please let us know if you detect any errors. If there are no errors then you should be able to quit the Terminal application and proceed with reintstalling the OS.

  • Sending mails after running the audit

    Hi,
    Please let me know if there is any standard workflow available for sending mails after running the audit. I want to inform students that they have failed in audit because of such and such subrequirement is not met.
    Regards
    Vinod Kumar

    Hi Vinod,
    If you are on Ehp4 you can use the BRF as a framework to create a custom developed event/action to send out the e-mail. Or you can copy the standard bulk program of audit calculations and create to functionality to send out e-mails after the run.
    There is currently no standard e-mail related to this process. You could check the standard workflow HRIQ_ADM_UG template to retrieve tasks to be copied in your own workflow (example HRIQ_APP1).
    Good luck
    Rob

  • Missing partitions after running Recovery from previous System Image Backup in Windows 8.1

    After running Recovery from a recent Sytem Image Backup the LRS_ESP partition is now missing and the Used space on the  PBR_DRV partition is reported as 95.20MB while it previously reported 9.52GB in use. The WINRE_DRV, SYSTEM_DRV, Windows8_OS and D:LENOVO partions appear to be OK. 
    I ran the Recover after replacing the original 500GB HDD with a 1TB. Any details/links/recommendations on recreating/correcting the LRS_ESP and PBR_DRV partitions? Thanks!

    Here are the before and after partition details obtained through Partition Wizard:
    Link to image 1
    Link to image 2
    Moderator note: large image(s) converted to link(s):  About Posting Pictures In The Forums

  • T400 with ATI Radeon HD 3400. Driver not found after running ImageX.exe /Capture

    Hello,
    I was able to reproduce the following problem on a T400.
    - unattended installation of WXP-SP3 (slipstreamed)
    - reboot
    - install latest ATI driver from Lenovo/IBM site (8.503.2.2-080818a-069536C)
    - reboot
    At this point, the video driver is well configured.
    - Reboot once or twice, video driver still good.
    - Boot the T400 on WinPE 2.0
    - Capture the C:\ to a network file share using ImageX.exe (from Microsoft's WAIK 1.1)
    - Shutdown the T400, and reboot on C:\
    - At this point, video driver is "lost". The Hardware Wizard says "new driver found", but stick with default VGA.
    Then I get an ATI error telling the driver is missing or not well installed.
    - When rebooting several times, suddenly the card is back in the device manager as a Radeon HD 3400.
    (without re-installing the driver ...)
    Anyone has an explanation ?
    Please not I did not run "sysprep.exe" before capturing with ImageX.exe
    stefan

    Update on this problem.
    After running "sysprep.exe -mini -quiet -reseal -shutdown", I ran the "ImageX.exe /capture".
    After rebooting the T400, the ATI driver was fine.
    Either is a coincidence (but I could repeat it 3 times...) or it is not advised to run "ImageX.exe /Capture" on a non-syspreped Windows XP.
    I know that a non-syspreped Vista system has a limitation if captured with ImageX.exe. But I am not aware on any limitation with XP.
    Stefan

  • HT3964 My computer freezes after running for about 15 min even after setting the energy saving to 3 hours

    My Mac computer freezes after running for 15 min even after seeting the energy saving to 3 hours. Any ideas how to stop the freezing/

    Hi Teodorafrombc,
    Thanks for visiting Apple Support Communities.
    If your computer is becoming unresponsive, you may want to see if specific applications are causing this behavior. Try using the Force Quit menu to check for unresponsive applications:
    Using the Force Quit feature of OS X makes an application close, even when it is not responsive.
    Important: Normally you should not need to force quit an app to close it. When an app is forced to quit, any unsaved changes to open documents are not saved, so try these methods to normally close the app first:
    Choose Quit from the app menu. For example, in Safari, choose Safari > Quit Safari.
    Choose Quit by right-clicking or control-clicking on an app's icon in the Dock
    You can find the article with these steps here:
    OS X: How to quit an unresponsive application using Force Quit
    http://support.apple.com/kb/ht3411
    If your display is going blank or seems to be going to sleep unexpectedly, try these steps first:
    Reset the system
    You can reset the Mac's parameter RAM and SMC.
    You can find the article with these steps and more information here:
    Apple computers: Troubleshooting issues with video on internal or external displays
    http://support.apple.com/kb/ht1573
    If these steps don't resolve the issue, feel free to reply with more information about the symptoms you are experiencing.
    Best,
    Jeremy

  • After running the recent update Iphone not detected by itunes

    After running the recent iOS update on my iphone4, itunes no longer detects my iphone when I plug into my USB port.  I ran the troubleshooter and got no relief.  The phone also charges much slower from the USB than it used to but still seems to charge about the same when plugged into a separate power source.  The phone also does not indicated it is charging anymore even when plugged into a separate power source. 

    Duh Norm. Didn't find first time through.
    That's why you have 32k points and I have close to zero.
    Thanks much.

  • When i try to update to firefox 3.6 it says close firefox but its not running

    when i try to update my firefox to firefox 3.6 it will get to installation wizard and it will say close firefox but it isint running and im getting tired of it i need help

    If you have problems with updating or with the permissions then easiest is to download the full version and trash the currently installed version to do a clean install of the new version.
    Download a new copy of the Firefox program and save the DMG file to the desktop
    * Firefox 5.0.x: http://www.mozilla.com/en-US/firefox/all.html
    * Trash the current Firefox application to do a clean (re-)install
    * Install the new version that you have downloaded
    Your profile data is stored elsewhere in the Firefox Profile Folder, so you won't lose your bookmarks and other personal data.
    * http://kb.mozillazine.org/Profile_folder_-_Firefox

  • After running ridc to checkin file into Oracle Content Center Server there is error: oracle.stellent.ridc.protocol.ProtocolException: java.io.IOException: Input terminated before being able to read line

    Hi,
       I use ridc to check in file into Oracle Center Content server. There is no problem at the beginning. But after running for several days, there is following error.
    I must restart my program to solve this issue.
       Can anyone help me solve this problem?
    Thanks,
    Tony
    2013-07-11 12:24:31,189 ERROR [BatchEventHandler] com.edocs.common.api.integration.contmgmt.ContentException: oracle.stellent.ridc.protocol.ProtocolEx
    ception: java.io.IOException: Input terminated before being able to read line
            at com.edocs.common.integration.contmgmt.UCMContentManager.saveContent(UCMContentManager.java:95)
            at com.edocs.common.reporting.batch.BatchEventHandler.processBatchRequest(BatchEventHandler.java:284)
            at com.edocs.common.reporting.batch.BatchEventHandler.service(BatchEventHandler.java:138)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask.executeInternal(BatchReportProcessorTask.java:156)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask.doProcessTask(BatchReportProcessorTask.java:68)
            at com.edocs.pwc.tasks.CommonTask.processTask(CommonTask.java:166)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl.__WL_invoke(Unknown Source)
            at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl.processTask(Unknown Source)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl_WLSkel.invoke(Unknown Source)
            at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:85)
            at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
            at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
            at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: oracle.stellent.ridc.protocol.ProtocolException: java.io.IOException: Input terminated before being able to read line
            at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:149)
            at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:108)
            at com.edocs.common.integration.contmgmt.UCMContentManager.saveContent(UCMContentManager.java:81)
            ... 17 more
    Caused by: java.io.IOException: Input terminated before being able to read line
            at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.readLine(HdaBinderSerializer.java:371)
            at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.readToEnd(HdaBinderSerializer.java:335)
            at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.parseBinder(HdaBinderSerializer.java:165)
            at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.parseBinder(HdaBinderSerializer.java:71)
            at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:126)
            ... 19 more
    2013-07-11 12:24:33,005 ERROR [BatchEventHandler] com.edocs.common.api.integration.contmgmt.ContentException: oracle.stellent.ridc.protocol.ProtocolEx
    ception: java.io.IOException: Input terminated before being able to read line
            at com.edocs.common.integration.contmgmt.UCMContentManager.saveContent(UCMContentManager.java:95)
            at com.edocs.common.reporting.batch.BatchEventHandler.processBatchRequest(BatchEventHandler.java:284)
            at com.edocs.common.reporting.batch.BatchEventHandler.service(BatchEventHandler.java:138)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask.executeInternal(BatchReportProcessorTask.java:156)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask.doProcessTask(BatchReportProcessorTask.java:68)
            at com.edocs.pwc.tasks.CommonTask.processTask(CommonTask.java:166)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl.__WL_invoke(Unknown Source)
            at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl.processTask(Unknown Source)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl_WLSkel.invoke(Unknown Source)
            at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:85)
            at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
            at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
            at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: oracle.stellent.ridc.protocol.ProtocolException: java.io.IOException: Input terminated before being able to read line
            at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:149)
            at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:108)
            at com.edocs.common.integration.contmgmt.UCMContentManager.saveContent(UCMContentManager.java:81)
            ... 17 more
    Caused by: java.io.IOException: Input terminated before being able to read line
            at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.readLine(HdaBinderSerializer.java:371)
            at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.readToEnd(HdaBinderSerializer.java:335)
            at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.parseBinder(HdaBinderSerializer.java:165)
            at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.parseBinder(HdaBinderSerializer.java:71)
            at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:126)
            ... 19 more
    2013-07-11 12:24:37,870 ERROR [BatchEventHandler] com.edocs.common.api.integration.contmgmt.ContentException: oracle.stellent.ridc.protocol.ProtocolEx
    ception: java.io.IOException: Input terminated before being able to read line
            at com.edocs.common.integration.contmgmt.UCMContentManager.saveContent(UCMContentManager.java:95)
            at com.edocs.common.reporting.batch.BatchEventHandler.processBatchRequest(BatchEventHandler.java:284)
            at com.edocs.common.reporting.batch.BatchEventHandler.service(BatchEventHandler.java:138)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask.executeInternal(BatchReportProcessorTask.java:156)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask.doProcessTask(BatchReportProcessorTask.java:68)
            at com.edocs.pwc.tasks.CommonTask.processTask(CommonTask.java:166)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl.__WL_invoke(Unknown Source)
            at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl.processTask(Unknown Source)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl_WLSkel.invoke(Unknown Source)
            at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:85)
            at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
            at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
            at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: oracle.stellent.ridc.protocol.ProtocolException: java.io.IOException: Input terminated before being able to read line
            at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:149)
            at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:108)
            at com.edocs.common.integration.contmgmt.UCMContentManager.saveContent(UCMContentManager.java:81)
            ... 17 more
    Caused by: java.io.IOException: Input terminated before being able to read line
            at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.readLine(HdaBinderSerializer.java:371)
            at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.readToEnd(HdaBinderSerializer.java:335)
            at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.parseBinder(HdaBinderSerializer.java:165)
            at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.parseBinder(HdaBinderSerializer.java:71)
            at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:126)
            ... 19 more
    2013-07-11 12:24:39,722 ERROR [BatchEventHandler] com.edocs.common.api.integration.contmgmt.ContentException: oracle.stellent.ridc.protocol.ProtocolEx
    ception: java.io.IOException: Input terminated before being able to read line
            at com.edocs.common.integration.contmgmt.UCMContentManager.saveContent(UCMContentManager.java:95)
            at com.edocs.common.reporting.batch.BatchEventHandler.processBatchRequest(BatchEventHandler.java:284)
            at com.edocs.common.reporting.batch.BatchEventHandler.service(BatchEventHandler.java:138)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask.executeInternal(BatchReportProcessorTask.java:156)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask.doProcessTask(BatchReportProcessorTask.java:68)
            at com.edocs.pwc.tasks.CommonTask.processTask(CommonTask.java:166)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl.__WL_invoke(Unknown Source)
            at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl.processTask(Unknown Source)
            at com.edocs.common.reporting.tasks.batchprocessor.BatchReportProcessorTask_9qwgr6_EOImpl_WLSkel.invoke(Unknown Source)
            at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:85)
            at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
            at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
            at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: oracle.stellent.ridc.protocol.ProtocolException: java.io.IOException: Input terminated before being able to read line
            at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:149)
            at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:108)
            at com.edocs.common.integration.contmgmt.UCMContentManager.saveContent(UCMContentManager.java:81)
            ... 17 more
    Caused by: java.io.IOException: Input terminated before being able to read line
            at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.readLine(HdaBinderSerializer.java:371)
            at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.readToEnd(HdaBinderSerializer.java:335)
            at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.parseBinder(HdaBinderSerializer.java:165)
            at oracle.stellent.ridc.model.serialize.HdaBinderSerializer.parseBinder(HdaBinderSerializer.java:71)
            at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:126)
            ... 19 more

    The following is my testing code.
    package ebilling;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.security.SecureRandom;
    import java.text.SimpleDateFormat;
    import java.util.ArrayList;
    import java.util.Calendar;
    import java.util.List;
    import java.util.Properties;
    import java.util.concurrent.LinkedBlockingQueue;
    import java.util.concurrent.ThreadPoolExecutor;
    import java.util.concurrent.TimeUnit;
    import oracle.stellent.ridc.IdcClient;
    import oracle.stellent.ridc.IdcClientManager;
    import oracle.stellent.ridc.IdcContext;
    import oracle.stellent.ridc.model.DataBinder;
    import oracle.stellent.ridc.model.DataObject;
    import oracle.stellent.ridc.model.DataResultSet;
    import oracle.stellent.ridc.model.TransferFile;
    import oracle.stellent.ridc.protocol.ServiceResponse;
    import org.apache.commons.lang.StringUtils;
    public class UCMContentManager {
         * Check in a file into a Oracle WebCenter Content Server and return content id of uploaded content item in Oracle WebCenter Content Server.    
         * @param properties        The Oracle WebCenter Content Server connection properties.
         * @param contentFile       This file will be checked in a Oracle WebCenter Content Server.
         * @param path              The location path of checked in file in Oracle WebCenter Content Server. This path includes the file name.<br>
         *                             For example, "/folder1/folder2/file1.txt". The "file1.txt" is the file name part. <br>
         *                             The file name will be used as dDocName in Oracle WebCenter Server. It must be unique.<br>
         * @throws ContentException The exception when uploading file into Oracle WebCenter Content Server.
         * @return                  The content id of uploaded content item in Oracle WebCenter Content Server.
        public String saveContent(Properties properties, File contentFile, String path) throws ContentException{
            if(path.endsWith(SLASH)) {
                throw new ContentException("Require file name in Content Management Server");
            if(!path.startsWith(SLASH)) {
                throw new ContentException("The file store path in Content Management Server should be absolute.");
            if (path.indexOf("//") != -1) {
                path = path.replace("//", SLASH);
            String[] paths = path.split(SLASH);       
            String[] parents = new String[paths.length - 1];
            String itemName = paths[paths.length-1];
            System.arraycopy(paths, 0, parents, 0, paths.length-1);
            ServiceResponse response = null;
            try {
                IdcClientManager manager = new IdcClientManager();
                IdcClient client = manager.createClient(properties.getProperty(URL_PROPERTY));
                client.getConfig().setProperty ("http.library", "apache4");
                String user = properties.getProperty(USERNAME_PROPERTY);
                String pwd = properties.getProperty(PASSWORD_PROPERTY);
                IdcContext connectionContext = new IdcContext(user, pwd);
                pwd = null;
                //create the parent folders if they don't exist
                String folderGUID = makeFolders(properties, parents);
                //check in the file
                DataBinder requestData = client.createBinder();
                requestData.putLocal("IdcService", "CHECKIN_UNIVERSAL");
                requestData.putLocal("IsJava", "1");
                requestData.putLocal("dDocName", itemName);           
                requestData.putLocal("dDocTitle", itemName);           
                requestData.putLocal("dDocType", "Binary");
                requestData.putLocal("dSecurityGroup", "Public");
                requestData.addFile("primaryFile", new TransferFile(contentFile));
                response = client.sendRequest(connectionContext, requestData);           
                DataBinder responseData = response.getResponseAsBinder();
                //String did = responseData.getLocal("dID");           
                String dDocname = responseData.getLocal("dDocName");
                closeResponse(response);
                //link the file in a folder
                requestData = client.createBinder();
                requestData.putLocal("IdcService", "FLD_CREATE_FILE");
                requestData.putLocal("fParentGUID", folderGUID);
                String fileType = "owner";
                requestData.putLocal("fFileType", fileType);           
                requestData.putLocal("dDocName", dDocname);           
                response = client.sendRequest(connectionContext, requestData);
                return dDocname;
            } catch (Throwable e) {
                throw new ContentException(e);
            } finally{
                closeResponse(response);
        public void deleteContent(Properties properties, String contentId) throws ContentException{
            List<String> didList = getDIds(properties, contentId);
            contentId = contentId.toUpperCase();
            ServiceResponse    response = null;
            try {           
                IdcClientManager manager = new IdcClientManager();
                IdcClient client = manager.createClient(properties.getProperty(URL_PROPERTY));
                client.getConfig().setProperty ("http.library", "apache4");
                String user = properties.getProperty(USERNAME_PROPERTY);
                String pwd = properties.getProperty(PASSWORD_PROPERTY);
                IdcContext connectionContext = new IdcContext(user, pwd);
                pwd = null;
                DataBinder requestData = null;
                for(int i=0; i<didList.size(); i++) {
                    String did = didList.get(i);
                    requestData = client.createBinder();
                    requestData.putLocal("IdcService", "DELETE_DOC");
                    requestData.putLocal("dDocName", contentId);               
                    requestData.putLocal("dID", did);   
                    response = client.sendRequest(connectionContext, requestData);
                    closeResponse(response);
                    //delete parent folder
    //                try {
    //                    requestData = client.createBinder();           
    //                    requestData.putLocal("IdcService", "FLD_DELETE");       
    //                    requestData.putLocal("item1", "path:" + parentPath);
    //                    requestData.putLocal("constructDialog", "1");
    //                    response = client.sendRequest(connectionContext, requestData);
    //                } catch (Exception e) {
    //                    // TODO: handle exception
            } catch (Exception e) {
                throw new ContentException(e);
            } finally {
                closeResponse(response);
        public int getFileCountInFolder(Properties properties, String path) throws ContentException{
            ServiceResponse    response = null;
            try {
                IdcClientManager manager = new IdcClientManager();
                IdcClient client = manager.createClient(properties.getProperty(URL_PROPERTY));
                client.getConfig().setProperty ("http.library", "apache4");
                String user = properties.getProperty(USERNAME_PROPERTY);
                String pwd = properties.getProperty(PASSWORD_PROPERTY);
                IdcContext connectionContext = new IdcContext(user, pwd);
                pwd = null;
                DataBinder binder = client.createBinder();
                binder.putLocal("IdcService", "FLD_BROWSE");
                binder.putLocal("path", path);
                response = client.sendRequest(connectionContext, binder);
                DataBinder result = response.getResponseAsBinder();
                String num = result.getLocal("numFiles");
                return Integer.parseInt(num);
            catch (Exception e) {
                throw new ContentException(e);
            } finally {
                closeResponse(response);
        private String getFolderGUID(Properties properties, String path) throws ContentException {
            ServiceResponse    response = null;       
            String tmpFolderGUID = null;
            try {
                IdcClientManager manager = new IdcClientManager();
                IdcClient client = manager.createClient(properties.getProperty(URL_PROPERTY));
                client.getConfig().setProperty ("http.library", "apache4");
                String user = properties.getProperty(USERNAME_PROPERTY);
                String pwd = properties.getProperty(PASSWORD_PROPERTY);
                IdcContext connectionContext = new IdcContext(user, pwd);
                pwd = null;   
                DataBinder requestData = client.createBinder();
                requestData.putLocal("IdcService", "FLD_INFO");
                requestData.putLocal("path", path);       
                response = client.sendRequest(connectionContext,
                        requestData);
                DataResultSet result = response.getResponseAsBinder().getResultSet("FolderInfo");
                tmpFolderGUID = result.getRows().get(0).get("fFolderGUID")
                    .toString();
                if(StringUtils.isBlank(tmpFolderGUID))
                    tmpFolderGUID = null;           
            } catch (Exception e) {               
            } finally {
                closeResponse(response);
            return tmpFolderGUID;
        public boolean deleteFolder(Properties properties, String path) throws ContentException {
            if(getFolderGUID(properties, path)==null)       
                return false;
            int fileCount = getFileCountInFolder(properties, path);
            ServiceResponse    response = null;
            if(fileCount==0) {
                try {
                    IdcClientManager manager = new IdcClientManager();
                    IdcClient client = manager.createClient(properties.getProperty(URL_PROPERTY));
                    client.getConfig().setProperty ("http.library", "apache4");
                    String user = properties.getProperty(USERNAME_PROPERTY);
                    String pwd = properties.getProperty(PASSWORD_PROPERTY);
                    IdcContext connectionContext = new IdcContext(user, pwd);
                    pwd = null;               
                    DataBinder binder = client.createBinder();   
                    binder.putLocal("IdcService", "FLD_DELETE");       
                    binder.putLocal("item1", "path:" + path);
                    binder.putLocal("constructDialog", "1");
                    response = client.sendRequest(connectionContext, binder);
                    return true;
                catch (Exception e) {
                    throw new ContentException(e);
                } finally {
                    closeResponse(response);
            } else {
                return false;
        private String buildPath(String[] arr, int i) {
            StringBuilder buf = new StringBuilder();
            for(int j=0; j<=i; j++) {
                buf.append(arr[j]);
                buf.append(SLASH);
            return buf.toString();
        private String makeFolders(Properties properties, String[] paths) throws ContentException{
            String folderGUID = "";
            ServiceResponse response = null;
            try {
                IdcClientManager manager = new IdcClientManager();
                IdcClient client = manager.createClient(properties.getProperty(URL_PROPERTY));
                client.getConfig().setProperty ("http.library", "apache4");
                String user = properties.getProperty(USERNAME_PROPERTY);
                String pwd = properties.getProperty(PASSWORD_PROPERTY);
                IdcContext connectionContext = new IdcContext(user, pwd);
                pwd = null;
                String parentFolderGUID = null;
                for(int i=0; i<paths.length; i++) {
                    String fullPath = buildPath(paths, i);
                    DataBinder requestData = null;                   
                    parentFolderGUID = folderGUID;
                    folderGUID = getFolderGUID(properties, fullPath);
                    boolean exists = folderGUID!=null;
                    DataResultSet result = null;               
                    if(!exists) {
                        //create new folder
                        try {
                            requestData = client.createBinder();                   
                            requestData.putLocal("IdcService", "FLD_CREATE_FOLDER");
                            requestData.putLocal("fParentGUID", parentFolderGUID);
                            requestData.putLocal("fFolderName", paths[i]);
                            response = client.sendRequest(connectionContext, requestData);
                        } finally {
                            closeResponse(response);
                        //retrieve folderGUID of new folder
                        folderGUID = getFolderGUID(properties, fullPath);                   
            } catch (Throwable e) {
                throw new ContentException(e);
            } finally{
                closeResponse(response);
            return folderGUID;
        public List<String> getDIds(Properties properties, String contentId) throws ContentException{
            contentId = contentId.toUpperCase();
            List<String> didList = new ArrayList<String>();
            ServiceResponse    response = null;
            try {
                IdcClientManager manager = new IdcClientManager();
                IdcClient client = manager.createClient(properties.getProperty(URL_PROPERTY));
                client.getConfig().setProperty ("http.library", "apache4");
                String user = properties.getProperty(USERNAME_PROPERTY);
                String pwd = properties.getProperty(PASSWORD_PROPERTY);
                IdcContext connectionContext = new IdcContext(user, pwd);
                pwd = null;
                DataBinder requestData = null;
                requestData = client.createBinder();
                requestData.putLocal("IdcService", "GET_SEARCH_RESULTS");
                requestData.putLocal("SortField", "dInDate");
                requestData.putLocal("SortType", "DESC");
                requestData.putLocal("QueryText", "dDocName <matches> `" + contentId +"`");
                response = client.sendRequest(connectionContext, requestData);
                DataBinder result = response.getResponseAsBinder();
                DataResultSet resultSet = result.getResultSet("SearchResults");
                for (DataObject dataObject : resultSet.getRows()) {
    //                System.out.println("ID : " + dataObject.get("dID")+" dDocName : "
    //                        + dataObject.get("dDocName") + " Title : " + dataObject.get("dDocTitle")
    //                        + " Author : " + dataObject.get("dDocAuthor") + " Security Group : "
    //                        + dataObject.get("dSecurityGroup"));
                    String did = dataObject.get("dID");
                    didList.add(did);
                    //break;
            } catch (Exception e) {
                throw new ContentException(e);
            } finally{
                closeResponse(response);
            return didList;
         * Get the file content represented by contentId from a Oracle WebCenter Content Server.
         * The return value is the input stream of retrieved file content.
         * @param properties        The Oracle WebCenter Content Server connection properties.
         * @param contentId         The Content ID for the content item in Oracle WebCenter Content Server.
         * @throws ContentException The exception when retrieving content from Oracle WebCenter Content Server.
         * @return                  The input stream of retrieved file content.
        public InputStream retrieveContent(Properties properties, String contentId) throws ContentException{
            try {
                return new FileInputStream(retrieveContentFile(properties, contentId));
            } catch (Throwable e) {
                throw new ContentException(e);
        public File retrieveContentFile(Properties properties, String contentId) throws ContentException {
            contentId = contentId.toUpperCase();
            ServiceResponse response = null;
            try {
                IdcClientManager manager = new IdcClientManager();
                IdcClient client = manager.createClient(properties.getProperty(URL_PROPERTY));
                client.getConfig().setProperty ("http.library", "apache4");
                String user = properties.getProperty(USERNAME_PROPERTY);
                String pwd = properties.getProperty(PASSWORD_PROPERTY);
                IdcContext connectionContext = new IdcContext(user, pwd);
                pwd = null;
                DataBinder binder = client.createBinder();
                binder.putLocal("IdcService", "GET_FILE");
                //binder.putLocal("dID", dID);
                binder.putLocal("dDocName", contentId);
                binder.putLocal("RevisionSelectionMethod", "Latest");
                response = client.sendRequest(connectionContext, binder);
                InputStream in = null;
                OutputStream out = null;
                String edxhome = System.getProperty("edx.home");
                File tmpParent = new File(edxhome);
                tmpParent = new File(tmpParent, "Output");
                tmpParent = new File(tmpParent, "tmp");
                tmpParent.mkdirs();
                File tmpFile = File.createTempFile("down_", "_ucm", tmpParent);
                tmpFile.deleteOnExit();
                try {
                    in = response.getResponseStream();
                    out = new FileOutputStream(tmpFile);
                    byte[] buf = new byte[1024];
                    int read = -1;
                    while((read = in.read(buf))!=-1) {
                        out.write(buf, 0, read);
                } finally{
                    try {
                        if(in!=null)
                            in.close();
                    } catch (Exception e2) {
                    try {
                        if(out!=null)
                            out.close();
                    } catch (Exception e2) {
                return tmpFile;
            } catch (Throwable e) {
                throw new ContentException(e);
            } finally{
                closeResponse(response);
        private void closeResponse(ServiceResponse response) {
            if(response!=null) {
                try {
                    response.close();
                } catch (Exception e) {
        private static final String SLASH = "/";   
        private static final String URL_PROPERTY = "contentServerURL";
        private static final String USERNAME_PROPERTY = "contentServerUser";
        private static final String PASSWORD_PROPERTY = "contentServerPassword";
        static volatile boolean flag = false;
        static class UploadTask implements Runnable{
            public void run() {           
                try {
                    while(!flag) {
                        UCMContentManager manager = new UCMContentManager();
                        Properties properties = new Properties();
                        properties.put(URL_PROPERTY, "https://slc402124:16201/cs/idcplg");
                        properties.put(USERNAME_PROPERTY, "weblogic");
                        properties.put(PASSWORD_PROPERTY, "weblogic1");
                        File contentFile = new File("C:/toding/mypro/UCM/test.txt");
                        String parentPath = "/new/test/multiThreadUpload/";
                        String location = makePath(parentPath);
                        manager.saveContent(properties, contentFile, location);
                        System.out.println(location);
                        Thread.sleep(5000);
                } catch (Exception e) {
                    e.printStackTrace();
                    flag = true;
        public static void main(String[] args) throws Exception{
            ThreadPoolExecutor executor = new ThreadPoolExecutor(10, 10, 60, TimeUnit.SECONDS,
                     new LinkedBlockingQueue<Runnable>());
            for(int i=0; i<10; i++) {
                 UploadTask uploadTask = new UploadTask();
                 executor.execute(uploadTask);
            while(!flag) {
                Thread.sleep(5000);
            executor.shutdown();
        public static String makePath(String parentPath) {
            StringBuilder buf = new StringBuilder();
            buf.append(parentPath);
            if(!parentPath.endsWith("/")) {
                buf.append("/");
            Calendar rightNow = Calendar.getInstance();
            String pattern = "yyyyMMdd";
            SimpleDateFormat simDateForm = new SimpleDateFormat(pattern);
            String dateStr = simDateForm.format((rightNow).getTime());       
            pattern = "HHmmssSSS";
            simDateForm = new SimpleDateFormat(pattern);
            String timeStr = simDateForm.format((rightNow).getTime());
            buf.append(dateStr);
            buf.append("/");
            buf.append(timeStr);
            buf.append("_");
            buf.append(random.nextInt(10000));
            String finalLocation = buf.toString();
            return finalLocation;
        private static SecureRandom random = new SecureRandom();

  • Problem after run report with spreadsheet

    hi evry one
    ther an a problem after run report with spreadsheet .
    after runing iexplorar open and close fast no thing else
    when i check the job from appserver job success with spreadsheet dis format.
    what shall i do.
    thanks.

    Hello,
    Do you use the Oracle Forms builtin WEB.SHOW_DOCUMENT ?
    If yes , take a look to : "IE7 windows opened and closed immediatly"
    http://www.experts-exchange.com/Software/Internet_Email/Web_Browsers/Internet_Explorer/Q_23304982.html
    You can test the solution suggested :
    We have found the setting that we needed, under the Internet Options
    Security tab, if you select the internet zone, and click the custom level
    button, then scroll down to the Downloads section, the first option is
    Automatic prompting for file downloads, setting this to enable keeps IE 7
    from interfering with this sort of download.
    Regards
    Example with screen shots :
    http://www.celt.iastate.edu/webct/securitysettings.html
    Regards

  • No accounts showed up after running reconcillatio with SAP HR adapter

    Good afternoon all,
    I have an urgent question with the SAP HR adapter and I cannot resolve it for three days. You help will be greatly appreciated.
    I configured SAP JCO 2.1.9 to work with IDM 8.1 SAP HR adapter. The "Test Configuration" button works on the first page of SAP HR Resource Wizard. After I ran a full reconcillation, IDM gave a status "Full reconcillation succeeded" with the following details:
    Users examined for claims 0
    Resource accounts claimed: 0
    Resource accounts discovered: 8578
    Native changes detected:
    Accounts added: 8578
    Accounts processed for reconcillation: 8578
    Correlation processing:
    Resource accounts fetched: 8578
    Accounts correlated with users: 8578
    Account state updates required: 8578
    To see the account index for the accounts in each category, click a situation type below:
    While the account index search returns nothing and listing accounts shows no accounts from SAP.
    Would you please shed some lights on what might be wrong with my configuration? Thank you very much for your help.
    Sheng

    Did you find any solution? I´m facing a similar problem: when I run the reconciliation in a few secons it ends and shows 0 for all kind of results (claims, discovered, fetched,...). In another instance it works fine so we configured this SAP resource in a similar way but doesn´t detect accounts.
    Regards.

Maybe you are looking for