[JBoss Seam] - problems with ms sql
by max522over
can some one tell me how to do this. I'm trying to bulk load into Ms Sql 2000 and I need to execute this sql statement
| Query setIdentity = entityManager.createNativeQuery("SET IDENTITY_INSERT AssignmentType ON");
| setIdentity.executeUpdate();
|
| 16:59:31,500 WARN [TxConnectionManager] Prepare called on a local tx. Use of local transactions on a jta transaction with more than one branch may result in inconsistent data in some cases of failure.
| 16:59:35,718 ERROR [STDERR] regionBuilder is created.
| 16:59:35,718 ERROR [STDERR] Processing an RegionBuilder conversion now...about to execite QUERY Please wait.
| 16:59:35,734 ERROR [STDERR] java.lang.UnsupportedOperationException: Update queries only supported through HQL
| 16:59:35,734 ERROR [STDERR] at org.hibernate.impl.AbstractQueryImpl.executeUpdate(AbstractQueryImpl.java:760)
| 16:59:35,734 ERROR [STDERR] at org.hibernate.ejb.QueryImpl.executeUpdate(QueryImpl.java:43)
| 16:59:35,734 ERROR [STDERR] at com.mfa.healthtrack.dbconv.controller.RegionBuilderImpl.convertRegion(RegionBuilderImpl.java:95)
| 16:59:35,734 ERROR [STDERR] at com.mfa.healthtrack.dbconv.controller.RegionBuilderImpl$$EnhancerByCGLIB$$73eeecb2.CGLIB$convertRegion$5()
| 16:59:35,734 ERROR [STDERR] at com.mfa.healthtrack.dbconv.controller.RegionBuilderImpl$$EnhancerByCGLIB$$73eeecb2$$FastClassByCGLIB$$83b49971.invoke()
| 16:59:35,734 ERROR [STDERR] at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:167)
| 16:59:35,734 ERROR [STDERR] at org.jboss.seam.interceptors.JavaBeanInterceptor$1.proceed(JavaBeanInterceptor.java:80)
| 16:59:35,734 ERROR [STDERR] at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
| 16:59:35,734 ERROR [STDERR] at org.jboss.seam.interceptors.ValidationInterceptor.validateTargetComponent(ValidationInterceptor.java:64)
| 16:59:35,734 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor115.invoke(Unknown Source)
| 16:59:35,734 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973428#3973428
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973428
19 years, 7 months
[JBoss Seam] - Seam component not reachable for valueChangeListener method
by c_eric_ray
I have a named Seam component that implements the following method.
| @Name("packages")
| @Stateful
| @Scope(ScopeType.SESSION)
| public class PackageAction {
| ...
| public void selectAccount(ValueChangeEvent event) {
| log.info("[#0]: event #1", user.getUsername(), event.getNewValue());
| AccountEntity ae = (AccountEntity)event.getNewValue();
| workPackage.setAccount(ae);
| }
| ...
| }
|
My web interface code looks like this...
| <h:form id="controlCenter">
| <h:selectOneMenu id="accountMenu"
| value="#{workPackage.account}"
| valueChangeListener="#{packages.selectAccount}"
| onchange="submit()"
| rendered="#{!hasRemittance}"
| style="font-size:80%" >
| <f:selectItems value="#{packages.accountMap}" />
| </h:selectOneMenu>
| </h:form>
|
The packages.selectAccount method is never invoked. Breakpoints aren't hit and log statements never occur. It's as if the method doesn't not even exit.
What's wierd, is that I can change the signature of the method by removing the ValueChangeEvent parameer and the application never misses beat. Nothing complains that the selectAccounts method doesn't take a ValueChangeEvent object. At a minimum I thought I would get a runtime exception with something like NoSuchMethod or the like.
Any help is appreciated? I'll keep digging. Might try attaching the debugger to the seam code and see what's taking place. Could this be an issue with JSF Lifecycle and not seam?
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973420#3973420
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973420
19 years, 7 months