Error when dynamically creating and binding view object

Hi,
I'm using JDeveloper 10.1.2.1.0 (1913) to create a JSP - Struts - ADF BC application.
I'm trying to create a lov page that is based on a viewobject whose query (and bindings) are set at runtime (like Steve Muench shows in one of his undocumented ADF samples).
In the prepareModel() I do the following:
-unbindRowsetIteratorFromDynamicQueryIteratorBinding(...)
-changeDynamicViewObjectQuery(...)
-recreateRangeBindingForDynamicQuery(...)
-removeControlBinding(...)
-addDynamicRangeBinding(...)
So I remove the existing binding, change the query of the viewobejct and recreate the bindings.
I have got most of the code running except for 1 issue:
1. The first time I call my Lov I get the a stacktrace (included at the end of this post). If I close the window and click the Lov button again it is working fine.
Can someone help me out with this one???
Here is the stacktrace I am getting:
javax.servlet.jsp.JspException: An error occurred while evaluating custom action attribute "value" with value "${bindings.OpmerkingenLookupIterator.rangeStart}": An error occurred while getting property "rangeStart" from an instance of class oracle.jbo.uicli.binding.JUIteratorBinding (java.lang.NullPointerException)
     at org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:146)
     at org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:166)
     at org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager.evaluate(ExpressionEvaluatorManager.java:112)
     at org.apache.taglibs.standard.tag.el.core.ExpressionUtil.evalNotNull(ExpressionUtil.java:85)
     at org.apache.taglibs.standard.tag.el.core.SetTag.evaluateExpressions(SetTag.java:147)
     at org.apache.taglibs.standard.tag.el.core.SetTag.doStartTag(SetTag.java:95)
     at web2d_inf._page._referentie._LovOpmerkingenLookup._jspService(_LovOpmerkingenLookup.java:131)
     [SRC:/WEB-INF/page/referentie/LovOpmerkingenLookup.jsp:28]
     at com.orionserver[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)
     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)
     at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
     at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)
     at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
     at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:320)
     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
     at oracle.jheadstart.controller.strutsadf.JhsRequestProcessor.process(JhsRequestProcessor.java:385)
     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
     at oracle.jheadstart.controller.strutsadf.JhsActionServlet.process(JhsActionServlet.java:130)
     at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
     at oracle.jheadstart.controller.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:176)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
     at java.lang.Thread.run(Thread.java:534)

Here is some more info:
I can reproduce the problem using the code Steve Muench supplies in his undocumented ADF samples.
If you add the following line to the jsp in the example code(browseResultsOfDynamicVO.jsp):
<c:set var="rangeStart" scope="request" value="${bindings.DynamicViewObjectIterator.rangeStart}"/>You will get the behaviour I am facing.
The first time in your session you enter a valid query and submit it you get a stacktrace. By refreshing the page it works.
It looks like that when recreating the bindings at runtime something more is fone that isn't done at design time. So the first time the statement fails but once the bindings have been recreated at runtime it suddenly works....
The main question is: what is it that is done at runtime and is missing at design time?

