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

  • Home
  • SEARCH
  • 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 6062535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:03:48+00:00 2026-05-23T09:03:48+00:00

I am working on a project to take an existing project using JSF1.2, JSP,

  • 0

I am working on a project to take an existing project using JSF1.2, JSP, Struts, Tiles, Richfaces … to simply use JSF2.0, the built-in facelets support, and updating Richfaces to version 4.

So far things are going pretty well, except for one major road block. I am trying to update AJAX components that were previously being handled with the <a4j:support> tags, to the <f:ajax> tags and instead of working how I’d hope, I’m getting an error which I can only interpret as me having forgotten something in terms of configuring everything.

It’s a NullPointerException being thrown in com.sun.faces.context.PartialViewContextImpl.createPartialResponseWriter() method.

When I load the page the first time, I can see in the debugger the component binding correctly to the backing value; the page loads without incident. It’s when I try to activate the AJAX event on said component that it blows up. I get an error, and nothing updated via AJAX. It’s happening with every AJAX component I try to convert. Here is one such example:

        <h:selectOneMenu
        value="#{userSession.selectedNetwork}"
        id="network"
        >
        <f:selectItems value="#{userSession.networkUIOptions}" />
        <f:ajax event="change" render="selectedStation edit_site_button add_site_button"/>
    </h:selectOneMenu>

I don’t know if this is relevant or not, but the bean I’m referencing in that code is now annotated ala JSF2.0 and removed from faces-config.xml, however, I haven’t completely gotten rid of faces-config.xml. Still working on converting everything. Also, I’m running this on Tomcat 6.0.

Any help, suggestions would be greatly appreciated. I’m really stuck on this problem.

EDIT 1:

Using mojarra version 2.1.1 as per the bundle title I downloaded. Having trouble getting exact stack trace. Logging doesn’t seem to be working correctly after changing so many things. Will keep trying. Also will try simple page and report results.

EDIT 2:
So, trying to ‘minimal’ page yielded the same results, same error.

Still couldn’t get logging to work exactly right, so just did some ghetto logging. See below for something resembling a proper stack trace:

EDIT 3:
Okay, updated ghetto stack trace with line numbers. You guessed right on the line number in the first class to toss the error:
http://pastebin.com/49yUDcPM

doFilter function of NPNSessionFilter.java:
http://pastebin.com/iwG0rcQ6

test page I created for BalusC’s at suggestion:
http://pastebin.com/kSeUyj7g

EDIT 4:

http://tinypic.com/r/2dca0yo/7
http://tinypic.com/r/16jet7s/7

Here are images of the libs currently packaged in the WAR’s WEB-INF/lib folder. Previous programmer included a lot of junk that I haven’t cleaned out yet. Likewise, not sure where struts JARs are coming from. Deleted any pre-dist JARs I could find relating to strusts or tiles.

EDIT 5:

Okay, breakthrough! This comment made a world of difference “Likewise, not sure where struts JARs are coming from. Deleted any pre-dist JARs I could find relating to strusts or tiles.”

Cleaned ear, re-dist, and things work better now. Obviously it wasn’t just some lib I forgot to remove, but a lib I forgot to remove, and then clean the EAR out after having removed. AJAX requests are now properly going through, and I can see in the debugger values being re-bound as the request comes through! Load of other problems, but can manage those in my own time. BalusC, you led me to this solution; if you want to submit an answer I’ll gladly accept it!

  • 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-05-23T09:03:48+00:00Added an answer on May 23, 2026 at 9:03 am

    NullPointerException at com.sun.faces.context.PartialViewContextImpl:PartialViewContextImpl.java:createPartialResponseWriter:441

    This exception indicates that the JSF view root is null which in turn indicates among others that there’s some JSF 1.2 targeted 3rd party or custom ViewHandler in the classpath which isn’t doing its job entirely right for JSF 2.0 and thus needs to be upgrade as well (or removed altogether).

    Based on your screenshot with the overview of all JARs, the struts-faces JAR is the main suspect. But those mixed versions of Apache Commons and JSTL libraries also doesn’t look right.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a project where I have to take data from one source
I'm working on a project using Tkinter and Python. In order to have native
I'm currently working on a project which is using EF Code First with POCOs.
I'm currently working on a project which is using EF Code First with POCOs.
I'm working on a graphical model project with python using NetworkX . NetworkX provides
I've been working on a home project using CodeIgniter Reactor, and have come to
I have been working on a project in which I take a file with
I am working on a project where I need to solve a maze using
I am working a project where I need to generate a series of classes
I'm currently working on project with Haskell, and have found myself some trouble. I'm

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.