Error viewing variables tab after running edit UI

Hi,
I have a problem that seems to be somewhat like this:
http://forums.ni.com/t5/NI-TestStand/Error-viewing-variables-tab-in-Runtime-Operator-Interface/m-p/1...
The VI I am trying to run is an edit substep of a step type. LabVIEW checks to see if the "Step.Setup.ReadMeasName" property exists, populates a listbox with it if it does. Another listbox with all the available measurement names also appears on the UI. The user has an Add and Remove button to remove measurements from the "ReadMeas" listbox or add them to it from the "MeasNames" listbox. Multiple names can be added/removed at once depending on whats selected when the buttons are pressed. Once "Done" is clicked the VI writes the"ItemNames" property of the "ReadMeas" listbox to "Step.Setup.ReadMeasName", using a Set Property Value node which is passed the TestStand Sequence Context. If the property doesn't exist it creates it.
The only time I have any problem is when I try to remove items from the property after it is already initialized (i.e. not empty). In other words, if I run the VI from teststand, put several measurement names into "ReadMeas" click done, run the VI again (the names already added appear in the box when the UI comes up, LabVIEW reads "Step.Setup.ReadMeasName" ), and then remove some of the names. IF I had "ThisContext.Step.Setup.ReadMeasNames" opened in the step "Variables" tab when trying to remove the names this message appears in the Variables tab: "One or more errors have occurred. Please Save your work and restart the application." If I make sure not to have "ThisContext" expaded in the variables tab, but check the property before and after removing names from the list it does work properly and there is no error.
This isn't a big deal becuase I doubt the end-user will be checking to see that the property actually got populated, but I still would like to fix the bug if possible. I've installed the patch for TestStand 2010, and the .Net framwork 4.0. Anyone have any idea what could be going on here?
Thanks,
-Josh
Solved!
Go to Solution.

Josh -
It looks like you're running into a Known Issue 193751, which is documented in the TestStand 2010 and 2010 SP1 Known Issues List. This is an issue that we intend to fix in a future version of TestStand.
I hope this helps and am sorry for any inconvenience this issue may be causing you.
Manooch H.
National Instruments