Similar Messages

  • Creating and Binding View Objects dynamically : Oracle Jdeveloper 11g

    Hello,
    We are trying to create and bind view objects dynamically to adf data visualization components.
    The view object is a result of multiple tables.
    We are using Oracle JDeveloper 11g Technical Preview. ( can't upgrade to TP2 or TP3 now).
    We have found this : http://radio.weblogs.com/0118231/stories/2003/07/15/creatingUpdateableMultientityViewObjectDefinitionsDynamically.html on our search for the same.
    The sample application however, is in 10g , hence required migration.
    Also, it was a standalone application with the TestClient.java having a main() method.
    Our requirement is for Web Application; we use Adf+jsf .
    Guidance of any sort is very much appreciated.
    Thanks in advance.
    -Anil Golla

    Hi,
    there also exist a forum for JDeveloper 11: JDeveloper and OC4J 11g Technology Preview
    What you are trying todo is not trivial because you need to not only dynamically create the VO, you would also dynamically need to create the binding meta data for it (assuming you use ADF). Not sure if the API to modify the binding is public, so posting it on the JDeveloper 11 forum bears a glimpse of hope for an answer
    In JDeveloper 10.1.3 you can't do this
    Frank

  • Creating and Using View Objects on JDev 10g against SQL Server 2005

    I'm currently working on this project on Jdeveloper against a SQL Server 2005 DB (I couldn't talk this people to migrate to Oracle... :-( ), and it's the first time I work with JDev against a database other than 10g.
    I had no problem making the connection, and I can see the DB in Conections->Databases, but when I create an app. module, and create entities and views and add them to the app. module to access them through the Data Controls, these don't work. I can see the view on the Data Controls, and when I drag them to my jspx page it shows the menu that let's me choose whether I want to create a table, or a selection, or a tree, but once I choose one, it does nothing.
    I've search all over the internet and haven't found a solution, so I come to this forum desperate for help, seriously.
    Please get in touch; if anyone knows another solution that doesn't involve not using JDev or SQL Server 2005, please let me know, because I basically need to have a few selectonechoice showing some data from a few tables.
    Thanks for reading this post, and hope to get help.
    Carlos.

    Hi,
    can you run the model in the ADF BC tester ? If this is possible the SQL Server doesn't seem to be the problem. Are you on JDeveloper 10.1.3.3? If not, just get this latest build
    Frank

  • Create and bind javafx objects out of java

    hello,
    iam start to learn javafx and cant find the right way to do what i want.
    the goal is: i have written a graph datastructure in java and want to parse a xml file. for every String in the xml file a new node in the graph should be created. this node holds the data and a position (2D). now evertime a node in the graph was created, a visual representation for this node should pop out in my javafx stage. when the position of the node changed the visual rep. should notice this or rather a function on this object is called (observer).
    is javafx an approach to do so? or should i use java2d?
    do you know a tutorial where i can learn how to create an call javafx objects out of java and how to put them into the stage/scene?
    i found this: http://java.sun.com/developer/technicalArticles/scripting/javafx/javafx_and_java/index.html
    but there is not mentioned how to put the object into the stage/scene.
    regards
    peter

    thanks. this is also a good article. [http://blogs.sun.com/michaelheinrichs/entry/binding_java_objects_in_javafx|http://blogs.sun.com/michaelheinrichs/entry/binding_java_objects_in_javafx]
    Edited by: iam_peter on May 23, 2009 4:49 AM

  • Error when calling create and update functions on logical data service

    Hi There,
    I receive the following error when trying to call the createCustomerDetailResponse method from our dataservice. Note that the operation referenced in the error is createCustomerDetail rather than the actual method name 'createCustomerDetailResponse'. I've attached a stack trace as well as a copy of our .ds & code. Thanks, any help would be greatly appreciated!
    mlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">javax.xml.rpc.JAXRPCException: Can not
    locate the operation: {ld:CustomerMaster/Logical/CustomerDetail_ws}createCustomerDetail
         at com.bea.dsp.ws.WssInboundHandler.operationLookup(WssInboundHandler.java:252)

    I think there is a definitely a problem with my ALDSP webservice. I deleted and regenerated my .ws file, and when I test the createCustomerDetailResponse webservice operation directly through the ALDSP IDE I get the same error.
    createCustomerDetailResponse Request Summary
    Arguments: [complex type]
    Fault: Failed to process inbound requestFailed to retrieve operation from SOAP bodyCan not locate the operation: {ld:CustomerMaster/Logical/CustomerDetail_ws}createCustomerDetail
    Submitted: Wed Mar 05 16:37:53 EST 2008
    Duration: 9 ms

  • Possible bug when creating multiple detail view objects

    using jdev 11.1.1.0.0 to build jsf/adf applications. I wanted to report what seems like a bug in 11g. I have a parent table which has two child tables. After creating the appropriate entities, associations, views, and view links, the app module looks like this:
    MasterView
    --DetailView1
    --DetailView2
    The two detail view objects are on the same level, they are both direct children of the Master view.
    Here's what's happening:
    1) I create the master entity/view objects (MasterView)
    2) I create one of the detail entity/view objects (DetailView1).
    3) I create the association and view link to establish relationship between MasterView and DetailView1. Everything works fine.
    4) I create the entity/view objects for second detail view (DetailView2)
    5) When I attempt to create a second view link (based off an association) to establish the relationship between MasterView and DetailView2, the query clauses of the Create View Link wizard (screens 4 and 5) do not get created properly. I finish the wizard and save. Not only does this view link not get created properly, but in the process the query clauses that were defined in the first view link between MasterView and DetailView1 are wiped out. This will break any coordination between master and detail views in both the app module tester and runtime. Has anyone seen this problem?

    fyi, it looks like this issue has been resolved with jdev 11.1.1.0.2 (Update 2)

  • Dynamically create and remove TEXT items in forms

    Hi Guys,
    Is there a way to dynamically create and remove TEXT items in form. For example I have the EMP and DEPT table and when
    I select the EMP table name from the LOV, rows of the EMP table with column name and data should get displayed on the screen and likewise a similar action for DEPT table and
    so on. I have about 90 tables from where data could be required to view and edit. They all have varying number of columns.
    Any suggestions ?
    Thanks
    KMD
    null

    Use OLE concept of developer and map Excel as an object
    Nadeem
    null

  • Error:Attribute set for DetailHideShow in view object SalaryDetailsVO faild

    Hi
    We need to add one column in the self service Manager > My Employee Information > Salary history table
    - This column does not exist in the standard view Object
    oracle.apps.per.selfservice.mgrviews.server.SalaryDetailsVO
    - With Jdeveloper we have created a new view that extend the standard view :
    cggv.oracle.apps.per.selfservice.mgrviews.server.CGGVSalaryDetailsVO
    - We used the substitution tools to substitute the standard view by the new one
    with the following column :
    java oracle.jrad.tools.xml.importer.JPXImporter $CGG_MDS_TOP/cggv/per/12.0.0/java/ParodiExtendPJ.jpx -username apps -password
    apps -dbconnection "(description = (address_list = (address = (community =
    tcp.world)(proto = tcp)(host = doradb)(port =
    1581)))(connect_data = (sid=LDEV )))"
    - the new view contain exactly the same attribute than the standard one, we just add one new attribute at the end
    - We used Self-service perzonalisation functionality to add the new column in the table region.
    When we click on the Show buton the this error message appears :
    Error : Attribute set for DetailHideShow in view object SalaryDetailsVO failed
    It seems there is a probleme when extending ViewObject and adding column to table that contains a Show/Hide Detail column.
    Do we need extend also the controler ?
    Thank a lot for your help
    Julien Robinet

    Is the new column you have added part of the show/hide detail? If not, is the correct getting displayed?
    Is show/hide also handled through the attribute of substituted VO?
    --Shiv                                                                                                                                                                                                                                                                                                                                                                               

  • Page Not Found Error when clicking on Crystal Report Viewer print icon

    Hi,
        I am working with ASP.NET 2.0 and crystla reportXI release2.
        I am getting "Page Can not be Found " error when clicking on Crystal Report Viewer print icon.
        Could you please tell me how to get rid of this error?
    Regards,
    Smitha

    This sounds like a postback issue. Does your application handle postback by putting the report in session?
    There is a [sample|http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/CrystalReports_dotNET_SDK/crsdk_samples_aspx/data/crsdk_net_tutorials_115_en.zip] to look at on our website. It was created with Crystal Reports XI R2 and Visual Studio .NET but the code will be the same.
    A short pseudocode would be something like this:
    Dim rptDocument As ReportDocument
    If Not Me.IsPostBack or Session("Report") = Nothing Then
    rptDocument = New ReportDocument
    rptDocument.Load(sGlobalPath & "\myreport.rpt";)
    Ludek

  • The problem is when we create and then publish to ibooks review it can not be shown completely. How can I solve this problem?

    The problem is when we create and then publish to ibooks review it can not be shown completely. How can I solve this problem?

    If you are saying, that you published the book to  the iBooks review team and cannot be seem in the store.
    Use your iTunes Connect account > Manage your Books to check on its status. It takes time so you need to allow a few days.
    If its a problems viewing on your iPad Follow  the above advice and another option is is export your  book, open iBooks on your  Mac and drag the  book into  iBooks.
    You can iTunes > add to libray and sync to your iPad.

  • Error when opening User and Group Preferences

    After upgrading to Lion there is an error when opening User and Group Preferences.
    I´ve repaired permissions but the problem is still there...
    Thanks...

    Hi,
    Double click on ur webdynpro application.Go to application properties tab.create new application property,select predefined property->browse->it will open a popup->select expiration time->give the value for expiration time.
    or
    Refer the note : [842635|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=842635&nlang=EN&smpsrv=https%3a%2f%2fwebsmp206%2esap-ag%2ede]
    Hope it helps,
    Reward points if helpful.
    Regards,
    Shailesh Nagar

  • There is always an error when I try to make an object

    I could setup 6i, then make a repositori succesfuly. (Win2000/db8i)
    I always get an error when I try to make an object in somewhere a diagram.
    ORA-01400: cannot insert NULL into ("DES_REPOS_OWNER"."I$SDD_DIAGRAM_SEGMENTS"."IRID")
    ORA-01400: cannot insert NULL into ("DES_REPOS_OWNER"."I$SDD_DIAGRAM_SEGMENTS"."IRID")
    RME-02124: Failed to execute SQL statement: insert into I$SDD_DIAGRAM_SEGMENTS (DIAGRAM_REF, SEQUENCE, GRAPHICAL_DATA, PARENT_IVID, PAC_REF) values (:diag_id, :seq, :data, :diag_ivid, :diag_id)
    Could somebody help me?
    Viktor

    What sort of error? The update and activation servers are crazy busy right now, so some glitchiness is to be expected. Might just want to give it a couple hours and try again.
    = L.I.

  • OMBPLUS "Create and Bind" command

    Hi All,
    I'm looking for a command or the ombplus syntax to have the same functionality as a 'Create and Bind' in the OWB gui. Does something like that exist?
    More specifically: at the moment we have a script creating mappings from (imported) source tables generating flat files. The latter are created as a mapping object and we would like to avoid having to create them again and bind it manually, instead of just executing the 'create and bind' function.
    We are using OWB 11.1.0.7 at the moment.
    Thanks,
    Michel

    Hi Michel
    You can use the OMBRECONCILE command to do this. The data mover expert on the exchange does something like it (here).
    OMBRECONCILE MAPPING 'MAP' OPERATOR 'FF' TO FLAT_FILE 'PROJECT/MODULE/OBJ' USE (RECONCILE_STRATEGY 'REPLACE', MATCHING_STRATEGY 'MATCH_BY_OBJECT_NAME')
    Cheers
    David

  • Allocation error when I create production order

    Hi guys:
       I met allocation error when I created production order with CO01.could you help me out?urgent!

    hi
    What is the excatly the error so that we can tell u the reason
    regards
    ramakant

  • Error when synchronising MIDI and audio

    I just faced a serious problem when playing back my projects, the speed is slowing down, crackle is heard and a pop up states there's an error when synchronising audio and midi and it's necessary to check some external device..what can it be, how can it be solved ?I;m using Novation Nio audio interface and an external hard drive, that's all..anyone has the same problem?

    Hi,
    First up your *Audio I/O buffer* (to 1024) in Logic>Preferences>Audio>Devices. Leave the I/O safety buffer off. Perhaps try to freeze some tracks.
    Also have a look at these:
    http://support.apple.com/kb/TA24535?viewlocale=en_US
    http://support.apple.com/kb/HT3161
    regards, Erik.

