Unable to find setter method for attribute: forceIdIndexFormula

When I try to use advanced dataTable tag and in particular the given property - I get the error.
What could it be?

In older versions of my faces "forceIdIndexFormula" , is not defined. So it errors out when u try to use it, since it doesnt know what forceIdIndexFormula is all about.
When u try to assign a value to a attribute it will call its corresponding setter method. Since it is not found it errors out.
The solution is you have to make use of the latest myfaces version which supports the forceIdIndexFormula attribute in the datatable.
Thanks

Similar Messages

  • Unable to find setter method for attribute:

    I am using Jboss jboss-4.2.3.GA, JDK 1.6.
    I am trying to deploy our application on Jboss. When loading sources page or whenever we try to load the taglib we are getting the following error.
    org.apache.jasper.JasperException: jspfile.jsp(67,1) Unable to find setter method for attribute: collection
    at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
    at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
    at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)
    at org.apache.jasper.compiler.Generator$GenerateVisitor.evaluateAttribute(Generator.java:2736)
    at org.apache.jasper.compiler.Generator$GenerateVisitor.generateSetters(Generator.java:2965)
    at org.apache.jasper.compiler.Generator$GenerateVisitor.generateCustomStart(Generator.java:2169)
    at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1689)
    at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
    at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338)
    at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2388)
    at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2394)
    at org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
    at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338)
    at org.apache.jasper.compiler.Generator.generate(Generator.java:3374)
    at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:210)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)
    at com.ssmb.common.servlets.GenericControllerServlet.service(GenericControllerServlet.java:639)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
    at java.lang.Thread.run(Thread.java:619)
    The line corresponding in JSP file is ,
    <ssmb:list name="src_" collection="sources" showAll='<%= "" + true %>'>
    Please let me know if you have faced this issue before.

    Have you written this tag in a tld or a tag file?
    How have you declared the attribute "collection"?
    Does the class which implements the custom tag <ssmb:list> have a method in it: public void setCollection(String collection) ?

  • Custom Tag: Cannot find setter method for attribute

    This has been working fine in appserver6.5.
    In the jsp:
    =======
    <display:table configFileDir="theDirectory"...>
    =======
    The tld entry:
    <tag>
    <name>table</name>
    <tagclass>org.apache.taglibs.display.TableTag</tagclass>
    <teiclass>org.apache.taglibs.display.TableTagExtraInfo</teiclass>
    <bodycontent>JSP</bodycontent>
    <attribute>
    <name>configFileDir</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    =============
    In TableTag.java:
    =============
    private String configFileDir = null;
    public void setConfigFileDir( String v )
         v = v.trim();
    this.configFileDir = v;
    ============
    Help, I'm going nuts.

    Then you also need to create a UI element that extends HtmlPanelGrid
    that has a tModelKey member and getters/setters. That object will hold
    the information so that you can use it in your bean.Whoops... ignore that! Sorry. Attributes are simply stored in the component map component.getAttributes().
    Add to your Tag class:
    public void setProperties(UIComponent component) {
        super.setProperties(component);
        Tags.setString(component, "tModelKey", tModelKey);
    public void release() {
        // see above
    }Where Tags.java is:public class Tags {
        public static void setString(UIComponent component, String attributeName, String attributeValue) {
            if (attributeValue != null) {
                if (UIComponentTag.isValueReference(attributeValue)) {
                    setValueBinding(component, attributeName, attributeValue);
                } else {
                    component.getAttributes().put(attributeName, attributeValue);
        public static void setValueBinding(UIComponent component, String attributeName, String attributeValue) {
            FacesContext context = FacesContext.getCurrentInstance();
            Application app = context.getApplication();
            ValueBinding vb = app.createValueBinding(attributeValue);
            component.setValueBinding(attributeName, vb);
    }

  • Custom tag - unable to find setter method error

    I see this compileException on IAS but not on BEA app server and iWS.
    JSPProvider.processJSPFile(): jsp=searchContent.jsp, org.apache.jasper.compiler.CompileException
    Unable to find setter method for attribute: input
    The reason is because the custom tag has a setInput() that takes a String parameter while the getInput() returns an InputStream.
    Should both get and set methods have the same type of parameters or is this a due to a bug in the app server ?

    I see this compileException on IAS but not on BEA app
    server and iWS.
    JSPProvider.processJSPFile(): jsp=searchContent.jsp,
    org.apache.jasper.compiler.CompileException
    Unable to find setter method for attribute: input
    The reason is because the custom tag has a setInput()
    that takes a String parameter while the getInput()
    returns an InputStream.
    Should both get and set methods have the same type of
    parameters or is this a due to a bug in the app server
    I was only going off info from the original post. The error specifically states "Unable to find setter method for attribute: input" with a lower case i for the input attribute. You also specifcally stated "The reason is because the custom tag has a setInput()" with a capital I for the setInput method. This would most definitely cause the error you were receiving. That is unless you corrected this between your original post and your followup testing.
    Cliff

  • Unable to find setter method

    Hi,
    Can anyone tell me how to overcome the error
    /tags/DBConnectionTest.jsp(8,0) Unable to find setter method for attribute: connection
    I get this error when i try to test a custom tag through a jsp. My jsp for testing the custom tag(s) is like this
    DBConnectionTest.jsp
    <%@ taglib uri="http://www.bidla.com/db-taglib" prefix="db" %>
    <db:connection id="conn" url="jdbc:odbc:bidla2">
         <db:userId>apj100</db:userId>
         <db:password>amithpj</db:password>
    </db:connection>
    <db:query id="getAllRows" connection="conn">Select name from events</db:query>
    I think there is some problem with the query tag because the jsp runs fine if i remove the line containing query tag. The query tag represents QueryTagHandler.java. Is there anything extra that i need to add to it.
    Waiting for reply,
    Thank You !

    I am having the same problem.
    In my jsp I have:
    <db:query id="eventsForDay" connection="conn">
    SELECT name, description, start_date FROM Events
    WHERE EXTRACT(MONTH FROM start_date) = <%= month%>
    AND EXTRACT(YEAR FROM start_date) = <%= year%>
    AND EXTRACT(DAY FROM start_date) = <%= day%>
    ORDER BY EXTRACT(HOUR FROM start_date), EXTRACT(MINUTE FROM start_date)
    </db:query>
    My .tld file contains:
    <tag>
    <name>query</name>
    <tagclass>station.auction.db.taglib.QueryTagHandler</tagclass>
    <teiclass>station.auction.db.taglib.QueryTagExtraInfo</teiclass>
    <bodycontent>JSP</bodycontent>
    <info>Specifies a SQL query</info>
    <attribute>
    <name>id</name>
    <required>true</required>
    </attribute>
    <attribute>
    <name>connection</name>
    <required>true</required>
    </attribute>
    </tag>
    And the handler is :
    public class QueryTagHandler extends BodyTagSupport {
         private Connection con=null;
    private String id=null;
    private String test=null;
    public int doAfterBody() throws JspException {
         try {
              String query = getBodyContent().getString();
              System.out.println("[QueryTagHandler] doAfterBody, Query Body-> " + getBodyContent().getString());
              Statement stmt = getConnection().createStatement();
              ResultSet rs = stmt.executeQuery(query);
              this.pageContext.setAttribute(getId(), rs, pageContext.PAGE_SCOPE);
         } catch (Exception exc) {
              throw new JspException(exc.getMessage());
         return SKIP_BODY;
    public Connection getConnection() {
         return this.con;
    public void setConnection(String connection)
         this.con = (Connection)pageContext.findAttribute(connection);
    //System.out.println("[QueryTagHandler] setConnection, Attribute-> " + connection);
         //System.out.println("[QueryTagHandler] Connection : " + con);
    The error is : Unable to find setter method for attribute : connection
    What could be the problem ?????!!!!!!! I've googled for 2 days continuously and - no answer ... Can anyone help ?

  • Error : cannot find setter method....

    hi i am using Ant 1.6 and struts framework .....to run a simple program to print a name
    i have followed all the basic steps ....to create a struts application
    now the problem is
    when i am trying to acces the applicatin it is giving
    org.apache.jasper.JasperException: /index.jsp(9,2) Unable to find setter method for attribute: name
    the form tag in index.jsp is
    <html:form action="Name"name="nameForm" type="NameForm">
    the bean is
    package com;
    //import statements
    import javax.servlet.http.HttpServletRequest;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionMapping;
    public class NameForm extends ActionForm {
    String name = null;
    public String getName() {
        return name;
      public void setName(String name) {
        this.name = name;
      public void reset(ActionMapping mapping, HttpServletRequest request) {
        this.name = null;
    }  the struts-config.xml file...
    <?xml version="1.0" encoding="ISO-8859-1" ?>
        <!DOCTYPE struts-config PUBLIC
              "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
              "http://struts.apache.org/dtds/struts-config_1_3.dtd">
        <struts-config>
         <form-beans>
         <form-bean name="nameForm" type="com.NameForm"/>
         </form-beans>
         <action-mappings>
         <action path="/Name"
                   type="com.NameAction"
                   name="nameForm"
                   input="/index.jsp">
                   <forward name="success" path="/displayname.jsp"/>
                   <forward name="failure" path="/index.jsp"/>
         </action>
         </action-mappings>
        </struts-config>
       thanks....in advance

    Hal-.- wrote:
    I downloaded Lucene from its homepage, I have tried Lucene 2.3.0 and Lucene 2.2.0, but same errors occurs which is cannot find symbol method Text.
    I checked class Field under Lucene, it doesn't have Text function. Well there you go. You can't call methods that don't exist.
    What should I do to add two Fields "path" & "contents" into Document?It seems very likely that the object that represents an indexed document, has some way to express the concepts of "path" and "contents". You should probably just read the docs some more.
    But other than that I have no idea. Ask on a Lucene forum.

  • Setter method for custom action attributes

    Hello,
    I'm using Sun App server. The container is saying I need to implement a setter method for a custom action attribute? I defined a set<variable() and this didn't fix the problem. What kind of setter method is it expecting?

    nevermind, found solution

  • Setting value for attribute  'PO_NUMBER_SOLD'  using setter method

    Hi Experts,
    I need to set the value of a screen field according to some condition. I am using setter method of this attribute to set the value but it is not getting changed.
    I have written following code in DO_PREPARE_OUTPUT method of implementation class ZL_ZZBT131I_ZCREDITCHECK_IMPL using setter method of attribute
    Get Referral Authorization Code
          lv_val1 = me->typed_context->crechkresph->get_po_number( attribute_path = 'PO_NUMBER' ).
          me->typed_context->crechkresph->set_po_number( attribute_path = 'PO_NUMBER'
                                                            value     = ' ' ).
    while debugging I found that in method set_po_number set_property method has been used:--
    current->set_property(
                          iv_attr_name = 'PO_NUMBER_SOLD' "#EC NOTEXT
                          iv_value     = <nval> ).
    In set_property method  following code is getting executed
    if ME->IS_CHANGEABLE( ) = ABAP_TRUE and
               LV_PROPS_OBJ->GET_PROPERTY_BY_IDX( LV_IDX ) ne IF_GENIL_OBJ_ATTR_PROPERTIES=>READ_ONLY.
              if <VALUE> ne IV_VALUE.
                if ME->MY_MANAGER_ENTRY->DELTA_FLAG is initial.
                first 'change' -> proof that entity is locked
                  if ME->MY_MANAGER_ENTRY->LOCKED = FALSE.
                    if ME->LOCK( ) = FALSE.
                      return.
                    endif.
                  endif.
                flag entity as modified
                  ME->MY_MANAGER_ENTRY->DELTA_FLAG = IF_GENIL_CONTAINER_OBJECT=>DELTA_CHANGED.
                endif.
                ME->ACTIVATE_SENDING( ).
              change value
                <VALUE> = IV_VALUE.
              log change
                set bit LV_IDX of ME->CHANGE_LOG->* to INDICATOR_SET.
              endif.
            else.
            check if it is a real read-only field or a display mode violation
              assert id BOL_ASSERTS subkey 'READ-ONLY_VIOLATION'
                     fields ME->MY_INSTANCE_KEY->OBJECT_NAME
                            IV_ATTR_NAME
                     condition ME->CHANGEABLE = ABAP_TRUE.
            endif.
    and in debugging I found that if part ( ME->IS_CHANGEABLE( ) = ABAP_TRUE and
               LV_PROPS_OBJ->GET_PROPERTY_BY_IDX( LV_IDX ) ne IF_GENIL_OBJ_ATTR_PROPERTIES=>READ_ONLY) fails and hence else part is getting executed and hence my field a real read-only field or a display mode violation is happening according to comments in code.
    What shall I do so that I would be able to change the screen field value?
    Any help would be highly appreciated.
    Regards,
    Vimal

    Hi,
    Try this:
    data: lr_entity type cl_crm_bol_entity.
    lr_entity = me->typed_context->crechkresph->collection_wrapper->get_current( ).
    lr_entity->set_property( iv_attr_name = 'PO_NUMBER' value = '').
    Also, make sure the field is not read-only.
    Regards
    Prasenjit

  • Type-mapping not working correctly, get "Unable to find a javaType for the xmlType" WARNING

    I'm manually creating a web-services.xml file, and using the autogen ant task to
    generate the codec XML/Java classes. The XML definition is provided by SAP.
    The ant build.xml file:
    <project name="buildWebservice" default="stubgen">
    <target name="stubgen">
    <clientgen ear="C:\projects\RMIS\ifrrequests\RMIS.ear"
    packageName="com.aa.rmis.webservice.client"
    clientJar="C:\projects\RMIS\ifrrequests\rmisws-client.jar"
    autotype="False" />
    </target>
    <target name="all" depends="stubgen"/>
    </project>
    The problem is seen below in the output from Ant. Note the WARNINIG. The problem
    is that the xml type cannot be mapped to the Java type.
    C:\projects\RMIS\ifrrequests>ant -buildfile clientbuild.xml
    Buildfile: clientbuild.xml
    stubgen:
    [clientgen] Generating client jar for RMIS.ear ...
    [clientgen] WARNINIG: Unable to find a javaType for the xmlType:['urn:sap-com:do
    cument:sap:business']:PaymentRequest.Create. Make sure that you have registered
    this xml type in the type mapping
    [clientgen] Using SOAPElement instead
    [clientgen] Compiling 4 source files to C:\DOCUME~1\944377\LOCALS~1\Temp\rmisws-
    client.jar-836624340
    [clientgen] Building jar: C:\projects\RMIS\ifrrequests\rmisws-client.jar
    BUILD SUCCESSFUL
    Total time: 17 seconds
    The Java source that has the implementation of the service methods is simply:
    package com.aa.rmis.webservice;
    import com.aa.rmis.ifr.request.*;
    public class TestService
    public TestService()
    public int serviceRequest(PaymentRequestCreate request)
    System.out.println("Received serviceRequest message");
    return 0;
    public void testStringRequest(String request)
    The web-service.xml file is attached, which contains the schema for the SAP PaymentRequest.Create
    object definition.
    Another problem I have, which is probably related, is that the service method
    that has a complex data type (non-built in data type) is not being deployed into
    the WebLogic server. But the other service method that simply takes a String
    parameter is.
    The steps I took are:
    1. Get XML from SAP Interface Repository (IFR) for PaymentRequest
    2. Use ant task autogen to generate the request codec classes
    3. Create the web-services.xml file by inserting the schema definition and the
    mapping file created by the autogen task, and defining the operations
    4. Build web-services.war file that contains all autogen compiled class files,
    the web-services.xml file, and the service implementation class
    5. Build the ear file that holds the web service files
    6. Use the clientgen ant task to generate (included above) to generate the client
    jar file that should contain the proxy for both of the service methods
    Environment:
    * WebLogic 7.02
    * JDK 1.3.1_06
    * JBuilder 9 Enterprise
    * Ant 1.4
    Possible causes:
    * Namespace not being used correctly
    * copied verbatim the mapping xml file generated by autogen into the web-services.xml
    file
    * xml-schema part of web-services.xml might not be set correctly
    * operation definition might not be using the correct namespace
    * Classpath used for ant might not be right
    * Doubt this is the problem, but I'm out of other ideas
    * Set by using the setWLEnv.cmd file provided by WebLogic
    * Tried adding the generated classes directory for my project to the classpath,
    but did not work
    I've been referencing the Programming WebLogic Web Services document throughout
    this entire process. I must be missing something.
    Can anybody from BEA help me out with this problem?
    Thanks in advance.
    [web-services.xml]

    Hi JD,
    I spent a few cycles looking over your web-services.xml file, however I
    don't have any suggestions other that one that looks like you have
    already tried, at the top, in the <schema...>
    targetNamespace="urn:sap-com:document:sap:business"
    Making edits to these generated files can be tricky and my only
    suggestion is to create a small reproducer to run by our outstanding
    support team.
    A quick look at our problem database shows one issue (CR095109) related
    to a similar problem at deploy time that was fixed with 7.0SP3. Again,
    the support folks will be able to help focus in on the issue.
    Regards,
    Bruce
    JD wrote:
    >
    The first posting contains the wrong web-services.xml file. Please refer to this
    one instead.
    "JD" <[email protected]> wrote:
    I'm manually creating a web-services.xml file, and using the autogen
    ant task to
    generate the codec XML/Java classes. The XML definition is provided
    by SAP.
    The ant build.xml file:
    <project name="buildWebservice" default="stubgen">
    <target name="stubgen">
    <clientgen ear="C:\projects\RMIS\ifrrequests\RMIS.ear"
    packageName="com.aa.rmis.webservice.client"
    clientJar="C:\projects\RMIS\ifrrequests\rmisws-client.jar"
    autotype="False" />
    </target>
    <target name="all" depends="stubgen"/>
    </project>
    The problem is seen below in the output from Ant. Note the WARNINIG.
    The problem
    is that the xml type cannot be mapped to the Java type.
    C:\projects\RMIS\ifrrequests>ant -buildfile clientbuild.xml
    Buildfile: clientbuild.xml
    stubgen:
    [clientgen] Generating client jar for RMIS.ear ...
    [clientgen] WARNINIG: Unable to find a javaType for the xmlType:['urn:sap-com:do
    cument:sap:business']:PaymentRequest.Create. Make sure that you have
    registered
    this xml type in the type mapping
    [clientgen] Using SOAPElement instead
    [clientgen] Compiling 4 source files to C:\DOCUME~1\944377\LOCALS~1\Temp\rmisws-
    client.jar-836624340
    [clientgen] Building jar: C:\projects\RMIS\ifrrequests\rmisws-client.jar
    BUILD SUCCESSFUL
    Total time: 17 seconds
    The Java source that has the implementation of the service methods is
    simply:
    package com.aa.rmis.webservice;
    import com.aa.rmis.ifr.request.*;
    public class TestService
    public TestService()
    public int serviceRequest(PaymentRequestCreate request)
    System.out.println("Received serviceRequest message");
    return 0;
    public void testStringRequest(String request)
    The web-service.xml file is attached, which contains the schema for the
    SAP PaymentRequest.Create
    object definition.
    Another problem I have, which is probably related, is that the service
    method
    that has a complex data type (non-built in data type) is not being deployed
    into
    the WebLogic server. But the other service method that simply takes
    a String
    parameter is.
    The steps I took are:
    1. Get XML from SAP Interface Repository (IFR) for PaymentRequest
    2. Use ant task autogen to generate the request codec classes
    3. Create the web-services.xml file by inserting the schema definition
    and the
    mapping file created by the autogen task, and defining the operations
    4. Build web-services.war file that contains all autogen compiled class
    files,
    the web-services.xml file, and the service implementation class
    5. Build the ear file that holds the web service files
    6. Use the clientgen ant task to generate (included above) to generate
    the client
    jar file that should contain the proxy for both of the service methods
    Environment:
    * WebLogic 7.02
    * JDK 1.3.1_06
    * JBuilder 9 Enterprise
    * Ant 1.4
    Possible causes:
    * Namespace not being used correctly
    * copied verbatim the mapping xml file generated by autogen into
    the web-services.xml
    file
    * xml-schema part of web-services.xml might not be set correctly
    * operation definition might not be using the correct namespace
    * Classpath used for ant might not be right
    * Doubt this is the problem, but I'm out of other ideas
    * Set by using the setWLEnv.cmd file provided by WebLogic
    * Tried adding the generated classes directory for my project to
    the classpath,
    but did not work
    I've been referencing the Programming WebLogic Web Services document
    throughout
    this entire process. I must be missing something.
    Can anybody from BEA help me out with this problem?
    Thanks in advance.
    Name: web-services.xml
    web-services.xml Type: ACT Project (text/xml)
    Encoding: base64

  • ERR-1002 Unable to find item ID for item

    I just started playing around with Apex 4.0.2 and I had a question which might be quite basic, so please bear with me.
    I created a report and a calendar which displays the same data (from a table) in different format. I want to create a link from the calendar to the report based on the data that is being displayed in the calendar to show more details about the calendar item. In the calendar page, I created a link under Column link and did the following:
    SET these items: P2_START_DATE
    With these values: 10-Dec-2010
    When I click on the link from the Calendar page, it gives me the following error:
    Error ERR-1002 Unable to find item ID for item "P2_START_DATE" in application "100"
    The Report attribute START_DATE does exist in the Page 2.
    How do I accomplish this ? Any help will be greatly appreciated.
    Thanks and Happy Holidays !

    Hi agopalan,
    Actually the use of "Px_" is just a convention - but a very good convention to follow. You could name that item P7_START_DATE, MY_START_DATE or any other valid name and ApEx will still know it belongs to page 2 - but please don't do that!
    You mention you have a report attribute START_DATE - do you mean a report column? If so, you can't set the START_DATE report column to a value - it isn't an item.
    If you want the report to show details based on the calendar link clicked:
    1) Create a hidden item called P2_START_DATE.
    2) Include :P2_START_DATE in the WHERE clause of your report's SQL in whatever way you need to limit the report rows.
    3) Keep your calendar link defined as-is.
    That should do it.
    Good luck with ApEx and Happy Holidays to you as well!
    John

  • ERR-1002 Unable to find item ID for item "FB_FLOP4150_" in application 4000

    I transferred my APEX Application from 11gRel1 on 10gRel2:
    I exported my APEX Application from 11g (APEX 3.1.1.00.09) XDB:
    Home -> Application Builder -> Application 101 -> Export Application
    File Format - UNIX
    File Character Set: Unicode UTF-8
    I imported new APEX Application to 10gRel2 (APEX 3.1.1.00.09) Apache:
    Home -> Application Builder -> Import Application
    File Character Set: Unicode UTF-8
    auto assign ID for Application (new ID - 101)
    after opening the page to 10gRel2 get:
    ERR-1002 Unable to find item ID for item "FB_FLOP4150_GOTO_PAGE" in application 4000
    Help please!

    DAD config - NLS LANG.....

  • ERR-1002 Unable to find item ID for item "SESSION"

    Hi All,
    We have recently ugpraded from Aoex 3.1 to 3.2 and have now noticed on occasions that i get the following error when logging in...
    Unexpected error, unable to find item name at application or page level.
    ERR-1002 Unable to find item ID for item "SESSION" in application "2500".
    Return to application.I have been making changes to the application but have not changed anything to do with the SESSION item, i thought that was built into APEX so am not sure why it cannot find it.
    The error mainly happens if i clear the internet cache and try logging in again on a new session, i click Return to Application and try logging in again but get the error. If i login as a different user it logs in.
    Has this happened to anyone else?
    Thanks
    Graham

    Scott,
    Sorry, typing error, i meant 3.0 to 3.1.
    when a user clicks login the following happens...
    A Validation runs to determine if the username and pasword is right and if the user has parts to be accepted when logging in....
    DECLARE
      V_User_Check     VARCHAR2(800);
    BEGIN
        V_User_Check := M_USERS_VALIDATE_LOGIN(
           :P101_USERNAME, :P101_PASSWORD, :SESSION, :P101_BENCH, :P101_BENCH_ID);
        IF V_User_Check = 'PASSWORD_CHANGE' THEN
          :P101_PASSWORD_CHANGE := 'YES';
          RETURN 'You password must be changed for security purposes.  ' ||
                 'Please enter and retype a new password, then confirm the ' ||
                 'change by entering your existing password.';
        ELSIF V_User_Check = 'INVALID_USERNAME' THEN
          RETURN 'The username has not been recognised, please re-enter.';
        ELSIF V_User_Check = 'INVALID_PASSWORD' THEN
          RETURN 'The password entered is invalid, please re-enter.';
        ELSIF V_User_Check = 'ACCEPT_PARTS' THEN
          :P101_PARTS_TO_ACCEPT := 'YES';
          RETURN 'There are parts at this bench that need to be accepted/rejected for you to use, please check the quantities carefully.';
        ELSIF V_User_Check = 'OK' THEN
          RETURN '';
        ELSE
          RETURN V_User_Check;
        END IF;
    END;The following function is called from the Authentication Scheme (return authenticate_m_user;)
    CREATE OR REPLACE FUNCTION authenticate_m_user(p_username IN VARCHAR2, p_password IN VARCHAR2)RETURN BOOLEAN IS
      CURSOR m_cur( username_p VARCHAR,password_p VARCHAR) IS
        SELECT COUNT(*) user_count FROM m_users
        WHERE UPPER(username) = username_p
        AND PASSWORD = password_p AND in_use = 'Y';
      result_v                BOOLEAN := FALSE;
      V_Admin                 VARCHAR2(1) :=  'N';
    BEGIN
      FOR m_rec IN m_cur(p_username, dbms_obfuscation_toolkit.md5( input_string => p_password))
      LOOP
        IF m_rec.user_count = 1 THEN
          result_v    := TRUE;
        END IF;
      END LOOP;
      IF result_v = TRUE THEN
          UPDATE m_users
            SET logged_in = 'Y', last_login_date = sysdate
            WHERE upper(username) = upper(p_username);
          COMMIT;
      END IF;
      RETURN result_v;
    END authenticate_m_user;Also when i encounter the error if i keep clicking Login it keeps throwing the error, but if i turn on debug and then click login again it logs in ok.
    Hope this helps.
    Graham.

  • ERR-1002 Unable to find item ID for item "FLOW_SESSION"

    Hi Guys,
    I installed on the weekend HTMLDB on our new development server and installed version 1.5.1.0.12 (Oracle 10.1.0.3)
    I imported our workspaces and applications.
    However we are getting the err-1002 in the following scenario.
    - logon to htmldb as a developer.
    - run application
    - Login page is show (as this is a secure application)
    - Login with a test user account. We have setup our own aurhentication scheme, with our own user account table.
    - Click login button and we get Error ERR-1002 Unable to find item ID for item "FLOW_SESSION" in application "113".
    The only way to get around it is to setup a user account in our own user account table with the same name as your developer account or create a developer account in HTMLDB for the "test user account". I have set myself as a user in the "application account table".
    But wait there is more. The "work a round" gets me in. Now I select the logout button and get the login page again.
    I then try to login as the test user and get in ok.
    Any idea what is happening here??

    Follow up debugger output
    ==========================
    0.91: Processing point: AFTER_SUBMIT
    0.91: ...PLSQL (AFTER_SUBMIT) begin owa_util.mime_header('text/html', FALSE); owa_cookie.send( name=>'LOGIN_USERNAME_COOKIE', value=>lower(:P101_USERNAME)); exception when others then null; end; Content-type: text/html; charset=WINDOWS-1252 Set-Cookie: LOGIN_USERNAME_COOKIE=dynamic;
    0.91: ...PLSQL (AFTER_SUBMIT) wwv_flow_custom_auth_std.login( P_UNAME => :P101_USERNAME, P_PASSWORD => :P101_PASSWORD, P_SESSION_ID => :FLOW_SESSION, P_FLOW_PAGE => :APP_ID||':1' ); Content-type: text/html; charset=WINDOWS-1252 Set-Cookie: WWV_CUSTOM-F_100_113=64513E8344E8C3CE; path=/; Location: f?p=113:1:18133698647045384719
    0.92: Show ERROR page...
    0.92: Processing point: AFTER_ERROR_HEADER
         Error      ERR-1002 Unable to find item ID for item "FLOW_SESSION" in application "113".
    OK      
    0.92: Processing point: BEFORE_ERROR_FOOTER
    Unexpected error, unable to find item name at application or page level.
    0.92: ...Determine if user RAY with SGID 100 can develop application 113 in workspace 100

  • Error: ERR-1002 Unable to find item ID for item "APP_SESSION"

    Hello all,
    I created an application for faculty in HTMLDB 1.6.
    To get to the application faculty members log into a different website, and then follow a link to my application. The link re-directs them to a public page which pulls their unique ID from a cookie stored by the first website. After their ID is found they are automatically logged in, or if the ID is not present they are redirected to the main login page.
    A few faculty members have tested the automatic login with success. One member, though, followed the same steps, but when he clicked on the link and was re-directed to the application he recieved an error "error: ERR-1002 Unable to find item ID for item 'APP_SESSION'."
    As for the code, the code first retrieves the cookie and gets the ID from it. The variable term_id is then set to the correct term value. This term value depends on what term was selected from the previous application. The term value may or may not be null (they are not required to select a term prior to being re-directed). If it is null, the faculty member is brought to a term selection page. If it is not null, the faculty member skips this step and moves on to the next page. These steps are known to work properly.
    This plsql code follows directly after, which should login the user and either redirect him/her to the term select page if the term value is null, or the main page if there is a term value present:
    IF term_id IS NOT NULL THEN
    wwv_flow_custom_auth_std.login(
    P_UNAME => faculty_id,
    P_PASSWORD => faculty_password,
    P_SESSION_ID => v('APP_SESSION'),
    P_FLOW_PAGE => :APP_ID||':MAIN_PAGE:'||:APP_SESSION||'::::TERM_ID:'||term_id
    ELSE
    wwv_flow_custom_auth_std.login(
    P_UNAME => faculty_id,
    P_PASSWORD => faculty_password,
    P_SESSION_ID => v('APP_SESSION'),
    P_FLOW_PAGE => :APP_ID||':TERM_SELECT_PAGE:'||:APP_SESSION
    END IF;
    owa_util.redirect_url('f?p=FACULTY_APP:LOGIN:&SESSION_ID.');
    The last part redirects them to the login page if all else fails
    Any idea why one faculty member would receive the message "error: ERR-1002 Unable to find item ID for item 'APP_SESSION'" while others would not?
    *NOTE: All variable and alias names here are not the actual names within the application.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Ah, i see. I thought you only had to use v('APP_SESSION') in the login function while assigned the value of P_SESSION_ID, but I was wrong.
    Thanks a lot Scott! It works perfectly now.
    Tim

  • Error ERR-1002 Unable to find item ID for item "ID" in application

    Hi everyone,
    I'm new to APEX and I've come across this error for the first time. I have a page with a classic report in it, and I want to create a link from one of the columns in the report (ID column) to another page with a classic report in it. So when I click on, say, ID 118, I want to be sent to the other page and to only see the information for ID 118.
    After creating the column link I receive the error message when I run the application:
    Error      ERR-1002 Unable to find item ID for item "ID" in application
    I've tried creating a link from one report to another before and it worked fine.
    Thank you!
    P.S. I'm using APEX 3.2

    So, on page 1 I have some columns from a table (ID, name etc) and I want to link the values in the ID column to a report on page 2, so that the columns in page 2 (order no, type etc) show only the information for the ID I clicked on in page 1. I went to Page Definition -> Regions -> Report link -> click on the "edit" icon on the left of column "ID" and in the Column Link section I have the following:
    Link text: #ID#
    Link Attributes: title="Click to see deal information."
    Target: Page in this application
    Page: 2
    Clear Cache: CIR,2
    Item 1:
         Name: ID
         Value: #ID#
    I have no item called ID on page 2.
    Thank you!
    Adina

Maybe you are looking for