Invoking a Java OPC file

I need to read a Java OPC file. I found there is a built-in activity "reading generic Java file" in CPO. But I'm not sure what should be the target, I need to point this activity. Also, can I use the output of this Java file as an input for other CPO workflow activities?

Can someone help me on this please? It would really help if there are examples for the same thing.

Thank you

Anish

You have a number of ways to do this through one of the other activities of operating system.

I'll assume that your Java (.jar?) file is available (accessible) Windows or Linux computer. And that you can actually "run" using java.exe on Windows or equivalent command-line Linux with the appropriate switches.

You will need to:

1. create a new target for the computer where the file is accessible. It would be a "Windows computer" or system Unix/Linux. If your file is accessible on a process Orchestrator server, you don't need to create a new target, such as a parameter is automatically created. Note that the objectives of the Unix/Linux system require that SFTP is enabled/configured on the machine.

2. in the process (where you want to "run" your Java file), you need to add a new activity. The activity that you add will depend on your needs. For the Windows computer, this might be 'Execute Windows Command' (for the execution of the simple command line) or "Run Windows Script" / "Run Windows PowerShell Script" If you need more than just run a command (for example, load environment variables or create a config file). For Linux/Unix system, you can use run Unix/Linux SSH command or a Script run Unix/Linux SSH respectively. Configure the activity to use java.exe or its equivalent to run your java file.

3. the property of "Output" of the activity that you used in step 2 will be the output of your java file (more, possibly, other data if you use more than the execution of a single command). You can refer to the output property of the activity of the following activities.

Hope this explanation helps.

Thank you

Svetlana

Tags: Cisco DataCenter

