Why is there a string "com.sun.faces.saveStateFieldMarker" on my screen?
Hi All,
I am getting the above message i dont know what is causing that error no clue
Here is my JSP code
<h:form>
<%
//String usergroup=(String)session.getAttribute("usergroup");
String usergroup="APPLE ADMIN";
if(SidAccessvaribales.report_acs.containsKey(usergroup))
{%>
<h:commandLink value="Search" styleClass="bluemore_s" action="#{backing_login.plantresults}"></h:commandLink><f:verbatim> </f:verbatim>
<h:commandLink value="New SI" styleClass="bluemore_s" action="#{backing_login.plantresults}"></h:commandLink><f:verbatim> </f:verbatim>
<h:commandLink value="Work List" styleClass="bluemore_s" action="#{backing_login.plantresults}"></h:commandLink><f:verbatim> </f:verbatim>
<h:commandLink value="Reports" styleClass="bluemore_s" action="#{backing_login.plantresults}"></h:commandLink><f:verbatim> </f:verbatim>
<% }else{%>
<h:commandLink value="Search" styleClass="bluemore_s" action="#{backing_login.plantresults}"></h:commandLink><f:verbatim> </f:verbatim>
<h:commandLink value="New SI" styleClass="bluemore_s" action="#{backing_login.plantresults}"></h:commandLink><f:verbatim> </f:verbatim>
<h:commandLink value="Worklist" styleClass="bluemore_s" action="#{backing_login.plantresults}"></h:commandLink><f:verbatim> </f:verbatim>
<%}
String usergroup1="User Admin";
if(usergroup1.equals("User Admin"))
{%>
<h:commandLink value="User Admin" styleClass="blueleft_rt" onmouseover="MM_showMenu(window.useradmin,255,95,null,'link2')" onmouseout="MM_startTimeout();"></h:commandLink>
<%}%>
</h:form>
please anybody help..me..........
Thanks.. in Advance....
Susy..
http://www.jsf-faq.com/faqs/faces-misc.html
Similar Messages
-
Hi,
when I use f:subview instead of f:view the string ' com.sun.faces.saveStateFieldMarker' shows up on my page.
Is this caused by something I do wrong? Is it a bug?
Sincerely,
Joost de VriesI have a similar problem. I also figured out, that all static HTML must be enclosed by verbatim tags, but when I click a link in the following form (which is a included subview, in this case the footer.jsp page), I get a nullpointer - exception):
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<f:loadBundle basename="de.pixxi.resources" var="messages" />
<!-- NOTICE: all static HTML has to be endclosed by verbatim tags -->
<h:form>
<h:commandLink id="de" actionListener="#{methodsBean.chooseLocale}"><h:outputText value="#{messages.german}"/></h:commandLink>
<f:verbatim> | </f:verbatim>
<h:commandLink id="en" actionListener="#{methodsBean.chooseLocale}"><h:outputText value="#{messages.english}"/></h:commandLink>
<f:verbatim> | </f:verbatim>
<h:commandLink action="register"><h:outputText value="#{messages.register_for_free}"/></h:commandLink>
<f:verbatim> | </f:verbatim>
<h:commandLink action="about"><h:outputText value="#{messages.about}"/></h:commandLink>
<f:verbatim> | </f:verbatim>
<h:commandLink action="invite"><h:outputText value="#{messages.invite}"/></h:commandLink>
</h:form>
here the exception:
java.lang.NullPointerException
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:997)
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1008)
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1008)
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1008)
com.sun.faces.application.StateManagerImpl.restoreComponentState(StateManagerImpl.java:273)
com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:186)
com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:239)
com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:157)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
Why? Is it not allowed to have a form withina subview??
Any help is really greatly appreciated. I am already working few weeks around this problem.
thanx! -
Com.sun.faces.saveStateFieldMarker
Using JSF2, Primefaces, facelets. Glassfish 3.
I have a page with a tabset and several tabs.
When I navigate to the page it displays as expected, however when I change tabs, the new tab is displayed, but I get the text string
com.sun.faces.saveStateFieldMarker
displayed at the top of the new tab.
What causes that and how can I get rid of it?
ThanksBalusC wrote:
It would be helpful if you didn't ignore the stacktrace and share it with us.Thanks for your response. I don't get any error message. Simply com.sun.faces.saveStateFieldMarker that at the top of my web page and also thelinks in that page is not working. -
Com.sun.faces.saveStateFieldMarker after upgrading to JSF 1.1_02
After upgrading from JSF RI 1.1_01 to 1.1_02 , "com.sun.faces.saveStateFieldMarker" is displayed at the bottom on my jsf-page.
I scanned the forums and found some threads about this. However, I haven't found a proper solution to the problem. Any ideas?
Thanks
/Alex
By the way, I'm using subviews which, according to other threads, cause this problem?
Message was edited by:
alexndrYes, I have read this faq.
The thing is that I'm saving the state on the server side:
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>and this contradicts the first lines in the faq:
"This message only appears if the state is saved on the client"
Anyhow, I have gone through the checklist with suggestions and none of them conforms to my project.
I just found out that I only get this problem using specific Ajax funcionality so I think I will move my question to another forum.
Thanks. -
[JSF] com.sun.faces.saveStateFieldMarker
hi
iam using folllow libraries
- myfaces 1.5 and tomahawk 1.5
- trinidad 1.0.0
- richfaces 3.0.0
over the pages i am navigate with panelTabs.
if start the weba-app i get at the end of first page i get the message "com.sun.faces.saveStateFieldMarker" and i cant navigate to next page.
in my classpath is also set the jsf-impl and jsf-api (sun jsf ri).
regards
mathiasHi,
since most of the components originate from MyFaces I suggest to ask this on their mailing list first.
I think that it will take longer for us to create a testcase than them (beside of that we are not in control of this software stack).
So unless you experience issues with JDeveloper - which in this combination I would be very interested in - the problem should be forwarded to Apache MyFaces.
http://wiki.apache.org/myfaces/FrontPage
Frank -
Com.sun.faces.saveStateFieldmarker in Portlet page
Hi,
I have a Sun JSF application (version 1.1_02) deployed as a portlet in JBoss Portal server 2.4.1, When I launch the portal, I am getting the following text displayed,
com.sun.faces.saveStateFieldmarker
I don't get this text in the same application that I have deployed in the JBoss App Server 4.0.3 and I have implemented java.io.Serializable interface in all my bean classes, I have tried with both the state saving methods server/client.
Please help me in resolving this issue.
ThanksThat marker will be written out whenever a Form is called.
In the JSP case, the ViewHandler (in 1.2) will replace those markers
with the tree state. It sounds like the Portlet's ViewHandler isn't doing any replacement and thus this marker is present in the ouput.
I'd contact the folks who created the portlet/jsf integration library for assistance. -
Question to parameter com.sun.faces.serializeserverstate
Hello,
I am actually working on a JSF web application. We use JSF 2.1.2 and primefaces 2.2.1.
Actually we have some memory Problems on the server. So we made some tests with STATE_SAVING_METHOD "client"
and STATE_SAVING_METHOD "server" and com.sun.faces.serializeserverstate.
My question here is, where does JSF write the server state on disk (directory, filename).
Is it possible to change this manually?? (We need this, for daily clean up)
What happens if the memory on harddisk is full? JSF will change mode or just stop??
When will JSF clean up the serialized server states?
Is JSF compressing the serverstate before serializing or does JSF compress only for "client"-method??
I have searched the net but was not able to find any satisfying information.
I hope anybody can help me!
thx859302 wrote:
Well i thought com.sun.faces.serializeserverstate satnds for serialize the state to harddisk, so that ram will not be blocked on server-side.You assumed it. Assumptions are usually wrong. I don't see why you would assume it in this case however, all I would assume is that data is serialized, there is nothing in there about where the serialized data is kept.
>
I could not find a good description of this parameter but this parameter just serializes the "big" server state into a stream and just holds the
stream in memory. The "big" server state will be freed. The next request will build from the stream the "big" server state and after render response,
again it will be serialized to the stream. Is this right??What it means is that not only the component tree is serialized, but also the component state is itself; most notably values that were input into the components. This has the added benefit that going back to a previous view (using the browser's back button for example) the values that were input into components will be back to their previous state, the downside is that it uses more resources of course. Unless you really need it, I would leave this to the default (which is disabled).
I didn't really know that and I might interpret the description wrong, but I figured out as much by literally posting "com.sun.faces.serializeserverstate" into google and looking through some of the results. -
Context parameter com.sun.faces.DEFAULT_SUFFIX
Hi All
I was wondering about the context parameter com.sun.faces.DEFAULT_SUFFIX. Back when I learned JSF for the first time, together with learning Facelet, we use javax.faces.DEFAULT_SUFFIX context parameter to set to xhtml, as such:
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
Now, I noticed that almost all javax.faces context parameter has been refactored to com.faces.* context parameter, and all have been documented in the wiki here:
http://wiki.glassfish.java.net/Wiki.jsp?page=JavaServerFacesRI#section-JavaServerFacesRI-WhatContextParametersAreAvailableAndWhatDoTheyDo
well, all context parameter but DEFAULT_SUFFIX. since all our code in my company uses this. If we omit this context parameter, the code wouldnt work.
Question:
1. Why there is no documentation about this context parameter in wiki?
2 If this context param has been refactored to com.faces.DEFAULT_SUFFIX, why is it when we use com.faces.DEFAULT_SUFFIX, the code would not work, but when we changed back to javax.faces.DEFAULT_SUFFIX it would work.?Well, I am using apache tomcat 6.26, below is what I got when starting the app server (I commented out javax.faces.DEFAULT_SUFFIX in web.xml when I started this).
INFO: JSF1026: [xray] Configuration option 'com.sun.faces.managedBeanFactoryDecoratorClass' not configured
Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
INFO: JSF1018: [xray] Configuration option 'com.sun.faces.STATE_SAVING_METHOD' set to 'server'
Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
*INFO: JSF1018: [xray] Configuration option 'com.sun.faces.DEFAULT_SUFFIX' set to '.jsp'*
Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
INFO: JSF1026: [xray] Configuration option 'com.sun.faces.CONFIG_FILES' not configured
Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
INFO: JSF1026: [xray] Configuration option 'com.sun.faces.LIFECYCLE_ID' not configured
Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
INFO: JSF1018: [xray] Configuration option 'com.sun.faces.numberOfViewsInSession' set to '15'
Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
INFO: JSF1018: [xray] Configuration option 'com.sun.faces.numberOfLogicalViews' set to '15'
Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
INFO: JSF1021: [xray] Configuration option 'com.sun.faces.validateXml' - DISABLED
Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
INFO: JSF1021: [xray] Configuration option 'com.sun.faces.verifyObjects' - DISABLED
Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
INFO: JSF1021: [xray] Configuration option 'com.sun.faces.forceLoadConfiguration' - DISABLED
Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
INFO: JSF1021: [xray] Configuration option 'com.sun.faces.disableVersionTracking' - DISABLED
Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
INFO: JSF1021: [xray] Configuration option 'com.sun.faces.enableHtmlTagLibValidator' - DISABLED
Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
INFO: JSF1021: [xray] Configuration option 'com.sun.faces.preferXHTML' - DISABLED
Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
INFO: JSF1021: [xray] Configuration option 'com.sun.faces.compressViewState' - ENABLED
Jul 3, 2010 12:31:24 PM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Sun's JavaServer Faces implementation (1.2-NIGHTLY_20060407) for context '/xray'
Jul 3, 2010 12:31:24 PM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Completed initializing Sun's JavaServer Faces implementation (1.2-NIGHTLY_20060407) for context '/xray'
Jul 3, 2010 12:31:24 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Jul 3, 2010 12:31:24 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Jul 3, 2010 12:31:25 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Jul 3, 2010 12:31:25 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jul 3, 2010 12:31:25 PM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Jul 3, 2010 12:31:25 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1789 ms
Edited by: niner on Jul 2, 2010 11:07 PM -
Com.sun.faces.el.ValueBindingImpl@a4f80e
Hi,
I get the following error message that doesn’t look nice at all.
com.sun.faces.el.ValueBindingImpl@a4f80e - Value required.
Is there any way that I can display the field label from property bundle instead of com.sun.faces.el.ValueBindingImpl@a4f80e
For example Place of birth - Value required where ‘Place of birth’ is from property bundle.
Regards
V.Piraba
Message was edited by:
V.PirabaHi,
create managed bean with public method getPlaceOfBirth() and change your label to
label="#{yourBundleBeen.placeOfBirth}"
The method retrieves message from resource bundle.
For java class resource bundle the method can look like:
public String getPlaceOfBirth() {
return getMsg("PlaceOfBirth");
private String getMsg(String key) {
UIResources bundle = new UIResources();
FacesContext ctx = FacesContext.getCurrentInstance();
Locale locale = ctx.getViewRoot().getLocale();
ResourceBundle rbundle =
bundle.getBundle("com.xxx.view.resources.UIResources", locale);
return rbundle.getObject(key).toString();
}(UIResources - resource bundle class)
I hope similar technique can be used for resource property files.
Rado -
Hi All,
i got this Exception in the log of the application on the application server with big rate
java.lang.NullPointerException at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
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.AJPRequestHandler.run(AJPRequestHandler.java:302)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
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:595)
any idea???Hi guys,
I'm pretty sure I found the problem.
If there is a wrong url for a link in your JSF page it will throw this error in the log.
in my case i was referring a javascript file in the page which doesn't exist at the path.
So check all of your links on the page to make sure they are right. that should fix the problem.
atleast it did in my case.
Thanks
Praveen
Message was edited by:
bpraveen -
Error com/sun/faces/config/ConfigureListener when creating/opening project
Hi
I have installed creator and everything was working fine. I was able to develop some projects and deployed fine. I have closed my creator and reopened it again. From then it startted giving this problem.
I am unable to create a new project. When I click on Create New Project button on welcome page, it asks me the project name and the directory. Once I enter the name for the project and click on OK there, nothing comes up and the welcome screen remains there. Now there is a red cross mark at the bottm left that shows com/sun/faces/config/ConfigureListener. It behaves the same even if I try to open an existing project.
I believe this problem started after I upgraded my patch to 112785-43. But even after I removed this patch nothing happens. Reinstalled few times but still it shows same com/sun/faces/config/ConfigureListener at bottom left corner.
Any ideas ?
Thanks
SRGot it finally .. The user settings directory is created as[b] //.Creator/1_0 instead of /.Creator/1_0. I know that I need to remove the folder .Creator/1_0 but could not find in the root directory. Went in to // and found the .Creator folder there. Deleted the folder and reinstalled it..
-Srinivas -
Hi,
trying to use the cardemo and jwsdp1.01 plain I've got the following message.
Same with tomcat 4.1x standalone.
JDK1.3.1, NT/Win2000/IE5.5-6.0
Any ideas why ?
Thanks
Oliver
P.S. The same with the other examples
javax.servlet.ServletException: The message id 'com.sun.faces.MISSING_RESOURCE_ERROR' was not found in the message catalog
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:207)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2349)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:644)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:644)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:644)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:376)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:518)
at java.lang.Thread.run(Thread.java:536)
root cause
javax.faces.FacesException: The message id 'com.sun.faces.MISSING_RESOURCE_ERROR' was not found in the message catalog
at com.sun.faces.context.MessageResourcesImpl.getMessage(MessageResourcesImpl.java:221)
at com.sun.faces.context.MessageResourcesImpl.getMessage(MessageResourcesImpl.java:208)
at com.sun.faces.util.Util.getExceptionMessage(Util.java:213)
at com.sun.faces.util.Util.getExceptionMessage(Util.java:222)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getKeyAndLookupInBundle(HtmlBasicRenderer.java:204)
at com.sun.faces.renderkit.html_basic.ButtonRenderer.getImageSrc(ButtonRenderer.java:116)
at com.sun.faces.renderkit.html_basic.ButtonRenderer.encodeEnd(ButtonRenderer.java:231)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:1127)
at javax.faces.component.UICommand.encodeEnd(UICommand.java:156)
at javax.faces.webapp.FacesTag.doEndTag(FacesTag.java:278)
at org.apache.jsp.Storefront$jsp._jspService(Storefront$jsp.java:239)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:431)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355)
at com.sun.faces.lifecycle.ViewHandlerImpl.renderView(ViewHandlerImpl.java:57)
at com.sun.faces.lifecycle.JspRenderResponsePhase.execute(JspRenderResponsePhase.java:91)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:259)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:205)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2349)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:644)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:644)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:644)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:376)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:518)
at java.lang.Thread.run(Thread.java:536)
Java Web Services Developer Pack/1.0_01-fcsDo you using a German environment?
See the FAQ: http://java.sun.com/j2ee/javaserverfaces/faq.html#missing_resource
Or just add the line: <?xml version="1.0" encoding="iso-8859-1"?>
at the beginning of the "JSFImplMessages_de.xml" of the "jsf-ri.jar", because it contains non ASCII-7 chars. -
I create a enterprise application using jsf 2.0, ejb3, primefaces 2 and I want to show data in table immediately after ejb call findAll() method. But it's always appear: "can't instantiate class". Here is my code:
index.xhtml
<h:form>
<p:dataTable id="tbl" var="p" value="#{Product.products}" >
<p:column>
<f:facet name="header">
Product Id
</f:facet>
<h:outputText value="#{p.productID}" />
</p:column>
<p:column>
<f:facet name="header">
Product Name
</f:facet>
<h:outputText value="#{p.productName}" />
</p:column>
<p:column>
<f:facet name="header">
Unit Price
</f:facet>
<h:outputText value="#{p.unitPrice}" />
</p:column>
</p:dataTable>
</h:form>
package myEntity;
@Entity
@Table(name = "Products")
@NamedQueries({
@NamedQuery(name = "Products.*findAll*", query = "SELECT p FROM Products p"),
public class Products implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Basic(optional = false)
@Column(name = "productID")
private Integer productID;
@Basic(optional = false)
@Column(name = "productName")
private String productName;
@Basic(optional = false)
@Column(name = "unitPrice")
private double unitPrice;
public Products() {
public Products(Integer productID) {
this.productID = productID;
public Products(Integer productID, String productName, double unitPrice) {
this.productID = productID;
this.productName = productName;
this.unitPrice = unitPrice;
public Integer getProductID() {
return productID;
public void setProductID(Integer productID) {
this.productID = productID;
public String getProductName() {
return productName;
public void setProductName(String productName) {
this.productName = productName;
public double getUnitPrice() {
return unitPrice;
public void setUnitPrice(double unitPrice) {
this.unitPrice = unitPrice;
package mySessionBean;
@Stateless
public class ProductsFacade implements ProductsFacadeLocal {
@PersistenceContext(unitName = "demoProduct-ejbPU")
private EntityManager em;
public List<Products> *findAll*() {
CriteriaQuery cq = em.getCriteriaBuilder().createQuery();
cq.select(cq.from(Products.class));
return em.createQuery(cq).getResultList();
package myManagedBean;
@ManagedBean(name="Product")
@RequestScoped
public class Product {
@EJB
private ProductsFacadeLocal productsFacade;
private List<Products> products;
/** Creates a new instance of Product */
public Product() {
*products = productsFacade.findAll();*
public List<Products> getProducts() {
return products;
public void setProducts(List<Products> products) {
this.products = products;
An Error Occurred:
Cant instantiate class: myManagedBean.Product.
+- Stack Trace
com.sun.faces.mgbean.ManagedBeanCreationException: Cant instantiate class: myManagedBean.Product.
at com.sun.faces.mgbean.BeanBuilder.newBeanInstance(BeanBuilder.java:193)
Caused by: java.lang.NullPointerException
at myManagedBean.Product.<init>(Product.java:36)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at com.sun.faces.mgbean.BeanBuilder.newBeanInstance(BeanBuilder.java:188)This is just baffling. The OP 'created' an enterprise application, but doesn't know the basics of the basics that is null-references? That is like knowing how to do your taxes without knowing how to add and subtract.
-
Re: com.sun.faces.config.ConfigListener not found
I am using Tomcat 4.1.24 and got the demos from EA4 working. Now I am getting an error in my own JSF WAR file about com.sun.faces.config.ConfigListener class cannot be found.
What jar file would I be missing?
Thank you.Hi All,
I am facing the same problem on TOmcat 4.0. I copied the jsf-ri.jar from war file/lib to tomcat_home/common/lib and the problem was resolved. Can anyone from Sun address this issue please as to why this is so?
Also, now the container is not able to access the Faces Servlet. I should mention here that this does not work only when deployed as a war file.
regards,
piyu -
I can't find the package, "com.sun.faces.config.beans"
Hi. To research the implementation mechnism of JSF, I downloaded JSF reference implementation source JAR from javaserverfaces.dev.java.net.
But when I unziped the JAR and import these files into eclipse to compile this project, a serials of compile errors occurred. Making a comparation between binary JAR and source JAR, I found that some files contained in binary JAR weren't in the source JAR. For example, com.sun.faces.config.beans package exists in the jsf-impl.jar, but not in jsf-impl's source JAR. I ensure that the binary files and source files have the same version.
Any advice is welcome. THX.
nullThere are three source projects for JSF. The jsf-api, jsf-impl, and jsf-tools. The jsf-tools one contains the package you're looking for.
I never understood why the JSF developers organized their projects this way. Basically, it looks like the jsf-tools project gets compiled into the jsf-impl jar. Thus it's not 1 project to 1 JAR. And confuses people like us!
CowKing
Maybe you are looking for
-
Installation problem of ISSUE_TRACKER_1.6 on Oracle Express XE
Sorry, but I'm new to HTMLDB, and have seen similar problems listed on the forum, but they have not given me insight into my problem. I am running Oracle XE beta on Windows. I only have one workspace and user at the moment. I imported the application
-
What is the best sound interface to use for the new Imac 27 inch
I am going to purchase teh new iMac 27 inch and I wanted to know what is the best soundinterface to buy with a price range up to 300 -700 dollars
-
Oracle 9i instalation problem......
Hi Guys, I downloaded Oracle 9i version. I created 3 folders (disk1, disk2, disk3) and unzip them into respective folders. When I try to install (by double click) setup.exe file, I got the error message "ACCESS VIOLATION". I turn off the Norton Antiv
-
I need to enable site so users can search old articles on the site. Please advise on best way to do this using Dreamweaver CS 5.5. Plug ins, downloads of affordable software. Any info will be greatly appreciated.
-
TouchScreen Drivers for Windows 7
Hello, I installed Windows 7 in multiboot and I tried the touchscreen but it didn't work. I need a driver for my HP Pavilion n011dx x360. Please help as soon as possible!!!