[JBoss-user] [JBossCache] - eviction problems, getting into an infinite loop

2006-05-19 Thread lazybeans
hi,
  jboss seems to get into an infinite loop spitting out this error message 
repeatedly. My application runs for a couple of hours, then this starts 
happening and goes into an infinite loop of spitting out this message. I am 
using JBOSS4.0.4CR2/EJB3.0 with tree cache clustering of 2 servers. any ideas?



2006-05-19 00:48:10,745 ERROR [STDERR] java.lang.NullPointerException
2006-05-19 00:48:10,745 ERROR [STDERR]  at 
org.jboss.ejb3.cache.tree.StatefulEvictionPolicy.evict(StatefulEvictionPolicy.java:48)
2006-05-19 00:48:10,745 ERROR [STDERR]  at 
org.jboss.cache.eviction.LRUAlgorithm.evictCacheNode(LRUAlgorithm.java:197)
2006-05-19 00:48:10,745 ERROR [STDERR]  at 
org.jboss.cache.eviction.LRUAlgorithm.prune(LRUAlgorithm.java:303)
2006-05-19 00:48:10,745 ERROR [STDERR]  at 
org.jboss.cache.eviction.LRUAlgorithm.process(LRUAlgorithm.java:55)
2006-05-19 00:48:10,745 ERROR [STDERR]  at 
org.jboss.cache.eviction.EvictionTimerTask.run(EvictionTimerTask.java:37)
2006-05-19 00:48:10,745 ERROR [STDERR]  at 
java.util.TimerThread.mainLoop(Timer.java:512)
2006-05-19 00:48:10,745 ERROR [STDERR]  at 
java.util.TimerThread.run(Timer.java:462)
2006-05-19 00:48:11,749 ERROR [STDERR] java.lang.NullPointerException
2006-05-19 00:48:11,749 ERROR [STDERR]  at 
org.jboss.ejb3.cache.tree.StatefulEvictionPolicy.evict(StatefulEvictionPolicy.java:48)
2006-05-19 00:48:11,749 ERROR [STDERR]  at 
org.jboss.cache.eviction.LRUAlgorithm.evictCacheNode(LRUAlgorithm.java:197)
2006-05-19 00:48:11,749 ERROR [STDERR]  at 
org.jboss.cache.eviction.LRUAlgorithm.prune(LRUAlgorithm.java:303)
2006-05-19 00:48:11,749 ERROR [STDERR]  at 
org.jboss.cache.eviction.LRUAlgorithm.process(LRUAlgorithm.java:55)
2006-05-19 00:48:11,749 ERROR [STDERR]  at 
org.jboss.cache.eviction.EvictionTimerTask.run(EvictionTimerTask.java:37)
2006-05-19 00:48:11,749 ERROR [STDERR]  at 
java.util.TimerThread.mainLoop(Timer.java:512)
2006-05-19 00:48:11,749 ERROR [STDERR]  at 
java.util.TimerThread.run(Timer.java:462)


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3944958#3944958

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3944958


---
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] [EJB 3.0] - clustering sfsb cache problem - eviction errors infinite loo

2006-05-19 Thread lazybeans
I get this error from jboss spitting out in an infinite loop.  Investigating 
this a bit, it's coming from the stateful session bean clustering eviction 
StatefulEvicitonPolicy class.  What is it trying to do? Is it trying to evict a 
stateful session bean that no longer exists? How can I prevent this and stop it 
from infinitely spitting this out over and over again.



2006-05-19 00:48:10,745 ERROR [STDERR] java.lang.NullPointerException
2006-05-19 00:48:10,745 ERROR [STDERR]  at 
org.jboss.ejb3.cache.tree.StatefulEvictionPolicy.evict(StatefulEvictionPolicy.java:48)
2006-05-19 00:48:10,745 ERROR [STDERR]  at 
org.jboss.cache.eviction.LRUAlgorithm.evictCacheNode(LRUAlgorithm.java:197)
2006-05-19 00:48:10,745 ERROR [STDERR]  at 
org.jboss.cache.eviction.LRUAlgorithm.prune(LRUAlgorithm.java:303)
2006-05-19 00:48:10,745 ERROR [STDERR]  at 
org.jboss.cache.eviction.LRUAlgorithm.process(LRUAlgorithm.java:55)
2006-05-19 00:48:10,745 ERROR [STDERR]  at 
org.jboss.cache.eviction.EvictionTimerTask.run(EvictionTimerTask.java:37)
2006-05-19 00:48:10,745 ERROR [STDERR]  at 
java.util.TimerThread.mainLoop(Timer.java:512)
2006-05-19 00:48:10,745 ERROR [STDERR]  at 
java.util.TimerThread.run(Timer.java:462)
2006-05-19 00:48:11,749 ERROR [STDERR] java.lang.NullPointerException
2006-05-19 00:48:11,749 ERROR [STDERR]  at 
org.jboss.ejb3.cache.tree.StatefulEvictionPolicy.evict(StatefulEvictionPolicy.java:48)
2006-05-19 00:48:11,749 ERROR [STDERR]  at 
org.jboss.cache.eviction.LRUAlgorithm.evictCacheNode(LRUAlgorithm.java:197)
2006-05-19 00:48:11,749 ERROR [STDERR]  at 
org.jboss.cache.eviction.LRUAlgorithm.prune(LRUAlgorithm.java:303)
2006-05-19 00:48:11,749 ERROR [STDERR]  at 
org.jboss.cache.eviction.LRUAlgorithm.process(LRUAlgorithm.java:55)
2006-05-19 00:48:11,749 ERROR [STDERR]  at 
org.jboss.cache.eviction.EvictionTimerTask.run(EvictionTimerTask.java:37)
2006-05-19 00:48:11,749 ERROR [STDERR]  at 
java.util.TimerThread.mainLoop(Timer.java:512)
2006-05-19 00:48:11,749 ERROR [STDERR]  at 
java.util.TimerThread.run(Timer.java:462)


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3944968#3944968

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3944968


