JSP - Cannot Bind a collection of Beans

I am unable to bind a collection of Java Beans to the JSP
pages that I am developing in DW CS3. I get the following error
message,
"com/tti/apps/mtg/customerBean (Unsupported major/minor
version 49.0)"
We think it is because of the JRE version Dreamweaver is
using.
We have Java JDK 1.5.0_7 on the box. It seems like
DreamWeaver CS3 came with a JVM with JRE 1.3 embedded with it.
My question is, is there a way to make Dreamweaver use our
version of JDK/JRE?
We contacted support and were told that Dreamweaver uses what
ever JDK version that is available on the box . If that is the
case, what is this error and how can it be fixed?
Appreciate, if somebody on the forum can share the experience
with this error message.

Write a Comparator object which takes your fields
list as an argument. You could use reflection, but
it's probably a lot simplere to use an enumeration
value and a switch statment, particularly since
different kinds of fields will need different
comparisons.Thanks. This is what I need " different kinds of fields will need different
comparisons".
However, I don't understand really what you mean by "use an enumeration value and a switch statment".

Similar Messages

  • STRUTS - Cannot retrieve definition for form bean null -aaaarrrrgh

    Hi Folks,
    my head hurts and i become crazy... i know that a lot of people asked this question before, but i did not found any suitable solution.
    I have simple a jsp page, containing a form which should be handled by struts. I tried everything, but i did not found my mistake.
    Can anyone help me please?
    JSP:
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html:html locale="true">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Anmeldung f?r GOLEM Quickplayout</title>
    </head>
    <body>
    <html:errors/>
    <html:form action="checkLogin.do">
      <table cellspacing="3" cellpadding="2" border="0" width="100%" align="left">
        <tr>
          <td>
            <bean:message key="prompt.username"/>
          </td>
          <td>
            <html:text property="username"/>
          </td>
        </tr>
        <tr>
          <td>
            <bean:message key="prompt.password"/>
          </td>
          <td>
            <html:text property="password"/>
          </td>
        </tr>
      </table>
    </html:form>i tryed a lot for the FORM -Tag, for instance:
    <html:form action="checkLogin.do"> or
    <html:form action="/checkLogin.do"> or
    <html:form action="/checkLogin"> but all throws the same exception. :(
    struts-config.xml
      <form-beans>
        <form-bean name="loginForm" type="de.orb.quick.view.LoginForm"/>
      </form-beans>
      <action-mappings>
      <action path="/login" type="de.orb.quick.view.LoginAction" name="loginForm" input="/login.jsp" scope="session" unknown="true">
        <forward name="success" path="/showData.jsp"/>
      </action>
        <action path="/checkLogin" type="de.orb.quick.view.CheckLogonAction" unknown="false" input="/login.jsp">
          <forward name="success" path="/storeRequestData.do"/>
          <forward name="failure" path="/login.do"/>
        </action>
    Exception:
    javax.servlet.jsp.JspException: Cannot retrieve definition for form bean null
         at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:831)
         at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:506)
         at _login._jspService(login.jsp:11)     [/login.jsp]
    LoginAction:
      public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
        return mapping.findForward("success");
    LoginForm:
    public class LoginForm extends ActionForm  {
      private String password = "";
      private String username = "";
      public void reset(ActionMapping mapping, HttpServletRequest request) {
        super.reset(mapping, request);
      public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
        return super.validate(mapping, request);
      public String getPassword() {
        return password;
      public void setPassword(String password) {
        this.password = password;
      public String getUsername() {
        return username;
      public void setUsername(String username) {
        this.username = username;
      }Sorry for this stupid question, but how can i avoid this exception while using struts TagLibs?
    I tried to face the jsp with another action, but this does not change anything.
    Thank you in advance
    Mirko

    javax.servlet.jsp.JspException: Cannot retrieve definition for form bean myfrom
         at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:831)
         at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:506)
         at jsp_servlet.__index._jspService(__index.java:155)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6291)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:97)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3575)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2573)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)

  • Cannot retrieve definition for form bean null

    Hi,
              I have a page jsp which contains a form. This form contains an action
              towards (page.do ).
              I configured struts-config.xml file in whom I put a configuration of
              action ( type=xxx.pageAction ) but not form because I have not need of
              it.
              During the execution it show that it tries to instantiate a bean of form
              corresponding to a configuration of action and post this error message
              " Root causes of ServletException javax.servlet.jsp. JspException:
              Cannot retrieve definition for form bean null "
              Could you indicate to me where is the problem ?
              Here is my configuration :
              < html:form action = " page.do " method = " post " >
              </html:form >
              <action path="/page"
              type="xxx.pageAction">
              <forward name="show" path="/page.jsp"/>
              </action>
              Thanks in advance
              Rachid.
              

    There's little reason to use Struts infrastructure to set this up since you have no model, and the controller aspect is well-defined (just go to "NewProject"!). You're basically providing a link from one page to another, akin to doing an <a href>, and you wouldn't use Struts to do a simple link :).
    I would just just use standard HTML.
    If you're okay with using Javascript, this is the simplest:
    <input type="button" onClick="document.location='NewProject'">
    Or you can use a standard HTML form, as you've basically done already:
    <form action="NewProject" method="get">
    <input type="submit" value="Create">
    </form>

  • Binding parameters in backing bean

    hey,
    i have a function func1(String str) with a parameter
    in my bb i use code to invoke the function:
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("func1");
    operationBinding.execute();
    how can i bind parameter in backing bean?

    hi user,
    + with,
    here some
    your bean
      public class Login  {
        private RichInputText it2;
        private RichInputText it1;
    public void setIt2(RichInputText it2) {
            this.it2 = it2;
        public RichInputText getIt2() {
            return it2;
        public void setIt1(RichInputText it1) {
                 this.it1 = it1;
        public RichInputText getIt1() {
                   return it1;
    BindingContainer bindings = getBindings();
            OperationBinding operationBinding = bindings.getOperationBinding("checkLoginCredentials1");
            operationBinding.getParamsMap().put("p_user", it2);    p_user - bind var
            operationBinding.getParamsMap().put("p_pwd", it1);    p_pwd - bind var
    } your method in am:
        public String checkLoginCredentials1(String p_user, String p_pwd) {
            /*set the bind variable value*/
            vo.setNamedWhereClauseParam("p_user", p_user.toUpperCase());
            vo.setNamedWhereClauseParam("p_pwd", p_pwd.toUpperCase());
            return "Welcome" + "  " + p_user.toUpperCase();
        }p_user - say this in vo also
    p_pwd - say this in vo also
    just an references.
    Edited by: Erp on Nov 23, 2011 11:00 PM

  • How to get a collection of beans using web services

    Hi,
    I'm new to SOAP and Web Services I'd like to know whether the following is possible
    or not.
    I've created an EJB with this business interface:
    public interface Users implements EJBObject {
    public User[] getUsers( ) ...
    Where the User object is a bean with some properties:
    public User implements Serializable {
    public void setName( ... ) ...
    public String getName( ) ...
    public void setAddress( ... ) ...
    public String getAdress( ) ...
    I've create the ejb-jar.xml and weblogic-ejb-jar.xml that contain the definition
    of my EJB and then I try to deploy the web services using the ant task 'wsgen'.
    I get the following exception:
    org.xml.sax.SAXException: Could not find a codec that understood how to convert
    class [LUser; using http://schemas.xmlsoap.org/soap/encoding/
    : [ CodecFactory: http://xml.apache.org/xml-soap/literalxml=null, http://schemas.xmlsoap.org/soap/encoding/=null,
    =null]
    Can someone help to resolve this ? Also, I'd like to know if it's possible that
    a web service return a collection of beans as shown above ?
    Thanks for your help.
    Ludovic.

    Java beans are serialized/deserialized by the soap encoding codec
    itself. you dont have to write custom encoders. I think the error
    is because you dont have the java bean class on the server side.
    Java bean class file should be in the classpath or it should be
    added to the ejb jar file.
    thanks,
    -manoj
    Ludovic Deravet wrote:
    Thanks for your help. Indeed, that was my problem.
    But now I'm facing this one:
    [SOAPException: faultCode=SOAP-ENV:Client; msg=No Deserializer found to
    deserialize a 'urn:local:ns0:return' using encoding style 'http://sch
    emas.xmlsoap.org/soap/encoding/'.;
    targetException=java.lang.IllegalArgumentException: No Deserializer found to
    deserialize a 'urn:local:ns0:
    return' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.]
    at org.apache.soap.rpc.Call.invoke(Call.java:246)
    at com.webservices.WSClient.main(WSClient.java:38)
    Did you implement your own deserializer to read your array of beans (called
    Data) ? Or do I need to do something else ?
    Thanks.
    Ludovic.
    "manoj cheenath" <[email protected]> wrote in message
    news:[email protected]...
    You can do this. I guess, the problem is because you have
    not defined a package for the bean.
    Try something like:
    package foo.bar;
    class User{
    I am attaching an example.
    -manoj
    Ludovic Deravet wrote:
    Hi,
    I'm new to SOAP and Web Services I'd like to know whether the following
    is possible
    or not.
    I've created an EJB with this business interface:
    public interface Users implements EJBObject {
    public User[] getUsers( ) ...
    Where the User object is a bean with some properties:
    public User implements Serializable {
    public void setName( ... ) ...
    public String getName( ) ...
    public void setAddress( ... ) ...
    public String getAdress( ) ...
    I've create the ejb-jar.xml and weblogic-ejb-jar.xml that contain thedefinition
    of my EJB and then I try to deploy the web services using the ant task'wsgen'.
    I get the following exception:
    org.xml.sax.SAXException: Could not find a codec that understood how toconvert
    class [LUser; using http://schemas.xmlsoap.org/soap/encoding/
    : [ CodecFactory: http://xml.apache.org/xml-soap/literalxml=null,
    http://schemas.xmlsoap.org/soap/encoding/=null,> > > =null
    Can someone help to resolve this ? Also, I'd like to know if it's
    possible that
    a web service return a collection of beans as shown above ?
    Thanks for your help.
    Ludovic.

  • Adding elements to a node: cannot bind or add element

    Hallo,
    I want add emenents of my phases and subphases to a table, but I get this exception:
    ContextException: Node(RoadMapVIew.phase_subphase_table): cannot bind or add element, because it is already bound to a node
    The code is the following:
    int phaseSize = processT.getSequenceGroup1().getPhaseList().getSequenceGroup1().getPhase().length;
                     String currentStatus = "";
                     String currentPhaseId = "";
                     String currentSubphaseId = "";
                     String currentNotifyId = "";
                     String lastStatus = "";
                     for (int i = 0; i < phaseSize; i++)
    PhaseT phaseT = processT.getSequenceGroup1().getPhaseList().getSequenceGroup1().getPhase();
                         IPrivateRoadMapVIew.IPhase_subphase_tableElement tableElement = wdContext.nodePhase_subphase_table().createPhase_subphase_tableElement();
                          tableElement.setPhase_desc(phaseT.getSequenceGroup1().getPhaseDesc());
                          tableElement.setPhase_id(phaseT.getSequenceGroup1().getPhaseId());
                          int subPhaseSize = phaseT.getSequenceGroup1().getSubPhaseList().getSequenceGroup1().getSubPhase().length;
                          for(int j = 0; j< subPhaseSize; j++)
                               SubPhaseT subPhaseT = phaseT.getSequenceGroup1().getSubPhaseList().getSequenceGroup1().getSubPhase()[j];
                               tableElement.setSubphase_desc(subPhaseT.getSequenceGroup1().getSubPhaseDesc());
                               tableElement.setSubphase_id(subPhaseT.getSequenceGroup1().getSubPhaseId());
                               String status = subPhaseT.getSequenceGroup1().getStatus();
                               wdContext.nodePhase_subphase_table().addElement(tableElement);
                               lastStatus = status;
                               //le fasi/sotofasi sono ordinate perciò la corrente è l'ultima con uno status valido
                               if (status != null && !status.equals(""))
                                    currentStatus = status;
                                    currentPhaseId = phaseT.getSequenceGroup1().getPhaseId();
                                    currentSubphaseId = subPhaseT.getSequenceGroup1().getSubPhaseId();
                                    if (status.equals(DAConst.STATUS_NOTIFY))
                                         //currentNotifyId = "notifyId"; //subPhaseT.getSequenceGroup1().getNotifyId();
                                         currentNotifyId = subPhaseT.getSequenceGroup1().getNotifyId();
    Can anybody help me please?
    Thanks,
    regards,
    Andrea

    I have solved moving the creation of the reference of the node element and the setting of elements inside the second for loop:
    for (int i = 0; i < phaseSize; i++)
                          PhaseT phaseT = processT.getSequenceGroup1().getPhaseList().getSequenceGroup1().getPhase()<i>;
                          String phaseDesc=phaseT.getSequenceGroup1().getPhaseDesc();
                          String phaseId=phaseT.getSequenceGroup1().getPhaseId();
                          int subPhaseSize = phaseT.getSequenceGroup1().getSubPhaseList().getSequenceGroup1().getSubPhase().length;
                          for(int j = 0; j< subPhaseSize; j++)
                               SubPhaseT subPhaseT = phaseT.getSequenceGroup1().getSubPhaseList().getSequenceGroup1().getSubPhase()[j];
                               IPrivateRoadMapVIew.IPhase_subphase_tableElement tableElement = wdContext.nodePhase_subphase_table().createPhase_subphase_tableElement();
                               tableElement.setSubphase_desc(subPhaseT.getSequenceGroup1().getSubPhaseDesc());
                               tableElement.setSubphase_id(subPhaseT.getSequenceGroup1().getSubPhaseId());
                               tableElement.setPhase_desc(phaseDesc);
                               tableElement.setPhase_id(phaseId);
                               String status = subPhaseT.getSequenceGroup1().getStatus();
                               wdContext.nodePhase_subphase_table().addElement(tableElement);
                               lastStatus = status;
    Thanks everybody for helps,
    Andrea

  • Address already in use: Cannot bind

    Hi all. I have a desktop app that sends commands and receives responses from a network appliance.
    All commands and responses work fine except one - trying to use RTPSocketPlayer on port 49154.
    The normal command and response UDP port is 49152. Streaming audio should come in on port 49154.
    I am closing and disconnecting the socket on 49152 after every command and response.
    But when I try to invoke the RTPSocketPlayer and bind port 49154 to my local IP, I get the
    Address already in use: Cannot bind error.
    Any suggestions? Thanks!
    waynew

    Ah OK, I get it. Change the InitSocket() method thus:
    sock = new DatagramSocket(null);
    sock.setReuseAddress(true);
    sock.bind(new InetSocketAddress(addr, sockPort));but also have a look at netstat -an to see who else is on that port and whether that's OK.

  • Error while starting Instance -javax.naming.NamingException: Cannot bind nu

    Kindly help!!!!!
    Application gets deployed on Oracle Weblogic Server 11g. But while starting its gives the Error
    javax.naming.NamingException: Cannot bind null object to jndi with name.
    All the things seems to be in place. Kindly help

    No I am not getting this error while deploying the application. Application gets successfully deployed.
    Once I start the application I get this error
    <Apr 17, 2010 5:28:46 PM IST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating
    <Apr 17, 2010 5:28:46 PM IST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException: Could not setup environment
    at weblogic.servlet.internal.WebAppModule.activateContexts(WebAppModule.java:1361)
    at weblogic.servlet.internal.WebAppModule.activate(WebAppModule.java:408)
    at weblogic.application.internal.flow.ModuleStateDriver$2.next(ModuleStateDriver.java:182)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.flow.ModuleStateDriver.activate(ModuleStateDriver.java:48)
    Truncated. see log file for complete stacktrace
    javax.naming.NamingException: Cannot bind null object to jndi with name jms/queue/EodBodQueueJNDI
    at weblogic.jndi.internal.BasicNamingNode.bind(BasicNamingNode.java:311)
    at weblogic.jndi.internal.WLEventContextImpl.bind(WLEventContextImpl.java:277)
    at weblogic.deployment.EnvironmentBuilder.addConnectorRef(EnvironmentBuilder.java:233)
    at weblogic.deployment.EnvironmentBuilder.addResourceReferences(EnvironmentBuilder.java:152)
    at weblogic.servlet.internal.CompEnv.activate(CompEnv.java:138)
    Truncated. see log file for complete stacktrace

  • JSP cannot load class from classpath

     

              Ken:
              I run into this problem yesterday too. I'm wondering if you have it resolved? Thank you very much!
              Lucy
              Ken Rimple <[email protected]> wrote:
              >All,
              >
              >I'm using 5.10 WLS, and have a jsp that is trying to access a class in a
              >package loaded in my java classpath. I'm using visual cafe expert
              >edition, and the class is part of the project classpath. To be safe,
              >I've also put it in the sc.ini file under CLASSPATH.
              >
              >The jsp keeps failing with the following error. Servlets I'm using
              >place these things in the HttpSession and are called before this page
              >and they work. I'm baffled, as I even tried the jspc compiler utility
              >adding the classes to the class path.
              >
              >Parsing of JSP File '/ShowResults.jsp' failed:
              >--------------------------------------------------------------------------------
              >
              > /ShowResults.jsp(4): Could not create a bean of type:
              >com.<companyname>.<software>.common.UserSession:
              >java.lang.ClassNotFoundException: class
              >com.<companyname>.<software>.common.UserSession :
              >java.lang.InstantiationException:
              >com/<companyname>/<software>/common/UserSession
              >probably occurred due to an error in /ShowResults.jsp line 4:
              ><jsp:useBean id="user_session" scope="session"
              >class="com.<companyname>.<software>.common.UserSession" />
              >--------------------------------------------------------------------------------
              >
              >(<companyname> and <software> are regular names. The file is in the
              >class path and is used by Servlets.
              >
              >It's almost as if the jsp compiler is ignoring any class paths.
              >
              >Please help if anyone has made this work. I'm stuck.
              >
              >Ken Rimple
              >
              >
              

  • BPEL Newbie  -- Cannot bind input

    Have been given a wsdl to an internal web service, This service can be accessed by soapUI and XMLSpy default soap generators without any problem
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:par="http://localhost/XX/XX">
    <soapenv:Header/>
    <soapenv:Body>
    <par:SeriesTitle>TEST</par:SeriesTitle>
    <par:SeriesId>1/200-01</par:SeriesId>
    <par:ProgrammeIdRef>1/2000</par:ProgrammeIdRef>
    <par:SeriesStatus>PROD</par:SeriesStatus>
    <par:ProductionAreaIdRef1>DRAMA</par:ProductionAreaIdRef1>
    </soapenv:Body>
    </soapenv:Envelope>
    but Oracle BPEL fails with a remote fault thrown -- 'Cannot bind input'
    The only strange thing, possibly linked - is because there are no partner link details in the original wsdl Oracle BPEL creates its own

    Hi,
    I suggest you to create a value node exactly like Output_Remarks model node in the controller context and populate all the data from Ouput_Remarks node to this value node.  You can write for loop or you can use WDCopyService.copyElements() method to copy the elements from model node to value node.
    Create one more additional boolean attribute as "isEnteredByUser" in the same value node.
    By default this boolean attribute value for all the elements will be false.
    Every time when user updates the remarks for a particular entry then go and update the remarks field for that particular entry in the value node. And change "isEnteredByUser" boolean attribute to true.
    And every time check whether remarks exist or not in the value node.
    Because of this "isEnteredByUser" attribute , you can easily identify the records which are modified at front end while updaing in database.
    I dont think it is better to update the Output model node with user input.
    Regards,
    Charan

  • OCI-21500 when binding a collection

    Hello all:
    I've got a very strange behaviour when binding a collection. If I try to bind an empty collection, my program runs. BUT when I add one element to the collection, I've got a SIGSEGV and this message appears:
    -21500: internal error code, arguments: [kohrsc153], [], [], [], [], [], [], []
    Errors in file :
    OCI-21500: internal error code, arguments: [kohrsc153], [], [], [], [], [], [], []
    ----- Call Stack Trace -----
    Error: stisini(),13 - Can't open /oracle1/app/oracle/product/9.2.0.1.0/bin/oracleError: Stack Initialization Failure
    Error: ssdinit() failed 13
    calling call entry argument values in hex
    location type point (? means dubious value)
    ----- Argument/Register Address Dump -----
    ----- End of Call Stack Trace -----
    Any idea?

    This is my code:
    CREATE TYPE my_collection IS TABLE OF my_element;
    I'm trying to call to a PLSQL procedure:
    PROCEDURE get_collection(
    v_collection IN OUT my_collection
    Then, in the C program:
    sword code = OCI_SUCCESS;
    OCITable pList              = (OCITable )0;
    char *statement_sql      = "begin package.get_collection(:list); end;";
    code=OCITypeByName(
    envhp,
    errhp,
    svchp,
    (CONST text *)ORA_SCHEMA,
    (ub4)ORA_SCHEMA_LEN,
    (CONST text *)("MY_ELEMENT"),
    (ub4)strlen("MY_ELEMENT"),
    NULL,
    (ub4)0,
    OCI_DURATION_SESSION,
    OCI_TYPEGET_ALL,
    &(DataClass)
    code=OCITypeByName(
    envhp,
    errhp,
    svchp,
    (CONST text *)ORA_SCHEMA,
    (ub4)ORA_SCHEMA_LEN,
    (CONST text *)("MY_COLLECTION"),
    (ub4)strlen("MY_COLLECTION"),
    NULL,
    (ub4)0,
    OCI_DURATION_SESSION,
    OCI_TYPEGET_ALL,
    &(DataListClass)
    code = OCIObjectNew(
    envhp,
    errhp,
    svchp,
    OCI_TYPECODE_NAMEDCOLLECTION,
    (DataListClass),
    (dvoid *)0,
    OCI_DURATION_DEFAULT,
    TRUE,
    (dvoid **)&(pList)
    /* Add one element */
    code = OCIObjectNew(
    envhp,
    errhp,
    svchp,
    OCI_TYPECODE_OBJECT,
    (DataClass),
    (dvoid *)0,
    OCI_DURATION_DEFAULT,
    TRUE,
    (dvoid **)&(elemData)
    code = OCIStringAssignText(
    envhp,
    errhp,
    (text *)"Name1",
    (ub4)strlen("Name1"),
    &(elemData->dataName)
    code = OCICollAppend(
    envhp,
    errhp,
    (CONST dvoid *)&(elemData),
    (dvoid **)NULL,
    (OCIColl *)(pCollection)
    code = OCIStmtPrepare2((OCISvcCtx *)svchp,(OCIStmt **)&stmtp,
    (OCIError *)errhp, (unsigned char *)statement_sql, strlen(statement_sql),
    NULL,0,OCI_NTV_SYNTAX,OCI_DEFAULT);
    /* Bind */
    code = OCIBindByPos(
    stmtp,
    &bind,
    errhp,
    (ub4)1,
    (dvoid* *) NULL,
    (sb4) 0,
    SQLT_NTY,
    (dvoid *) 0, (ub2 *)0, (ub2 *)0,
    (ub4) 0, (ub4 *) 0, (ub4) OCI_DEFAULT);
    code = OCIBindObject(
         bind,
    errhp,
    DataListClass,
    (dvoid **) &pList,
    (ub4 *) 0,
    (dvoid **)0,
    (ub4 *) 0);
    /* Execute */
    code = OCIStmtExecute(svchp, stmtp, errhp, (ub4)1, (ub4)0,
    (CONST OCISnapshot *) NULL,(OCISnapshot *) NULL, OCI_DEFAULT);
    I'm trying to run this code in an Oracle 9i environment.
    Thanks in advance.

  • GeneralException Node(( Context path of node ): cannot bind or add element,

    Hello all,
    Stack trace :
    GeneralException Node((<Context path of node>): cannot bind or add element, because it is already bound to a node
    I am trying to upload data from excel file in web dynpro context.In the process,  when I create and add  an element to the node which I want to populate with excel data, it throws the above mentioned exception.
    Any idea as to wht is causing the problem ?

    Hi,
    GeneralException Node((<Context path of node>): cannot bind or add element, because it is already bound to a node
    It seems that its a mapped node, try to bind or addelements at the source.
    Ex: If this node is mapped from controller to view try to add elements in contoller instead of doing in view.
    Regards
    Ayyapparaj

  • How to override the where clause (Bind Variables) in Backing Bean.

    HI
    I am using bind variables in VO and using exeutewithparam to pass the values to bind. Which is working fine.
    But what i want now to override the values pro grammatically from backing_bean of that page.
    How can i pass the values to bind variables from bean.
    M Niaz.

    Hi
    Try this if it works. this is from 10g
    1)create value binding in the backing bean on any action
    FacesContext ctx=FacesContext.getCurrentInstance();
    ValueBinding vb= ctx.getApplication().createValueBinding("#{bindings['account_name1'].inputValue}");
    2) and then set the value for binding
    vb.setValue(ctx,(String)accountInput.getValue());
    Now execute the method with method binding and execute it
    ctx.getApplication().createMethodBinding("#{bindings.ExecuteWithParams.execute}",null).invoke(ctx,null);
    Regards
    Rohit

  • Cannot bind a string array

    Hi guys! I badly need your help.
    I'm trying to bind string[] variable in Java(IDCGetInfoResult) to another string[] in JavaFX (simpleList).
    However, I can't seem to be able to do so.
    The code statement highlighted in red generates an error message:
    the target type of a bind cannot be an array
    found: native array of string
    required: object or sequence
    IDCGetInfoResult -> array of strings in control.java
    var simpleList: String[] =  bind r.control.getIDCGetInfoResult();
    var simpleListView : ListView = ListView {
            translateX: 0
            translateY: 0
            layoutX: 20
            layoutY: 80
            height: 130
            width: 200
            items: simpleList
    for(i in [0..simpleList.size()-1])
            insert simpleList[i] into simpleListView.items;
    }By the way, I'm using the Observer and Observable class as suggested by this blog post:
    http://blogs.sun.com/michaelheinrichs/entry/binding_java_objects_in_javafx
    Edited by: tsubaki.pw on Jan 27, 2010 10:43 PM
    Edited by: tsubaki.pw on Jan 27, 2010 10:45 PM

    OK, I came with a quite convoluted solution, it might be a starting point for real code...
    Part of the complexity comes because I didn't want to make my class extending Observable.
    A recent thread ([cannot find java.util.Observable in JavaFX application|http://forums.sun.com/thread.jspa?threadID=5425241]) reminded that we cannot bind a Java variable from JavaFX, so we have to use Observable and Observer pair.
    Here is my test code:
    ObservableData.java import java.util.*;
    public class ObservableData
      ArrayList<String> info = new ArrayList<String>();
      Notifier notifier = new Notifier();
      ObservableData(Observer obs)
        addObserver(obs);
      void init()
        for (int i = 0; i < 10; i++)
          info.add("Item " + i);
        notifier.change();
        notifier.notifyObservers();
      ArrayList<String> getData()
        return info;
      void addObserver(Observer obs)
        notifier.addObserver(obs);
      void update(int n)
        String newItem = "Item " + n;
        System.out.println("Update => " + newItem);
        info.add(newItem);
        notifier.change();
        notifier.notifyObservers(newItem);
      public String toString()
        return info.toString();
      static class Notifier extends Observable
        public void change() { setChanged(); }
    Test.fx class Watcher extends java.util.Observer
      override function update(obs: java.util.Observable, ob: Object): Void
        def updatedItem = ob as String;
        println("Update with '{updatedItem}'");
        def list = javaData.getData();
        println(list.toString());
        simpleList = for (item in list) item as String;
    var javaData = new ObservableData(Watcher {});
    var simpleList: String[];
    var simpleListView: ListView = ListView {
      translateX: 0
      translateY: 0
      layoutX: 20
      layoutY: 80
      height: 130
      width: 200
      items: bind simpleList
    var b = Button
      text: "Update"
      action: function (): Void
        def val = 10 + Math.random() * 100 as Integer;
        println("Update with {val}");
        javaData.update(val)
    var scene: Scene;
    Stage
        title: "Observing Java data"
        scene: scene = Scene
            width: 300
            height: 300
            content:
                b, simpleListView
    javaData.init(); // Placement is important! If you want the list view to be initializedHere I refresh the whole content of the list view; depending on the data and the way to update it, you can use the updatedItem value to do a partial update.

  • BLOB & CMP EJB - Cannot bind stream to a ScrollableResultSet

    Hi,
    I am trying to bind a byte[] to a Blob column in CMP EJB using Oracle 10g OCI driver in WebSphere. This gives the below error.
    java.sql.SQLException: Cannot bind stream to a ScrollableResultSet or UpdatableResultSetDSRA0010E: SQL State = null, Error Code = 17,169
         at com.ibm.ejs.container.LocalExceptionMappingStrategy.mapException(LocalExceptionMappingStrategy.java:195)
         at com.ibm.ejs.container.LocalExceptionMappingStrategy.setUncheckedException(LocalExceptionMappingStrategy.java:266)
         at com.ibm.ejs.container.EJSDeployedSupport.setUncheckedLocalException(EJSDeployedSupport.java:318)
    Thanks

    When you create a DataSource, use the below class in the field 'Data Source helper classs name'. This should solve the issue.
    import java.util.Properties;
    import javax.resource.ResourceException;
    import com.ibm.websphere.appprofile.accessintent.AccessIntent;
    public class OracleDataStoreHelper extends com.ibm.websphere.rsadapter.OracleDataStoreHelper {
         public OracleDataStoreHelper(Properties props) {
              super(props);
         public int getResultSetConcurrency(AccessIntent intent)     throws ResourceException {
              return java.sql.ResultSet.CONCUR_READ_ONLY;
    }

Maybe you are looking for

  • Open a new url in new window

    Hi all, I have implemented an application & integrated in EP. In my view i have provided a link on click of which i should be able to open a separate url in a new window. Again, I need to pass some url parameters which should not be visible in the ur

  • Transitions toast in keynote 3?

    Is it true that in keynote 3 that all transitions diapear when exporting to flash? I was think of upgrading, but my transitions work in keynote 2 when exporting to flash.

  • Burn a iPhoto slideshow to dvd

    I can't figure out how to burn an iPhoto slideshow to a dvd.  I created the slideshow and clicked on "export", the popup shows the different sizes, and a checked box that says "automatically to iTunes". From iTunes, I'm told to right click to burn th

  • HT1695 My wi-fi option is greyed out and I am unable to turn it on and connect to wifi. How can I fix this?

    A few days ago my iphone decided to stop connecting to wi-fi. I tried to connect to different wi-fi connections but my phone does not pick up any. Now my "turn wi-fi on" option is greyed out and I am unable to turn it on. I have tried reseting the ne

  • Problems with AIM on new iMac G5

    Hi--Sorry if this is in the wrong place. I'm having an extremely frustrating problem with AIM, which I recently downloaded on my son's new iMac G5 (TIger 10.4.3). I've tried posting this question in the iChat forum, but since he doesn't use iChat and