Map HttpRequest parameters to anytype of object

Hi,
I am working on an old project and at the moment the only method they have to map the parameters of an HttpRequest to that of a custom object is by actually getting the value from the request and put it in the custom object one parameter at a time. This is very time consuming and the code looks horrible.
I remember when I used to work with Struts that there where Forms and that the Action class used to receive a form with all the values set depending on how defined in the HttpRequest.
I thought I could re-implement this by actually using some reflection. In other words I would check each parameter in the request one by one (in some sort of loop) and for each parameter I check if in the object to fill there is some method set<ParameterName>. If so I would set the parameter. The only problem is typecasting which I believe is complicated.
Therefore I thought; Is there already some code ready to actually map from an HttpRequest to any other object? Or at least map a Map to an Object (since the parameters of the HttpRequest are stored in a Map!?
Thanks for any suggestions,
Regards,
Sim085

Apache Struts uses under the hood under each Apache Commons BeanUtils for this kind of stuff.
I assume that you actually mean Javabeans when you say "custom objects".

Similar Messages

  • GP: can not map the parameters

    Hello,
    I've created a Callable Object which runs at the background. The problem is that I get the following exception if I map the parameters with another CO and restart the process.
    com.sap.caf.eu.gp.exception.api.GPInvocationException: Structure with name input and namespace http://wwww.sap.com/nw/eup/gp does not have an attribute with name pfad and namespace null.
         at com.sap.caf.eu.gp.structure.impl.GPStructure.throwUnknownAttribute(GPStructure.java:806)
         at com.sap.caf.eu.gp.structure.impl.GPStructure.setAttributeValue(GPStructure.java:107)
         at com.sap.caf.eu.gp.structure.impl.GPStructure.setAttributeValue(GPStructure.java:730)
         at com.sap.caf.eu.gp.structure.impl.GPStructure.setAttributeValue(GPStructure.java:738)
         at de.oscare.kmc.test.Main$UsingJSPDynPagePage.run(Main.java:75)
         at de.oscare.kmc.test.Main$UsingJSPDynPagePage.doInitialization(Main.java:55)
         ... 35 more
    The test of this object works fine and without mapping the parameter the process runs.
    How can I solve this problem?
    Best Regards
    Marco

    Hello Vani.
    thanks for your answer.
    I've found out that the right name of the parameter is "pfad.3" and now it works fine.
    Did you (or someone else) know, how this name will be created? Because my WD should work with more than one process. I mean I will keep it dynamic.
    Regards
    Marco

  • Error ORA-01460 warning ORA-01461 during running a mapping with parameters

    Oracle 10g release2(10.2.0.1.0), OWB 10.2.0.1.31, Workflow server 2.6.4
    I have a simple process flow ( start -> mapping -> end).
    The mapping consists of 4 input groups(3 ordinary tables<INGRP1, INGRP2, INGRP3> and 1 mapping input parameter operator <INGRP4>), a joiner, a filter, an expression operator and 1 output group.
    I want to use two variables in join condition, so I bound two mapping input parameters(<INGRP4.SRC_SYS_CDE> and <INGRP4.ADMIN_ORG_NUM>) with two parameters of the process flow's start activity.
    Those two mapping input parameters are of type char, one is 4-char long and the other is 2-char long. So I set both of the two parameters of the start activity as String, one as 08, another as 7504.
    My join condition is:
    INGRP1.ORGIDT = INGRP2.SOURCEORGANIZATIONNO AND
    INGRP2.SOURCESYSTEMCODE = INGRP4.SRC_SYS_CDE AND
    INGRP2.ADMINORGANIZATIONNO = INGRP4.ADMIN_ORG_NUM AND
    INGRP1.CURCDE = INGRP3.NUM(+)
    There are no errors and warnings in validation, generation and deployment process, but when I run the process flow, it always finishes blankly(zero insert) with no error and warning messages. It should insert more than 20,000 rows.
    When I run the mapping and set the parameters 08 and 7504 at the parameter prompt, then start, the following error and warning occurs.
    Error ORA-01460: unimplemented or unreasonable conversion requested
    Warning ORA-01461: can bind a LONG value only for insert into a LONG column
    So what's the problem? How can I fix it?

    The problem was mapping input parameter type.
    VARCHAR2-type mapping input parameter works with String-type PF parameter. But CHAR-type won't.

  • Mapping output parameters

    how can we pass values as output paramters what ever I assign it says it is restricted and cannot be done.
    What values can we pass as output parameters. for a mapping output parameters.
    Thanks in advance.

    I created a variable 'X' in the process flow.
    datatype for that variable is string.
    value is schema.function_name and I granted permissions fo rthe function to public.
    literal is false.
    I have a Assign operator in process flow
    for which value is 'X'
    literal is false
    variable is 'X' in binding.
    I am getting a error when I execute this. Deployment is successfull. The error is not displaying properly. i could once see the error as Infrastructure something. Like always it is not displaying the error in control center.
    Any ideas as to what I am doing wrong.
    Thanks

  • Mapping an illustration to a 3d object

    I have a vector based illustration of 32 panels laid out, that make up the panels found on a football. I also have a 3d object of a 32 panel football. Is there a way of mapping the illustration onto the 3d object using Photoshop CC?
    Thank you in advance for your time and help.
    Stuart

    A little work in a 3D program is easy:
    Make each of the 32 faces of the football have a defined area domain.
    Make 32 graphic images (.jpg probably OK); one for each of the faces from your vector image.
    Apply the images to each individual domain as a texture map image.
    Render the 3D.
    Note, unless you want multiple output image views or a video of the ball rotating, you can save effort by not domain naming the unseen backfaces and you don't need the image texture maps for them either.

  • What are mapping variables & parameters ?

    1.In real time scenario where can we use mapping parameters and variables?
    2.what are mapping variables & parameters ?

    http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10577/d_xplan.htm#CACICEDJ]
    BPS@xe>explain plan for
      2  select sysdate from dual;
    Explained.
    BPS@xe>select * from table(dbms_xplan.display());
    Plan hash value: 1388734953
    | Id  | Operation        | Name | Rows  | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT |      |     1 |     2   (0)| 00:00:01 |
    |   1 |  FAST DUAL       |      |     1 |     2   (0)| 00:00:01 |
    8 rows selected.
    BPS@xe>select * from table(dbms_xplan.display('PLAN_TABLE',null,'BASIC'));
    Plan hash value: 1388734953
    | Id  | Operation        | Name |
    |   0 | SELECT STATEMENT |      |
    |   1 |  FAST DUAL       |      |
    8 rows selected.

  • Heap error when trying to map a CLOB element to an object using toplink

    I ran a SQl query which retrieves a clob element of 40MB size. The application retrieves the CLOB and probably stores in the temporary buffer. And when the CLOB is retrieved from the buffer to map it to the actual business object, we are getting a heap dump error. The error is as follows:
    kghalo bad size 0x05063398
    ********** Internal heap ERROR KGHALO2 addr=00000000 *********
    HEAP DUMP heap name="Alloc environm" desc=50C13D98
    extent sz=0x1024 alt=32767 het=32767 rec=0 flg=2 opc=2
    parent=50C13E00 owner=00000000 nex=00000000 xsz=0x1024
    EXTENT 0 addr=0871F02C
    Chunk 871f034 sz= 2968 freeable "Alloc statemen " ds=08706A20
    Chunk 871fbcc sz= 48 freeable assoc with mark prv=00000000 nxt=00000000
    Chunk 871fbfc sz= 48 freeable assoc with mark prv=00000000 nxt=00000000
    Chunk 871fc2c sz= 68 freeable assoc with mark prv=00000000 nxt=00000000
    Chunk 871fc70 sz= 100 freeable assoc with mark prv=00000000 nxt=00000000
    Chunk 871fcd4 sz= 52 freeable assoc with mark prv=00000000 nxt=00000000
    Chunk 871fd08 sz= 48 freeable assoc with mark prv=00000000 nxt=00000000
    Chunk 871fd38 sz= 48 freeable assoc with mark prv=00000000 nxt=00000000
    Chunk 871fd68 sz= 68 freeable assoc with mark prv=00000000 nxt=00000000
    Chunk 871fdac sz= 100 freeable assoc with mark prv=00000000 nxt=00000000
    Chunk 871fe10 sz= 52 freeable assoc with mark prv=00000000 nxt=00000000
    Chunk 871fe44 sz= 48 freeable assoc with mark prv=00000000 nxt=00000000
    Chunk 871fe74 sz= 48 freeable assoc with mark prv=00000000 nxt=00000000
    Chunk 871fea4 sz= 68 freeable assoc with mark prv=00000000 nxt=00000000
    Chunk 871fee8 sz= 260 freeable assoc with mark prv=00000000 nxt=00000000
    Chunk 871ffec sz= 52 freeable assoc with mark prv=00000000 nxt=00000000
    Chunk 8720020 sz= 48 freeable assoc with mark prv=00000000 nxt=00000000
    We also tried increasing the heap size settings of the JVM. But no luck.
    Any suggestions would be appreciated.
    Thanks

    A similar issue was fixed in ODP.NET 92040 beta release. Please give it a try.

  • How to Map the parameters in GP interface?

    Hello All ,
    I have 2 callable objects in two different actions for same Block. How to map the first callable object output to input of second callable object ??
    Please give the clear details.
    Thanks
    Risha

    Hello,
    Goto the Block -> Parameters tab....select the 2 parameters ...click on Group button .....give a name to it and click 'Create Group' button.....
    Regards,
    Shikhil

  • Mapping in interconnect between different Business Objects

    I want to know how to do transformation and mapping between different business objects in interconnects.
    Always,We have a very complex SQL,when We do intergration
    with Oracle interconnect ,We use DB Adapter or Jdbc Adapter,but the complex SQL have to be excuted in the resource DB or the destination DB which may be a big pressure to them ,I think can We use different Business Objects, and do the Mappings in interconnect,so the big pressure will be on the interconnect server just like the ETL tools, But I just find that Interconnect can do tranformation and mapping in one Business Object ,how can I do? Is anyone meet this problem like me ?thanks for discussion.

    For me, Business Objects are logical groupings of business processes. For example, we have a Business Object called "Maintain_Employees". Under this we have 1 Procedure (Create_Employee) and 2 Events (Update_Employee and Delete_Employee).
    We have 1 Oracle system interfacing with 23 other legacy systems. Some of these legacy systems will be using this "Maintain_Employees" Business Object (Common View), and our main transformations will be between the Common View and the legacy Application Views.
    We are using a number of techniques to assist in "validating" data in the InterConnect. The main ones are using 'Cross Reference Tables (XREF)' and 'DatabaseOperation' transformations. By using 'Content Based Routing' we are able to send the right message to the right legacy system, and therefore do the right transformation/validation on the message payload. However, this is only a small part of a complex puzzle.
    I also have the "problem" of having "very complex SQL" on our Oracle system too. This is not unusual when using the InterConnect.
    To my mind, the InterConnect does 2 main operations. Firstly, it performs some message transformation (mapping), and secondly, it acts as a transportation engine (routing) using the adapters.
    The remainder of the effort required to create or consume the message resides with the Applications themselves. Whether it is parsing an XML CLOB payload, inserting data into staging tables, writing to log files, pre-processing data, calling API's or something else, your Application side programming and processing overhead can get large.
    The trade off it to ask the question, do I want to be able to track and manage messages from start to finish in high detail? Or can I trust that all message payload data will be consumed with no additional processing on the Application side?
    My experience has shown that the bottleneck is always at the Application side, and almost never in the InterConnect.
    The short answer to your first question is "You are right. Mappings can take place only between Application Views and Common Views only - not between Business Objects.".
    To answer your second question "Probably everyone reading this forum has this problem. The intelligence that is able to really interpret message data, validate it and process it is only found in the Application, not the InterConnect. You could, however, use the Workflow engine within OAI in order to provide additional pre-validation, human interaction and logic, but this too could be complex."
    At my current client, we are architecting an Application OAI Message handling schema. This will contain staging tables, pre-processing tables, "OAI" wrapper PL/SQL scripts, "APPS" wrapper PL/SQL scripts and Message Logging and Exception tables. Ours will be a complex set of PL/SQL processes too.
    I hope this helps, just in letting you know that you are not alone with this problem.
    I wonder if anyone else would like to share how they have architected their InterConnect and Application side mapping and transformation solutions.

  • How to map XML file to various of object in the RFC

    hello
    I recieve XML file (not devided to elements, but XML file)'
    and I would like to map it to a RFC that has various object.
    I there a way to do it?
    if it involve a java code, does any one has a written code example?
    THX
    Kfir

    thanks for the reply
    my source XML response will be looking something like this (it will be reponsed in a long string):
    <?xml version='1.0' encoding='UTF-8'?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
    <SOAP-ENV:Header>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    <status>
    <retCode>00</retCode>
    <retCodeDesc>OK</retCodeDesc>
    <rRobjectId>09002347802d2981</rRobjectId>
    <rFileSize>7</rFileSize>
    <rTotalPages>1</rTotalPages>
    </status>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    my RFC is:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:sap-com:document:sap:rfc:functions" targetNamespace="urn:sap-com:document:sap:rfc:functions">
    <xsd:element name="ZRFC_SET_DOCUMENT.Response">
    <xsd:complexType>
    <xsd:all>
    <xsd:element name="RETCODE" type="xsd:string" minOccurs="0" />
    <xsd:element name="RETCODEDESC" type="xsd:string" minOccurs="0" />
    <xsd:element name="RFILESIZE" type="xsd:string" minOccurs="0" />
    <xsd:element name="RROJECTID" type="xsd:string" minOccurs="0" />
    <xsd:element name="RTOTALPAGES" type="xsd:string" minOccurs="0" />
    </xsd:all>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>

  • Misbehavior when LOV is mapped from Shared AM's view object.

    Hi,
    I found a misbehavior when i try to map a LOV from a Shared AM, whereas it is working fine when i map the LOV from a normal AM.
    Let me tell you the details about the sample i created to simulate it.
    JDeveloper version - 11.1.1.4.0
    Sample Application - Based on HR Schema
    Functionality requirement:
    Screen has a Select one choice, which should list out all the employees from EMP_DETAILS_VIEW, a view of HR schema, without only one employee.
    Sample App Details:
    1. Created a Shared Application Module, say "SharedSupplierAM" (i.e. Said the scope of the AM as Application Level)
    2. Created a view object “EMP_DETAILS_VIEW” with a bind variable "bind_Emp_Id" and a view criteria "NotSaidEmployeeVC". View criteria's where clause is framed as   ( (EMPLOYEE_ID  Does not equal  :bind_Emp_Id ) ) 3. Shuttled an instance of "EMP_DETAILS_VIEW" into SharedSupplierAM.
    4. Created another application module, say "ConsumerAM" (It is not a shared AM).
    5. Created a BaseViewObject, say "BaseVO", with an attribute "Employee", to which EMP_DETAILS_VIEW from SharedSupplierAM is mapped as LOV.
    6. In the View accessor, shuttled the view criteria NotSaidEmployeeVC and hard coded the value "100" for the bind variable bind_Emp_Id.
    7. Shuttled an instance of BaseVo into Consumer AM.
    Expected functionality:
    LOV should not display the Employee whose id is 100.
    Issue:
    When i run the AM tester, create a row, it displays all the employees irrespective of the view criteria's where clause i framed, whereas when i map the LOV from normal AM (i.e. not a Shared AM), it displays the employees based on the view criteria's where clause !!.
    NOTE:
    1. Instead of hard coding the value 100 in the view accessor, If you keep another attribute in the BaseVO, say emp_id, and refer it for the bind variable bind_Emp_id, for the first creation of row alone, it is misbehaving. Once a selection from LOV is made, for further creation of rows, it is displaying the proper list.
    2. When i repeat all the above said process but map the LOV from normal AM (i.e. not a Shared AM), everything works fine.
    Question:
    1. Why this inconsistency?
    2. Is it a bug or do i've to change my approach of mapping a LOV when it comes from Shared AM?
    Thanks in Advance.
    Raguraman
    Edited by: Raguraman on May 2, 2011 12:54 AM

    Thanks to Jobinesh.
    I got answer from Jobinesh, which i specified below so that it will be useful for others.
    In case of shared AM as the same VO is being shared by multiple users and the query cannot be dirtied at runtime, so applying VC at run time doesn't have any effect/supported. All the VCs need to be applied on the AM where the ViewObject usage is defined, and pass the bind parameter value while defining ViewAccessor as you did in the sample.
    Also note that if one attribute(e.g: LoggedInEmpId) drives value for LOV defined on another one, then the first needs to be added in to Dependencies list for the second one using your VO editor and keep autosubmit=true for the driving one, set partialTrigger to refresh LOV
    Raguraman

  • ADF BC connection to SQL Server with parameterized variable for View Object

    Hi everyone
    I'm developing a BPM Application using Oracle BPM 11.1.1.5.0 and JDeveloper 11.1.1.5.0
    Following the thread from the link below, since this is a new topic, I decided to open a new thread.
    Re: ADF method call to fetch data from DB before the initiator page loads
    what I'm trying to do is to get a record from a database and show it to the user on the initiator UI using ADF BC and not the Database Adapter.
    I have been able to work with ADF BC and View Objects to get all the rows and show them to the user in a table.
    However, when I try to run the same query in the parameterized form to just return a single row, I hit a wall.
    In short, My problem is like this:
    I have an Application Module which has an entity object and a view object.
    My database is SQL Server 2008.
    when I try to create a new read only view object to return a single row I face the problem.
    The query I have in the query section of my View Object is like this:
    select *
    from dbo.Employee
    where EmployeeCode= 99which works fine.
    However when I define a bind variable, input_code for example, and change the query to the following it won't validate.
    select *
    from dbo.Employee
    where EmployeeCode= :input_codeIt just keeps saying
    >
    incorrect syntax near ":"
    >
    I don't know if this has to do with my DB not being Oracle or I'm doing something wrong.
    Can someone help me with this problem please?
    thanks in advance

    Hi
    This all seems complicated to me so I think my simplest way would be to use the java code in the aformentioned thread by Sudipto:
    public String getUserLogin() throws WorkflowException,
    BPMIdentityException,
    BPMUnsupportedAttributeException {
    String userId = "";
    IWorkflowServiceClient wfSvcClient;
    ITaskQueryService queryService;
    IWorkflowContext wfContext;
    // Get username of User Login
    String contextStr = ADFWorklistBeanUtil.getWorklistContextId();
    wfSvcClient = WorkflowService.getWorkflowServiceClient();
    queryService = wfSvcClient.getTaskQueryService();
    wfContext = queryService.getWorkflowContext(contextStr);
    userId = wfContext.getUser();
    return userId;
    } I don't know where and how I should put the code to be called when the view object loads though.
    I have created a class in the java class section of my view object which has two methods related to the bind variable input_empCode:
    getinput_empcode and setinput_empcode , as expected.
    however any code i try to put in those two would not be called at all!
    for example:
        public Integer getinput_empCode() {
            //return (Integer)getNamedWhereClauseParam("input_empCode");
            return 1444;
        }and
        public void setinput_empCode(Integer value) {
            //setNamedWhereClauseParam("input_empCode", value);
            setNamedWhereClauseParam("input_empCode", 666);
        }It just keeps filled with the values in the bind variable section.
    I don't know what I'm doing wrong here.
    would you show me the way?
    Thanks again

  • Oracle Workflow and mapping input parameters

    Hello all,
    I am trying to create a process flow in OWB that will be able to pass input parameters into each of my mappings. Each mapping contains 2 inputs, a start time and an end time.
    Does OWB's process flows allow for this or is there another approach that i should take in creating a workflow for these mappings?
    I am currently using 11gR2(11.2.0.1) and OWF v. 2.6.4.
    Thanks in advanced for any and all help,
    Randy

    Hi Randy,
    Open the process flow editor. In the structure window (menu view->structure), select the mapping activity and expand it to see its parameters. If you select a parameter, you can set its value or bind it to a variable in the property window.
    In the structure window you can also add process flow parameters to the start activity or define process flow variables.
    Regards,
    Carsten.

  • 'MAPI Session Handle' of the NGW 'Object Request Broker' could not be accessed (0x80004005) on attempt to get an address book

    Hi!
    When I try to access GW address book by calling
    DIGWAccount6::GetSystemAddressBook, or DIGWAccount6::AddressBooks, or even
    DIGWMessage::Send, I'm getting messagebox with title "Address Book Error"
    and message: "The 'MAPI Session Handle' of the Novell GroupWise 'Object
    Request Broker' could not be accesses. The address book cannot run (error:
    status: 0x80004005)."
    I'm using .NET and I only get this error when I create a console
    application. With windows application everything goes fine.
    I've tried reinstalling GW client, running fixmapi utility, installing
    different versions of MAPI CDO, but still got this problem.
    Any ideas?

    In the Application object.
    >>> On Monday, July 26, 2010 at 4:16 PM,
    shutchinson<[email protected]> wrote:
    > Where would we set this?
    >
    > Thanks!
    >
    > Scott
    >
    > Preston Stephenson;1755943 Wrote:
    >> Do you need to use the MAPI address book providers?
    >> Can you use MultiLogin and set MultiLoginAddressBookSupport = TRUE?
    >>
    >> Preston
    >>
    >> >>> On Tuesday, November 11, 2008 at 4:22 AM, Vladimir
    >> Iofik<[email protected]>
    >> wrote:
    >> > Hi!
    >> > When I try to access GW address book by calling
    >> > DIGWAccount6::GetSystemAddressBook, or DIGWAccount6::AddressBooks, or
    >> even
    >>
    >> > DIGWMessage::Send, I'm getting messagebox with title "Address Book
    >> Error"
    >>
    >> > and message: "The 'MAPI Session Handle' of the Novell GroupWise
    >> 'Object
    >> > Request Broker' could not be accesses. The address book cannot run
    >> (error:
    >>
    >> > status: 0x80004005)."
    >> > I'm using .NET and I only get this error when I create a console
    >> > application. With windows application everything goes fine.
    >> > I've tried reinstalling GW client, running fixmapi utility,
    >> installing
    >> > different versions of MAPI CDO, but still got this problem.
    >> >
    >> > Any ideas?

  • Passing parameters to Java JT400 object

    I need to pass a byte array as my input and an int as the output length for the Class ProgramCall.
    My error is   
    parameterList[0] (null): Parameter value is not valid.
    My thoughts are
    I think (but I'm not completely sure) I'm having trouble because I'm passing a Coldfusion Array where a Java Array is needed to pass the arguments.
    Coldfusion arrays start at index 1 and Java Arrays start at index 0.
    (1) Am I correct in what I believe is causing my error?
    (2) How can I convert the Coldfusion Array to a Java Array?
    Here is the documentation for Java JT400 object Class ProgramCall
    http://publib.boulder.ibm.com/iseries/v5r1/ic2924/info/rzahh/javadoc/com/ibm/as400/access/ ProgramCall.html
    Here is my code
    <!--- I am the system object --->
    <cfobject
            action="create"
            type="java"
            class="com.ibm.as400.access.AS400"
            name="mysystem">
    <!--- I am the program call object ---> 
    <cfobject
            action="create"
            type="java"
            class="com.ibm.as400.access.ProgramCall"
            name="myprogram">
    <!--- I am the program parameter object ---> 
    <cfobject
            action="create"
            type="java"
            class="com.ibm.as400.access.ProgramParameter"
            name="myparameter">
    <!--- I am the as400 text object ---> 
    <cfobject
            action="create"
            type="java"
            class="com.ibm.as400.access.AS400Text"
            name="mytext">
    <!--- Initialize our system object --->
    <cfset mysystem.init(AS400system,Trim(UCase(loginname)),Left(Trim(loginpass),10)) />
    <!--- Execute our AS400 username validation --->
    <cfset mysystem.ValidateSignon() />
    <!--- Initialize our as400 text object and convert string to a byte array --->
    <cfset mytext.init(5) />
    <cfset nametext = mytext.toBytes("hello") />
    <!--- Initalize our program parameter object --->
    <cfset myparameter.init(2) />
    <!--- Set input data and output data length using the Class methods of ProgramParameter --->
    <cfset myparameter.setInputData(nametext) />
    <cfset myparameter.setOutputDataLength(20) />
    <!--- Set parameters to a Coldfusion Array --->
    <cfset parameterlist = ArrayNew(1) />
    <cfset parameterlist[1] = myparameter.getInputData() />
    <cfset parameterlist[2] = myparameter.getOutputDataLength() />
    <!--- Initalize our program object and run our program --->
    <cfset myprogram.init(iseries,ProgramtoRun, parameterlist) />
    <cfset myprogram.run() />

    reggiejackson44 wrote:
    I need to pass a byte array as my input and an int as the output length for the Class ProgramCall.
    My error is   
    parameterList[0] (null): Parameter value is not valid.
    My thoughts are
    I think (but I'm not completely sure) I'm having trouble because I'm passing a Coldfusion Array where a Java Array is needed to pass the arguments.
    Coldfusion arrays start at index 1 and Java Arrays start at index 0.
    (1) Am I correct in what I believe is causing my error?
    (2) How can I convert the Coldfusion Array to a Java Array?
    (1) Yes.
    (2) A ColdFusion array and a Java array are 2 entirely different things. You have yourself identified one difference, the starting index. In fact, the following line of code will tell you that a ColdFusion array is essentially a Java vector.
    <cfoutput>#arrayNew(1).getClass().getSuperClass().getname()#</cfoutput>
    In my opinion, your question should read the other way around: how to convert a Java array into ColdFusion, not necessarily into a ColdFusion array.
    Here are some tips and tricks:
    http://blogs.adobe.com/cantrell/archives/2004/01/byte_arrays_and_1.html
    http://www.bennadel.com/blog/1030-Building-Java-Arrays-In-ColdFusion-Using-Reflection.htm

Maybe you are looking for

  • Adobe Media Encoder CS5 hangs when adding files of varying HD resolutions.

    I've seen questions similar to this related to CS4 but never explained very well, and my CS4 for mac worked fine.  I am unsure if this is a new problem or a windows specific problem but here is the situation, if you need more information I will gladl

  • Help required  to display login failed custom messages?

    Hi, Need Help, I have modified WPMessages.prop file(in IDM 6.1) to display custom login messages(Exp: Invalid user ID or Invalid password or Account locked), still I am unable to display these custom messages on user page,Whether do I need to change

  • Full res retina iPad and Edge Animation issues

    OK So I have been building folios for the new iPad (retnia) and the only way I can get a full page animation built in edge to work is to build it on a stage that is half res (1024x768). If I build a full screen edge animation (2048x1536) it just show

  • Can not run OWB Mapping automatically by OEM? .  Very urgent. Pls help me

    Hi all, Pls help me. I am using OWB 10g under Oracle 10g. I want to run OWB Mapping automatically by OEM. I installed Oracle Database 10g fully but don't have OEM in this. After that, I installed Oracle Client 10g. In this product, there is OEM 10g.

  • RFC Destinations for Webdynpro models

    Hello Everybody, I am trying to use RFC Destinations for the Webdynpro model. I have multiple systems with same RFCs. Based upon the inputs on the screen, I wanted to call respective RFC. To achieve this, can I use RFC destinations in my webdynpro ap