[JBoss Seam] - Re: My list of questions: Seam validation, transactions and
by beligum
I'm getting strange behaviour, and my guess is it's caused because of my misunderstanding of conversations (yes, I've read through the entire manual and many other docs too :-).
I'll try to explain my 'workflow' in my own words, maybe I'm thinking wrong.
I log in (almost default authenticator) -> select a space (conversation starts, join=true) -> click to edit the space (another conversation starts, but join=true) -> do some modifications (action-method returns "failure" and has @Rollback(ifOutcome={"failure"})) ->back to my edit-form and I'm noticed that my transaction failed, but the changes were persisted -> if I do additional changes and click update, they aren't persisted to the database anymore (expected behaviour).
I find this a bit odd, and I don't fully understand why things happen the way they do. I'd be happy to post all of my related code, but don't know where to begin.
Damn, I feel like a noob here (although I'm not, at least not programatically ;-))
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052923#4052923
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052923
18Â years, 10Â months
[JBossWS] - WebMethod with name
by lavrenych
I have method with name "Update" in my WebService class and unable to deploy it. Once I rename it ( "Update1"?), everything runs fine.
More info:
I am getting when deploying:
2007-06-10 12:22:39,409 ERROR [org.jboss.ws.core.server.ServiceEndpointDeployer]
Cannot start service endpoint org.jboss.ws.WSException: param1 is not a valid property on class com.newxt.ws.jaxws.Update
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getElementPropertyAccesso
r(JAXBContextImpl.java:816)
For this class:
package com.newxt.ws;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
@WebService
public class Echo {
@WebMethod
public String echo(String input)
{
return input;
}
@WebMethod
public String Update(
@WebParam (name="param1") String param1)
{
return param1;
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052920#4052920
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052920
18Â years, 10Â months
[JBoss Seam] - Re: My list of questions: Seam validation, transactions and
by beligum
I tried to extract the functionality from my app and created a simple example out of it, just like Peter suggested.
Seems like all is well there. Validation occurs, and transaction rollback happens when an exception is thrown or the @Rollback is triggered.
Apparently, I'm doing something wrong elsewhere.
Gavin, I don't actually use Seam validation (yet), but JSF validation instead. Can this introduce any problems? It seemed to work fine in my simple app, so I don't think that's my cause of error. But then, I'm wrong about many things, apparently ;-)
Thanks for the quick reactions, I'll try to dig a bit deeper to find my bug. The pain is that, sometimes, the value is changes in the DB, but not always, which makes it very hard to determine the cause of error.
By the way: I'm causing the rollback artificially, just to test what will happen when something goes wrong while the update() method in invoked.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052918#4052918
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052918
18Â years, 10Â months
[JBoss Seam] - Exceptions handling - strange behaviour of SeamFilter
by przemjaskier
After adding SeamFilter to my web.xml I'm getting error shown on stacktrace below. Problem appears in case of any application exception that appears after ajax4jsf's call that I'm performing with <a4j:commandLink/>.
| Jun 10, 2007 5:54:03 PM org.apache.catalina.core.StandardWrapperValve invoke
| SEVERE: Servlet.service() for servlet Faces Servlet threw exception
| java.lang.IllegalArgumentException: Stack must not be null
| at org.jboss.seam.core.ConversationEntry.<init>(ConversationEntry.java:40)
| at org.jboss.seam.core.ConversationEntries.createConversationEntry(ConversationEntries.java:50)
| at org.jboss.seam.core.Manager.createConversationEntry(Manager.java:685)
| at org.jboss.seam.core.Manager.beforeRedirect(Manager.java:834)
| at org.jboss.seam.core.Manager.beforeRedirect(Manager.java:852)
| at org.jboss.seam.core.Manager.appendConversationIdFromRedirectFilter(Manager.java:1104)
| at org.jboss.seam.web.RedirectFilter$1.sendRedirect(RedirectFilter.java:66)
| at com.sun.faces.context.ExternalContextImpl.redirect(ExternalContextImpl.java:419)
| at org.ajax4jsf.framework.ajax.AjaxViewHandler.restoreView(AjaxViewHandler.java:180)
| at com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:310)
| at org.ajax4jsf.framework.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:116)
| at org.ajax4jsf.framework.ajax.AjaxViewHandler.restoreView(AjaxViewHandler.java:150)
| at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:141)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
| at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:264)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:60)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:55)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:47)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:55)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:81)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:55)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:126)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:248)
| at org.jboss.seam.web.AbstractAjax4jsfFilter.doFilter(AbstractAjax4jsfFilter.java:35)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:55)
| at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:126)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at net.sf.ehcache.constructs.web.filter.GzipFilter.doFilter(GzipFilter.java:75)
| at net.sf.ehcache.constructs.web.filter.Filter.doFilter(Filter.java:92)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| at java.lang.Thread.run(Thread.java:619)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052914#4052914
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052914
18Â years, 10Â months