facebook

Error when running the MYBlogFacelets tutorial

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #289229 Reply

    gerbdla
    Member

    I am getting the following error when trying to create a new blog post
    javax.servlet.ServletException: /post/new.xhtml @28,88 value=”#{post.post.title}”: Target Unreachable, ‘post’ returned null
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)

    root cause

    javax.el.PropertyNotFoundException: /post/new.xhtml @28,88 value=”#{post.post.title}”: Target Unreachable, ‘post’ returned null
    com.sun.facelets.el.TagValueExpression.getType(TagValueExpression.java:62)
    com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:81)
    javax.faces.component.UIInput.getConvertedValue(UIInput.java:934)
    javax.faces.component.UIInput.validate(UIInput.java:860)
    javax.faces.component.UIInput.executeValidate(UIInput.java:1065)
    javax.faces.component.UIInput.processValidators(UIInput.java:666)
    javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1030)
    javax.faces.component.UIForm.processValidators(UIForm.java:229)
    javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1030)
    javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:662)
    com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:100)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
    com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)

    Any ideas what might be causing this. I am able to create posts from the list page but not from the new page.

    Thank you

    #289246 Reply

    Loyal Water
    Member

    gerbdla,
    Did you make any changes in the code of the tutorial. Can you please go to MyEclipse > Installation Summary > Installation Details and paste the information here for me.

    #289265 Reply

    gerbdla
    Member

    No I made no change to the tutorial. I imported it and ran it.
    here is the installation summary
    *** Date:
    Monday, September 22, 2008 12:15:42 PM PDT

    ** System properties:
    OS=WindowsVista
    OS version=6.0
    Java version=1.5.0_11

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 6.5.1 GA
    Build id: 6.5.1-GA-20080715

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 6.5.1 GA
    Build id: 6.5.1-GA-20080715

    Eclipse Platform

    Version: 3.3.3.r33x_r20080129-_19UEl7Ezk_gXF1kouft
    Build id: M20080221-1800

    Eclipse RCP

    Version: 3.3.3.r33x_r20080129-8y8eE9UEUWI6qujeED0xT7bc
    Build id: M20080221-1800

    Eclipse Java Development Tools

    Version: 3.3.2.r33x_r20080129-7o7jE7_EDhYDiyVEnjb1pFd7ZGD7
    Build id: M20080221-1800

    Eclipse Plug-in Development Environment

    Version: 3.3.3.r33x_r20080129-7N7M5DQVIA_6oJsEFkEL
    Build id: M20080221-1800

    Eclipse Project SDK

    Version: 3.3.3.r33x_r20080129-7M7J7LB-u3aphGW6o3_VmiVfGXWO
    Build id: M20080221-1800

    Eclipse Graphical Editing Framework

    Version: 3.3.2.v20080129
    Build id: 20080221-1602

    Eclipse startup command=-data
    C:\MyEclipseWorkspaces\Hibernate
    -os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\MyEclipse 6.0\eclipse\eclipse.exe
    -name
    Eclipse
    –launcher.library
    C:\MyEclipse 6.0\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.3.R33x_v20080118\eclipse_1023.dll
    -startup
    C:\MyEclipse 6.0\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
    -exitdata
    1168_64
    -vm
    C:\MyEclipse 6.0\jre\bin\javaw.exe

    #289337 Reply

    Loyal Water
    Member

    Can you please refer to this link and check if it help. My guess is that you are facing the same issue:-
    http://forums.sun.com/thread.jspa?threadID=5295890&messageID=10251241

    #289356 Reply

    gerbdla
    Member

    I tried none and request as the managed bean scope and both produced the same error. According to the thread what should the managed bean be set to?
    This is what it looks like in my config file
    <managed-bean>
    <managed-bean-name>post</managed-bean-name>
    <managed-bean-class>
    com.myeclipseide.myblog.bean.PostController
    </managed-bean-class>
    <managed-bean-scope>none</managed-bean-scope>
    </managed-bean>

    #289388 Reply

    Loyal Water
    Member

    gerbdla,
    Im facing the same issue when I run the tutorial at my end. I’ll ask the dev team to look into this and get this sorted out asap. Thank you for your patience.

    #289405 Reply

    gerbdla
    Member

    Thank you very much.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Error when running the MYBlogFacelets tutorial

You must be logged in to post in the forum log in