Maybe you are looking for

  • HT1926 why PC says "invalid signature" can't install itunes update?

    Trouble updating itunes. Message says "invalid signature" and aborts updating. How do I fix?

  • Create customer master

    Hi Gurus, I have a requirement to create customer,i have used the following bapis but cudnt help o create. but tried all the bapis like : /SAPNEA/SMAPI_CUSTOMER_CREATE2 /SAPNEA/SMAPI_CUSTOMER_CREATE BAPI_CUSTOMER_CREATEFROMDATA1 BAPI_CUSTOMER_CREATEF

  • Duplicate podcast subscriptions

    After moving my iTunes library from computer to computer over the past several years, I've ended with with some podcast subscriptions that show up twice in my podcasts library. Each subscription contains different episodes, so the actual podcasts are

  • How to check whether NW2004s-Installation is unicode/non-unicode

    Hi, I have to check, whether our NW2004s-Installation (ERP 2005) is a unicode-installation or a non-unicode. How can I check it? - the sap-admin I can ask is on holiday. Thanks Wolfgang

  • ITunes connection is extremely slow

    For the past five days my connection to iTunes has been painfully slow. This slowness applies to everything from updating podcasts to simply accessing the iTunes store. This seems to be unrelated to my internet connection as I haven't noticed any slo