---
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] [EJB 3.0] - Re: clustering sfsb cache problem - eviction errors infinite

2006-05-19 Thread lazybeans
i'm using jboss 4.0.4CR2/ejb3 package. I think i am moving away from stateful 
beans now. Even though I just have 1 stateful bean that is clustered, i'm 
seeing the problem of it not clustering properly sometimes and this eviciton 
error is very bad. It's a big headache.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3944976#3944976

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3944976


---
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] [EJB 3.0] - release 4.0.4CR2 stateful clustering not reliable

2006-05-18 Thread lazybeans
i have 2 load balanced, clustered machines with 1 stateful session bean whose 
clustering is turned on. Experimenting between the machines, about 1 out 7 
times the stateful session bean will fail to cluster properly. It loses the 
sateful session bean when i shutdown the jboss app server on one machine.  Is 
this a known problem with stateful session ejb3.0 beans? for the most part it 
clusters, but it's clustering is much more unreliable than http session 
clustering.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3944735#3944735

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3944735


---
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] [EJB 3.0] - ejb3.0 and IDENTITY Generated ID problem

2006-04-18 Thread lazybeans
I'm using IDENTITY generated Ids. This is for a serial (autoincrement) datatype 
on the new Informix 10.0 server. I'm getting an error in which ejb cannot 
return the incremented Id value as evidenced by the error below. Using a 
previous version of Informix 9.4, it used to work. After it inserts a row, it 
goes on to do a sql statement specific to informix in which it gets the last 
autoincremented Id back and puts it into the entity bean. Now, the new version, 
it doesn't even get to that sql statement anymore, it just dies after it 
executes the insert statement and rolls back the whole transaction. I called 
informix and I am using the jdbc driver which is certificated for informix 9.4 
and 10.  Obviously, there's some difference in the way the two servers behave 
because it works in one but not the other, but does anybody have any 
information in which can help me fix this issue myself?  Any clues?



@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name=DatabaseConstants.USER_COLUMN_ID)
public Integer getId() {
return id;
}



14:54:28,946 INFO  [STDOUT] Hibernate: insert into skxshop_user (password, 
email, registration_date, last_login_date, ca
ncelled, store_id, banned, zip, password_exp_date) values (?, ?, ?, ?, ?, ?, ?, 
?, ?)
14:54:28,993 WARN  [RequestProcessor] Unhandled Exception thrown: class 
javax.ejb.EJBException
14:54:28,993 ERROR [[action]] Servlet.service() for servlet action threw 
exception
javax.ejb.EJBException: javax.persistence.PersistenceException: 
org.hibernate.HibernateException: The database returned
no natively generated identity value
at 
org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:192)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
at 
org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:81)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
at 
org.jboss.ejb3.stateful.StatefulContainer.dynamicInvoke(StatefulContainer.java:308)
at 
org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:55)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3938018#3938018

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938018


---
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] [EJB 3.0] - Re: ejb3.0 and IDENTITY Generated ID problem

2006-04-18 Thread lazybeans
more specifically from the DEBUG. It looks like i'm losing the transaction. 
Below is the problem for the bad database, and below that is the good database 
(one that works).