Similar Messages

  • Error -63043: FPGA disconnects after running for a few seconds

    Hello,
        I face the following problem whenever I try to run a FPGA VI directly from my host PC onto my PXI 7831R through the ethernet.
    Initially, MAX shows my remote PXI system as 'Connected', and the FPGA VI compiles fine.
    But when I hit the 'Run' button, the VI seems to run fine for 3-4 seconds, after which it hangs (screenshot attached). A couple of seconds later, it returns the following message :-
    " LabVIEW FPGA called another software component and that component returned the following error
    Error code: -63043
    NI-RIO FPGA Communications framework: The session is invalid. The target may have reset or been rebooted. Check the network connection and retry the operation. "
    The VI continues to run on the FPGA, but I can't control it anymore from my host-PC. Even MAX shows the remote system as disconnected, after this error occurs. All I am left to do is to reboot my host-PC as well as the remote PXI target; to reach the beginning of this problem.
    I have checked the NI-RIO settings. Both my host-PC as well as remote PXI system have the same NI-RIO 3.0.0 version installed. I am running LabVIEW 8.6 .
    Can anyone help ?
    Attachments:
    Error Screenshot.JPG ‏89 KB

    Hi everyone, I have the same problem regarding the 63043 error code
    I´ve simplified my FPGA vi up to a simple write and read program of a port, as shown in the attachment, but I still have the same error.
    It´s interesting that the program runs, note in the jpg file that the while loop counter suddenly stops at Numeric=10, it means the program ran 10 iterations. Also the input port succesffully read the pin value, this meas that the program ran properly, but the SBRIO rebooted when Numeric was 10 and the target device disconnected from the project, i wonder why?
    The target device is an sbRIO-9632 , serial number 01452AC3 with the following software installed:
    NI-RIO 3.4.0 - January 2010
    DataSocket for LabVIEW Real-Time 4.7.0
    EPICS Server I/O Server 1.6.1
    LabVIEW PID and Fuzzy Logic Toolkit 9.0.0
    LabVIEW Real-Time 9.0.1
    Language Support for Japanese 9.0.1
    Language Support for LabVIEW RT 1.0.0.3
    Modbus I/O Server 1.6.1
    NI-RIO 3.4.0
    NI-Serial RT 3.3.4
    NI-VISA 4.6
    NI-VISA Server 4.6
    NI-Watchdog 4.0.1
    Network Variable Engine 1.6.1
    Run-Time Engine for Web Services 2.0.1
    SSL Support for LabVIEW RT 2.0.1
    System State Publisher 1.1.0
    Variable Client Support for LabVIEW RT 1.6.1
    Web Server for LabVIEW RT 2.0.0
    Available add-ons:
    LabVIEW Control Design and Simulation 9.0.1
    However, if I run a program in the RT processor without referencing any vi on the FPGA it runs without problems, it´s only when a file is loaded into the FPGA that the system reboots and the error message appears.
    Please help me
    leito
    Attachments:
    error-63043.jpg ‏264 KB

  • Multiclip issue: camera views turn to single view in canvas after 1st edit

    I have been having a problem I can not figure out. I have had it with FCP 5.0 and FCP 6.0. After making a multi clip and dragging it to my timeline. It works great, I edit it normally with no problems. Sometimes , but not always, when I go back to fine tune the edit, here is what happens.
    When I play the multiclip, I only see the full screen image that is also playing in my canvas. When I stop the clip all three edit windows ( I am working with 3 cameras) show back up in my viewer. When I hit play again, the 3 edit windows disappear and the same full screen video is playing in both the view and the canvas.
    Some times while playing the timeline, a section will play with all three edit windows available, and the next clip on the timeline the edit window returns to full screen, not allowing me to edit or see the three cameras simultaneously.
    Anyone have any ideas how to solve this problem?

    I just re-read your posts and you say that only one angle appears in the CANVAS? That is how it's supposed to work. You can also set it to play back in mult-angle view to your video monitor (I think it also plays in the Canvas, I can't remember off-hand), but that doesn't work well for mult-angle editing. You want to see all the angles (as many as possible at least) in the Viewer (monitor wall), and to see the active "on-air" angle in the Canvas (Air/Program output). That's how we do it in live, and live-to-tape productions.
    In multiclip mode, these are examples of what happens:
    1. During playback, hitting keypad numbers 1, 2, 3,... will cut to those angles, but will not record the cuts (may need to change keyboard layout in the FCP menu)
    2. During playback, hitting Cmd + keypad numbers 1, 2, 3,... will cut those angles, and the cuts will be recorded in the sequence, effectively allowing you to "switch it live" (may need to change keyboard layout in the FCP menu)
    3. During playback, all angles will play together (like a monitor wall) in the Viewer, with the active angle being highlighted
    4. While playback is stopped, and the Canvas/sequence is selected, where ever the playhead is in the sequence, hitting keypad numbers 1, 2, 3,... will change that clip's angle
    I see you have a MBP, so if that's what you're editing on, then the keypad thing won't necessarily work. I don't recall if the top number keys also do it, but you can program them to if they don't in the Keyboard Layout menu.
    The FCP manual is actually pretty helpful with all this. I'd also suggest to not collapse any of your multiclips until you're finished editing.
    tim
    Message was edited by: ADCNR_Tim

  • Error -1074360293 (IMAQdx Timeout) after running acquisition for some time

    My vision application in LabVIEW does several acquisitions and processings successful but then the acquisition (grab) suddenly fails with a timeout error (-1074360293, IMAQdx: Timeout). The error does not happen when only acquiring the images.
    After the error happened no acquisition is possible. Even when LabVIEW is closed MAX returns a timeout error. Only rebooting helps.
    some Hardware Details:
    3 FireWire Controllers (1394a)
    3 Cameras connected to the first two controllers, one to the third (7 cameras total)
    Mode for all cameras: 1280 x 960 Mono 8 7.50 fps
    The bandwidth for a FireWire controller is sufficient. (Three cameras on one controller run without any problem.)
    The memory consume of the application is raising short before or after the error occurs. But I did not find out where exactly.
    Before the error happens some minutes until one and half an hour pass.
    More details will follow.
    Is there a specialist in FireWire or in vision who can help?
    Greetings,
    shb
    Solved!
    Go to Solution.

    Changing the driver to this one seems to solve the issue:
    "OHCI-compliant 1394 Host controller (legacy)" (in German: "OHCI-konformer 1394-Hostcontroller (alt)")
    With this driver the test has run for more than 66 hours without throwing an error.
    Some related Articles:
    http://www.rme-audio.de/forum/viewtopic.php?id=9827
    http://www.myvideoproblems.com/ProblemPages/CannotCapture.htm

  • Viewing requirements generated after running MRP (MD50)

    Hi All,
    I would like to know if there is any way to check for all the requirements that have been raised subsequent to running MRP using MD50. We have an MTO scenario and want to cross-check if the requirements for raw materials are being accurately generated.
    This cross-checking requirement has risen due to the fact that there are many alternative BOMs for each material and there have been instances where due to errors in the material master, some raw materials are suspected to be missing out from the list of requirements generated.
    Thanks!
    Praveer

    Praveer,
    Check MDKP table for list of materials for which last MRP run date.
    Run MRP in MD01 for if in case MTO Raw materials has MTS relevancy this way you can include all materials for MRP.
    BR
    KK

  • Get ReferenceError: Error #1065: Variable Transform3DController is not defined. when running debug.

    Hi,
    I just upgraded my Flash Builder to 4.6. Ever since the upgrade I have been getting the following error right when I run my web files through debug:
    ReferenceError: Error #1065: Variable Transform3DController is not defined.
              at global/flash.utils::getDefinitionByName()
              at ominds.mouseinspect::MouseInspector/onTmd3dModuleLoaded()
    I'm not sure if this came from the new upgrade to the builder or if this an issue with the new Flash Player 11,1,102,55 release. It seems that when I got to http://www.adobe.com/software/flash/about/ it doesn't even load the flash movie.
    I'm on a Mac OS X v10.6.8 and I use mostly chrome but this issue also occurs in FireFox.
    Does anyone have any ideas to wtf is going on?
    Thanks,
    -Nate

    I have been experiencing this same issue. After reading this post a messing around, I also feel like it has to do with either Flashbug or FlashFirebug. So I've been experiencing this issue while trying to launch my application in Chrome. I disabled these extensions and the error when away. I then reenabled the extensions, and the error didn't come back until I launched debug in Firefox, even if I switched to launching in Chrome. I can only guess that these extensions are doing something to the flash player that v11 isn't happy with.
    Anyway, even if you're debugging in Chrome, try out disabling these extensions. It's odd, yes, but it worked for me.

  • Error reading memory - W3WP.exe after running rpt

    We have a few reports that are causing memory errors to occur. This is under Windows Server 2003 using CR 2008. The reports are exported from a Windows application to .rpt files. These are then displayed using the Report Viewer from a .Net web app. Most of the reports we generate run fine but there are about 6 that are causing these errors. The problem .rpts do display fine when viewing the report using the VS CR designer.
    The scenario for report 'X' is that I can display a number or reports without a problem and the first time I display report 'X' it also is correct. The next report I attempt to display after report 'X' pops up the error on W3WP.exe...The instruction at "0x7c81bb72" referenced memory at "0x30303030". The memory could not be "read". The event log after this shows...
    Faulting application w3wp.exe, version 6.0.3790.3959, faulting module ntdll.dll, version 5.2.3790.4789, fault address 0x0002bac2.
    I have tried a number of combinations for displaying reports but the error always occurs after running report 'X'. As a side note the same reports causing these problems have also been tested in CR2010 on Windows Server 2008 - 64 bit and they also have problems there. In that case we are getting the Event ID 4353 - KeycodeDecoder.dll error in the event log which I have seen in other posts.
    Any ideas on what to look for in the problem reports? What other info can I supply?
    Thank you.
    - David

    What CR Service pack are you on? You should be on SP3:
    https://smpdl.sap-ag.de/~sapidp/012002523100007123572010E/cr2008_sp3.exe
    Do you see the issue on your dev computer or after you deploy?
    Create a new simple web app;
    viewer
    code; CrystalReportViewer1.Reportsource = <path to report"
    Does the test app reproduce the issue? If it does, would you be able to share the report?
    - Ludek

  • OIM: Error after running in patch_oimapp.sh

    Hi All,
    I have OIM11gR2 installed and I am trying to configure the LDAP Synch with OID via OVD. As per the documentation, after running the patch_oimapp.sh, I am getting below error:
    explode-archived-apps-was:
    seed-ootb-jobs:
    seed-ootb-jobs:
    +[echo] ----> SEEDING OUT OF THE BOX SCHEDULE JOBS AND TRIGGERS+
    +*[java] Exception in thread "main" java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver+*
    *+[java]* at java.net.URLClassLoader$1.run(URLClassLoader.java:202)+
    +[java] at java.security.AccessController.doPrivileged(Native Method)+
    +[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)+
    +[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)+
    +[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)+
    +[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:247)+
    +[java] at java.lang.Class.forName0(Native Method)+
    +[java] at java.lang.Class.forName(Class.java:169)+
    +[java] at oracle.iam.scheduler.seed.SeedSchedulerData.startSeeding(SeedSchedulerData.java:723)+
    +[java] at oracle.iam.scheduler.seed.SeedSchedulerData.main(SeedSchedulerData.java:111)+
    BUILD FAILED
    +/opt/oracle/Middleware/Oracle_IAM/server/setup/deploy-files/setup.xml:21: The following error occurred while executing this line:+
    +/opt/oracle/Middleware/Oracle_IAM/server/setup/deploy-files/setup.xml:84: The following error occurred while executing this line:+
    +/opt/oracle/Middleware/Oracle_IAM/server/seed_data/seed-rcu-data.xml:37: Java returned: 1+
    Total time: 44 seconds
    Below is my appserver.profile file:
    # Please fill the information below before running the post-patch script.
    # Put the OIM DB schema owner name here
    operationsDB.user=DEV_OIM
    # Put the DB driver to be used
    operationsDB.driver=oracle.jdbc.OracleDriver
    # Put the absolute path to the Weblogic/Websphere server directory here.
    appserver.dir=/opt/oracle/Middleware/wlserver_10.3
    # The host on which OIM db is running
    operationsDB.host=oracle
    # The service name of the OIM db [Do not mention the SID here.]
    operationsDB.serviceName=ORACLE11G
    # The port of the OIM db
    operationsDB.port=1521
    # Application server was or wls
    appserver.type=wls
    Any pointers what could be wrong?
    Regards,
    Sunny

    Hi Guys,
    Thanks for the reply.
    Copied the ojdbc6.jar in WLS_HOME/server/lib, OIM_HOME/server/lib,DOMAIN_HOME/lib, restarted the server but still no luck:
    patch:
    check-appserver-type:
    [echo]
    [echo] websphere.server----${appserver.was}
    [echo]
    explode-archived-apps:
    [delete] Deleting directory /opt/oracle/Middleware/Oracle_IAM/server/apps/oim.ear
    [delete] Deleting directory /opt/oracle/Middleware/Oracle_IAM/server/apps/Nexaweb.ear
    [mkdir] Created dir: /opt/oracle/Middleware/Oracle_IAM/server/apps/oim.ear
    [mkdir] Created dir: /opt/oracle/Middleware/Oracle_IAM/server/apps/Nexaweb.ear
    [unzip] Expanding: /opt/oracle/Middleware/Oracle_IAM/server/patching/oim.ear into /opt/oracle/Middleware/Oracle_IAM/server/apps/oim.ear
    [unzip] Expanding: /opt/oracle/Middleware/Oracle_IAM/server/patching/Nexaweb.ear into /opt/oracle/Middleware/Oracle_IAM/server/apps/Nexaweb.ear
    check-appserver-type:
    [echo]
    [echo] websphere.server----${appserver.was}
    [echo]
    explode-archived-apps-was:
    seed-ootb-jobs:
    seed-ootb-jobs:
    [echo] ----> SEEDING OUT OF THE BOX SCHEDULE JOBS AND TRIGGERS
    [java] Exception in thread "main" java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
    [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    [java] at java.security.AccessController.doPrivileged(Native Method)
    [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    [java] at java.lang.Class.forName0(Native Method)
    [java] at java.lang.Class.forName(Class.java:169)
    [java] at oracle.iam.scheduler.seed.SeedSchedulerData.startSeeding(SeedSchedulerData.java:723)
    [java] at oracle.iam.scheduler.seed.SeedSchedulerData.main(SeedSchedulerData.java:111)
    BUILD FAILED
    /opt/oracle/Middleware/Oracle_IAM/server/setup/deploy-files/setup.xml:21: The following error occurred while executing this line:
    /opt/oracle/Middleware/Oracle_IAM/server/setup/deploy-files/setup.xml:84: The following error occurred while executing this line:
    /opt/oracle/Middleware/Oracle_IAM/server/seed_data/seed-rcu-data.xml:37: Java returned: 1
    Total time: 50 seconds
    Regards,
    Sunny

  • Error Code After Running Apple Hardware Test

    I ran apple hardware test (I'm having problems where my computer freezes for like 10 seconds with the mouse being movable... but it happens very frequently. like once a minute. it's SOOO ANNOYING)
    this is the error i got after running apple hardware test:
    (it came out as a Mass Storage error... which is Hard Disk i guess)
    **ERROR*CODE***ERROR*CODE**
    2STF/8/3: S-ATA Bus 0-Master
    **ERROR*CODE***ERROR*CODE**
    Does anyone know what I can do to fix it. Apple Hardware Test only allows me to find the error and then restart or shut down... which is useless cause what is the error code supposed to mean. I've only got Apple 1 yr repair support left... so I cant call up Apple or anything. Does anyone know anything about this and what I could do to fix it!?
    I know about this: http://www.apple.com/support/imac/repairextensionprogram/
    I might go to the apple store, but I dont wanna make a trip out there for nothing.
    Does anyone know what I can do or should I just take it to the apple store.

    Actually, i just spent like 1 hr working with disk utility using the os x install disk and i think it finally worked. im so happy for myself! yay... i wouldnt accept no for an answer. Disk utility kept saying "oh first aid failed because it didnt exit right" or something... total garbage response... i kept pressing verify disk and then repair disk and then i did the verify permissions and repair permissions too... didnt really know what i was doing with the permissions... but it finally worked so thats all that mattered! yay... its back to normal!!

  • Oracle 9i export error after running catexp.sql file

    After running catexp.sql file in oracle 9i 9.2.0.7.0 as system user,it gives the following error while logging
    ORA-04020: deadlock detected while trying to lock object SYS.DBMS_STANDARD
    please help me..............

    "catexp.sql" is to be run by SYS AS SYSDBA.
    You'd have to cleanup any extra objects that you created in the SYSTEM account.
    Why did you think that you needed to run "catexp.sql" ? Are you exporting using 9i exp against a 10g database or against a 9i database ?

  • Data transfer schedule run error-object variable/with block variable no set

    I want to automate a Data Transfer Workbench routine.
    I created the appropriate xml file but when I run the .bat file I get the following error: "Object variable or with variable not set."
    I think that the problem resides in the xml file but there is no documentation for the xml syntax so it's impossible to correct it.
    thanks in advance

    Solved.
    The problem was in the .bat syntax.
    At the -s option the filename doesnt need quotation marks.

  • 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();

  • Several errors after running catalog.sql

    I did a fresh installation of oracle apps EBS 11.5.10.2 on Linux OEL and was trying to do an import/export and it was not working as expected. So after i looked at Oracle's documentation it said catalog.sql has to be run before using the import/export. So i ran catalog.sql first but i did not run it with SYSDBA but ran it as SYSTEM and i saw several errors like access denied etcv. after i ran the catalog.sql i was not able to login via apps or any other user except SYSTEM and was giving me erros like ORA-04065:not executed,altered or dropped stored procedure "SYS.DBMS_SESSION"
    After this to fix the issue i ran @?/rdbms/admin/catpatch.sql and @?/rdbms/admin/utlrp as SYSDBA but both executed a lot of grants etc but are haging at some point and not finishing.
    The current state of the database is that im not able to login via any user except SYSTEM and i think i corrupted the db dictionary as everywhere i see they say running catalog.sql on an existing database is a bad idea. Can anyone help?

    Hi Dheeraj,
    My db version is 9.2.0.5.0 and OS is OEL 5.7.
    The doc where it was mentioned to run catalog.sql before using import/export is below:
    http://docs.oracle.com/cd/B10501_01/server.920/a96652/ch01.htm
    Please do not follow the steps in this link and instead follow the steps in (9i Export/Import Process for Oracle Applications Release 11i [ID 230627.1]).
    Currently when im trying to login using apps or any other user below are errors i get.
    ERROR:
    ORA-00604: error occurred at recursive SQL level1
    ORA-04068: existing state of packages has been discarded
    ORA-04065: not executed, altered or dropped stored procedure "SYS.DBMS_SESSION"
    ORA-06508: PL/SQL: could not find program unit being called
    ORA-06512:at "SYS.OWA_VPD_CTX", line 5
    ORA-06512:at "SYS.PORTAL_LOGIN", line 3
    ORA-06512:at line 2
    Can you pls help me to fix this.The status of the package is invalid and you need to validate it. Connect as sysdba and issue:
    SQL> select owner, object_type, status
    from dba_objects
    where object_name = 'DBMS_SESSION';
    SQL> alter package DBMS_SESSION compile body;
    SQL> show error
    SQL> alter package DBMS_SESSION compile;
    SQL> show errorPlease also see:
    Data Dictionary Objects Invalid after Running catalog.sql, catproc.sql, utlrp.sql or catpatch.sql [ID 752783.1]
    Debug and Validate Invalid Objects [ID 300056.1]
    How to Diagnose Invalid or Missing Data Dictionary (SYS) Objects [ID 554520.1]
    Thanks,
    Hussein

  • I'm getting this error after I edit photos 'nothing was imported. What is causing this?

    I'm getting this error after I edit photos 'nothing was imported. the files or folder selected to import did not contain any supported file types, or files are already in this catalog.I have elements 13 using hp windows 8 laptop and never had this happen before.

    Hello staceonbass,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Check for .dll files
    Go to C:\Program Files (x86)\iTunes and C:\Program Files\iTunes and look for .dll files.
    If you find QTMovie.DLL, or any other .dll files, move them to the desktop.
    Reboot your computer.
    Note: Depending on your operating system, you may only have one of the listed paths.
    Uninstall and reinstall iTunes
    Uninstall iTunes and all of its related components.
    Reboot your computer. If you can't uninstall a piece of Apple software, try using the Microsoft Program Install and Uninstall Utility.
    Re-download and reinstall iTunes 11.1.4.
    Best of luck,
    Mario

  • ABAP Program gives error after running  successfully for few days / months

    I have a problem that sometimes my programs start giving errors or does not run at all after successfully running for few days / months.
    But, when I copy the same program with a different name (without any changes ) it starts running again.
    Yesterday I had another problem. I was sending a request to be transported to Production Client, and the request was not getting transported. But when I changed just the name of the program, It was transported to Production Client.
    I can't understand where the problem lies and what happens to the programs after running successfully for few days. All I have to do is just copy that programm into another name and it starts running.
    Can anyone help me?
    Regards,
    SK Daniel

    about the transport thing..i had the same problem few months back the reason was,  i included a table which is having different package  from my program..so wot im thinking is when you creating a different program u might be assigning different package to this new program  and this package is same as all the tables included in your program...
    regards

Maybe you are looking for

  • Installing windows from an external DVD-RW

    I am having troubles booting the windows installer from an external DVD-RW drive. It runs loudly and then goes to a screen with a folder with a question mark. When I am in OS X it gives me the option of starting from the disc, but again it gives me t

  • Image Trace, high resolution

    What are some tips for getting a clean (high definition, full color) Image Trace on a photo?

  • VOFM Custom Routine - Wrong values being stored in the database

    Hi Experts, I am using a requirement routine in my Z condition type. In invoices for new sales orders, the condition is coming directly at the line item level. In the older open sales orders, at the time of creation of invoices we are manually enteri

  • How can I use GestureRecognizer in a Xaml based app?

    I've encountered a problem when I'm trying to use gestures in my app: I'm trying to retrieve info from input on a rectangle using GestureRecognizer responding to the PointerPressed event. When the user taps on it, the textblock shows information. How

  • Adobe Air iOS publishing keeps giving unexpected errors

    The device has encountered and unexpected error. Installation Error: PackageExtractionFailed I thought it would maybe be because of my certificates or profiles. So I made new development certificates and distribution certificates. I extracted them to