[JBoss-user] HTTP Session Replication
Hai,Can we ignore warnings like No Tx support for findByPrimaryKey, setSession andall.? Thanks RegardsVijaya
[JBoss-user] Problem in session replication
I've deployedthe jboss instanceson 2Win2k boxes, JBoss does show that it's recognizing the clustering, but when I have clients hit it, sometimes I see it hitting exclusively only one jboss server, the other time it hits the other server only at the beginning of the run and then hits exclusively on this one jboss server for the rest of the time. So there's no round-robin going on. When I killed the server(the one that's getting hit exclusively), the clientcan not connect to the box, so the fail-over does not work. However if I closed down the client and open it again, now it knows that the server is down and only hits the one that's still alive. The following error messages are getting when it's trying to session replicate: 13:55:17,046 WARN [InstantSnapshotManager] Failed to replicate sessionID:aSsASJg8EUYozJgSB6zZ-w**javax.ejb.EJBException: Exception in setHttpSession: java.rmi.ServerException: RuntimeException; nested exception is: java.lang.IllegalArgumentException: Can't remove an object using a null id at org.jboss.ha.httpsession.server.ClusteredHTTPSessionService.setHttpSession(ClusteredHTTPSessionService.java:105) at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:72) Any clue why such an odd behaviour is being shown even though the application is giving proper results. Thanks Regards Vijaya
Re: [JBoss-user] HTTP Session Replication
Hai,Can we ignore warnings like No Tx support for findByPrimaryKey, setSession andall.? Thanks RegardsVijaya
Re: [JBoss-user] exception handling advice
Hai, I followed your step-by-step instructions given to configure 2 instances on the same machine. While I'm trying to access the jsps, some warning messages are getting printed like No Tx support for findByPrimaryKey, setSession and all.Can we ignore these warnings? Then I tried to pass a String variable to the next jsp where it uses a set method to set the value after look up. This time I got a Non-serializable attribute exception. Then I added implements Serializable to the relevant classes and proceeded. This time, I got a servlet exception and the root cause as Out of Memory Error. Also an info message socket is closed is getting printed. When I tried to specify url in the jndi properties, server1:1100, server2:1100, it's directly looking up the second one ignoring the first one. Same problems I'm facing even if I run the instances on different machines. I got struck up with this and trying all possibilities I found on net. Can you please suggest how to proceed and where I'm configuring incorrectly? Thanks Regards Vijaya --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] HTTP Session Replication
e.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPip at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:562) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:536)13:08:18,000 ERROR [Engine] - Root Cause -java.lang.OutOfMemoryError13:08:18,031 WARN [TransactionInterceptor] No tx support found for method: findByPrimaryKey13:08:18,156 INFO [JkCoyoteHandler] RESET13:08:40,078 INFO [ChannelSocket] connection timeout reached Can anybody suggest how to proceed. And one more thing, where should I mention the url string server1:1100, server2:1100. Is it required to specify? Becos if I specify this url in jndi.properties, I'm getting an exception. I got struck up with this for quite some time. I'm trying all possibilities, but invain. Thanks in advance Regards Vijaya
[JBoss-user] Security domain
Dear all, can somebody tell how to set up security-domain in tomcat. In jboss u can set using the standardjboss.xml, but in tomcat , where do u set so. regards vijaya
[JBoss-user] Re: Error in datamapping for java.lang. Long
Hi, When I am porting my application to MS SQL 2000 database. I get an error for type mapping. The java type of the field is java.lang.Long. The jdbc type and sql type given in standardjaws is DECIMAL. When I am running the application it is giving error. I have set the jdbctype to BIGINT and sql type to BIGINT. Then it is working fine. Why is it so? Can any one please tell me. My application is to be integrated with some other applications. Will changing the datamapping standardjaws effect those applications. TIA Vijaya Lakshmi P.
[JBoss-user] Re: connection objectl destroyed in EJBLoad
Hi There is a peculiar problem with one of my entity beans. It has two fields bankID and bankname.If I am changing the PK field in PK class from bankID to bankname and calling a business method. The method is never executed.EJBLoad is failing and the following message is seen .The database is SQL 2000, the driver being MS SQL JDBC beta 2.0. [2002-03-05 11:51:17,375,JDBCCommand,DEBUG] Load command executing: SELECT BANKDATATABLE_Test.branchname,BANKDATATABLE_Test.bankID,BANKDATATABLE_Test.B ANKDATAXML FROM BANKDATATABLE_Test WHERE branchname=? [2002-03-05 11:51:17,375,JDBCCommand,DEBUG] Set parameter: idx=1, jdbcType=VARCHAR, value=system435 [2002-03-05 11:51:17,375,EChequeBankPool,DEBUG] Pool EChequeBankPool [0/0/Unlimited] destroyed object org.jboss.resource.adapter.jdbc.local.JDBCManagedConnection@4278b5. [2002-03-05 11:51:17,375,JDBCCommand,DEBUG] Unable to read from ResultSet: java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]ResultSet can not re-read row data for column 1. Can any one suggest me why the connection is getting destroyed? Thanx in anticipation ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Re:freely downloadable MS SQL jdbc thin drivers
Hi guys We want to deploy CMP ejbs on JBoss with the MS SQL Server 2000 as the database server.The question is Are there any freely downloadable MS SQL jdbc thin drivers available? If yes could you plz give details about that products and its configuration details. Thanks in advance Best regards Aswarth ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] New EJB-QL compiler (ORDER BY and DynamicQL)
Hi guys We want to deploy CMP ejbs on JBoss with the MS SQL Server 2000 as the database server.The question is Are there any freely downloadable MS SQL jdbc thin drivers available? If yes could you plz give details about that products and its configuration details. Thanks in advance Best regards Aswarth - Original Message - From: Dain Sundstrom [EMAIL PROTECTED] To: JBoss-dev [EMAIL PROTECTED]; JBoss-user [EMAIL PROTECTED] Sent: Wednesday, February 27, 2002 8:39 AM Subject: [JBoss-user] New EJB-QL compiler (ORDER BY and DynamicQL) The new EJB-QL compiler is finished and checked in tip. The new compiler is a complete rewrite in JavaCC, and is much faster, easier to maintain, and has error messages. I was surprised by the number of errors I found in the old parser. You guys haven't been pushing the engine enough, so to give you incentive to test the new engine I've added several new features. Error messages: This is not really a feature but as we didn't have them before it feels like a feature. JBossQL: I actually wrote two compilers a spec compliant EJB-QL compiler and JBossQL compiler. JBossQL is a superset of EJB-QL which adds support for ORDER BY. To use JBossQL you override ejb-ql declaration in your jbosscmp-jdbc.xml file with a jboss-ql element (i.e. just copy the query element from your ejb-jar.xml file, change ejb-ql to jboss-ql and add the order by clause. The BNF for order by follows: JBossQL := select_clause from_clause [where_clause] [order_by_clause] order_by_clause := ORDER BY order_by_path_expression ( , order_by_path_expression)* order_by_path_expression := ( numeric_valued_path | string_valued_path | datetime_valued_path ) [ASC | DESC] dynamic-ql: The new compiler is eye-blink fast, so I added a new query type dynamic-ql. With dynamic-ql you can generate a JBossQL query and pass it along with the parameters to the engine to be compiled and execute at runtime. To use this query you add an ejbSelect method to your bean with the following signature: return-type ejbSelectsome-name(String jbossQL, Object[] args) You must declare the query type in your ejb-jar.xml (required by the spec; just leave the ejb-ql element empty) and in your jbosscmp-jdbc.xml file override the impl with an empty dynamic-ql/ element. For more info specifying the queries, see the jbosscmp-jdbc_3_0.dtd Please, post follow-ups in the online forum at http://main.jboss.org/thread.jsp?forum=46thread=9743 -dain ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user