2006-04-18 15:28:32,355 INFO  [STDOUT]  gettting id: null
2006-04-18 15:28:32,371 DEBUG 
[org.hibernate.event.def.AbstractSaveEventListener] executing identity-insert 
immediately
2006-04-18 15:28:32,371 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to 
open PreparedStatement (open PreparedStatements: 0, globally: 0)
2006-04-18 15:28:32,371 DEBUG [org.hibernate.jdbc.ConnectionManager] opening 
JDBC connection
2006-04-18 15:28:32,371 DEBUG [org.hibernate.SQL] insert into skxshop_user 
(password, email, registration_date, last_login_date, cancelled, store_id, 
banned, zip, password_exp_date) values (?, ?, ?, ?, ?, ?, ?, ?, ?)
2006-04-18 15:28:32,371 INFO  [STDOUT] Hibernate: insert into skxshop_user 
(password, email, registration_date, last_login_date, cancelled, store_id, 
banned, zip, password_exp_date) values (?, ?, ?, ?, ?, ?, ?, ?, ?)
2006-04-18 15:28:32,402 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to 
close PreparedStatement (open PreparedStatements: 1, globally: 1)
2006-04-18 15:28:32,402 DEBUG [org.hibernate.jdbc.ConnectionManager] 
aggressively releasing JDBC connection
2006-04-18 15:28:32,402 DEBUG [org.hibernate.jdbc.ConnectionManager] releasing 
JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 
0, globally: 0)]
2006-04-18 15:28:32,402 DEBUG [org.hibernate.jdbc.JDBCContext] 
TransactionFactory reported no active transaction; Synchronization not 
registered
2006-04-18 15:28:32,402 DEBUG [org.hibernate.jdbc.JDBCContext] 
TransactionFactory reported no active transaction; Synchronization not 
registered
2006-04-18 15:28:32,402 DEBUG 
[org.jboss.ejb3.entity.ManagedEntityManagerFactory] ** closing 
entity managersession **
2006-04-18 15:28:32,402 DEBUG [org.hibernate.jdbc.JDBCContext] 
TransactionFactory reported no active transaction; Synchronization not 
registered
2006-04-18 15:28:32,402 DEBUG [org.apache.struts.util.PropertyMessageResources] 
getMessage(en_US,unhandledException)





2006-04-18 15:41:49,459 INFO  [STDOUT]  gettting id: null
2006-04-18 15:41:49,475 DEBUG 
[org.hibernate.event.def.AbstractSaveEventListener] executing identity-insert 
immediately
2006-04-18 15:41:49,475 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to 
open PreparedStatement (open PreparedStatements: 0, globally: 0)
2006-04-18 15:41:49,475 DEBUG [org.hibernate.jdbc.ConnectionManager] opening 
JDBC connection
2006-04-18 15:41:49,475 DEBUG [org.hibernate.SQL] insert into skxshop_user 
(password, email, registration_date, last_login_date, cancelled, store_id, 
banned, zip, password_exp_date) values (?, ?, ?, ?, ?, ?, ?, ?, ?)
2006-04-18 15:41:49,475 INFO  [STDOUT] Hibernate: insert into skxshop_user 
(password, email, registration_date, last_login_date, cancelled, store_id, 
banned, zip, password_exp_date) values (?, ?, ?, ?, ?, ?, ?, ?, ?)
2006-04-18 15:41:49,537 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to 
close PreparedStatement (open PreparedStatements: 1, globally: 1)
2006-04-18 15:41:49,537 DEBUG [org.hibernate.jdbc.ConnectionManager] 
aggressively releasing JDBC connection
2006-04-18 15:41:49,537 DEBUG [org.hibernate.jdbc.ConnectionManager] releasing 
JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 
0, globally: 0)]
2006-04-18 15:41:49,537 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to 
open PreparedStatement (open PreparedStatements: 0, globally: 0)
2006-04-18 15:41:49,537 DEBUG [org.hibernate.jdbc.ConnectionManager] opening 
JDBC connection
2006-04-18 15:41:49,537 DEBUG [org.hibernate.SQL] select 
dbinfo('sqlca.sqlerrd1') from systables where tabid=1
2006-04-18 15:41:49,537 INFO  [STDOUT] Hibernate: select 
dbinfo('sqlca.sqlerrd1') from systables where tabid=1
2006-04-18 15:41:49,537 DEBUG [org.hibernate.id.IdentifierGeneratorFactory] 
Natively generated identity: 1
2006-04-18 15:41:49,537 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to 
close PreparedStatement (open PreparedStatements: 1, globally: 1)
2006-04-18 15:41:49,553 DEBUG [org.hibernate.jdbc.ConnectionManager] 
aggressively releasing JDBC connection
2006-04-18 15:41:49,553 DEBUG [org.hibernate.jdbc.ConnectionManager] releasing 
JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 
0, globally: 0)]
2006-04-18 15:41:49,553 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to 
open PreparedStatement (open PreparedStatements: 0, globally: 0)
2006-04-18 15:41:49,553 DEBUG [org.hibernate.jdbc.ConnectionManager] opening 
JDBC connection
2006-04-18 15:41:49,553 DEBUG [org.hibernate.SQL] insert into 
skxshop_user_profile (opt_in, gender, first_name, last_name, birth_year, 
birth_month, birth_day, last_purc_date, user_id) values (?, ?, ?, ?, ?, ?, ?, 
?, ?)
2006-04-18 15:41:49,553 INFO  [STDOUT] Hibernate: insert into