LinkedList parameter problem

I created a web services application a few months ago and I am now trying to add a new method that contains a LinkedList as an input parameter. I used the weblogic.webservice.clientgen command to create the needed Codec and Holder classes for a string array when I first created this application and now I am trying to do the same for a LinkedList. However when I run my code to call the web service I get the following NullPointerException:
java.lang.NullPointerException
     at weblogic.xml.schema.binding.TypedSoapArrayCodecBase.serializeMultiDimArray(TypedSoapArrayCodecBase.java:145)
     at weblogic.xml.schema.binding.SoapArrayCodecBase.gatherContents(SoapArrayCodecBase.java:464)
     at weblogic.xml.schema.binding.CodecBase.serializeFill(CodecBase.java:279)
     at weblogic.xml.schema.binding.CodecBase.serialize_internal(CodecBase.java:216)
     at weblogic.xml.schema.binding.CodecBase.serialize(CodecBase.java:178)
     at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUtils.java:188)...
Here is code I use to register the mapping and the code I use to add the LinkedList to the call.
TypeMappingRegistry registry = service.getTypeMappingRegistry();
TypeMapping mapping = registry.getTypeMapping( SOAPConstants.URI_NS_SOAP_ENCODING );
mapping.register( java.util.LinkedList.class,
new QName("http://soapinterop.org/xsd", "LinkedList" ),
new LinkedListCodec(),
new LinkedListCodec() );
QName linkedListName = new QName("http://soapinterop.org/xsd", "LinkedList");
LinkedList test = new LinkedList();
test.add("test");
call.addParameter("linkedList", linkedListName, javax.xml.rpc.ParameterMode.IN);
Can anyone help me figure out what the problem is?? I did this same thing for a String array and now I can't get it to work for a LinkedList. Thanks.

what about below error:
syntax error, parameterized types are only available if source level is 5.0
Vector<String,String> a = new Vector<String,String>();
doesn't work at all.
i get the above syntax error with all the Collections types,
ArrayDeque, LinkedList, Stack, HashTable, HashMap, . . .
i think some package is something or anything else ?
regards,
rafi