Similar Questions

  • Error: the file is not a valid Java code file

    Hello

    IM new in the development of BB, so bad to describe my problem step by step:

    -First of all, had installed jdk-1_5_0_14-win, BlackBerry_JDE_4.6.0, j2sdk-1_4_2_18-win, Desktop manager 4.6

    -Open BB JDE, create a new workspace

    -Add a project HelloWorldDemo.jdp file (located in the sample folder)

    -Debug the application in the Simulator (9000-JDE) without any error

    -Construction of the project and generate the .axl and .cod files

    -Try to install this app (HelloWorldDemo.cod) in my device with error

    C:\Archivos programa\Research in Motion\BlackBerry JDE 4.6.0\samples\com\rim\samples\device\helloworlddemo>javaloader u load HelloWorldDemo.cod
    Charger Pocket RIM Wireless Java
    Copyright 2001 - 2007 Research In Motion Limited
    Connected
    HelloWorldDemo load error: the file is not a valid Java code file
    7832 bytes sent to ~ 15664 bps
    Disconnected

    -Also try to install the application with Desktop Manager and the .axl file, but show this message "a fatal error has occurred while updating your software to devices." Please try again ".

    My device is a Blackberry 8700

    Software: v4.1.0.351

    Help, please!

    Thank you!

    Thank you!! Problem solved.

  • Impossible to use Java stored procedure java.nio.file package

    Hello

    I want to use the classes in the java.nio.file package but I have the problem that the classes are not loaded in the database (oracle 12 c with jvm) installed. I can't put my class in the database and use it in my procedure. It is always invalid because of the java.nio.file dependencies. Is it possible to load the java.nio.file package for use in my PB? I tried to load it via loadjava but then I get the error ORA-29552 java.lang.SecurityException: prohibited package name: java.nio.file.

    Thank you and best regards,

    Kai

    Java.nio.file package is available starting with Java 1.7, while Oracle 12 c JVM is 1.6, simple as that.

  • Cannot pass arguments to a Java exe file

    Hi, I need to execute a Java exe file. Exe works but I'm not able to provide a key to the exe parameter.

    String [] cmd = {"Dir1/the-file" exe"," "-param1", ' < ', ' text - file.txt ""};
    Process pr = rt.exec (cmd);

    He takes the first argument with no problems. But I can't take the ' < ' argument. Exe gives an error.
    In the windows command prompt, I need to clarify that the angular bracket as the other setting is
    the input to the exe file.

    Do I need to escape? or what is a solution to this problem?

    Thank you

    Published by: kooldba on February 12, 2012 14:25

    Published by: kooldba on February 12, 2012 14:26

    You must specify cmd.exe/c as the first two arguments, then everything you have now. ' < ' is not an argument of command-line in general, it is understood only by the shell.

  • What is the use of activation of java temporary files of the Java Control Panel? (Appreciated detailed responses)

    In the Panel of Win XP, you will meet Java Control Panel. When the Insider that it prove temporary Internet files options. I would like to know the retail uses / threats of activation / deactivation of the parameters of the temporary Internet files of this Panel.

    This is download and another time applet download fastly and restore your settings. No problem to remove.

  • Java custom file extension

    I have a file extension custom I want Windows to open with a Java application (namely, double-click it to open) I'm already do this via a .bat file but would like to do directly. I can java.exe associate the extension, but there is nowhere to put the parameters that would call my approx. (at least in Vista).

    You can try including the settings of the registry key that starts the program associated with your extension.

    The two keys you need to consider are explained here:

    http://Delphi.about.com/cs/adptips2000/a/bltip0700_2.htm

  • invoking the java object in a widget

    Hello

    is it possible to invoke java objects in a widget or only java application complete?

    for example, I tried:

    var args = new blackberry.invoke.JavaArguments('net.rim.device.api.system.Alert.startVibrate(25500);');
    blackberry.invoke.invoke(blackberry.invoke.APP_JAVA, args);
    

    but his does not work is there a way to do it?

    bert2002

    Hi bert2002,

    You can call a "Java Application" by using the API that you have demonstrated to invoke.  But not a Java API.

    You can create a JavaScript Extension that will wrap any Java API so that you can use in your widget.  A video on how to make can be found here:

    http://www.BlackBerry.com/DevMediaLibrary/view.do?name=WritingJavaScriptExtensions

    As well as a lab here:

    http://NA.BlackBerry.com/eng/developers/devbetasoftware/Lab_Widget_Extension.zip

  • invoke vmscript and batch file

    Hi guys

    I try to activate a windows vm using the command to invoke vmscript powercli

    cmd /c slmgr / ato works fine when I run a back order but when I call it via a script, then the script just hangs

    I also tried to put the command above in a batchfile locally on the system and just use call vmscript to run the batch file, but which hangs just as

    no idea what I'm missing?

    $test = "cmd /c slmgr/ato.

    Invoke VMScript - Scripttype beats - ScriptText $test VM - $vm - GuestUser - GuestPassword - administrator

    Can you try to force a non-GUI run, as

    cscript c:\windows\system32\slmgr.vbs

    instead of just slmgr?

  • Strategy + Java Applet file permission

    Hello world

    I developed a small Java applet for testing purposes.
    The purpose of the applet is getting data from a MySql database and displays it in a JLabel.
    I use a MySql jdbc layer contained in a Jar file.

    I tested the applet locally via Eclipse and it works fine.
    Then I packed my ".class" files into a Jar file.
    I downloaded the Jar file on the server as well as the jdbc Jar file.

    I tried to launch the applet located on the server of my browser (IE9).
    An error has occurred.
    I analyzed the results in the Java console.
    As a result, the reason for the problem:
    I miss a grant of permission in my policy file.
    The missing line is: permission java.util.PropertyPermission "file.encoding", "read";

    For more information, the policy file is located at: jre7. lib | Security

    I do not want to ask users to my future applet to change their policy file.
    So, I wonder if there is a way to examine a policy file custom during the execution of a Java applet.
    The custom policy file would occur on the same server as the applet is.

    Thanks in advance for your help.

    841232 wrote:
    But, at the same time, I encountered another problem.
    My applet does not all packages of the MySQL server.
    I wonder if my two self-signed applets cannot communicate with a remote machine because it is not the machine where the jars.
    I know that the applets of sand in box may not.

    It is also possible that there is no path network around where the applet runs on the MySQL server. (Which in general would be a good thing, because exposing a database server to the Internet can lead to problems of security of the data.)

  • Evaluation of XML Namespace by using the java properties file

    Hi all

    In my java class, I get the XML as a string. I am convert this string to xml. So in order to evaluate the xpath expression, I'm able to evaluate the xpath expression by using the namespace prefix and the namespace url as key / value in my properties file. It has worked well.


    But my project is that,

    I can receive different xmls with different sets of namespaces. For each xml namespace prefix and url wil set. While I can keep track of a set of namespace prefix and url for each xml.

    The problem here is that
    XML_A is to have its own prefix - ns1 pointing to 'http://orders.com/purchase', ns2, pointing to "http://orders.com/invoice".

    XML_B is to have its own prefix - ns1 pointing to 'http://sales.com/stock', ns2, pointing to "http://sales.com/item" - I mean same ns1 and ns2


    Kindly tell me, it's possible in the file build.properties, to bring together the key pair / value. while I have not lead to any conflict, of having the URL of the different namespace
    for the same key "ns1."

    ns1 = http://orders.com/purchase


    ns1 = http://sales.com/stock


    I want the above two lines occur in the same file build.properties. Also, when using MapObj.get ("ns1") - (where MapObj will see the values of keys to the build.properties file.)
    I want to differentiate the ns1 under certain conditions (xml_name in my case).

    Here for the prefix, I have no other don't be concat something to make a difference like A_ns1 and B_ns2. This will create problems. So kindly help me by giving an alternative.



    Thank you
    Sabarisri. N

    Hi Sabarisri,

    First, there's a material typo in my previous post (hmap2 must be read hmap, all along). I who will edit later because it is annoyingly confusing. But leave it for now.

    I think I was so explicit that I was able to convey the idea that ns1, ns2, etc., if there is more, used by the author of XML_A and XML_B are unimportant as long as you, as the consumer of them, are concerned. Apparently, I was not very successful.

    Let me do it again.

    Assume that XML_A contains the prefixes and namespace URIs like this. I even add one more by way of illustration which may overlap in the two documents.

    xmlns:ns1 = "http://orders.com/suppliers".
    xmlns:ns2 = "http://orders.com/stock".
    xmlns: x = "http://orders.com/serial."

    Then in XML_B, these.

    xmlns:ns1 = "http://customers.com/contact".
    xmlns:ns2 = "http://customers.com/billing".
    xmlns:y = "http://orders.com/serial".

    (ns1, ns2, x) and (ns1, ns2, y) are appearing as such when xml documents are served. x and there are still pointing to the same namespace (think of it as the namespace where the serial number of the orders they need later use to gather the two sets of data.) x and there is maybe not even the same same alphabet their semantics (namespace uri) are the same, the same namespace.

    Put yourself in the situation of consuming them. You know you have to deal with totally 5 namespace uri. You build the dictionary: a HashMap or unique or other properties file. Under your control are the namespace prefixes. You can ignore absolutely what they use ns1,... x, y. Design you your own. That's all.

    hmap.put("p","http://orders.com/suppliers");
    hmap.put("q","http://customers.com/contact");
    hmap.put("r","http://orders.com/serial");
    hmap.put("s","http://orders.com/stock");
    hmap.put("t","http://customers.com/billing");
    

    One more time (p, q, r, s, t) are figurative, you name it what you please as long as they are in line with the production of the grammar of namespace prefix.

    With the help of (p, q, r, s, t), you build your xpath query. The namespace context Manager can resolve correctly. You can't even say what namespace prefix must be used by querying the xml, A or B.

    Hope that makes it clearer by the repetition by another speech.

    Published by: tsuji 7 Sep 2011 08:13 (typos only)

  • Use another java project files

    I have a human witch tasks 5 simple process. I generated the task for each human task form, but I need to insert information in each task form.

    In each task form (= independent project) I created simple java bean with a few methods, each method returns a string and then I can use this method as a task. Everything is great...
    BUT - this bean is absolutely even for any task, is not a good idea to create 5 same beans in all my projects form 5 task.

    My question is - is it possible to create just 1 bean somewhere (for example in a separate project) and use it in all of the projects form task 5 without duplicating it? I tried, modification of project source plotted, adding resources, modify the project dependencies, but it does not work :( When I create a bean (or java or jsp/servlet, class) to the stand-alone project, I SIMPLE can't USE these files in other projects...

    You must still register the bean managed in your config adfc. XML or faces.config.xml

  • I invoke a Java from BPEL trial class using Java Embedding

    Hi all
    I have a requirement to call a BPEL process Java class;
    I try to import the class by "* < bpelx:exec import =" + package_name.classname + "/ > *.»

    However, compiling, I get the following error:
    «Error (19,57): could not compile classes generated bpel.» failure to compile the generated classes of BPEL for BPEL process 'BPEL_PROCESS_NAME' composite 'by default/COMPOSITE_NAME! 1.0 ".
    The class path setting is incorrect. Make sure that the class path is set correctly. If this happens on the side server, verify that the custom classes or in pots according to the BPEL process are deployed correctly. Also, make sure that the run time uses the same version/version. »

    Referred to in the scac.log:

    SAXParseException in the file + project_path + \composite.xml
    org.xml.sax.SAXParseException: line 29, column 32 >: XML-24535: attribute (error) "http://www.w3.org/XML/1998/namespace:id" is not expected.
    at oracle.xml.parser.v2.XMLError.flushErrorHandler(XMLError.java:422)
    at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:287)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:335)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:318)
    at oracle.soa.scac.ValidationFaultUtil.validateStreamWithSchema(ValidationFaultUtil.java:146)
    at oracle.soa.scac.ValidationFaultUtil.validateCompositeWithSchema(ValidationFaultUtil.java:120)
    at oracle.soa.scac.ValidateComposite.validateWithSchema(ValidateComposite.java:1480)
    at oracle.soa.scac.ValidateComposite.doValidation(ValidateComposite.java:519)
    at oracle.soa.scac.ValidateComposite.main(ValidateComposite.java:223)
    May 19, 2010 18:46:29 com.collaxa.cube.CubeLogger info
    INFO: LibClasspath = E:\Softwares\OracleFMW\jdeveloper\... \oracle_common\modules\commonj.sdo_2.1.0.jar; E:\Softwares\OracleFMW\jdeveloper\... \oracle_common\modules\oracle.fabriccommon_11.1.1\fabric-Common.jar. E:\Softwares\OracleFMW\jdeveloper\... \oracle_common\modules\oracle.xdk_11.1.0\xmlparserv2.jar. E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle. SOA.bpel_11.1.1\orabpel-Common.jar; E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle. SOA.bpel_11.1.1\orabpel-Exts.jar; E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle. SOA.bpel_11.1.1\orabpel-thirdparty.jar; E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle. SOA.bpel_11.1.1\orabpel-Validator.jar; E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle. SOA.bpel_11.1.1\orabpel.jar; E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle. SOA.fabric_11.1.1\fabric-client.jar; E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle. SOA.fabric_11.1.1\fabric-ext.jar; E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle. SOA.fabric_11.1.1\fabric-Runtime.jar; E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle. SOA.fabric_11.1.1\oracle. SOA.fabric.jar; E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle. SOA.fabric_11.1.1\soa-infra-Tools.jar; E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle. SOA.ext_11.1.1\./classes
    May 19, 2010 18:46:37 com.collaxa.cube.CubeLogger info
    INFO: validation of 'RHMEDIInboundProcess.bpel '...
    May 19, 2010 18:46:37 warn com.collaxa.cube.CubeLogger
    WARNING: CubeProcessor.compileGeneratedClasses (classpath) is: E:\Softwares\OracleFMW\jdeveloper\jdev\extensions\oracle.sca.modeler.jar. E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle. SOA.fabric_11.1.1\fabric-Runtime.jar; E:\Softwares\OracleFMW\oracle_common\modules\oracle.fabriccommon_11.1.1\fabric-common.jar; E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle. SOA.bpel_11.1.1\orabpel.jar; E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle. SOA.mediator_11.1.1\mediator_client.jar; E:\Softwares\OracleFMW\oracle_common\modules\oracle.mds_11.1.1\mdsrt.jar; C:\JDeveloper\mywork\InboundEDI_RnD\parseInboundEDIXML\classes\com\onerheem\integration\EDIInboundProcess\parseInboundEDIXML.jar; C:\JDeveloper\mywork\InboundEDI_RnD\RHMEDIInboundProcess\SCA-INF\classes; C:\JDeveloper\mywork\InboundEDI_RnD\RHMEDIInboundProcess\SCA-INF\classes; C:\JDeveloper\mywork\InboundEDI_RnD\RHMEDIInboundProcess\SCA-INF\gen-classes; E:\Softwares\OracleFMW\jdeveloper\... \oracle_common\modules\commonj.sdo_2.1.0.jar. E:\Softwares\OracleFMW\jdeveloper\... \oracle_common\modules\oracle.fabriccommon_11.1.1\fabric-Common.jar. E:\Softwares\OracleFMW\jdeveloper\... \oracle_common\modules\oracle.xdk_11.1.0\xmlparserv2.jar. E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle. SOA.bpel_11.1.1\orabpel-Common.jar; E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle. SOA.bpel_11.1.1\orabpel-Exts.jar; E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle. SOA.bpel_11.1.1\orabpel-thirdparty.jar; E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle. SOA.bpel_11.1.1\orabpel-Validator.jar; E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle. SOA.bpel_11.1.1\orabpel.jar; E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle. SOA.fabric_11.1.1\fabric-client.jar; E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle. SOA.fabric_11.1.1\fabric-ext.jar; E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle. SOA.fabric_11.1.1\fabric-Runtime.jar; E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle. SOA.fabric_11.1.1\oracle. SOA.fabric.jar; E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle. SOA.fabric_11.1.1\soa-infra-Tools.jar; E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle. SOA.ext_11.1.1\./classes


    Any suggestions to remedy the same thing?

    Hello

    I wud suggest you make a pot of your java class and include it in the libraries of the BPEL project and make use of embedded java activity this way it works.

    have a luk at the link below:

    http://niallcblogs.blogspot.com/search/label/embedded%20Java

  • Uninstall java & all files

    If I reinstall the current version for win xp home

    Hello
    If you walk through it all, then the next step would be a clean format. Make sure you backup and the files you want to keep.

    http://Windows.Microsoft.com/en-us/Windows/help/install-reinstall-uninstall

    Eddie B.

  • BLOB size/type of Java script file attachment limit

    How live validation for fixing shaped region.the following the code in global variable to the page attribute and set the static ID as ATT1 in region.its not fired?

    $('#ATT1').ready( function() {
        //check whether browser fully supports all File API
        if (window.File && window.FileReader && window.FileList && window.Blob)
        {
            //get the file size and file type from file input field as attachment Item
            var fsize = $('#P4_NWM_DOC_FILE_BINARY')[0].files[0].size;
            var ftype = $('#P4_NWM_DOC_FILE_BINARY')[0].files[0].type; 
           switch(ftype)
            {
                case 'image/pdf':
                case 'image/jpeg':
               
                    alert("Acceptable image file!");
                    break;
                default:
                    alert('Unsupported File!');
            }
        }
          else{
            alert("Please upgrade your browser, because your current browser lacks some new features we need!");
              }
    
    
          if(fsize>1048576) //do something if file size more than 1 mb (1048576)
             {
                alert(fsize +" bites\nToo big!");
            }
          else{
                alert(fsize +" bites\nYou are good to go!");
              }
       
         else{
            alert("Please upgrade your browser, because your current browser lacks some new features we need!");
            }
        }
    
    );
    

    Hi Ramani_apex,

    Changed your javascript function:

    function f_checkFileBrowse() {
        var errflag = 0;
        //check whether browser fully supports all File API
        if (window.File && window.FileReader && window.FileList && window.Blob) {
            //get the file size and file type from file input field as attachment Item
            var fsize = $('#P11_BLOB_BINARY')[0].files[0].size;
            var ftype = $('#P11_BLOB_BINARY')[0].files[0].type;
            //alert(ftype);
           switch(ftype)
            {
                case 'image/png':
                case 'image/jpeg':
                    alert("Acceptable image file!");
                    break;
                default:
                    alert('Unsupported File!');
                    errflag = 1;
            }
            if (!errflag > 0) {
              if ( fsize > 1048576 ) {
                //do something if file size more than 1 mb (1048576)
                alert(fsize +" bites\nToo big!");
              } else {
                alert(fsize +" bites\nYou are good to go!");
              }
            }
        } else {
          alert("Please upgrade your browser, because your current browser lacks some new features we need!");
        }
    }
    

    Note: There are a few typos and syntax errors because of which the above mentioned function did not work.

    Also removed the dynamic action and solved the above problem with the approach that I mentioned earlier.

    There is no MIME Type 'image/pdf', that's why he changed to "image/png".

    I hope this helps!

    Kind regards

    Kiran

  • XLSX files to PDF with Peoplecode and Java (XSSFWorkbook)

    I'm working on a project to convert Excel .xlsx files pdf files. I did some research and found that maybe using Java in Peoplecode is the best way. Correct me if I'm wrong. I'm still pretty new on this.

    I installed these libraries of Java:

    • POI - 3.11.jar
    • Commons-codec - 1.9.jar
    • POI-ooxml - 3.11.jar
    • POI-ooxml-schemas - 3.11.jar
    • XMLBeans - 2.6.0.jar
    • Stax-api - 1.0.1.jar

    I am using the reflection technique. I started my code to read a .xlsx file and I'm stuck here:

    Local string & file_name = "C:\temp\test1.xlsx";

    Type local integer & tempint = 0;

    Local JavaObject & input_file = CreateJavaObject ("java.io.File" and file_name);

    Local JavaObject & XSSFWorkbook = CreateJavaObject ("org.apache.poi.xssf.usermodel.XSSFWorkbook", & input_file);

    Local JavaObject & jClass = GetJavaClass ("java.lang.Class");

    Local JavaObject & joint = GetJavaClass ("java.lang.Integer");

    Local JavaObject & jIntType = & jInt.TYPE;

    Local JavaObject & jIntArgTypes = CreateJavaObject ("java.lang.Class []", & jIntType);

    Local JavaObject & jGetSheetAt = & XSSFWorkbook.getClass () .getDeclaredMethod ("getSheetAt", & jIntArgTypes);

    Local JavaObject & jSheet1 = & jGetSheetAt.invoke (& XSSFWorkbook, CreateJavaObject ("java.lang.Object []", CreateJavaObject ("java.lang.Integer", "0")));

    REM JavaObject Local & jSheet1 = & jGetSheetAt.invoke (& XSSFWorkbook, CreateJavaObject ("java.lang.Object []", 0));

    Local JavaObject & jRowIterator = & jSheet1.getClass () .getDeclaredMethod ("iterator", Null);

    Local JavaObject & jIterator = & jRowIterator.invoke (& jSheet1, CreateJavaObject ("java.lang.Object []"));

    REM JavaObject Local & jRowNext = & jIterator.getClass () .getDeclaredMethod ("next", Null);

    REM JavaObject Local & jNextRow = & jRowNext.invoke (& jIterator, CreateJavaObject ("java.lang.Object []"));

    REM JavaObject Local & jRowHasNext = & jIterator.getClass () .getDeclaredMethod ("hasNext", Null);

    REM JavaObject Local & jHasNext = & jRowHasNext.invoke (& jIterator, CreateJavaObject ("java.lang.Object []"));

    The last four commented lines are where I have a lot of trouble with. I understand, finally, I need to put them in a while loop to read each line which contained and that each cell. But I still can't get there. I don't seem to be able to call the next() and hasNext() methods correctly. When I Uncomment the first two lines to call next(), it gives me error "Exception Java: java.lang.InternalError: during the java.lang.reflect.Method.invoke call.» VH_XLTOPDF (2 763). PRINCIPAL. «GBL.default.1900 - 01 - 01.Step07.OnExecute PCPC:1675 statement: 14»

    And when I Uncomment the last two lines to call hasNext(), it gives an error "Exception Java: java.lang.NoSuchMethodException: java.util.TreeMap$ ValueIterator.hasNext (): during the java.lang.Class.getDeclaredMethod call.» VH_XLTOPDF (2 763). PRINCIPAL. «GBL.default.1900 - 01 - 01.Step07.OnExecute PCPC:1539 statement: 13»

    Any help would be appreciated. Or, if this is the wrong way to get what I'm trying to achieve, please advice. Thank you much in advance.

    I hope you're on 8.54? If so, you might be better to use a server side of technical script described by Jim Marion on his blog. Otherwise, you will encounter a lot of problems with the reflection which is a pain to say the least.

    Jim's PeopleSoft journal: JavaScript on the application server: Scripting PeopleCode

    I tried to play with she me and found it very convenient to overcome the problems of reflection (see step 3 in the link below).

    http://pe0ples0ft.blogspot.com/2015/11/implementing-reCAPTCHA-20-in-PeopleSoft.html

    In addition, this thread talking about it a bit. Someone has used this technique for POI libraries to create spreadsheets.

    The Java Exception: java.lang.reflect.InvocationTargetException: during the java.lang.reflect.Method .invoke call.

    Hope that gives you some ideas. Thank you!

Maybe you are looking for