Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8355127
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:46:17+00:00 2026-06-09T09:46:17+00:00

I have the following setup: testBean.java with a method public String getResult() , which

  • 0

I have the following setup:

  • testBean.java with a method public String getResult(), which returns "success"

  • test.xhtml with

    <h:commandLink action="#{testBean.result}" value="testlink" />
    
  • The following navigation rule inside faces-config.xml:

    <navigation-rule>
    <from-view-id>/views/test.xhtml</from-view-id>
    <navigation-case>
        <from-outcome>success</from-outcome>
        <to-view-id>/views/nextpage.xhtml</to-view-id>
        <redirect />
    </navigation-case>
    

I checked that the navigation works in general by simply putting “success” directly into the action attribute (works). Also, printing testBean.result as an outputText correctly displays “success”.

However, when clicking on the link I get an “Server Internal Error” and am only allowed to reload the page. The log shows a javax.el.MethodNotFoundException with the following text:

Method not found: com.company.project.view.TestBean@81de8.result()

I am confused as to where the mysterious @81de8 comes from. Is this the cause of the problem, just a symptom of some mismatch elsewhere or some perfectly normal behind-the-scenes magic? Can anybody figure out why the invocation inside a commandLink fails, when in an outputText it does not? Or point me to other things I should check and test?

Thanks in advance,
Louise

Edits: The Java Method is named getResult (not result) and the error code pointed towards the method result (not string). Those have been mistakes in writing up the question, caused by asking it at the end of a long day of work 😉 Sorry.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T09:46:20+00:00Added an answer on June 9, 2026 at 9:46 am

    You’re not running the code you think you’re running.

    You said that you’ve declared a

    action="#{testBean.result}"
    

    But the exception is telling you that the actually running code has a

    action="#{testBean.string}"
    

    Perhaps it’s a leftover from one of your previous attempts or you were opening the wrong page? Verify, clean, rebuild and redeploy and this problem should disappear.


    I am confused as to where the mysterious @81de8 comes from

    It’s just the hashcode of the class’ instance. See also Object#toString() javadoc. You’d see the same string format when you do

    System.out.println(new TestBean());
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have following setup. method and method1 both are public methods of class Student.
I have the following setup: SD card Mount Receiver (MountReceiver.java) public IntentFilter getIntentFilter() {
I want to have the following setup: abstract class Parent { public static String
I have the following setup: eclipse a standard Java project (A) an eclipse plugin
I have the following setup: Class A property x as string property y as
I have the following setup code: MockOf<IObjectSet<Dummy>>().Setup(c => c.AddObject(dummy)).Verifiable(); MockOf<IObjectContextWrapper>().Setup(c => c.GetObjectSet<Dummy>()).Returns(MockOf<IObjectSet<Dummy>>().Object); where Dummy
I have the following Setup: One service called CoreHost should receive a ExecuteWorkflowByAttributeCommand which
I have the following setup (which works fine). Using CodeFirst (CTP4). A template has
I have the following setup, abridged for brevity: public abstract class AuditableEntity { public
I have the following setup: I have an eclipse project which uses generated sourced

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.