Problem getting bindings in managed bean after deployment on remote weblogic

We have a Fusion Web application successfully running on Jdev 12c and its integrated wls server with Oracle 12c database configured as a DataSource. We created an ear file from JDev and deployed it on remote wls servers. The initial login .jspx page came up without any issues. Upon entering the login credentials in the browser and trying to enter the application, we are getting a Null Pointer exception. Looking at the logs, the null pointer is thrown when its trying to get the bindings in the managed bean.
       BindingContext bctx;
        bctx = BindingContext.getCurrent();
        DCBindingContainer bc =(DCBindingContainer)getBindings();  
        DCBindingContainer bindings = (DCBindingContainer)bctx.getCurrentBindingsEntry();
        DCDataControl dataControl = bindings.findDataControl("LoginAMDataControl");
variable bindings is Null. What needs to be configured/changed while packaging the ear file  for deployment on remote wls 12c? Please advise and appreciate your response.

try this...
      public String test() {
      DCIteratorBinding binding= getItrtBindings("findAdByNumberIterator");
      Row row = binding.getCurrentRow();
      String dn = (String)row.getAttribute("docNumber");
      System.out.println("docNumber " + dn);
      return dn;
       private BindingContainer bindings;
       public BindingContainer getBindings() {
          return this.bindings;
       public void setBindings(BindingContainer bindings) {
           this.bindings = bindings;
    protected DCIteratorBinding getItrtBindings(String binding){
        DCIteratorBinding outIterBinding = getBindingsForDCB().findIteratorBinding(binding);       
        return outIterBinding;
    public DCBindingContainer getBindingsForDCB() {
        if (this.bindings == null) {
            FacesContext fc = FacesContext.getCurrentInstance();
            this.bindings =(DCBindingContainer)fc.getApplication().evaluateExpressionGet(fc,"#{bindings}",DCBindingContainer.class);
        return (DCBindingContainer)this.bindings;
    }

Similar Messages

  • I didn't get log statements in console after deploying the war file IN WAS6

    I am new to web sphere 6.o server, I didn't get log statements in console after deploying the war file into the WAS

    Albenn
    Welcome to the Apple user discussion forums
    I'll hit a few of your questions - others will have to do others since I'm not up on some of the issues you ask about
    4) is there an easy way to review/delete items (in 6, i run a basic slideshow and delete on the fly -- is this still workable in 7?)?
    Yes
    5) Are there significant functionality benefits of 7 over 6 (e.g., does the noise function or shadow/highlight really offer significant benefits? The Events seems obvious, but I'm more interested in "under the hood" experience
    Yes
    Loseless editing - web galleries - events
    a) Is import any faster? As my library is growing in size, the import is getting overly slow
    It is fine for me (only you can compare to your current) - I have 20542 items using 26.3 GB in 271 events
    7) Is there a full-screen edit mode?
    yes
    8) Can you configure events so that it's not just by day?
    yes
    9) Is 6's "roll" structure as mirrored in the file system still available in the Events approach, or is the database structure that once you've converted a library, there's no going back?
    Events replace rolls (if your rolls are named - NOT the default rollxxx name - they will come across as is - to me events are rolls with much more capability and a new name - some people are VERY putoff by the change (but most love it) for reasons that I simply do not comprehend
    10) What is the effective (or advised) maximum library size? I've probably got over 60GB of images in my libraries now, with 20,000 images or so. If 7 can readily digest them (and preserve all my albums, etc.), then I'd love to combine them into one, unless that will kill performance, make the database unstable, drive backups into interminable waits, etc.
    The advertised max is 250,000 photos - I have about the same number of photos as you in about 1/3 the space - there are a few users here with libararies your size. With iPhoto Library Manager it is easy to maintain multiple libraries if you choose
    LN
    Message was edited by: LarryHN

  • Anyone have problems getting Office 2004 to run after Lion upgrade?

    Anyone have problems getting Office 2004 to run after Lion upgrade?

    For the rare few, such as myself, who have some Office 2004 or older documents that fail to translate well in Office 2011, another option is to run Office 2004 in Snow Leopard (with Rosetta) installed in Parallels:
                             [click on image to enlarge]
    Full Snow Leopard installation instructions are here:
    http://forums.macrumors.com/showthread.php?t=1365439

  • Anyone having problems getting CD covers to print after downloading latest software?

    Anyone having problems getting CD covers to print after downloading latest software?

    Lacking any responses to my initial post above, I will briefly update how I resolved this issue today.
    Installed new external hard disc, 1 TB WD My Passport for Mac, and straightforward setup involving first installing current OS X operating system, then system migrator utility to rebuild the same setup as saved in latest Time Machine backup. The whole process was somewhat time consuming due to my internet connection speed and USB data transfer speeds but it went without any issues. The computer now boots up and operates identical in all respects to how it did before the problem occurred.
    Regarding the internal HD of my iMac, if I now run Disc Utility to verify the disc, it reports "appears to be OK". However, viewing the disc usage in "About This Mac" window, it displays as entirely empty. Opening it in the finder also shows only a "Apple Hot News.mbox" file and a single .jpeg image, and .nothing else.
    Interestingly, the Bootcamp partition of my iMac's internal HD continues to work fine and appears unaffected by the problem. I use bootcamp rarely but still will plan to set up a replacement bootcamp volume on the new hard disc soon, in order to take its place.
    That the problem surfaced coincident with the software update may have been nothing more than bad luck? At this point I have no reason to suspect that the softward update had anything to do with the difficulties.

  • PROBLEM RUNNING BEAN AFTER DEPLOYMENT

    Dear Friends:
    I have developed a Stateless Session Bean using Visual Cafe 3.0 Enterprise
    Suite
    on Windows 98. We have installed Weblogic 5.1 on Windows 98 (same machine
    as the Visual Cafe).
    We have compiled, created JAR Files and deployed the Bean successfully.
    However, when we try to run the Bean using
    Project|Execute, we are unable to get the output. The animated Icon that
    shows the progress of activity on Weblogic server
    plays forever and no error messages are displayed.
    We wanted to know if we need to create a client program after deploying the
    Bean. What other steps are we supposed to follow
    after deploying the bean. The Bean we are trying to run is the so called
    "Hello World" Bean.
    We also want to know how to run the sample Beans that came along Visual
    Cafe.
    Can someone please let us know as to what we are supposed to do after the
    deployment.
    Can we use Weblogic on Windows 98?
    Regards
    Rao Amanchi
    V-Soft

    Thanks for the response...but hope you don't mind cause I need to ask a few more questions here..
    first of all...my program is sort of made up of a lot of classes...so if I'm to add the -depreciation command...which class am I suppose to add it to for the compilation?? (sorry..i'm still pretty new in this Java thing..)
    secondly...I've been checking the program again and I realised that the internal things seem to be running find (e.g, the treenodes are created and added)..but it's just that it is not being displayed at all... when I run other functions to the program which eventually works to refresh this tree, it finally appears...
    third...I've some smaller modules working on the same concept of displaying the tree views as well and they too are not displaying anything on the JPanel when I run them...
    Is there some alteration to the codes in JTree or something in this newer version that is causing this weird behaviour???
    THanks again!

  • Application not working after deployment in remote server

    I have a standard web application working in my localhost. But when I deploy the same in a remote server it gives the following exception. This happens for all the jsp:useBean. why is the container not able to fund the Beans. The Tomcat is installed properly and I use it's manager tool to deploy the WAR.
    I checked the WEB-INF/lib directory and it has all the required JARs.
    Error:
    org.apache.jasper.JasperException: Exception in JSP: /test/CurWeatherBean.jsp:22
    19:         <a href="index.jsp">[ index ]</a>
    20:        
    21:         <h2>CurrentWeatherMapBean.ATOMICS</h2>
    22:         <jsp:useBean id="cwmDAO" class="com.news.pub.weather.CurWeatherBean$ATOMICS" scope="request"/>       
    23:         <ul>
    24:             <li>
    25:                 <h3>List<CurWeatherBean> get()</h3>
    Stacktrace:
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:506)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:395)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.NullPointerException
         com.news.pubt.forc.oc.Container.getReference(Container.java:68)
         com.news.pubt.forc.cfg.PropertyBag.getBag(PropertyBag.java:80)
         com.news.pubt.forc.cfg.PropertyBag.getProperty(PropertyBag.java:60)
         com.news.pubt.atomicsbeans.impl.ATOMICSBean.<init>(ATOMICSBean.java:61)
         com.news.pubt.atomicsbeans.ATOMICSAwareBean.<init>(ATOMICSAwareBean.java:175)
         com.news.pubt.weather.CurWeatherBean$ATOMICS.<init>(CurWeatherBean.java:131)
         org.apache.jsp.test.CurWeatherBean_jsp._jspService(CurWeatherBean_jsp.java:65)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)Please help me.
    Edited by: danbrown on Feb 8, 2008 8:32 AM

    Your error stack refers to a class with the package sequence "com.news.pubt.weather....." but your jsp file refers to a class "com.news.pub.weather...
    Is there an error in your jsp page? If so, did you change the package name, and do you still have old class files on the classpath on your local machine with the old name?
    Anyway, the top of the error stack refers to line number 68 in the Container class. So that is where you should see a problem regarding the NullPointerExcpetion. You could post that line of code.

  • How to clear the value of a variable in a managed bean after AM method...

    I have two inputText fields on a page - user inputs a value in FieldA and performs a search (execute w/ params)... FieldB shows up under Results table with an 'Add' button. User can enter a value in FieldB and click 'Add' to insert a new row in the Results table.
    I got the insert to work by making FieldB binding = #{userState.newVisitorId} where userState is a session scoped bean.
    When the page reloads after the insert, the value entered in FieldB is still there - I want to clear it out. I know 'marrying' the AM code for the insert to the View code for the bean is bad practice; what is a better way to do this?
    Thanks!

    For anyone who might also be looking for this solution... I simply added a SetActionListener to the 'Add' button that was set as From: #{null} To: #{userState.newVisitorId} and it works like a charm.

  • Problem getting bg image to show after integrating Web Gallery in page

    Hi,
    I'm new to Dreamweaver this year just coming over from the bad guys. I was looking to create a web gallery for my client when I came across a great article by David Powers that really worked well and made it pretty simple. (see here)
    http://foundationphp.com/tutorials/gallery/embed1.php
    The only problem I'm having is I want to use the background on the page I've created and not use a background color. In both CS4 & 5 The Bridge doesn't give you an option that I could find to insert background image which would have solved everything. Seeing as I'm inserting one page using iforms makes it a bit complicated and I've tried for a couple days but I can't figure it out. I'm more a designer then coder and when it gets to this part I hate it.
    The behind the scenes page can be found here. I"m not sure why its showing white but in theory that shouldn't matter as the colours in the bottom I want replaced with my backround image the same as in 'trimworks'.
    http://www.homeworks4u.ca/Trimmwork.html
    This is my first posting.
    I've done as much reading on css and figuring out how to do the web gallary I've run out of time!
    Thanks in advance,
    Sc.

    I checked and flash had it set to opaque...so I tried windows and still nothing. I didn't really want to try the last option as that will reduce performance and the images are already high rez as it is. And this was done thru Bridge. You'd think there would be an easy way just to get a background in instead of the colours. Unfortunatly Flash is covering the entire area that my client wants the background showing....this was a last minute thing...just like the image gallary...we were all set for flash video show with his own tv set and all. Now he's mad cause I can't get a background to work.
    http://www.homeworks4u.ca/untitled-7trim.html
    Is the page where both pages are combined....including the image gallary...
    http://www.homeworks4u.ca/TrimworksWG.html ( don't be fooled, view sorce)
    This is the page The Bridge creates and then used Iframes to put it in the above page and want the background to show thru, not the dark colours.
    The last one was close, but now I'm afraid with flash completely overtop of the background it could be hopeless. I'm on a time constrain. You all know how it is with clients with every changing ideas 3 days before launch which was last week. Any ideas at all at this point would be helpful. He just wants a photogallary that he can see his background thru! I"m willing to change programs at this point if I have too for something that easily puts the background in for you! I'd trade my time im for that at this point!
    Thanks Everyone and Thanks Nancy!
    Scott

  • Problem getting to settings manager

    I need to get to the settings pade so that I can go to global storage.  I cannot download Plan Manager from Weight Watchers

    You should be able to do this via your system's Flash Player control panel or from this page: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager03.htm l

  • Problems Getting CS6 Apps To Launch After Install

    I have recently installed Adobe CS6 Design and Web Premium on my computer and am not having any luck getting any of the applications to run. I have uninstalled and reinstalled twice already, just to see if that would make a difference. When I run Flash Professional, I get an error stating that "The application failed to initialize properly (0xc000001d)". Attempting to launch Photoshop results in "Adobe Photoshop CS6 has encountered a problem". Attempting to launch Dreamweaver doesn't do anything.
    I'm running Windows XP SP3 with 3GB of RAM and plenty of hard disk space to spare. Does anyone have any ideas on additional troubleshooting steps that I can take?

    Thanks for your feedback. I do realize that my computer is underpowered, and would not put down the money for CS6, knowing that. However, I happened to win a copy of it and thought I would try to get what use out of it I could. It could turn out that I will just have to wait to get usage out of it the next time that I replace my computer.
    Unfortunately, the details in event viewer are pretty sparse, but here is the example for Flash Professional:
    Event Type:
    Information
    Event Source:
    Application Popup
    Event Category:
    None
    Event ID:
    26
    Date:
    1/27/2013
    Time:
    10:31:27 AM
    User:
    N/A
    Computer:
    DESKTOP
    Description:
    Application popup: Flash.exe - Application Error : The application failed to initialize properly (0xc000001d). Click on OK to terminate the application.
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

  • Getting HTTP 403 Forbidden error on deployed page in Weblogic 11g

    Hi There,
    My console is working fine and all the managed server are running fine on my WebLogic Server.
    How ever I am getting , this error "HTTP 403 Forbidden means that Internet Explorer was able to connect to the website, but it does not have permission to view the webpage."
    http://localhost:10001/welcome1
    (URL has changed here with sample URL)
    Do not understand where to start with, checked all the logs and no error is seen.
    When I give complete URL, it launches the page http://localhost:10001/welcome1/faces/adminlogin.jspx but when enter when enter credential, it again takes to Forbidden page.
    When you give wrong credential, it takes you to page where it says user name  or password is not correct.
    Server on which it is deployed - diagonistic log says;
    [NOTIFICATION] [] [oracle.adf.model.log.customizations.cpx] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: fbedf7c35e3ed90d:-6d221163:14cf94e90e0:-8000-0000000000000143,0] [APP: DocumakerAdministrator] [DSID: 0000KntSldf2fLCpJC_Aif1LFSPB000003] Found existing JUApplicationDefImpl instance for oracle.documaker.administrator.view.DataBindings.cpx
    Please help.
    thanks,
    -r

    In advance i am sending my weblogic.xml details, if that helps;
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <weblogic-web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-web-app http://www.bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd" xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app">
      <security-role-assignment>
        <role-name>valid-users</role-name>
        <principal-name>users</principal-name>
      </security-role-assignment>
      <session-descriptor>
        <cookie-http-only>false</cookie-http-only>
      </session-descriptor>
      <container-descriptor>
        <prefer-web-inf-classes>true</prefer-web-inf-classes>
      </container-descriptor>
        <context-root>DocumakerAdministrator</context-root>
        <library-ref>
            <library-name>adf.oracle.domain.webapp</library-name>
        </library-ref>
        <library-ref>
            <library-name>jstl</library-name>
            <specification-version>1.2</specification-version>
        </library-ref>
        <library-ref>
            <library-name>jsf</library-name>
            <specification-version>1.2</specification-version>
        </library-ref>
    </weblogic-web-app>
    I also check web.xml under  - \servers\dmkr_server\tmp\_WL_user\DocumakerAdministrator\w6i3rm\war\WEB-INF
    Hope I am looking at the right location just to confirm.
    <security-constraint>
        <web-resource-collection>
          <web-resource-name>adfAuthentication</web-resource-name>
          <url-pattern>/faces/ConfigurationUI</url-pattern>
          <url-pattern>/faces/ConfigurationUI.jspx</url-pattern>
          <url-pattern>/faces/EntitiesAbilitySetsUI</url-pattern>
          <url-pattern>/faces/EntitiesAbilitySetsUI.jspx</url-pattern>
        </web-resource-collection>
        <auth-constraint>
          <role-name>valid-users</role-name>
        </auth-constraint>
        <user-data-constraint>
          <transport-guarantee>CONFIDENTIAL</transport-guarantee>
        </user-data-constraint>
      </security-constraint>
      <security-constraint>
        <web-resource-collection>
          <web-resource-name>adfAuthentication</web-resource-name>
          <url-pattern>/adfAuthentication</url-pattern>
        </web-resource-collection>
    Really frustrating...I might be missing someting.
    thanks,

  • Problem with Action binding for a command button in a Managed Bean

    Hi
    Thank you for reading my post
    I am trying to use a backing bean for a button action binding.
    I followed all steps as they seems to be correct. i did not made any changes directly by hand , all of changes are introduced by oracle
    Jdeveloper wizards. but now i get this exception
    Managed bean is defined in faces-config.xml (it shows in preview mode) , the method is there in managed bean (Jdeveloper itself create the method i just enter its name)
    can you please take a look and tell me what can be wrong?
    thanks
    here is method and its body in managed bean
    public String userAccept_action() {
            BindingContainer bindings = getBindings();
            OperationBinding operationBinding =
                bindings.getOperationBinding("Commit");
            Object result = operationBinding.execute();
            if (!operationBinding.getErrors().isEmpty()) {
                return null;
            return null;
        }here is the exception that i recive
    javax.faces.FacesException: #{ButtonActions.userAccept_action}: javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException: The scope of the referenced object: '#{bindings}' is shorter than the referring object
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:98)
         at oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:211)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:287)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:401)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.adf.share.security.authentication.AuthenticationFilter.handleAuthentication(AuthenticationFilter.java:177)
         at oracle.adf.share.security.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:112)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at webui.common.CharacterEncoding.doFilter(CharacterEncoding.java:26)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:105)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:167)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAs(Subject.java:396)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:415)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException: The scope of the referenced object: '#{bindings}' is shorter than the referring object
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:190)
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:143)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:92)
         ... 34 more
    Caused by: javax.faces.FacesException: javax.faces.FacesException: The scope of the referenced object: '#{bindings}' is shorter than the referring object
         at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:292)
         at com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:97)
         at oracle.adfinternal.view.faces.el.AdfFacesVariableResolver.resolveVariable(AdfFacesVariableResolver.java:40)
         at oracle.adfinternal.view.faces.model.VariableResolverUtils$JspResolver.resolveVariable(VariableResolverUtils.java:79)
         at com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:145)
         at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)
         ... 37 more
    Caused by: javax.faces.FacesException: The scope of the referenced object: '#{bindings}' is shorter than the referring object
         at com.sun.faces.config.ManagedBeanFactory.evaluateValueBindingGet(ManagedBeanFactory.java:911)
         at com.sun.faces.config.ManagedBeanFactory.setPropertiesIntoBean(ManagedBeanFactory.java:567)
         at com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:253)
         at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:282)
         ... 43 more

    Thank you for reply , but it does not helps or maybe i did not apply it correctly
    here is faces-config.xml code snippet :
    <managed-bean>
        <managed-bean-name>ButtonActions</managed-bean-name>
        <managed-bean-class>webui.common.actionListener.ButtonAction</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
        <managed-property>
          <property-name>bindings</property-name>
          <value>#{bindings}</value>
        </managed-property>
      </managed-bean>here is binding for the button in jsp file :
    <af:commandButton
                                    text="#{res['button.accept']}"
                                    disabled="#{!bindings.Commit.enabled}"
                                    action="#{ButtonActions.userAccept_action}"/>and here is some code portion of ButtonAction class
    package webui.common.actionListener;
    import oracle.binding.BindingContainer;
    import oracle.binding.OperationBinding;
    public class ButtonAction {
        private BindingContainer bindings;
        public ButtonAction() {
        public BindingContainer getBindings() {
            return this.bindings;
        public void setBindings(BindingContainer bindings) {
            this.bindings = bindings;
        public String userAccept_action() {
            BindingContainer bindings = getBindings();
            OperationBinding operationBinding =
                bindings.getOperationBinding("Commit");
            Object result = operationBinding.execute();
            if (!operationBinding.getErrors().isEmpty()) {
                return null;
            return null;
    }and i still get the same error.

  • Dynamic Declarative Component managed bean returned null

    Hi,
    In a project from an application a DDC component is defined. This component uses a managed/backing bean with view scope.
    Using this component inside this project is working fine. This component should be used in other view controller projects, and here where the problems are.
    This project(let's call it Common) is deployed as ADF Library jar, and used in the other V-C projects.
    The big problem is that the managed bean defined for the logic of this component is not 'reacheable'.
    (Another problem is that the attribute value is not seen as its EL expression but as string, for this i found a workaround.)
    In project Common the adfc-config.xml file:
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <managed-bean id="__4">
        <managed-bean-name id="__2">ExtendedShuttle</managed-bean-name>
        <managed-bean-class id="__1">com.xyz.portal.taskflow.common.extendedshuttle.ExtendedShuttle</managed-bean-class>
        <managed-bean-scope id="__3">view</managed-bean-scope>
      </managed-bean>
    </adfc-config>A part from component declaration:
          <af:table var="row" rowBandingInterval="0" id="ta"
                                  rowSelection="multiple" columnStretching="last"
                                  disableColumnReordering="true" fetchSize="-1"
                                  binding="#{viewScope.ExtendedShuttle.allItemsTable}"
                                  value="#{viewScope.ExtendedShuttle.allModel}"
                                  partialTriggers="::dc_cb5 ::dc_cb3"
                                  filterVisible="true"/>The root exception is :
    javax.el.PropertyNotFoundException: Target Unreachable, 'ExtendedShuttle' returned null
    This exception is throw on com.sun.faces.application.ApplicationImpl.createComponent when *#{viewScope.ExtendedShuttle.allItemsTable}* is evaluated.
    Caused By: javax.faces.FacesException: javax.el.PropertyNotFoundException: Target Unreachable, 'ExtendedShuttle' returned null
         at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:262)
         at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:222)
         at javax.faces.webapp.UIComponentClassicTagBase.createFacet(UIComponentClassicTagBase.java:510)
         at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:661)
         at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1142)
         at org.apache.myfaces.trinidad.webapp.UIXComponentELTag.doStartTag(UIXComponentELTag.java:70)
         at oracle.adfinternal.view.faces.taglib.UIXTableTag.doStartTag(UIXTableTag.java:41)
         at oracle.adfinternal.view.faces.unified.taglib.data.UnifiedTableTag.doStartTag(UnifiedTableTag.java:50)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:50)
    Caused By: javax.faces.FacesException: javax.el.PropertyNotFoundException: Target Unreachable, 'ExtendedShuttle' returned null
         at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:262)
         at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:222)
         at javax.faces.webapp.UIComponentClassicTagBase.createFacet(UIComponentClassicTagBase.java:510)
         at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:661)
         at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1142)
         at org.apache.myfaces.trinidad.webapp.UIXComponentELTag.doStartTag(UIXComponentELTag.java:70)
         at oracle.adfinternal.view.faces.taglib.UIXTableTag.doStartTag(UIXTableTag.java:41)
         at oracle.adfinternal.view.faces.unified.taglib.data.UnifiedTableTag.doStartTag(UnifiedTableTag.java:50)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:50)
    Caused by: javax.el.PropertyNotFoundException: Target Unreachable, 'ExtendedShuttle' returned null
         at com.sun.el.parser.AstValue.getTarget(AstValue.java:88)
         at com.sun.el.parser.AstValue.setValue(AstValue.java:133)
         at com.sun.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:255)
         at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:259)
    Can you help figure it out, why is not working or why the managed bean is not visible in other projects but only in the one where the component is defined?
    Thank you for your time,
    Bogdan
    ps: how can i format the source code, on this fourm?

    Hi Frank,
    Thank you for the answer.
    I must say i'm quite new with ADF technology and maybe my questions are silly.
    Here is a Quote from "Oracle Fusion Developer Guide - Building Rich Internet Application with Oracle ADF" by Frank Nimphius and Lynn Munsinger Chapter 15 page 498:
    "You build dynamic declarative components *instead* of tag library based declarative components, if component resuse is required *only within the application* that has the component defined."
    Maybe i misunderstand the meaning of application from this sentence, but i need this component in several ViewController projects from only one application (ADF application).
    Tag lib declarative component I would not like to have, since the (automtically) build process is not my responsability and it will take some time till is pinpointed, but still is a last resort.
    Anyway two things are strange:
    1. Why the component is still available in other projects(and the beans not)?
    2. Why when a binding variable (for example: of type FaceCtrlHierBinding) has the correct type in the declarative project and in the order projects is of type String and its value is the variable name?
    Example:
    <af:declarativeComponent ...
    AllItems="#{bindings.Action}"
    In project where the component is declared its value is an instance of FacesCtrlHierBinding and in the rest of the projects is of type String with value "Action".
    Once again thank you a lot,
    Bogdan

  • How to Open PopUp from Managed Bean?

    Hi,
    Can you please let me know how can we open a pop up from managed bean.
    Thanks & Regards,
    Kiran Konjeti

    Hi,
    I got the answer for this question.
    Write the following code in Managed Bean
    ==========================
    private RichOutputText errorText;
    private RichPopup PopUp;
    Generate accessors(setters & getters) for these 2 variablesAnd place this method in your managed bean.
    > private void showPopup(RichPopup popUp, UIComponent source) {
    > FacesContext context = FacesContext.getCurrentInstance();
    > String popupId = popUp.getClientId(context);
    > String alignId = source.getClientId(context);
    > StringBuilder script = new StringBuilder();
    > script.append("var popup = AdfPage.PAGE.findComponent('").append(popupId).append("'); ").append("if (!popup.isPopupVisible()) { ").append("var hints = {}; ").append("hints
    [AdfRichPopup.HINT_ALIGN_ID] = '").append(alignId).append("'; ").append("hints[AdfRichPopup.HINT_ALIGN] = AdfRichPopup.ALIGN_AFTER_START; ").append("popup.show(hints);}");> ExtendedRenderKitService erks =
    > Service.getService(context.getRenderKit(),
    > ExtendedRenderKitService.class);
    > erks.addScript(context, script.toString());
    > }
    Now, how to call this method from your managed bean ... depends upon situation.
    public void sendEmailstoBorrowers(ActionEvent actionEvent) {
    .....................some logic ...............> if(true){
    > personHistoryStatus = defaultPreventionHelper.writeBorrowerHistory(borrowersList,getFormattedAction());
    > this.errorText.setValue((borrowersList != null ? borrowersList.size() : "")+" E-mails have been sent successfully..!");
    > }else{
    > this.errorText.setValue("Unable to send emails. Please contact System Administrator..!");
    > }
    > showPopup(this.getPopUp(), actionEvent.getComponent());
    }And ... what do we need to do on the UI??
    Write the following code in UI -- Here is the button which calls sendEmail method
    ==================================================
    ><af:commandButton text="SEND" id="cb3"
    >shortDesc="Click 'Send' to send emails."
    >styleClass="defaultButton"
    >blocking="true"
    >disabled="#{pageFlowScope.DefaultPreventMB.disablePrintButton || bindings.DelinquentBorrowersList.estimatedRowCount == 0}"
    >rendered="#{pageFlowScope.DefaultPreventMB.formattedAction eq 'E-mail'}"
    >partialTriggers="t2:dlDelete"
    >actionListener="#{pageFlowScope.DefaultPreventMB.sendEmailstoBorrowers}"/>
    Once this button get clicked ... it calls sendEmailstoBorrowers, and based on the result(either true or false) the method sets the content for the pop up and opens the popup from managed bean.
    And here is the code for which we have to keep inside the jsff and this gets invoked from managed bean.
    ><af:popup id="p1" binding="#{pageFlowScope.DefaultPreventMB.popUp}">
    > <af:dialog id="d1" type="ok" title="E-mail Communication Status">
    ><af:outputText value="E-mails have been sent successfully..!"
    > id="ot11"
    >binding="#{pageFlowScope.DefaultPreventMB.errorText}"/>
    ></af:dialog>
    ></af:popup>
    Let me know if you need more information about it.
    Thanks & Regards,
    Kiran Konjeti

  • Manage Bean Scope in Faces Config

    Hi,
    I would like to know if its possible to bind the bean at request level if the bean data involves multiple modifications. Currently I am facing a problem with respect to manage bean scope defination. If i keep the bean scope at request level the bean data is not availabe for modification in next request as a result I need to keep the bean at session level causing heavy loading of session object.
    Can any one advice how to keep bean scope at requesat level and still the data is available for modification.
    Regrds

    Hey ! this is exactly my problem!! :)
    http://forum.java.sun.com/thread.jspa?threadID=611607&tstart=0

Maybe you are looking for

  • 3d modeling and texturing in Photoshop CS3 Extended

    I spent longer than I care to admit today trying to figure out how to get a model into Photoshop and texture it.  I couldn't find any native tools for modeling or texturing, which led me to do these things in external tools, relying on Photoshop for

  • Theme problem with 2004s sp08 portal

    Hi, I did some custom wda for EH&S in our DEV ERP2005 that includes some input help from the system. At first, the input help popup was not diplaying right in my DEV Portal (WDA iview), all the outline was blank, the upright "X" to close the window w

  • Used Macbook Pro, trying to change the admin/user name. I've tried to change it, but wasn't successful.

    I'm relatively new to Mac, and I'm still learning my way around my Macbook Pro 2010 from this summer. I was using terminal to do some class in work, and I keep noticing that the user name is something close to 'hello$' (as shown in the screenshot). I

  • Error Submitting form

    Anyone getting this error while submitting form.My process looks good . Same connection works for other form but not for this form.Any help please its urgent

  • Issues With Permissions With iTunes/iMac

    Hey there - I hope someone out there can help me. I have all my media files (music, movies etc) on the MacHD. There are two profiles on the iMac...for myself and my partner. I have over 200 gigs of stuff that we both pull from. Lately, my partner is