Com.sun.faces.el.impl.parser.ParseException on weblogic 10.3.3

I have a sample web application from ESRI working on tomcat but fails on weblogic 10.3.3. errors are below.
jsf jars are in web-inf/lib directory of war. also tried..
<container-descriptor>
     <prefer-web-inf-classes>
     true
     </prefer-web-inf-classes>
     </container-descriptor>
any help is appreciated.
thanks!
Error Message:
javax.faces.el.ReferenceSyntaxException: (mapContext.attributes.mapEditor.shapeType == \'POINT\')? \'hiddenButton\':\'disabledButton\'
com.sun.faces.el.impl.parser.ParseException: Encountered "\\" at line 1, column 49.
Was expecting one of:
"true" ...
"false" ...
"null" ...
"not" ...
"empty" ...
     at com.sun.faces.el.impl.parser.ELParserImpl.generateParseException(ELParserImpl.java:2254)
     at com.sun.faces.el.impl.parser.ELParserImpl.jj_consume_token(ELParserImpl.java:2122)
     at com.sun.faces.el.impl.parser.ELParserImpl.ValuePrefix(ELParserImpl.java:782)
     at com.sun.faces.el.impl.parser.ELParserImpl.Value(ELParserImpl.java:721)
     at com.sun.faces.el.impl.parser.ELParserImpl.UnaryExpression(ELParserImpl.java:697)
     at com.sun.faces.el.impl.parser.ELParserImpl.MultiplyExpression(ELParserImpl.java:543)

That will work only when all the supporting classes are placed inside the WEB-INF/lib directory only in form of Jar files.
If any one of the Class is being loaded from outside of the WEB-INF/lib jars then you will definately face this issue......
Example:
Suppose "com.sun.faces.el.impl.parser.* " classes are present in some other Jar file outside WEB-INF/lib but rest of the JSF Jars and Parser Jars are present inside the WEB-INF/lib directory ..in that case you will see this kind of issue Because the JSF config Parser will change according to the version of JSF and WLS also provides some supporting Jars in "modules/" or "server/lib" or in "common/lib" directories.
Thanks
Jay SenSharma
http://middlewaremagic.com/weblogic  (Middleware Magic Is here)

Similar Messages

  • Com.sun.faces.el.impl.parser.ParseException

    hi all;
    i' have encountered an error. Do you have any idea.?
    i think its about jsf syntax , but i couldn't see an syntax fault in jsp file (at least eclipse IDE did not warn me.)
    http://asahin.net
    2006-05-30 14:18:12 StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw exception
    com.sun.faces.el.impl.ElException: Encountered "d", expected one of ["}", ".", ">", "gt", "<", "lt", "==", "eq", "<=", "le", ">=", "ge", "!=", "ne", "[", "+", "-", "*", "/", "div", "%", "mod", "and", "&&", "or", "||", "?"]
         at com.sun.faces.el.impl.ExpressionEvaluatorImpl.parseExpressionString(ExpressionEvaluatorImpl.java:289)
         at com.sun.faces.el.impl.ExpressionEvaluatorImpl.parseExpression(ExpressionEvaluatorImpl.java:199)
         at com.sun.faces.application.ApplicationImpl.checkSyntax(ApplicationImpl.java:741)
         at com.sun.faces.application.ApplicationImpl.createValueBinding(ApplicationImpl.java:291)
         at org.apache.shale.faces.ShaleViewHandler.setupViewController(ShaleViewHandler.java:226)
         at org.apache.shale.faces.ShaleViewHandler.createView(ShaleViewHandler.java:123)
         at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:164)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.shale.faces.ShaleApplicationFilter.doFilter(ShaleApplicationFilter.java:285)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:534)
    Caused by: com.sun.faces.el.impl.parser.ParseException: Encountered "d" at line 1, column 36.
    Was expecting one of:
    ">" ...
    "gt" ...
    "<" ...
    "lt" ...
    "==" ...
    "eq" ...
    "<=" ...
    "le" ...
    ">=" ...
    "ge" ...
    "!=" ...
    "ne" ...
    "+" ...
    "div" ...
    "mod" ...
    "and" ...
    "or" ...
    "||" ...
         at com.sun.faces.el.impl.parser.ELParserImpl.generateParseException(ELParserImpl.java:2234)
         at com.sun.faces.el.impl.parser.ELParserImpl.jj_consume_token(ELParserImpl.java:2102)
         at com.sun.faces.el.impl.parser.ELParserImpl.AttrValueExpression(ELParserImpl.java:110)
         at com.sun.faces.el.impl.parser.ELParserImpl.ExpressionString(ELParserImpl.java:50)
         at com.sun.faces.el.impl.ExpressionEvaluatorImpl.parseExpressionString(ExpressionEvaluatorImpl.java:282)
         ... 36 more

    Hello all,
    I face the same problem and as A_SAHIN stated although the jsp page is rendered there exists error messages in log files. Here is some part of the jsp file that cause the exception.
                             <tr>
                                  <td height="3" nowrap="nowrap" valign="top" width="16%"><h:outputLabel
                                       value="Start Date" binding="#{sp$createSAContract.lblstartDate}"
                                       id="lblstartDate" /></td>
                                  <td height="3" valign="top" nowrap="nowrap"><h:inputText
                                       binding="#{sp$createSAContract.txtstartDate}" id="txtstartDate"
                                       style="behavior:url(../resourceSite/htc/DateTime.htc);text-align:right;"
                                       maxlength="15" value="#{sp$createSAContract.generalStartDate}"></h:inputText>
                                  <h:graphicImage url="/resourceSite/images/calendar.gif" alt="Calendar"
                                       binding="#{sp$createSAContract.imgstartDate}" id="imgstartDate"
                                       height="14" width="16" /></td>
                                  <td height="3" nowrap="nowrap" valign="top" width="19%"><h:outputLabel
                                       value="End Date" binding="#{sp$createSAContract.lblendDate}"
                                       id="lblEndDate" /></td>
                                  <td nowrap="nowrap" width="34%" valign="top" height="3"><h:inputText
                                       binding="#{sp$createSAContract.txtendDate}" id="txtendDate"
                                       style="behavior:url(../resourceSite/htc/DateTime.htc);text-align:right;"
                                       maxlength="15" value="#{sp$createSAContract.generalEndDate}" /> <h:graphicImage
                                       url="/resourceSite/images/calendar.gif" alt="Calendar"
                                       binding="#{sp$createSAContract.imgendDate}" id="imgendDate" height="14"
                                       width="16" /></td>
                             </tr>

  • Com.sun.faces.el.impl.ElException

    Hi all,
    my web app works fine so far with Firefox or NC7 but with IE the server throws the following exception (same thing is happen with Tomcat):
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Encountered "}", expected one of [, , , "true", "false", "null", "(", "-", "not", "!", "empty", ]
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:209)
         sun.reflect.GeneratedMethodAccessor155.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
         java.security.AccessController.doPrivileged(Native Method)
         java.security.AccessController.doPrivileged(Native Method)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
         com.sun.jsfcl.app.ViewHandlerImpl.renderView(ViewHandlerImpl.java:181)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         sun.reflect.GeneratedMethodAccessor155.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
         java.security.AccessController.doPrivileged(Native Method)
         java.security.AccessController.doPrivileged(Native Method)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
         com.sun.jsfcl.app.ViewHandlerImpl.renderView(ViewHandlerImpl.java:181)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         sun.reflect.GeneratedMethodAccessor155.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    root cause
    com.sun.faces.el.impl.ElException: Encountered "}", expected one of [, , , "true", "false", "null", "(", "-", "not", "!", "empty", ]
         com.sun.faces.el.impl.ExpressionEvaluatorImpl.parseExpressionString(ExpressionEvaluatorImpl.java:289)
         com.sun.faces.el.impl.ExpressionEvaluatorImpl.parseExpression(ExpressionEvaluatorImpl.java:199)
         com.sun.faces.application.ApplicationImpl.checkSyntax(ApplicationImpl.java:741)
         com.sun.faces.application.ApplicationImpl.createValueBinding(ApplicationImpl.java:291)
         com.sun.jsfcl.app.ViewHandlerImpl.setupPageBean(ViewHandlerImpl.java:267)
         com.sun.jsfcl.app.ViewHandlerImpl.createView(ViewHandlerImpl.java:126)
         com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:164)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
         com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         sun.reflect.GeneratedMethodAccessor155.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
         java.security.AccessController.doPrivileged(Native Method)
         java.security.AccessController.doPrivileged(Native Method)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
         com.sun.jsfcl.app.ViewHandlerImpl.renderView(ViewHandlerImpl.java:181)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         sun.reflect.GeneratedMethodAccessor155.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
         java.security.AccessController.doPrivileged(Native Method)
         java.security.AccessController.doPrivileged(Native Method)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
         com.sun.jsfcl.app.ViewHandlerImpl.renderView(ViewHandlerImpl.java:181)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         sun.reflect.GeneratedMethodAccessor155.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)This is happen after clicking on an image hyperlink .
    The code for the image hyperlink component looks like this:
    <h:outputLink binding="#{Index.hyperlinkHome1}" id="hyperlinkHome1"
                                        onclick="window.open('resources/DSSMain.png','newWindow','width=745,height=530')" style="margin-bottom: 10px" styleClass="imagelink">
                                        <h:graphicImage binding="#{Index.image1}" id="image1" style="margin-bottom: 10px; text-align: center" value="resources/DSSMainSmall.png"/>
                                    </h:outputLink>Any help is greatly appreciated.
    Stephan

    In my case it was an IE related problem. I solved it
    by adding
    return falseto the onclick javascript.
    StephanCan you post what it ended up looking like?
    I'm having this same issue and I don't like messing with the underlying javascript unless I am certain of exactly what it should look like.
    In my case I have this:
                            <h:panelGrid binding="#{ImageReports.gridPanel9}" columns="1" id="gridPanel9" styleClass="centeredTextOnly">
                                <h:outputText binding="#{ImageReports.leftBuccalImageOutputText}" id="leftBuccalImageOutputText" style="height: 24px; width: 98px" value="Left Buccal"/>
                                <h:commandButton action="#{ImageReports.leftBuccalImage_action}" binding="#{ImageReports.leftBuccalImage}" id="leftBuccalImage"
                                    style="height: 96px; width: 112px" value="leftBuccalImage"/>
                            </h:panelGrid>

  • [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
    mathias

    Hi,
    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

  • 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.
    null

    There 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

  • Java.lang.NullPointerException at com.sun.mail.iap.Response.parse

    I am getting this error when I try to download a message using IMAP from exchange server
    java.lang.NullPointerException
         at com.sun.mail.iap.Response.parse(Response.java:99)
         at com.sun.mail.iap.Response.<init>(Response.java:68)
         at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:31)
         at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:105)
         at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:153)
         at com.sun.mail.iap.Protocol.command(Protocol.java:215)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:882)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:874)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetchBody(IMAPProtocol.java:656)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetchBody(IMAPProtocol.java:645)
    This error occurs intermittantly. I placed one large mail (around 600 MB) and few normal size mails on exchange server. In few testing runs, this error occured while downloading the large mail as well as one normal mail. In one test run, all mails got downloaded successfully.
    Could anyone please suggest the cause and resolution?
    Thanks.

    I turned on the session debugging. I am running my application on Linux, so the debugging info was moved to a log file. This log file is very large (around 1GB) and I am unable to open it.
    One more thing: I am trying Message.writeTo() method to download the message. If an OutOfMemoryError occurs, I catch it and try to download the message using GetInputStream. NullPointerException is occuring in both the cases.
    Exception stack trace with writeTo():
    java.lang.NullPointerException
         at com.sun.mail.iap.Response.parse(Response.java:99)
         at com.sun.mail.iap.Response.<init>(Response.java:68)
         at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:31)
         at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:105)
         at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:153)
         at com.sun.mail.iap.Protocol.command(Protocol.java:215)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:882)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:874)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetchBody(IMAPProtocol.java:656)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetchBody(IMAPProtocol.java:645)
         at com.sun.mail.imap.IMAPMessage.writeTo(IMAPMessage.java:536)
    Exception stack trace with getInputStream():
    java.lang.NullPointerException
         at com.sun.mail.iap.Response.parse(Response.java:99)
         at com.sun.mail.iap.Response.<init>(Response.java:68)
         at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:31)
         at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:105)
         at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:153)
         at com.sun.mail.iap.Protocol.command(Protocol.java:215)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:882)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:874)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetchBody(IMAPProtocol.java:653)
         at com.sun.mail.imap.protocol.IMAPProtocol.peekBody(IMAPProtocol.java:637)
         at com.sun.mail.imap.IMAPMessage.loadHeaders(IMAPMessage.java:1055)
         at com.sun.mail.imap.IMAPMessage.getAllHeaders(IMAPMessage.java:642)
    First I try to download the headers in case of an OutOfMemoryError. The above trace shows that.
    Could anyone point out the problem and help resolving it?

  • NullPointerException at com.sun.faces.context.ExternalContextImpl.dispatch?

    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

  • NullPointerException in com.sun.mail.iap.Response.parse

    Hey all. I am accessing an IMAP mail server from Solaris 8 using java 1.5.0-08, but I intermittently get the following exception:
    java.lang.NullPointerException
            at com.sun.mail.iap.Response.parse(Response.java:130)
            at com.sun.mail.iap.Response.<init>(Response.java:87)
            at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:48)
            at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:122)
            at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:230)
            at com.sun.mail.iap.Protocol.command(Protocol.java:263)
            at com.sun.mail.iap.Protocol.simpleCommand(Protocol.java:310)
            at com.sun.mail.imap.protocol.IMAPProtocol.close(IMAPProtocol.java:926)
            at com.sun.mail.imap.IMAPFolder.close(IMAPFolder.java:1000)
            at com.sun.mail.imap.IMAPFolder.close(IMAPFolder.java:935)Any thoughts of what I am doing wrong?

    I'm just looking for more data to get
    a handle on the problem.I ran my program again, and got a NPE on another email. It is also big...
    A479 FETCH 856 (BODY[])
    * 856 FETCH (BODY[] {26497359}
    Return-Path: <[email protected]>
    ... some of the body ...
    BTW, the ebinder subcollection is not in the select list. Do I have to configure
    or create another foA480 CLOSE
    DEBUG: added an Authenticated connection -- size: 1
    java.lang.NullPointerException
            at com.sun.mail.iap.Response.parse(Response.java:130)
            at com.sun.mail.iap.Response.<init>(Response.java:87)
            at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:48)
            at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:122)
            at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:230)
            at com.sun.mail.iap.Protocol.command(Protocol.java:263)
            at com.sun.mail.iap.Protocol.simpleCommand(Protocol.java:310)
            at com.sun.mail.imap.protocol.IMAPProtocol.close(IMAPProtocol.java:926)
            at com.sun.mail.imap.IMAPFolder.close(IMAPFolder.java:1000)
            at com.sun.mail.imap.IMAPFolder.close(IMAPFolder.java:935)
    A481 LIST "" shared
    java.lang.NullPointerException
            at com.sun.mail.iap.Response.parse(Response.java:130)
            at com.sun.mail.iap.Response.<init>(Response.java:87)
            at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:48)
            at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:122)
            at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:230)
            at com.sun.mail.iap.Protocol.command(Protocol.java:263)
            at com.sun.mail.imap.protocol.IMAPProtocol.doList(IMAPProtocol.java:799)
            at com.sun.mail.imap.protocol.IMAPProtocol.list(IMAPProtocol.java:776)
            at com.sun.mail.imap.IMAPFolder$1.doCommand(IMAPFolder.java:429)
            at com.sun.mail.imap.IMAPFolder.doProtocolCommand(IMAPFolder.java:2387)
            at com.sun.mail.imap.IMAPFolder.doCommand(IMAPFolder.java:2332)
            at com.sun.mail.imap.IMAPFolder.exists(IMAPFolder.java:427)
    ... lots of these ...
    A490 LIST "" shared
    rm or resource or something to solve this problem? please
    advice.
    (See attached file: private-xml.rtf)(See attached file: private-html.rtf)(See
    ... more body from the first email ...And this process of getting little chunks of data seems to continue on, interspersed with NPEs. It looks like some connection is not being closed.

  • 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
    SR

    Got 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

  • 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:
    alexndr

    Yes, 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.

  • Bug? using f:subview leads to visible string  com.sun.faces.saveStateFieldM

    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 Vries

    I 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!

  • IOP00710309: (INTERNAL) Worker thread Thread[p: default-threadpool; w: Idle,5,ORB ThreadGroup 0] caught throwable com.sun.corba.se.impl.orbutil.threadpool

    Hi ,
    I am seeing this issue while starting my managed server.
    com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread run
    FINE: "IOP00710309: (INTERNAL) Worker thread Thread[p: default-threadpool; w: Idle,5,ORB ThreadGroup 0] caught throwable com.sun.corba.se.impl.orbutil.threadpool.TimeoutException when requesting work from work queue default-workqueue."
    org.omg.CORBA.INTERNAL:   vmcid: SUN  minor code: 309  completed: No
            at com.sun.corba.se.impl.logging.ORBUtilSystemException.workerThreadThrowableFromRequestWork(ORBUtilSystemException.java:6330)
            at com.sun.corba.se.impl.logging.ORBUtilSystemException.workerThreadThrowableFromRequestWork(ORBUtilSystemException.java:6355)
            at com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:494
    I have searched the net for this but didnt find any resolution. Please help.
    Regards,
    Rishi

    This became bug 6560301. And Sun pointed out that it was my bad in not handling spurious wakeups. Java 6 makes spurious wakeups more likely. (My experience is from "never" to "sometimes".)
    More info at:
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6560301

  • Javax.servlet.ServletException: The message id 'com.sun.faces.MISSING_RESOU

    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-fcs

    Do 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.

  • Com.sun.faces.mgbean.ManagedBeanCreationException: Cant instantiate class..

    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.

  • 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!
    thx

    859302 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.

Maybe you are looking for