Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

javax.faces.el.EvaluationException: Target Unreachable, identifier <managed bean> resolved to null

AmittJul 28 2014 — edited Jul 28 2014

jdev 11.1.1.6

I created a bounded task flow(task-flow.xml) with two jspx files browse.jspx and more.jspx

On the click of more button in browse.jspx i am expected to be navigated to more.jspx. code is as follows:

<managed-bean id="__21">

      <managed-bean-name id="__23">TestBean</managed-bean-name>

      <managed-bean-class id="__22">com.poc.bean.TestBean</managed-bean-class>

      <managed-bean-scope id="__20">session</managed-bean-scope>

    </managed-bean>

    <view id="Browse">

      <page>/Browse.jspx</page>

    </view>

    <view id="More">

      <page>/More.jspx</page>

    </view>

    <control-flow-rule id="__2">

      <from-activity-id id="__3">Browse</from-activity-id>

      <control-flow-case id="__4">

        <from-outcome id="__6">goMore</from-outcome>

        <to-activity-id id="__5">More</to-activity-id>

      </control-flow-case>

    </control-flow-rule>

..

...

Browse.jspx:

                    <af:commandButton text="More" id="cb4"

                                      action="#{TestBean.browseAction}"/>

TestBean.java:

    public String browseAction() {

        return "goMore";

    }

On the click of more button i am getting the exception:

javax.faces.el.EvaluationException: Target Unreachable, identifier 'TestBean' resolved to null

  at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)

  at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)

  at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)

  at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)

  at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)

please advise

This post has been answered by dvohra21 on Jul 28 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 25 2014
Added on Jul 28 2014
5 comments
457 views