[Installation, Configuration & Deployment] - Does EntityReentranceInterceptor actually provide locking pr
by bobsmith
JBoss 3.2.6
Database is MySQL 4.1.14
I have an Entity Bean that I know is not reentrant. I removed the EntityReentranceInterceptor from it's container's interceptor stack and now I am sometimes getting error messages when accessing the bean. The error I get is different each time. A selection are:
java.sql.SQLException: You have an error in your SQL syntax
javax.ejb.EJBException: Could not load field value: longDescription
java.sql.SQLException: Column Index out of range, 2 > 1
The Entity Bean is accessed from a Stateless Session Bean. To reproduce the error more frequently than I am seeing in my application, I created a little client app that creates 10 threads and kicks them off. Each retrieves the same entity from the server. I can quickly reproduce the error this way. The interceptor that the error comes out of is usually EntitySynchronizationInterceptor, but it sometimes makes it past the final interceptor (JDBCRelationInterceptor) but then falls over processing the result set.
Is the EntityReentranceInterceptor doing more than its name would suggest, and actually providing some fundamental locking that cannot be removed from the interceptor stack?
Thanks,
Bob
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022308#4022308
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022308
19Â years, 1Â month
[JBoss Seam] - Re: s:fileUpload whit portal
by ppassantini
Hi shane,
I have just tried, but unfortunately it doesn't work!
Could you please help me?
this is my configutaration:
JSP
<h:form id="myForm" enctype="multipart/form-data" >
<s:fileUpload accept="" fileName="#{file.filename}" data="#{file.data}" />
<h:commandButton value="Upload" action="#{fileManager.upload}"/>
</h:form>
BEAN
"file" is the bean that represents the file uploaded
"fileManager" is the bean that use the file uploaded
WEB.XML
...
<filter-name>Seam Filter</filter-name>
<filter-class>org.jboss.seam.servlet.SeamMultipartFilter</filter-class>
<filter-mapping>
<filter-name>Seam Filter</filter-name>
<url-pattern>*.seam</url-pattern>
</filter-mapping>
...
It seams that when the enctype of h:form is ="multipart/form-data", the method upload of fileManager is not called; if I don't set the enctype of h:form the method upload is called, but the bean file is null.
Thanks for you help!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022299#4022299
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022299
19Â years, 1Â month