[JBoss-user] [JBoss jBPM] - ELParser not working for me
Here is what I'm trying to do: I have my own actionhandler. It recieves key-value pairs into a HashMap: Here is the configuration; | action name=SetUpSearchFolder class=com.emi.framework.client.workflow.MyActionAssignmentHandler |requestParams | entry | keysomeKey1/key | valuetrue/value | /entry | entry | keysomeKey2/key | value#{taskInstance.variables['PathToDocument']}/value | /entry |/requestParams | /action | As you can see I want to put a runtime variable from the current taskInstance on the executionContext into this Map. I realize that Jbpm does not support this variable expression passing so I've written the code into the actionHandler. So in the actionHandler there is code that takes this expression value: #{taskInstance.variables['PathToDocument']} and passes it to | JbpmExpressionEvaluator.evaluate(value, ctx); | Now I expected that this would work, however the ELParser itself returns null even before I get into the JbpmVariableResolver. Can anyone think what is wrong with this expression, and why it is not being parsed correctly? I have also tried othe formats: taskInstance.variables.PathToDocument taskInstance.variables[PathToDocument] taskInstance.getVariable(PathToDocument) - which should work i know any ideas? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3955427#3955427 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3955427 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: ELParser not working for me
As I said I called the parser from the actionhandler delegate. I got it to work too. Had a simple spelling mistake. The proper format was | | action name=SetUpSearchFolder class=com.emi.framework.client.workflow.MyActionAssignmentHandler |requestParams | entry | keysomeKey1/key | valuetrue/value | /entry | entry | keysomeKey2/key | value#{taskInstance.variables[PathToDocument]}/value | /entry |/requestParams | /action | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3955443#3955443 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3955443 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - problem in FieldInstansiator
My project is using Java5 and we're trying to use JBpm with it. I created a Delegation to Actionhandler that accepts a HashMap as a field. The definition had; | requestParams |entitykeysomekey/keyvaluesomeValue/value/entity | /requestParams | This caused an exception. After looking into the code I found that in getValue, lines 134 to 141 else if (type.isAssignableFrom(List.class)) { | value = getCollection(propertyElement, new ArrayList()); | } else if (type.isAssignableFrom(Set.class)) { | value = getCollection(propertyElement, new HashSet()); | } else if (type.isAssignableFrom(Collection.class)) { | value = getCollection(propertyElement, new ArrayList()); | } else if (type.isAssignableFrom(Map.class)) { | value = getMap(propertyElement, new HashMap()); In java 5 there is a problem with such check and thus this code should be: | else if (List.class.isAssignableFrom(type)) { | value = getCollection(propertyElement, new ArrayList()); | } else if (Set.class.isAssignableFrom(type)) { | value = getCollection(propertyElement, new HashSet()); | } else if (Collection.class.isAssignableFrom(type)) { | value = getCollection(propertyElement, new ArrayList()); | } else if (Map.class.isAssignableFrom(type)) { | value = getMap(propertyElement, new HashMap()); | After changing the code it worked for me View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3955352#3955352 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3955352 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Is this a Java Or JBoss bug?
On EJbPostCreate I get an IndexOutOfBoundsexception: Index: 0, Size: 0 The following is the complete EjbPostCreate method code that fails: public void ejbPostCreate(StatusLocal statusLocal, Long userId) | throws javax.ejb.CreateException, ApplicationException { | Iterator relations; | relations = statusLocal.getReasons().iterator(); | while (relations.hasNext()) { | ReasonLocal reasonLocal = (ReasonLocal) relations.next(); | ReasonLocalHome reasonLocalHome = (ReasonLocalHome) reasonLocal.getEJBLocalHome(); | this.getReasons().add(reasonLocalHome.create(reasonLocal, userId)); | } | | } The dump points to the second line: relations = statusLocal.getReasons().iterator(); here is a part of the Dump: java.lang.IndexOutOfBoundsException: Index:0, Size:0 | at java.util.ArrayList.RangeCheck(ArrayList.java:546) | at java.util.ArrayList.get(ArrayList.java:321) | at com.emi.framework.bo.model.StatusBean.ejbPostCreate(StatusBean.java:120) | ... | This code was written a long time ago with JDK 1.4.2 and is now running under JDK1.5.0_06 on Solaris. Thnx View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3947172#3947172 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3947172 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Transaction not Active excetion
Problem was in my own code. I had an exception on the transaction that was not rolledback so the connection had an uncleaned transaction on it. Since my other select was running on the same thread it got the same uncleaned connection with the transaction. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3947090#3947090 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3947090 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Datasource behavior in transaction
I configured an XA Datasource working with oracle. My Application is mostly CMP 2.0 but some selects are done directly to the DB on non entity bean tables. When in transaction thal works with entity beans, if I do a select directly to the DB by doing getConnection on the Datasource will I get the same connection that JBoss is using to persist the CMPs or a different one.? If it is a different connection from the same datasource would commit and rollback work on both connections? If the datasource were a local non XA datasource would the behavior be different? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3947027#3947027 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3947027 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Transaction not Active excetion
I have a weird situation. I get this nestedSqlException: Transaction is not active when I do a select. The weird thing is that the select is done when struts calls on a form to get some value and all I do is open a connection by doing getConnection on my datasource and then I do the select using JDBC. There shouldn't be a Transaction here at all. Any ideas? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3947029#3947029 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3947029 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - Help with kerberos, Active Directory LoginModules
I'm using the jcifs spnego solution (I got the info from the WIKI http://wiki.jboss.org/wiki/Wiki.jsp?page=NegotiateKerberos, and http://lists.samba.org/archive/jcifs/2004-June/003497.html on the jboss site). I configured JBoss in the following way: login-config.xml: application-policy name=SPNEGO | authentication | login-module code=com.sun.security.auth.module.Krb5LoginModule flag=required |module-option name=useTicketCachetrue/module-option |module-option name=doNotPrompttrue/module-option |module-option name=debugtrue/module-option | /login-module | /authentication | /application-policy I have a small war and within it the following: web.xml ?xml version=1.0 encoding=ISO-8859-1? | !DOCTYPE web-app | PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN | http://java.sun.com/dtd/web-app_2_3.dtd; | web-app | filter | filter-nameauth/filter-name | filter-classjcifs.http.AuthenticationFilter/filter-class | | init-param | param-namejava.security.auth.login.config/param-name | param-value/WEB-INF/login.conf/param-value | /init-param | | !-- | init-param | param-namejavax.security.auth.useSubjectCredsOnly/param-name | param-valuefalse/param-value | /init-param | -- | init-param | param-namejcifs.spnego.servicePrincipal/param-name | param-valueHTTP/[EMAIL PROTECTED]/param-value | /init-param | init-param | param-namejcifs.spnego.servicePassword/param-name | param-valueQwer4321/param-value | /init-param | init-param | param-namesun.security.krb5.debug/param-name | param-valuetrue/param-value | /init-param | !-- | init-param | param-namejava.security.krb5.conf/param-name | param-value/WEB-INF/krb5.conf/param-value | /init-param | -- | init-param | param-namejava.security.krb5.realm/param-name | param-valueEMI.COM/param-value | /init-param | init-param | param-namejava.security.krb5.kdc/param-name | param-valuedc02.emi.com/param-value | /init-param | init-param | param-namejcifs.smb.client.domain/param-name | param-valueEMI/param-value | /init-param | init-param | param-namejcifs.http.enableNegotiate/param-name | param-valuetrue/param-value | /init-param | init-param | param-namejcifs.http.basicRealm/param-name | param-valueEMI.COM/param-value | /init-param | init-param | param-namejcifs.http.domainController/param-name | param-valueDC02.emi.com/param-value | /init-param | /filter | filter-mapping | filter-nameauth/filter-name | url-pattern/*/url-pattern | /filter-mapping | /web-app and Jboss-web.xml ?xml version='1.0' encoding='UTF-8' ? | | !DOCTYPE jboss-web | PUBLIC -//JBoss//DTD Web Application 2.3V2//EN | http://www.jboss.org/j2ee/dtd/jboss-web_3_2.dtd; | jboss-web | security-domainjava:/jaas/SPNEGO/security-domain | /jboss-web when I try to reach the index.jsp in the war I can see in the trace that the authentication filter is activated, I can see that I get the Token and login is invoked on the loginContext. However I get the following exception 18:52:58,757 TRACE [WebAppClassLoader] filter name=org.jboss.security.auth.spi.UsersRolesLoginModule, exclude=false | 18:52:58,797 ERROR [UsersRolesLoginModule] Failed to load users/passwords/role files | java.io.IOException: No properties file: users.properties or defaults: defaultUsers.properties found | at org.jboss.security.auth.spi.Util.loadProperties(Util.java:268) | at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRolesLoginModule.java:171) | at org.jboss.security.auth.spi.UsersRolesLoginModule.createUsers(UsersRolesLoginModule.java:185) | at org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRolesLoginModule.java:112) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at javax.security.auth.login.LoginContext.invoke(LoginContext.java:756) | at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186) | at
[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - What should I expect when roll backing user transaction
I obtained a user transaction. I than go into a loop where at the begining of the iteration I begin the trasnaction and before going to the next iteration I commit. If one of the iteration fails (for whatever reason), the loop is broken and the transaction is rolled back. I would expect that if this was not the first iteration, the iterations before would have been committed and the failed one rolled back. Isn't that how this should work? because looking at my logs it seems that all the iterations were rolled back. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3929594#3929594 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3929594 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: What should I expect when roll backing user transaction
MY MISTAKE It worked as it should have worked!!! Committed the good rolledback the bad View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3929597#3929597 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3929597 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - got an unexpected EJBException during finder
On out production site we received the following exception: javax.ejb.EJBException: Update failed. Expected one affected row: rowsAffected=0, id=10665466 | at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreEntityCommand.execute(JDBCStoreEntityCommand.java:155) | at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.storeEntity(JDBCStoreManager.java:651) | at org.jboss.ejb.plugins.CMPPersistenceManager.storeEntity(CMPPersistenceManager.java:369) | at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.storeEntity(CachedConnectionInterceptor.java:394) | at org.jboss.ejb.EntityContainer.storeEntity(EntityContainer.java:689) | at org.jboss.ejb.GlobalTxEntityMap$2.synchronize(GlobalTxEntityMap.java:134) | at org.jboss.ejb.GlobalTxEntityMap$GlobalTxSynchronization.synchronize(GlobalTxEntityMap.java:253) | at org.jboss.ejb.GlobalTxEntityMap.synchronizeEntities(GlobalTxEntityMap.java:166) | at org.jboss.ejb.EntityContainer.synchronizeEntitiesWithinTransaction(EntityContainer.java:119) | at org.jboss.ejb.EntityContainer.findSingleObject(EntityContainer.java:1036) | at org.jboss.ejb.EntityContainer.findLocal(EntityContainer.java:623) | at sun.reflect.GeneratedMethodAccessor324.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:324) | at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1066) | at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:88) | at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:204) | at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:215) | at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:88) | at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:97) | at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:61) | at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:28) | at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:88) | at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:317) | at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:130) | at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:85) | at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:121) | at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93) | at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:478) | at org.jboss.ejb.Container.invoke(Container.java:729) | at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:347) | at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110) | at $Proxy131.findCurrentReferenceMonth(Unknown Source) | at com.emi.amit.delinquencies.BalanceReportInput.getCurrentReferenceDate(BalanceReportInput.java:1092) | at com.emi.amit.delinquencies.BalanceReportInput.doProcess(BalanceReportInput.java:290) | at com.emi.amit.delinquencies.BalanceReportInput.process(BalanceReportInput.java:230) | at com.emi.amit.main.model.EmiActivitiesSessionBean.runBalances(EmiActivitiesSessionBean.java:690) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:324) | at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683) | at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186) | at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72) | at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84) | at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:317) | at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:150) | at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:111) | at
[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - does jboss 3.2.7 support nested user transactions?
I have a situation where I need to control rollback between a database commit and a file system file writing. To do that I used a UserTransaction and managed the file writing and deleting accordinly on my own. 1. If there is a better solution please tell 2. I now have a slighlty addon situation where I also need to wrap this transaction in another transaction. What I need is for the outer transaction to fail if the inner (file system database) transaction fails. Nested transactions can do the trick! is that supported? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3917445#3917445 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3917445 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: can jboss generate a different primarykey per bean using
It is my understanding that I need a diferent entity-command for each class I will have a difference sequence so my solution was: * @jboss.entity-command name=folder-sequence class= | * @jboss.entity-command-attribute name=sequence value=FOLDER_SEQ which created the following under folder entity in my jbosscmp-jdbc.xml: entity-command name=folder-sequence class=org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCOracleCreateCommand | attribute name=sequenceFOLDER_SEQ/attribute | /entity-command I think this is the right way to do it don't you? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3846588#3846588 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3846588 --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - URJENT-ClassCastException on home
I have a wierd situation. I have a class that when it initializes it finds a home object for some local bean. After first deployment it works fine without any problem, however if I hot deploy, it than throws a classCastException on the home object. The program flow is that a timer checks a flag, which if on, make it instanciate this class, on it's initialization I do this: ctx = new InitialContext(); | folderHome = (FolderLocalHome)(ctx.lookup(FolderLocalHome.JNDI_NAME)); | | I get the exception on the second line. If I stop the server and restart everything works fine. Any ideas why this could happen? JBOSS-3.2.2 JDK-1.4.2 Thanks View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3846589#3846589 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3846589 --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - can jboss generate a different primarykey per bean using ora
I have my system configured with an entity - command using oracle secuemce to generate the Primary-Key for my cmp beans. The way it is now is one sequence for all beans. I wan't to use a different sequence for each bean, can I configure Jboss to do so? Thanks Shai View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3846260#3846260 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3846260 --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - EJB Passivation warning
is it normal to get the following warning with Commit Option D? WARN [AbstractInstanceCache] Unable to passivate due to ctx lock, id=26639 When I change back to B it doesn't show up. I understand that Option D keeps the objects in cache until a certain T/O reaches, so is this warning just to tell it keeps them in cache? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3843176#3843176 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3843176 --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721alloc_id=10040op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: unexplained lock in 3.2.4
The only unsupported I had were the getId() which were a mistake instead of using getPrimaryKey(). After fixing this in my code, I managed to pass this deadlock. I still get dead locks in other places, but I now no what to investigate.One thing is bothering me, this code runs without this problem both on 3.2.3 and 3.2.2, is it a bug in those versions that allows it to run, or a bug in 3.2.4? Thanks for all your help View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3839355#3839355 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3839355 --- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: unexplained lock in 3.2.4
At the moment I have not gone through my beans and decided which will be read only,thus there are no read-only in jboss.xml, however I plan to use it when needed. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3839196#3839196 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3839196 --- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: unexplained lock in 3.2.4
OK. I've changed the getID to getPrimaryKey(). How do you determine the tranaction state, by seeing the finaly in the log? I ask this because I see that it uses the same transaction ID (15) on all calls? If what you say on the transaction is correct it raises another question:my code opens up the transaction in a remote session bean which than makesa local call to another internal session bean (which functions as the specific controller for the action we preform,kind of a front controller pattern), which does the work on the entity bean,first calling the finder, than coping the info from the beanLocal to our Transport Object that is returned to the client servlet.Why is it that after the finder the transaction closes? since it should already be running inside a trasnaction. I again want to thank you for your help. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3839080#3839080 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3839080 --- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: unexplained lock in 3.2.4
I can post the deployment descriptors no problem, what code would you like to see, it's a lot of code there is a bean factory that automatically copies from the bean to the TO using reflection, and there is the login trasaction logic. I ran it against 3.2.3 the same exact ear and it works no problem, it also finds the bean in context and does much less selects to the DB. They are both configured with defaults for this test, and only UserBean has been configured to per instance cache. It is correct that only one thread was running, I was working as single user, performing logon. there were no other threads. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3838933#3838933 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3838933 --- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Two questions concerning what I see in my JBoss log.
1. a general question, I see throughout the log the following line, what does it mean? 2004-06-15 10:08:32,491 21130 DEBUG [org.jboss.mx.modelmbean.ModelMBeanInvoker] (main:) No persistence-manager descriptor found, null persistence will be used 2. I have an application with about 30 entity beans cmp 2.0. For some reason one of this beans has the following log entry repeated throughout the log many many times where as all the others have this entry only once: 2004-06-15 10:09:36,032 84671 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.MissingInformation] (main:jboss.j2ee:jndiName=MissingInformationLocal,service=EJB EntityContainer) Initializing CMP plugin for MissingInformation | 2004-06-15 10:09:36,032 84671 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (main:jboss.j2ee:jndiName=MissingInformationLocal,service=EJB EntityContainer) supplying ManagedConnection from pool: [EMAIL PROTECTED] [EMAIL PROTECTED] handles=0 lastUse=1087286975902 permit=false trackByTx=false [EMAIL PROTECTED] [EMAIL PROTECTED] | 2004-06-15 10:09:36,032 84671 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (main:jboss.j2ee:jndiName=MissingInformationLocal,service=EJB EntityContainer) Getting connection from pool [EMAIL PROTECTED] [EMAIL PROTECTED] handles=0 lastUse=1087286975902 permit=true trackByTx=false [EMAIL PROTECTED] [EMAIL PROTECTED] [InUse/Available/Max]: [1/19/20] | 2004-06-15 10:09:36,032 84671 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (main:jboss.j2ee:jndiName=MissingInformationLocal,service=EJB EntityContainer) putting ManagedConnection back into pool kill=false [EMAIL PROTECTED] [EMAIL PROTECTED] handles=0 lastUse=1087286975902 permit=true trackByTx=false [EMAIL PROTECTED] [EMAIL PROTECTED] | 2004-06-15 10:09:36,032 84671 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (main:jboss.j2ee:jndiName=MissingInformationLocal,service=EJB EntityContainer) Returning connection to pool [EMAIL PROTECTED] [EMAIL PROTECTED] handles=0 lastUse=1087286976032 permit=false trackByTx=false [EMAIL PROTECTED] [EMAIL PROTECTED] [InUse/Available/Max]: [0/20/20] | 2004-06-15 10:09:36,052 84691 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (main:jboss.j2ee:jndiName=MissingInformationLocal,service=EJB EntityContainer) supplying ManagedConnection from pool: [EMAIL PROTECTED] [EMAIL PROTECTED] handles=0 lastUse=1087286976032 permit=false trackByTx=false [EMAIL PROTECTED] [EMAIL PROTECTED] | 2004-06-15 10:09:36,052 84691 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (main:jboss.j2ee:jndiName=MissingInformationLocal,service=EJB EntityContainer) Getting connection from pool [EMAIL PROTECTED] [EMAIL PROTECTED] handles=0 lastUse=1087286976032 permit=true trackByTx=false [EMAIL PROTECTED] [EMAIL PROTECTED] [InUse/Available/Max]: [1/19/20] | 2004-06-15 10:09:36,052 84691 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (main:jboss.j2ee:jndiName=MissingInformationLocal,service=EJB EntityContainer) putting ManagedConnection back into pool kill=false [EMAIL PROTECTED] [EMAIL PROTECTED] handles=0 lastUse=1087286976032 permit=true trackByTx=false [EMAIL PROTECTED] [EMAIL PROTECTED] | 2004-06-15 10:09:36,052 84691 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (main:jboss.j2ee:jndiName=MissingInformationLocal,service=EJB EntityContainer) Returning connection to pool [EMAIL PROTECTED] [EMAIL PROTECTED] handles=0 lastUse=1087286976052 permit=false trackByTx=false [EMAIL PROTECTED] [EMAIL PROTECTED] [InUse/Available/Max]: [0/20/20] | 2004-06-15 10:09:36,052 84691 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (main:jboss.j2ee:jndiName=MissingInformationLocal,service=EJB EntityContainer) supplying ManagedConnection from pool: [EMAIL PROTECTED] [EMAIL PROTECTED] handles=0 lastUse=1087286976052 permit=false trackByTx=false [EMAIL PROTECTED] [EMAIL PROTECTED] | 2004-06-15 10:09:36,052 84691 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (main:jboss.j2ee:jndiName=MissingInformationLocal,service=EJB EntityContainer) Getting connection from pool [EMAIL PROTECTED] [EMAIL PROTECTED] handles=0 lastUse=1087286976052 permit=true trackByTx=false [EMAIL PROTECTED] [EMAIL PROTECTED] [InUse/Available/Max]: [1/19/20] | 2004-06-15 10:09:36,062 84701 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (main:jboss.j2ee:jndiName=MissingInformationLocal,service=EJB EntityContainer) putting ManagedConnection back into pool kill=false [EMAIL PROTECTED] [EMAIL PROTECTED] handles=0 lastUse=1087286976052 permit=true trackByTx=false [EMAIL PROTECTED] [EMAIL PROTECTED] | 2004-06-15 10:09:36,062 84701 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool]
[JBoss-user] [Persistence CMP/JBoss] - Re: unexplained lock in 3.2.4
I used Instance Per Transaction on the beans involved in the transaction. I still get this dead lock, however a new message appears: 2004-06-15 11:17:19,195 222991 WARN [org.jboss.ejb.plugins.PerTxEntityInstanceCache] (http-0.0.0.0-8080-Processor20:) Unable to passivate due to ctx lock, id=37 how can I get a context lock? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3838747#3838747 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3838747 --- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: unexplained lock in 3.2.4
I have turned on the instance per transaction on userLocal, I have also turned on the trace: Here is a partial log. 2004-06-15 15:04:58,566 204304 INFO [STDOUT] (http-0.0.0.0-8080-Processor25:) 15/06/2004 15:04:58 com.matrix.framework.ip.controller.UserController getSingleNotByPrimaryKey | FINEST: ===User Id = 'user' Password = '1' === | 2004-06-15 15:04:58,566 204304 TRACE [org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor] (http-0.0.0.0-8080-Processor25:) invokerBInding is null in ProxyFactoryFinder | 2004-06-15 15:04:58,586 204324 TRACE [org.jboss.ejb.plugins.LogInterceptor] (http-0.0.0.0-8080-Processor25:) Start method=findByUserNameAndPassword | 2004-06-15 15:04:58,586 204324 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT] (http-0.0.0.0-8080-Processor25:) Current transaction in MI is TransactionImpl:XidImpl [FormatId=257, GlobalId=norman//15, BranchQual=] | 2004-06-15 15:04:58,586 204324 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT] (http-0.0.0.0-8080-Processor25:) TX_REQUIRED for findByUserNameAndPassword timeout=0 | 2004-06-15 15:04:58,586 204324 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT] (http-0.0.0.0-8080-Processor25:) Thread came in with tx TransactionImpl:XidImpl [FormatId=257, GlobalId=norman//15, BranchQual=] | 2004-06-15 15:04:58,586 204324 TRACE [org.jboss.ejb.plugins.EntityInstancePool] (http-0.0.0.0-8080-Processor25:) Get instance [EMAIL PROTECTED] com.matrix.framework.ip.model.UserBean | 2004-06-15 15:04:58,606 204344 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.User#findByUserNameAndPassword] (http-0.0.0.0-8080-Processor25:) Executing SQL: SELECT DISTINCT t0_a.ID, t0_a.USER_NAME, t0_a.START_DATE, t0_a.END_DATE, t0_a.CREATE_DATE, t0_a.UPDATE_DATE, t0_a.TIME_STAMP, t0_a.CREATOR_USER_ID, t0_a.UPDATOR_USER_ID, t0_a.VERSION, t0_a.IS_OBSOLETE, t0_a.ORGANIZATION_ID, t0_a.PERSON_ID FROM EMI_USER t0_a WHERE (t0_a.USER_NAME = ? AND t0_a.USER_PASSWORD = ?) | 2004-06-15 15:04:58,606 204344 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (http-0.0.0.0-8080-Processor25:) supplying ManagedConnection from pool: [EMAIL PROTECTED] [EMAIL PROTECTED] handles=0 lastUse=1087304638189 permit=false trackByTx=false [EMAIL PROTECTED] [EMAIL PROTECTED] | 2004-06-15 15:04:58,606 204344 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (http-0.0.0.0-8080-Processor25:) Getting connection from pool [EMAIL PROTECTED] [EMAIL PROTECTED] handles=0 lastUse=1087304638189 permit=true trackByTx=true [EMAIL PROTECTED] [EMAIL PROTECTED] [InUse/Available/Max]: [1/19/20] | 2004-06-15 15:04:58,656 204394 TRACE [org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.User#findByUserNameAndPassword] (http-0.0.0.0-8080-Processor25:) Set parameter: index=1, jdbcType=VARCHAR, value=user | 2004-06-15 15:04:58,656 204394 TRACE [org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.User#findByUserNameAndPassword] (http-0.0.0.0-8080-Processor25:) Set parameter: index=2, jdbcType=VARCHAR, value=1 | 2004-06-15 15:04:58,867 204605 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.User] (http-0.0.0.0-8080-Processor25:) Add preload data: entity=User pk=22 field=userName | 2004-06-15 15:04:58,877 204615 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.User] (http-0.0.0.0-8080-Processor25:) Add preload data: entity=User pk=22 field=startDate | 2004-06-15 15:04:58,877 204615 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.User] (http-0.0.0.0-8080-Processor25:) Add preload data: entity=User pk=22 field=endDate | 2004-06-15 15:04:58,877 204615 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.User] (http-0.0.0.0-8080-Processor25:) Add preload data: entity=User pk=22 field=createDate | 2004-06-15 15:04:58,877 204615 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.User] (http-0.0.0.0-8080-Processor25:) Add preload data: entity=User pk=22 field=updateDate | 2004-06-15 15:04:58,877 204615 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.User] (http-0.0.0.0-8080-Processor25:) Add preload data: entity=User pk=22 field=timeStamp | 2004-06-15 15:04:58,877 204615 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.User] (http-0.0.0.0-8080-Processor25:) Add preload data: entity=User pk=22 field=creatorUserId | 2004-06-15 15:04:58,877 204615 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.User] (http-0.0.0.0-8080-Processor25:) Add preload data: entity=User pk=22 field=updatorUserId | 2004-06-15 15:04:58,877 204615 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.User] (http-0.0.0.0-8080-Processor25:) Add preload data: entity=User pk=22 field=version | 2004-06-15 15:04:58,877 204615 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.User] (http-0.0.0.0-8080-Processor25:) Add preload data: entity=User pk=22 field=isObsolete | 2004-06-15 15:04:58,877 204615 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.User] (http-0.0.0.0-8080-Processor25:) Add
[JBoss-user] [Persistence CMP/JBoss] - Re: unexplained lock in 3.2.4
Here is the class header definition for xDoclet I'm using: /** | * @ejb.bean name=User | * view-type = local | * jndi-name=User | * type=CMP | * primkey-field=id | * schema=User | * cmp-version=2.x | * | * @ejb.transaction type = Required | * | * @ejb.interface local-extends = com.matrix.framework.infrastructure.model.BeanLocalInterface | * @ejb.home local-extends = com.matrix.framework.infrastructure.model.BeanLocalHomeInterface | * | * @ejb.persistence | * table-name=EMI_USER | * | * @ejb.finder | *query=SELECT OBJECT(a) FROM User as a | *signature=java.util.Collection findAll() | * | * @ejb.finder | * query = SELECT DISTINCT OBJECT(a) FROM User AS a WHERE a.userName=?1 AND a.password=?2 | * signature=com.matrix.framework.ip.UserLocal findByUserNameAndPassword(java.lang.String aUserName, java.lang.String aPassword) | * | * @ejb.finder | * query = SELECT DISTINCT OBJECT(a) FROM User AS a WHERE a.userName=?1 | * signature = com.matrix.framework.ip.UserLocal findByUserName(java.lang.String aUserName) | * | * @ejb.finder | * query=SELECT DISTINCT OBJECT(a) FROM User AS a WHERE a.person.passportNumber=?1 AND a.person.passportCountryVlId=?2 | * signature = com.matrix.framework.ip.UserLocal findByPassport(java.lang.String passportNumber, java.lang.String passportCountryVlId) | * | * @ejb.finder | * query=SELECT DISTINCT OBJECT(a) FROM User as a WHERE a.person.identificationNumber=?1 | * signature = com.matrix.framework.ip.UserLocal findByIdentificationNumber(java.lang.String identificationNumber) | * | * @ejb.finder | * query = SELECT DISTINCT OBJECT(a) FROM User as a WHERE a.person.firstName = ?1 AND a.person.lastName = ?2 | * signature = java.util.Collection findByUserFullName(java.lang.String userFirstName, java.lang.String userLastName) | * | * @ejb.finder | *query=SELECT DISTINCT OBJECT(a) FROM User AS a, IN(a.roles) AS role WHERE a.organization.id=?1 AND role.roleVlId=?2 | *signature=java.util.Collection findAllByOrganizationIdAndRoleId(java.lang.Long organizationId, java.lang.String roleId) | * | * @ejb.finder | *query=SELECT DISTINCT OBJECT(a) FROM User AS a, IN(a.roles) AS role WHERE role.roleVlId=?1 | *signature=java.util.Collection findAllByRoleId(java.lang.String roleId) | * @ejb.finder | * query=SELECT DISTINCT OBJECT(a) FROM User AS a, IN(a.roles) AS role WHERE a.person.passportNumber=?1 AND a.person.passportCountryVlId=?2 AND role.roleVlId=?3 | * signature = com.matrix.framework.ip.UserLocal findByPassportRole(java.lang.String passportNumber, java.lang.String passportCountryVlId, java.lang.String roleId) | * | * @ejb.finder | * query=SELECT DISTINCT OBJECT(a) FROM User as a, IN(a.roles) AS role WHERE a.person.identificationNumber=?1 AND role.roleVlId=?2 | * signature = com.matrix.framework.ip.UserLocal findByIdentificationNumberRole(java.lang.String identificationNumber, java.lang.String roleId) | * | * @ejb.finder | * query = SELECT DISTINCT OBJECT(a) FROM User as a, IN(a.roles) AS role WHERE a.person.firstName = ?1 AND a.person.lastName = ?2 AND role.roleVlId=?3 | * signature = java.util.Collection findByUserFullNameRole(java.lang.String userFirstName, java.lang.String userLastName, java.lang.String roleId) | * | * @jboss.container-configuration name = Instance Per Transaction CMP 2.x EntityBean | * @jboss.persistence | * datasource = java:/OracleDS | * datasource-mapping = Oracle9i | * table-name = EMI_USER | * | * @jboss.read-ahead strategy = on-find page-size = 4 eager-load-group = basic | * | * @jboss.load-group name=basic | * @jboss.load-group name=sig | * @jboss.load-group name=password | * @jboss.load-group name=relations | * @jboss.lazy-load-group name=sig | * @jboss.lazy-load-group name=password | * @jboss.lazy-load-group name=relations | **/ View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3838774#3838774 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3838774 --- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: unexplained lock in 3.2.4
How do I set it up for instance per transaction? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3838625#3838625 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3838625 --- This SF.Net email is sponsored by the new InstallShield X. From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: IllegalStateException Help!
Don't know if it helps but consider this explanation: When you call upon an entity with some kind of getCollection and receive a collection of locals of another bean you performed a transaction. If you have not opened a transaction outside this call context, say in a session bean, you performed this get in it's own transaction which ended when you finished the get. So now when you try to manipulate this collection it is already outside the transaction context. So, if you make your entity transaction requiered it's not enough, it only states that when you call upon the entity you use a transaction, a transaction is opened for each call separatly. If you don't want this behavior (and obviously you don't) your best bet is to open a transaction before you manipulate the entity bean and its relations, thus when operating within transaction context the container will not open a new one, and only close it after you finsihed everything you want to do. The easiest way to do this is to use a session bean facade. Open the transaction on the session bean which will do all the work on the entities and only when it's method is done it will close the transaction. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3838553#3838553 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3838553 --- This SF.Net email is sponsored by the new InstallShield X. From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: unexplained lock in 3.2.4
Since this code works perfectly with JBoss 3.2.3 I'm at a loss. What is your suggestion? what should I explore next. More over, I'm sure that this query did not reach the database since I log all driver selects and this query doesn't show. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3838558#3838558 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3838558 --- This SF.Net email is sponsored by the new InstallShield X. From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: unexplained lock in 3.2.4
Sorry, I stand corrected. I've recheked my self, after a short while the questioned select does show on the driver log, which means it was sent to the db. I'm left with the wonder what could casue the lock, and why does it only happen with 3.2.4 View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3838559#3838559 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3838559 --- This SF.Net email is sponsored by the new InstallShield X. From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: unexplained lock in 3.2.4
OK, some progress here. It seems that I'm experiencing some kind of bean lock. Here is the description of the cycle: I start a transaction calling a session bean which retireves a collection of taskbeans for a user. It uses a finder on taskhome looking for tasks where user.id = the userid passed. Each TaskBean has a many to one relationship with userbean (userbean is blind to it). The first TaskBean is returned with all of it's relationship information (it has the userbean and everything...)When the iteration does the getUser on the second TaskLocal, I see the slect on all fields of the TaskBean according to the ID, I see theresultset being returned. Now I eas supposed to see the select for the user, but I don't... see the following selects generated by JBoss: Starting from the first select stopping on the second:1087044981481|150|1|statement|SELECT PRIORITY, TASK_NAME, RE_ASSIGNABLE, RE_ASSIGNABLE_TO_VL_ID, CREATE_DATE, UPDATE_DATE, END_DATE, TIME_STAMP, STATUS_ID, EMI_USER_ID, FLOW_CONTEXT_ID FROM TASK WHERE (ID=?)|SELECT PRIORITY, TASK_NAME, RE_ASSIGNABLE, RE_ASSIGNABLE_TO_VL_ID, CREATE_DATE, UPDATE_DATE, END_DATE, TIME_STAMP, STATUS_ID, EMI_USER_ID, FLOW_CONTEXT_ID FROM TASK WHERE (ID='4') | 1087044981602|-1||resultset|SELECT PRIORITY, TASK_NAME, RE_ASSIGNABLE, RE_ASSIGNABLE_TO_VL_ID, CREATE_DATE, UPDATE_DATE, END_DATE, TIME_STAMP, STATUS_ID, EMI_USER_ID, FLOW_CONTEXT_ID FROM TASK WHERE (ID='4')|PRIORITY = 3, RE_ASSIGNABLE_TO_VL_ID = 1, TASK_NAME = t4 | 1087044981742|130|0|statement|SELECT ID, EMI_USER_ID FROM TASK WHERE (ID=?) OR (ID=?) OR (ID=?) OR (ID=?) OR (ID=?)|SELECT ID, EMI_USER_ID FROM TASK WHERE (ID='4') OR (ID='1') OR (ID='2') OR (ID='3') OR (ID='5') | 1087044981742|-1||resultset|SELECT ID, EMI_USER_ID FROM TASK WHERE (ID='4') OR (ID='1') OR (ID='2') OR (ID='3') OR (ID='5')| | 1087044981742|-1||resultset|SELECT ID, EMI_USER_ID FROM TASK WHERE (ID='4') OR (ID='1') OR (ID='2') OR (ID='3') OR (ID='5')| | 1087044981742|-1||resultset|SELECT ID, EMI_USER_ID FROM TASK WHERE (ID='4') OR (ID='1') OR (ID='2') OR (ID='3') OR (ID='5')| | 1087044981742|-1||resultset|SELECT ID, EMI_USER_ID FROM TASK WHERE (ID='4') OR (ID='1') OR (ID='2') OR (ID='3') OR (ID='5')| | 1087044981742|-1||resultset|SELECT ID, EMI_USER_ID FROM TASK WHERE (ID='4') OR (ID='1') OR (ID='2') OR (ID='3') OR (ID='5')| | 1087044981982|130|0|statement|SELECT ID, STATUS_ID FROM TASK WHERE (ID=?) OR (ID=?) OR (ID=?) OR (ID=?) OR (ID=?)|SELECT ID, STATUS_ID FROM TASK WHERE (ID='4') OR (ID='1') OR (ID='2') OR (ID='3') OR (ID='5') | 1087044981982|-1||resultset|SELECT ID, STATUS_ID FROM TASK WHERE (ID='4') OR (ID='1') OR (ID='2') OR (ID='3') OR (ID='5')| | 1087044981982|-1||resultset|SELECT ID, STATUS_ID FROM TASK WHERE (ID='4') OR (ID='1') OR (ID='2') OR (ID='3') OR (ID='5')| | 1087044981982|-1||resultset|SELECT ID, STATUS_ID FROM TASK WHERE (ID='4') OR (ID='1') OR (ID='2') OR (ID='3') OR (ID='5')| | 1087044981982|-1||resultset|SELECT ID, STATUS_ID FROM TASK WHERE (ID='4') OR (ID='1') OR (ID='2') OR (ID='3') OR (ID='5')| | 1087044981982|-1||resultset|SELECT ID, STATUS_ID FROM TASK WHERE (ID='4') OR (ID='1') OR (ID='2') OR (ID='3') OR (ID='5')| | 1087044982192|140|1|statement|SELECT OBJECT_TYPE_VL_ID, DESCRIPTION, INFORMATION_SOURCE_VL_ID, STATUS_TYPE_VL_ID, START_DATE, END_DATE, CREATE_DATE, UPDATE_DATE, TIME_STAMP, CREATOR_USER_ID, UPDATOR_USER_ID, VERSION, IS_OBSOLETE FROM STATUS WHERE (ID=?)|SELECT OBJECT_TYPE_VL_ID, DESCRIPTION, INFORMATION_SOURCE_VL_ID, STATUS_TYPE_VL_ID, START_DATE, END_DATE, CREATE_DATE, UPDATE_DATE, TIME_STAMP, CREATOR_USER_ID, UPDATOR_USER_ID, VERSION, IS_OBSOLETE FROM STATUS WHERE (ID='1') | 1087044982192|-1||resultset|SELECT OBJECT_TYPE_VL_ID, DESCRIPTION, INFORMATION_SOURCE_VL_ID, STATUS_TYPE_VL_ID, START_DATE, END_DATE, CREATE_DATE, UPDATE_DATE, TIME_STAMP, CREATOR_USER_ID, UPDATOR_USER_ID, VERSION, IS_OBSOLETE FROM STATUS WHERE (ID='1')|DESCRIPTION = NEW, INFORMATION_SOURCE_VL_ID = null, OBJECT_TYPE_VL_ID = null, STATUS_TYPE_VL_ID = NEW, VERSION = 0 | 1087044982363|151|0|statement|SELECT ID FROM REASON WHERE (STATUS_ID=?)|SELECT ID FROM REASON WHERE (STATUS_ID='1') | 1087044982493|130|0|statement|SELECT ID, FLOW_CONTEXT_ID FROM TASK WHERE (ID=?) OR (ID=?) OR (ID=?) OR (ID=?) OR (ID=?)|SELECT ID, FLOW_CONTEXT_ID FROM TASK WHERE (ID='4') OR (ID='1') OR (ID='2') OR (ID='3') OR (ID='5') | 1087044982493|-1||resultset|SELECT ID, FLOW_CONTEXT_ID FROM TASK WHERE (ID='4') OR (ID='1') OR (ID='2') OR (ID='3') OR (ID='5')| | 1087044982493|-1||resultset|SELECT ID, FLOW_CONTEXT_ID FROM TASK WHERE (ID='4') OR (ID='1') OR (ID='2') OR (ID='3') OR (ID='5')| | 1087044982493|-1||resultset|SELECT ID, FLOW_CONTEXT_ID FROM TASK WHERE (ID='4') OR (ID='1') OR (ID='2') OR (ID='3') OR (ID='5')| | 1087044982493|-1||resultset|SELECT ID, FLOW_CONTEXT_ID FROM TASK WHERE (ID='4') OR (ID='1') OR (ID='2') OR (ID='3') OR (ID='5')| |
[JBoss-user] [Persistence CMP/JBoss] - Re: unexplained lock in 3.2.4
I used a trace on the querys using the spy driver package (i hope your familiar with it), it does no show this query ever being sent to the database View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3838462#3838462 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3838462 --- This SF.Net email is sponsored by the new InstallShield X. From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: unexplained lock in 3.2.4
I turned on trace: here is what I have: 2004-06-11 17:43:58,978 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Getting connection tracked by transaction [EMAIL PROTECTED] [EMAIL PROTECTED] handles=0 lastUse=1086968627491 permit=true trackByTx=true [EMAIL PROTECTED] [EMAIL PROTECTED] [InUse/Available/Max]: [2/18/20] | 2004-06-11 17:43:59,098 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadRelationCommand.Task] load relation SQL: SELECT ROLE_VL_ID, TASK_ID FROM ROLE_FOR_TASK WHERE (ROLE_VL_ID=?) OR (ROLE_VL_ID=?) OR (ROLE_VL_ID=?) OR (ROLE_VL_ID=?) OR (ROLE_VL_ID=?) | 2004-06-11 17:43:59,098 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Getting connection tracked by transaction [EMAIL PROTECTED] [EMAIL PROTECTED] handles=0 lastUse=1086968627491 permit=true trackByTx=true [EMAIL PROTECTED] [EMAIL PROTECTED] [InUse/Available/Max]: [2/18/20] | 2004-06-11 17:43:59,238 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.Task] Executing SQL: SELECT PRIORITY, TASK_NAME, RE_ASSIGNABLE, RE_ASSIGNABLE_TO_VL_ID, CREATE_DATE, UPDATE_DATE, END_DATE, TIME_STAMP, STATUS_ID, EMI_USER_ID, FLOW_CONTEXT_ID FROM TASK WHERE (ID=?) | 2004-06-11 17:43:59,238 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] supplying ManagedConnection from pool: [EMAIL PROTECTED] [EMAIL PROTECTED] handles=0 lastUse=1086968638567 permit=false trackByTx=false [EMAIL PROTECTED] [EMAIL PROTECTED] | 2004-06-11 17:43:59,238 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Getting connection from pool [EMAIL PROTECTED] [EMAIL PROTECTED] handles=0 lastUse=1086968638567 permit=true trackByTx=false [EMAIL PROTECTED] [EMAIL PROTECTED] [InUse/Available/Max]: [3/17/20] | 2004-06-11 17:43:59,389 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] putting ManagedConnection back into pool kill=false [EMAIL PROTECTED] [EMAIL PROTECTED] handles=0 lastUse=1086968638567 permit=true trackByTx=false [EMAIL PROTECTED] [EMAIL PROTECTED] | 2004-06-11 17:43:59,389 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Returning connection to pool [EMAIL PROTECTED] [EMAIL PROTECTED] handles=0 lastUse=1086968639389 permit=false trackByTx=false [EMAIL PROTECTED] [EMAIL PROTECTED] [InUse/Available/Max]: [2/18/20] and after 5 minutes or so I hot this: 2004-06-11 17:48:47,803 WARN [org.jboss.tm.TransactionImpl] Transaction TransactionImpl:XidImpl [FormatId=257, GlobalId=norman//19, BranchQual=] timed out. status=STATUS_ACTIVE | 2004-06-11 17:48:47,803 ERROR [org.jboss.ejb.BeanLock] Thread[http-0.0.0.0-8080-Processor25,5,jboss]Saw rolled back tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=norman//19, BranchQual=] waiting for txLock | 2004-06-11 17:48:47,813 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackLocalException in method: public abstract java.sql.Date com.matrix.framework.infrastructure.workflow.TaskLocal.getUpdateDate(), causedBy: | java.lang.RuntimeException: Transaction marked for rollback, possibly a timeout | at org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.waitForTx(QueuedPessimisticEJBLock.java:366) | at org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.doSchedule(QueuedPessimisticEJBLock.java:236) | at org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.schedule(QueuedPessimisticEJBLock.java:183) | at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:85) | at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:54) | at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84) | at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315) | at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148) | at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:120) | at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191) | at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) | at org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:484) | at org.jboss.ejb.Container.invoke(Container.java:723) | at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:359) | at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:44) | at $Proxy195.getUpdateDate(Unknown Source) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:324) | at
[JBoss-user] [Persistence CMP/JBoss] - problem with m..n relation and load-groups
The spec doesn't allow to specify that a cmr using a relation table be associated in a group. (actually because it's not a foreign-key relation) I load a bean, where the eagerload loads a group. During the same transaction I try to access the CMR field with the relation table. what I get is an exception from jboss classes about invocation. I checked, the seslect does not even run. I don't understand this exactly but I think that for some reason since I load only a subset using a group, it doesn't register that cmr field and thus can not invoke it. How do I get the CMR field with a relation table to load with all the rest of the load group View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3838330#3838330 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3838330 --- This SF.Net email is sponsored by: GNOME Foundation Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event. GNOME Users and Developers European Conference, 28-30th June in Norway http://2004/guadec.org ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - unexplained lock in 3.2.4
I have my application ear file running without a problem on 3.2.2, I deployed the same ear to 3.2.3 and worked. Now to 3.2.4 (which I downloaded today) and it reaches a lock. The application starts up and on the first transaction it reaches a point where it outputs on the console debug message as follows: 23:47:06,360 DEBUG [Task] Executing SQL: SELECT PRIORITY, TASK_NAME, RE_ASSIGNABLE, RE_ASSIGNABLE_TO_VL_ID, CREATE_DATE, UPDATE_DATE, END_DATE, TIME_STAMP, EMI_USER_ID, STATUS_ID, FLOW_CONTEXT_ID FROM TASK WHERE (ID=?) Afterwhich the server hangs for a long time until it outputs the following: 23:51:01,668 DEBUG [IdleRemover] run: IdleRemover notifying pools, interval: 45 Notice it was 4 minutes later There are no exceptions thrown along the way or any other information I found useful. I would appreciate any ideas as to what could be my problem. I'm using j2se1.4.2_01 with oracle DB using the thin driver from 9i classes12. Thnx View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3838395#3838395 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3838395 --- This SF.Net email is sponsored by the new InstallShield X. From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - Re: problem with m..n relation and load-groups
another piece of info. This problem occues when I use the on-find strategy. My Jboss is 3.2.2 View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3838352#3838352 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3838352 --- This SF.Net email is sponsored by the new InstallShield X. From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user