Similar Messages

  • Urgent: Parameter problem for portlet displaying jsp running inside tomcat

    Following jsp when run with portal 9.0.2 displays value of Name and Age but value of Telephone parameter is displayed as Null. Can anybody tell me the reason?
    Running this jsp on IBM WebSphere.
    <%@ page contentType="text/html;charset=UTF-8" %>
    <%@page import="java.util.*, oracle.portal.provider.v2.*" %>
    <%@page import="oracle.portal.provider.v2.http.HttpCommonConstants" %>
    <%@page import="oracle.portal.provider.v2.render.PortletRendererUtil" %>
    <%@page import="oracle.portal.provider.v2.render.PortletRenderRequest" %>
    <%@page import="oracle.portal.provider.v2.render.http.HttpPortletRendererUtil" %>
    <%@page import="oracle.portal.provider.v2.url.UrlUtils" %>
    <%
    // The form submit URL refers to the current Portal page. All portlets
    // on this page share this URL. This means that the per portlet parameters
    // are in the same request. Portlets must ensure that its paramerters don't
    // collide either with other portlets or other instances of itself. This
    // is generally accomplished by using "fully-qualified" parameter names. A
    // fully-qualified parameter name prepends the (unique) portlet reference to
    // the parameter. The JPDK provides a utility to accomplish this.
    String portletParamName = "mName";
    String portletParamAge = "mAge";
    String portletParamSubmit = "mSubmit";
    String fName = HttpPortletRendererUtil.portletParameter(request, portletParamName);
    String fAge = HttpPortletRendererUtil.portletParameter(request, portletParamAge);
    String fSubmit = HttpPortletRendererUtil.portletParameter(request, portletParamSubmit);
    // These are the session attribute names used to store the current values.
    // Because all instances of this portlet share the same user session we must
    // also fully-qualify these names to avoid collisions.
    String sName = HttpPortletRendererUtil.portletParameter(request, "sName");
    String sAge = HttpPortletRendererUtil.portletParameter(request, "sAge");
    String sTelephone = request.getParameter("TELEPHONE");
    PortletRenderRequest pRequest = (PortletRenderRequest)
    request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    String formName = UrlUtils.htmlFormName(pRequest,null);
    ProviderUser user = pRequest.getUser();
    ProviderSession providerSession = user.getSession();
    if (providerSession == null)
    %>
    Your provider session has been terminated or has timed out
    and you need to logout and then login to re-establish the session.
    <%
    else
    // Record, in session storage, the last values submitted.
    if (pRequest.getQualifiedParameter(portletParamSubmit) != null)
    providerSession.setAttribute(sName, pRequest.getQualifiedParameter(portletParamName));
    providerSession.setAttribute(sAge, pRequest.getQualifiedParameter(portletParamAge));
    %>
    <!-- Output the HTML content -->
    <center>
    <table width="70%">
    <tr>
    <td>
    <b>This portlet shows how to post and process information from HTML forms.</b>
    </td>
    </tr>
    </table>
    <form name="<%= formName %>" method="POST"
    action="<%= UrlUtils.htmlFormActionLink(pRequest,UrlUtils.PAGE_LINK) %>">
    <%= UrlUtils.htmlFormHiddenFields(pRequest,UrlUtils.PAGE_LINK, formName) %>
    <table>
    <tr>
    <td>
    <b>Name :</b>
    </td>
    <td>
    <input type="text" size="20" name="<%= fName %>" value="">
    </td>
    </tr>
    <tr>
    <td>
    <b>Age : </b>
    </td>
    <td>
    <input type="text" size="3" name="<%= fAge %>" value="">
    </td>
    </tr>
    <tr>
    <td>
    <b>Telephone : </b>
    </td>
    <td>
    <input type="text" size="3" name="TELEPHONE" value="">
    </td>
    </tr>
    </table>
    <br>
    <INPUT TYPE=submit name="<%= fSubmit %>" Value="Submit">
    </form>
    <%
    if ((providerSession.getAttribute(sName) == null)&& (providerSession.getAttribute(sAge) == null)) {
    %>
    <b>No values have been submitted yet.</b>
    <%
    } else {
    %>
    <b> Last submitted values:</b><br>
    <table>
    <tr>
    <td>
    <b>Name: </b>
    </td>
    <td>
    <b><%= providerSession.getAttribute(sName) %></b>
    </td>
    </tr>
    <tr>
    <td>
    <b>Age: </b>
    </td>
    <td>
    <b><%= providerSession.getAttribute(sAge) %></b>
    </td>
    </tr>
    <tr>
    <td>
    <b>Telephone: </b>
    </td>
    <td>
    <b><%= sTelephone %></b>
    </td>
    </tr>
    </table>
    <%
    %>
    </center>
    <%
    %>
    <!-- End output the HTML content -->
    Can somebody please help me on this?
    Thanks

    Hello,
    Let me know if the answer that I made Help needed: JSP and portal parameter problem.
    Regards
    Tugdual Grall

  • Urgent: Parameter problem for jsp

    Following jsp when run with portal 9.0.2 displays value of Name and Age but value of Telephone parameter is displayed as Null. Can anybody tell me the reason?
    Running this jsp on IBM WebSphere.
    <%@ page contentType="text/html;charset=UTF-8" %>
    <%@page import="java.util.*, oracle.portal.provider.v2.*" %>
    <%@page import="oracle.portal.provider.v2.http.HttpCommonConstants" %>
    <%@page import="oracle.portal.provider.v2.render.PortletRendererUtil" %>
    <%@page import="oracle.portal.provider.v2.render.PortletRenderRequest" %>
    <%@page import="oracle.portal.provider.v2.render.http.HttpPortletRendererUtil" %>
    <%@page import="oracle.portal.provider.v2.url.UrlUtils" %>
    <%
    // The form submit URL refers to the current Portal page. All portlets
    // on this page share this URL. This means that the per portlet parameters
    // are in the same request. Portlets must ensure that its paramerters don't
    // collide either with other portlets or other instances of itself. This
    // is generally accomplished by using "fully-qualified" parameter names. A
    // fully-qualified parameter name prepends the (unique) portlet reference to
    // the parameter. The JPDK provides a utility to accomplish this.
    String portletParamName = "mName";
    String portletParamAge = "mAge";
    String portletParamSubmit = "mSubmit";
    String fName = HttpPortletRendererUtil.portletParameter(request, portletParamName);
    String fAge = HttpPortletRendererUtil.portletParameter(request, portletParamAge);
    String fSubmit = HttpPortletRendererUtil.portletParameter(request, portletParamSubmit);
    // These are the session attribute names used to store the current values.
    // Because all instances of this portlet share the same user session we must
    // also fully-qualify these names to avoid collisions.
    String sName = HttpPortletRendererUtil.portletParameter(request, "sName");
    String sAge = HttpPortletRendererUtil.portletParameter(request, "sAge");
    String sTelephone = request.getParameter("TELEPHONE");
    PortletRenderRequest pRequest = (PortletRenderRequest)
    request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    String formName = UrlUtils.htmlFormName(pRequest,null);
    ProviderUser user = pRequest.getUser();
    ProviderSession providerSession = user.getSession();
    if (providerSession == null)
    %>
    Your provider session has been terminated or has timed out
    and you need to logout and then login to re-establish the session.
    <%
    else
    // Record, in session storage, the last values submitted.
    if (pRequest.getQualifiedParameter(portletParamSubmit) != null)
    providerSession.setAttribute(sName, pRequest.getQualifiedParameter(portletParamName));
    providerSession.setAttribute(sAge, pRequest.getQualifiedParameter(portletParamAge));
    %>
    <!-- Output the HTML content -->
    <center>
    <table width="70%">
    <tr>
    <td>
    <b>This portlet shows how to post and process information from HTML forms.</b>
    </td>
    </tr>
    </table>
    <form name="<%= formName %>" method="POST"
    action="<%= UrlUtils.htmlFormActionLink(pRequest,UrlUtils.PAGE_LINK) %>">
    <%= UrlUtils.htmlFormHiddenFields(pRequest,UrlUtils.PAGE_LINK, formName) %>
    <table>
    <tr>
    <td>
    <b>Name :</b>
    </td>
    <td>
    <input type="text" size="20" name="<%= fName %>" value="">
    </td>
    </tr>
    <tr>
    <td>
    <b>Age : </b>
    </td>
    <td>
    <input type="text" size="3" name="<%= fAge %>" value="">
    </td>
    </tr>
    <tr>
    <td>
    <b>Telephone : </b>
    </td>
    <td>
    <input type="text" size="3" name="TELEPHONE" value="">
    </td>
    </tr>
    </table>
    <br>
    <INPUT TYPE=submit name="<%= fSubmit %>" Value="Submit">
    </form>
    <%
    if ((providerSession.getAttribute(sName) == null)&& (providerSession.getAttribute(sAge) == null)) {
    %>
    <b>No values have been submitted yet.</b>
    <%
    } else {
    %>
    <b> Last submitted values:</b><br>
    <table>
    <tr>
    <td>
    <b>Name: </b>
    </td>
    <td>
    <b><%= providerSession.getAttribute(sName) %></b>
    </td>
    </tr>
    <tr>
    <td>
    <b>Age: </b>
    </td>
    <td>
    <b><%= providerSession.getAttribute(sAge) %></b>
    </td>
    </tr>
    <tr>
    <td>
    <b>Telephone: </b>
    </td>
    <td>
    <b><%= sTelephone %></b>
    </td>
    </tr>
    </table>
    <%
    %>
    </center>
    <%
    %>
    <!-- End output the HTML content -->

    Hello,
    Let me know if the answer that I made Help needed: JSP and portal parameter problem.
    Regards
    Tugdual Grall

  • Crystal report parameter problem while uploading in sap business one

    Hi
    All
    I designed a crystal report using
    stored procedure
    and
    Routemas user defined table
    in sql server with three parameter
    routname,from date,to date
    these parameters are from storedprocedure only but not created in report
    i set the parameter routename  as dynamic and i assigned the routename field from routemas table
    when i run the report in the parameter window it displays the list of routenames
    upto this is k but
    when i upload this report in sap business one 8.81 PL-05  and
    run this report in sap environment First it asks parameters there
    it didnt display the list of routnames
    when the parameter routname is set as static and assign some  routenames manually
    then it shows the list in sap environment
    Can any suggest the answer
    Edited by: madhu ganga raju on Oct 17, 2011 7:06 AM

    Hi Rhaul,
    i don't exactly know why this is a problem, but if your not on latest (881 p10) then upgrade and try again.
    Or as a workaround,
    try saveing from CR to SAP with the CR add-on. That usualy works better then the import.
    Regards,
    D

  • JRC for Crystal Reports for Eclipse V2.0 Parameter Problems

    Scenario:
    I have a report that displays the Function Group Name for a certain individual and all the Functions included in that Function Group. The following are the tables involved:
    USER, FUNC_GROUP (contains description of the group) and FUNC_GROUP_LIST (the actual functions in the FUNC_GROUP).
    The SQL command for the main report is: select id, name, description from FUNC_GROUP, USER where FUNC_GROUP.id = USER.default_func_group_id
    The sub-report which lists the functions for the Function Group has the following SQL command: select id, name from FUNC where func_group_id = <main report's FUNC_GROUP.id>
    The problem is my current code still flags missingParameterValueError error whenever I changed the DB location and set the parameters.
    Code used for setting of db connection:
    private void setDBConnection(ReportClientDocument doc) throws ReportSDKException {
        IConnectionInfo newConnectionInfo = new ConnectionInfo();
        newConnectionInfo.setAttributes(new PropertyBag(connectionProperty));
        newConnectionInfo.setUserName(getLoginname());
        newConnectionInfo.setPassword(getPassword());
        //preserve subreport links
        SubreportController src = doc.getSubreportController();
        Map<String, SubreportLinks> linkMapper = new HashMap<String,SubreportLinks>();
        for(String subreportName : src.getSubreportNames()){
            linkMapper.put(subreportName,
                (SubreportLinks) src.getSubreportLinks(subreportName).clone(true));
        //If this connection needed parameters, we would use this field. 
        Fields<IParameterField> pFields = doc.getDataDefController().getDataDefinition().getParameterFields();
        replaceConnectionInfos(doc.getDatabaseController(), newConnectionInfo, pFields);
        IStrings strs = src.getSubreportNames();
        Iterator<String> it = strs.iterator();
        while (it.hasNext()) {
          String name = it.next();
          ISubreportClientDocument subreport = src.getSubreport(name);
          pFields = subreport.getDataDefController().getDataDefinition().getParameterFields();
          replaceConnectionInfos(subreport.getDatabaseController(), newConnectionInfo, pFields);
        //reconnect subreport links since when using replaceConnection links are erased
        for(String subreportName : src.getSubreportNames())
          src.setSubreportLinks(subreportName, linkMapper.get(subreportName));
    Edited by: Rizza Lynn Ponce on Jun 2, 2009 11:56 AM

    >
    Ted Ueda wrote:
    > Do you look at the report links you're saving before the connection changes, to see if it's being saved, and added back?  It'll be interesting what type of link it is.
    I've run the program in debug mode and inspected the following:
    src.getSubreportLinks(subreportName).getSubreportLink(0).getSubreportFieldName()
    src.getSubreportLinks(subreportName).getSubreportLink(0).getMainReportFieldName()
    src.getSubreportLinks(subreportName).getSubreportLink(0).getLinkedParameterName()
    before the change in connection and after the change in connection in both main and subreport and after adding back the links. The values monitored did not change.
    Am I looking at the correct things? Or is there another value I need to monitor?
    >
    > Is it possibly to a stored proc parameter that is no longer there in the subreport after the database change?
    I am not using any stored procs, I just formulated an SQL for retrieval in both main and subreport.
    >
    > If so, you'd need to redefine the link before applying.
    >
    > Sincerely,
    >
    > Ted Ueda
    What do you mean redefine?
    Additional info:
    The current template I'm using accepts the value from main report (FUNC_GROUP.id) which is in turn used as a parameter in the SQL command in the subreport. This throws an error when exporting via JRC.
    However, I tried some modifications in the SQL command in the subreport. I've included the Function Group ID in the select clause (select id, name, func_group_id from FUNC) instead of using it in the where clause. Then in the linking of the main and the subreport, I chose filter data in subreport by func_group_id matching FUNC_GROUP.id in main report. Exporting in JRC this report worked well and deliver the same data as the original template. The problem is I think it takes longer because all data in FUNC table is retrieved. And also as a framework developer, I prefer not limiting the developers regarding the style on how they connect main and subreport in CRW (I'd personally say I'm more fond of using the original template as I think the modified template retrieves unneeded data).

  • SQL Server 2008 Execute SQL Task parameter problem

    hi, guys
    i create a very simply package which only Execute SQL task, set the properties as:
    the testing table structure:
    create table t(
    idx int,
    cname varchar(60)
    Execute SQL Task setting:
    [genaral]
    ResultSet: None
    ConnectionType: Ado.net
    connection:LocalHost.APR11.sa1
    SQLsourceType:Direct input
    SQLStatement:delete from t where idx=?
    [parameter mapping]
    variable name: user::idx
    direction: input
    data type: Int32
    parameter name:NewParameterName
    parameter size:-1
    i hardcode the idx=1, but get error:
    SSIS package "test.dtsx" starting.
    Error: 0xC002F210 at Execute SQL Task, Execute SQL Task: Executing the query "delete from t where idx=?" failed with the following error: "Parameter name is unrecognized.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
    Task failed: Execute SQL Task
    SSIS package "test.dtsx" finished: Success.
    help me please.
    Regards.

    Hello,
    Here you go
    http://decipherinfosys.wordpress.com/2008/03/26/running-parameterized-sql-commands-using-the-execute-sql-task-i/
    http://technet.microsoft.com/en-us/library/ms140355.aspx
    if you use ADO.NET then the way Execute SQL task take parameter is different then "?".... you have to use @paramter.. Please check the above link
    Thanks
    http://sqlage.blogspot.com/

  • Set Parameter problem

    my code is like this
    START-OF-SELECTION.
    SELECT * FROM SBOOK UP TO 10 ROWS.
    WRITE: / sbook-carrid, sbook-connid, sbook-fldate, sbook-bookid.
      HIDE:  SBOOK-CARRID, SBOOK-CONNID,
             SBOOK-FLDATE, SBOOK-BOOKID.
    ENDSELECT.
    AT LINE-SELECTION.
    set parameter id 'CAR' field sbook-CARRID.
    set parameter id 'CON' field sbook-CONNID.
    set parameter id 'DAY' field sbook-FLDATE.
    set parameter id 'BOK' field sbook-BOOKID.
    call transaction 'ZSBOOK'
    when i click on any line, the values are not coming on screen( ie in zsbook  tcode ). what's the problem ?
    Thanks, points for sure

    HIDE
    The HIDE statement is one of the fundamental statements for interactive reporting. You use the HIDE technique when creating a basic list. It defines the information that can be passed to subsequent detail lists.
    You use the HIDE technique while creating a list level to store line-specific information for later use. To do so, use the HIDE statement as follows:
    HIDE <f>.
    This statement places the contents of the variable <f> for the current output line (system field SY-LINNO) into the HIDE area. The variable <f> must not necessarily appear on the current line.
    To make your program more readable, always place the HIDE statement directly after the output statement for the variable <f> or after the last output statement for the current line.
    As soon as the user selects a line for which you stored HIDE fields, the system fills the variables in the program with the values stored. A line can be selected
    by an interactive event.
    For each interactive event, the HIDE fields of the line on which the cursor is positioned during the event are filled with the stored values.
    by the READ LINE statement.
    You can think of the HIDE area as a table, in which the system stores the names and values of all HIDE fields for each list and line number. As soon as they are needed, the system reads the values from the table.
    The example below presents some of the essential features of interactive reporting. The basic list contains summarized information. By means of the HIDE technique, each detail list contains more details.
    u can use
    To read a line from a list after an interactive list event, use the READ LINE statement:
    READ LINE <lin> [INDEX <idx>]
    [FIELD VALUE <f1> [INTO <g 1>] ... <f n> [INTO <g n>]]
    [OF CURRENT PAGE|OF PAGE <p>].
    SET PARAMETER ID <pid> FIELD <f>.
    This statement saves the contents of field <f> under the ID <pid> in the SAP memory. The code <pid> can be up to 20 characters long. If there was already a value stored under <pid>, this statement overwrites it. If the ID <pid> does not exist, double-click <pid> in the ABAP Editor to create a new parameter object.
    <b>Before call transaction print content on output.
    Check it out.</b>
    regards
    vinod

  • Pl/sql encoding javascript parameter problem

    I am using an html form to get user input via radio buttons via the following segment
    htp.p('<input type="radio" value="a" onSelect="saySomething('fish')">');
    However, when the brackets surrounding (fish) are encountered an error occurs
    Line No. 41 : PLS-00103: Encountered the symbol "FISH" when expecting one of the following:
    . ( ) , * @ % & | = - + < / > at in mod not range rem => ..
    <an exponent (**)> <> or != or ~= >= <= <> and or like as
    between from using is null is not || is dangling
    The symbol ". was inserted before "FISH" to continue.
    (WWV-17050)
    ORA-24344: success with compilation error (WWV-11230)
    Critical Error in wwerr_api_error.get_errors! SQL Error Message: ORA-06502: PL/SQL: numeric or value error: character string buffer too small (WWV-)
    Is there a better way to program user input or how can I overcome the javascript parameter passing problem
    Many regards
    Eddie

    To include single quotes into literal strings in SQL and PL/SQL, you need to escape (double) them or replace them with concatenations with CHR(39):
    htp.p('<input type="radio" value="a" onSelect="saySomething(''fish'')">');
    or
    htp.p('<input type="radio" value="a" onSelect="saySomething('||chr(39||'fish'||chr(39||')">');

  • Dynamic Parameter Problem after Upgrade to 2008 from XI

    Post Author: phpsmitty
    CA Forum: Crystal Reports
    I'm having a problem with a dynamic populated parameter options on a report. I open the report up in XI (where the report was developed) and it works as expected. If I open up the same report up in 2008 the parameter fields aren't populating or correctly displaying. If recreate the report from scratch in 2008 they work fine.  Has anyone else had this problem? Is there a fix, that will allow me run an XI report correctly in 2008? Thanks

    LOV's need to be updated in CR 2008

  • Security Parameter Problem in SAP ECC 6.0

    Hi eveyone,
    We have just activated the profile parameters written below in our new
    SAP ECC 6.0 system.
    login/min_password_lng = 6
    login/min_password_digits = 1
    login/min_password_letters = 1
    login/fails_to_user_lock = 10
    login/fails_to_session_end = 5
    login/password_expiration_time = 90
    We have tried to logon the system as DDIC, the system wanted a new
    password. We have changed the password many times more than 5 times.
    But when we try to give the old password, it still says that "The
    password must be different from your last 5 passwords".
    The problem goes on, even you inactivate the parameters in the profile
    and restart the SAP.
    How can we solve this problem?

    Hi everyone,
    I want active the profile parameter login/min_password_digits = 1 and
    login/min_password_letters = 1 by RZ10. The system give the message:
    E login/min_password_digits is not identified identically on all servers.
    I changed this parameter on all servers but this message was always there.
    Is it OK after restart system?
    Best regards
    Valachova Miroslava

  • Stored Procedure w/ binary data parameter problems in Visual Basic

    Howdy all.
    I am having a problem calling stored procedures with a BLOB parameter. I have tried changing the paramater other data types to see if it would work, but with no success. I am calling the stored procedure from Visual Basic using ADO. I am using the Oracle ODBC Driver, Release 9.2.0.4.0. I have tried changing the setup of the ODBC a good bit because that has fixed several problems for me in the past; however, it did not fix my current problem.
    Here is what I am trying to do. I have a function like the folowing:
    <BEGIN --------------------------------------->
    CREATE OR REPLACE FUNCTION PAGEFORMATSINSERT(
    p_ObjectFormatCode_ID      IN RAW DEFAULT NULL,
    p_PA_ID      IN RAW DEFAULT NULL,
    p_Name      IN VARCHAR2 DEFAULT NULL,
    p_FormatData      IN BLOB DEFAULT NULL,
    p_PF_ID      IN OUT RAW )
    RETURN INTEGER
    AS
    BEGIN
    INSERT INTO PAGEFORMATS (PF_ID, ObjectFormatCode_ID, PA_ID, Name, FormatData) /* <---- this FormatData column is a BLOB column */
    VALUES     (p_PF_ID, p_ObjectFormatCode_ID, p_PA_ID, p_Name, p_FormatData)
    END PAGEFORMATSINSERT;
    <END ----------------------------------------->
    The FormatData parameter has a data type of BLOB. In my Visual Basic, I have my ADODB.Command object. I am setting the CommandText of the Command object to "{? = call PageFormatsInsert(?, ?, ?, ?, ?)}". In order to set the parameter value for the BLOB data type, I am calling the AppendChunk function of the Command object - passing it a Byte array.
    I am getting the folling error:
         ERROR: -2147467259 [Oracle][ODBC][Ora]ORA-06550: line 1, column 13:
         PLS-00306: wrong number or types of arguments in call to 'PAGEFORMATSINSERT'
         ORA-06550: line 1, column 7:
         PL/SQL: Statement ignored
    If I change the FormatData parameter to a LONG RAW parameter, I get the following error:
         ERROR: -2147467259 [Oracle][ODBC][Ora]ORA-06502: PL/SQL: numeric or value error: hex to raw conversion error
         ORA-06512: at line 1
    I am at a loss as to how to get binary data into by Oracle database. I need to do it using stored procedures. How can I set up my stored procedure or table to do what I want it to do? Should I change my table definition? Are there some settings in the ODBC connection I can tweak? How can I get the stored procedure to accept my call from VB ADO?
    Any help would be appreciated.
    wally

    Thanks for the idea, but I don't get how I am supposed to get my binary data to the stored procedure using the stream. I have a binary array that I want to pass to a stored procedure. I want to be able to use the same Visual Basic front end with out MSSQL database as with our Oracle database.
    I am using the ADODB Connection and Command and RecordSet objects. Currenlty our front end calls the ADODB.Command(ParamNumber).AppendChunk function passing it the binary array. Somehow, the SQL Server driver does the magic in order for the MSSQL stored procedure to work correctly. I need to know how to do one of the following:
    1. Get the Oracle driver to do the same magic.
    2. Set up the Oracle stored procedure so I don't have to change the VB front end.
    3. Change the VB front end so that it works with both MSSQL and Oracle.
    wally

  • Query Manager SQL DateDiff and Parameter Problem

    I’m having trouble with a date calculation in the Query Manager.   I’m wondering if anyone has run into something similar.
    I am trying to write a query that returns records that are X days old, where X is a parameter input by the user.
    Here’s an example – you can paste this into your system and duplicate the issue:
    <b>SELECT T0.DocNum, T0.DocDueDate FROM ORDR T0 where datediff(dd, T0.DocDueDate, getdate()) <= [%0]</b>
    Returns a date error code if you try to input an integer (e.g. the "Define Survey Variables" dialog is looking only for date values)
    However
    <b>SELECT T0.DocNum, T0.DocDueDate FROM ORDR T0 where datediff(dd, T0.DocDueDate, getdate()) <= 30</b>
    Works just fine.
    Any ideas?

    > I tried your query and it's working perfection for
    > me.  I'm using  SBO B1 2005 A.
    >
    > The [%0] in your case is looking for the type of the
    > critary and because it sees T0.DocDueDate it thinks
    > you should give the query with a date and not a
    > numeric.  Maybe you cshould try to add a casting
    > function to return a numeric ?
    Merci Daniel,
    I too am using SBO B1 2005 A (PL 22)
    I should have expanded on my original problem.  I have tried using CAST and CONVERT in the following ways:
    <b>SELECT T0.DocNum, T0.DocDueDate FROM ORDR T0 where datediff(dd, T0.DocDueDate, getdate()) <= CAST([%0] as Integer)
    SELECT T0.DocNum, T0.DocDueDate FROM ORDR T0 where cast(datediff(dd, T0.DocDueDate, getdate())as Integer) <= [%0]
    </b>
    also
    <b>SELECT T0.DocNum, T0.DocDueDate, cast(datediff(dd, T0.DocDueDate, getdate())as Integer) as Date FROM ORDR T0 where Date <= [%1]</b>
    Nothing seems to work (although I could be getting the syntax wrong)

  • Web service data control with complex input parameter problem

    Hi!
    I'm making ADF web app, using JDev 11.1.1.2.0. I have to call a web service (using a data control), which has complex input parameter (array of complex objects).
    I followed steps from Susan Duncan blog: http://susanduncan.blogspot.com/2006/09/dealing-with-complex-input-params-in.html , but I ran into a problem.
    As Susan wrote, I changed submit's button action binding to an operation in a managed bean, which returns array of objects and everything works fine. I can call a WS and my table shows the result.
    The problem is, that after I change button's action binding to my manage bean, row selection in result table doesn't work anymore (I allways get NullPointerException).
    What can be done here?
    Can somebody please help?

    Hi,
    I also have similar type of problem where I need to invoke a Web service with Complex input parameters.
    I followed Susan's blog but I stuck at a point where methos getItem is created.
    Can anyone tell me how to get that method for my requirement.
    If possible can you guys share your solutions here.
    Thanks in advance.

  • BIPublisher parameter problem in  OBIEE 10g

    Hi,
    We are facing problem in paassing parameter for CHAR type values.
    We have a field CHAR type of 8 BYTE in database. We are passing these column values as parameter to the report.
    When we are passing the value of 8 characters we are getting the report values. If we are passing the value less then 8 characters then the report is retrieving no values neither error is thrown. Only balnk report is displyes with column names.
    If I am passing "DISTRICT" (8 characters) as parameter value then we are getting report output and if we are passing "STATE" or "COUNTRY" which is not 8 characters then no values retrieved.
    Thanks.

    The idea is setting page some fixed size say 100% of page width, so when you see the page in Outlook of 80% of width the dashboard page will get 100% of 80%.
    The Email window overriding page width, this may be over come by setting page 100% as I said in other thread.

  • Missing IN or OUT parameter problem

    I have really weird behaviour in only one call to stored procedure.
    Sometimes this problem is stable. Sometimes it starts working after passing
    the method once in a debuger. I can change sql to call different stored
    procedure and it doesn't affect the behavioir. This is WLS813 and Oracle 9i.
    I would appreciate any advice.
    The source code is simple and is used in multiple places in the application
    (I tried its different variations with the same result):
    DataSource ds = EJBContext.getInstance().getDefaultDataSource();
    conn = ds.getConnection();
    stmt = conn.prepareCall("{ ? = development_pkg.Get_AddUnit_BlockList ( ?,
    stmt.registerOutParameter(1, OracleTypes.CURSOR);
    stmt.setObject(2, developmentId);
    stmt.setObject(3, isCallerInAllSocietyViewRole() ? null :
    getCallerUserEntity().getSocietyId());
    stmt.setString(4, getCallerName());
    stmt.execute(); - this line generates an exception
    Exception if isCallerInAllSocietyViewRole() is true (1st call after
    restarting the server):
    java.sql.SQLException: Missing IN or OUT parameter at index:: 2 at
    oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
    at
    oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
    at
    oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1678)
    at
    oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2883)
    at
    oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:2979)
    at
    oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4103)
    at
    weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:70)
    at
    Exception if isCallerInAllSocietyViewRole() is true (any consecuent call):
    java.sql.SQLException: Missing IN or OUT parameter at index:: 1 at
    oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
    at
    oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
    at
    oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1539)
    at
    oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2883)
    at
    oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:2979)
    at
    oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4103)
    at
    weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:70)
    at
    Exception if isCallerInAllSocietyViewRole() is false:
    java.lang.NullPointerException at
    oracle.jdbc.driver.T4C8Oall.getNumRows(T4C8Oall.java:728) at
    oracle.jdbc.driver.T4CCallableStatement.execute_for_rows(T4CCallableStatement.java:787)
    at
    oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1028)
    at
    oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2888)
    at
    oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:2979)
    at
    oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4103)
    at
    weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:70)
    at ...
    Thanks,
    Mikhail Stolpner

    Hi Joe,
    Thank you for your reply. I tried multiple different ways: setNull,
    setObject. The behavior is the same. The following is the original code
    (before I played with it) and it worked fine in WLS812:
    DataSource ds = EJBContext.getInstance().getDefaultDataSource();
    conn = ds.getConnection();
    stmt = conn.prepareCall("{ ? = call development_pkg.Get_AddUnit_BlockList
    stmt.registerOutParameter(1, OracleTypes.CURSOR);
    stmt.setInt(2, developmentId.intValue());
    if (isCallerInAllSocietyViewRole()) {
    stmt.setNull(3, OracleTypes.INTEGER);
    } else {
    stmt.setInt(3, getCallerUserEntity().getSocietyId().intValue());
    stmt.setString(4, getCallerName());
    stmt.execute();
    I created a BEA case but I think that it would be very difficult to
    reproduce the problem as the same code works fine for me in all other
    cases!!! And despite spending a lot of time I couldn't figure out why it is
    failing in this particular case. This is not related to the stored procedure
    as I changed the sql and it didn't change anything.
    Sincerely,
    Mikhail Stolpner
    "Joe Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    Hi. So are you saying it always fails with a setObject(3, null), or only
    after first running it the other way? This sounds like a problem with the
    oracle drivers setObject() with null as input. What I would like to see is
    if this works:
    if ( isCallerInAllSocietyViewRole() )
    stmt.setNull(3, Types.VARCHAR );
    else
    stmt.setObject( 3, getCallerUserEntity().getSocietyId() );
    Joe
    Mikhail wrote:
    I have really weird behaviour in only one call to stored procedure.
    Sometimes this problem is stable. Sometimes it starts working after
    passing the method once in a debuger. I can change sql to call different
    stored procedure and it doesn't affect the behavioir. This is WLS813 and
    Oracle 9i. I would appreciate any advice.
    The source code is simple and is used in multiple places in the
    application (I tried its different variations with the same result):
    DataSource ds = EJBContext.getInstance().getDefaultDataSource();
    conn = ds.getConnection();
    stmt = conn.prepareCall("{ ? = development_pkg.Get_AddUnit_BlockList
    stmt.registerOutParameter(1, OracleTypes.CURSOR);
    stmt.setObject(2, developmentId);
    stmt.setObject(3, isCallerInAllSocietyViewRole() ? null :
    getCallerUserEntity().getSocietyId());
    stmt.setString(4, getCallerName());
    stmt.execute(); - this line generates an exception
    Exception if isCallerInAllSocietyViewRole() is true (1st call after
    restarting the server):
    java.sql.SQLException: Missing IN or OUT parameter at index:: 2 at
    oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
    at
    oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
    at
    oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1678)
    at
    oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2883)
    at
    oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:2979)
    at
    oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4103)
    at
    weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:70)
    at
    Exception if isCallerInAllSocietyViewRole() is true (any consecuent
    call):
    java.sql.SQLException: Missing IN or OUT parameter at index:: 1 at
    oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
    at
    oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
    at
    oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1539)
    at
    oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2883)
    at
    oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:2979)
    at
    oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4103)
    at
    weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:70)
    at
    Exception if isCallerInAllSocietyViewRole() is false:
    java.lang.NullPointerException at
    oracle.jdbc.driver.T4C8Oall.getNumRows(T4C8Oall.java:728) at
    oracle.jdbc.driver.T4CCallableStatement.execute_for_rows(T4CCallableStatement.java:787)
    at
    oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1028)
    at
    oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2888)
    at
    oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:2979)
    at
    oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4103)
    at
    weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:70)
    at ...
    Thanks,
    Mikhail Stolpner

Maybe you are looking for

  • Need help in logging JTDS data packets

    Hi All, I m having web application which uses SQL Server database. I have to find out some problems in database connection for that there is need to log the jtds data packets. I have tried to use class net.sourceforge.jtds.jdbc.TdsCore but in constru

  • Updates to the X

    When is Verizon going to get it's act together and just release the new android version 2.3 to the Droid X. The build is out there. I don't care about other phones getting it first like the the thunderbolt or incredible. Put it on the X for crying ou

  • Good Morning

    I have a problem with my iphone 4 white with the operator Comcel in COLOMBIA and I changed the iphone I have changed it, but still the same problems  What I have to do?

  • Passing Parameters To A Form

    I have a custom item which has a procedure to open a Portal application form, I would like to pass a value from a custom attribute into a field on the application form at the same time as opening it. Any HTTP experts done this or know how to do this?

  • BY mistake I re-launch iPhoto where I can find my pictures that I have previously in my computer?

    I have a Mac Book Pro and I photo is 9.6 by mistake I relaunch the iPhoto and all my pictures in my computer are going how I can rescue these photos back?