• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error Processing Request

 
Kevin Olome
Ranch Hand
Posts: 44
1
Android Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Error "Page":


Context Path:/JSF_Contacts
Servlet Path:/index.xhtml
Path Info:null
Query String:null
Stack Trace
javax.servlet.ServletException: javax.el.PropertyNotWritableException: /index.xhtml @43,75 value="#{contactData.email} ": Illegal Syntax for Set Operation
javax.faces.webapp.FacesServlet.service(FacesServlet.java:671)
io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:284)
io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:263)
io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:174)
io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)
io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:793)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
java.lang.Thread.run(Thread.java:745)


ContactData is just a simple POJO:




index.xhtml



I don't understand why it don't work because I copied every step of a tutorial and there it worked.

What exactly does the error message mean?

I googled ther error and found this stackoverflow topic:

http://stackoverflow.com/questions/15846478/javax-el-propertynotwritableexception-index-xhtml-29-118-value-illegal-sy

but I did bind the values with bean properties and the bean have the setters and getters...

 
Chris Barrett
Bartender
Posts: 317
24
Eclipse IDE Firefox Browser
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kevin,

javax.el.PropertyNotWritableException: /index.xhtml @43,75 value="#{contactData.email} ": Illegal Syntax for Set Operation
The above tells you that something stopped JSF from being able to set the email property. Your POJO is clean and easy to follow, so it doesn't appear to be there.

Lets take a closer look at line 43 in the index.xhtml as referenced. Perhaps seeing the part of line 43 that is causing the grief in a mono-type font might make it a bit easier to spot:
value="#{contactData.phone}"
value="#{contactData.email} "

Can you spot the difference? It's all about having extra space.
 
Tim Holloway
Saloon Keeper
Posts: 18387
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Kevin!

Chris, I'm impressed. I didn't see that one myself. In fact, that kind of thing is where I lose more hours debugging than I do on complex algorithms. Your sharp eyes have earned you a cow.
 
Chris Barrett
Bartender
Posts: 317
24
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tim. My trick - big font. Makes it more obvious. :D
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!