Hi,
I get the same pb and afer looking at the source in cvs it seems that old
version of TreeCache make the preload before configuring the LRUPolicy.
And cause the npe.
It seems to be corrected in the TreeCache.java revision 1.6 in cvs
Try to update your TreeCache version
Regards,
Nicolas
I tried to configure the JDBCCacheLoader with the next params :
org.jboss.cache.loader.JDBCCacheLoader
true
/
false
false
cache.jdbc.table.name=subscribers
cache.jdbc.fqn.column=MSISDN
Look into your table schema, check for a PARENT column
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3873065#3873065
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3873065
when using LRUPolicy as eviction policy I get the next exception :
Caused by: java.lang.NullPointerException
at org.jboss.cache.eviction.LRUPolicy.nodeVisited(LRUPolicy.java:100)
at org.jboss.cache.TreeCache.notifyNodeVisisted(TreeCache.java:3208)
at
when using LRUPolicy as eviction policy I get the next exception :
Caused by: java.lang.NullPointerException
at org.jboss.cache.eviction.LRUPolicy.nodeVisited(LRUPolicy.java:100)
at org.jboss.cache.TreeCache.notifyNodeVisisted(TreeCache.java:3208)
at
OK ,
I guess I can generate some workaround
Thanks :-)
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3872829#3872829
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3872829
Yes, I think you could easily create a subclass and fetch the data source from
there
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3872831#3872831
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3872831
Currently scheduled for 1.3, but it may spill over to 1.4, b/c this is a low
priority issue
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3872754#3872754
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3872754
10x :-)
I need to retrieve values from my Data Source into the cache
every 5 minutes (because my DataSource is changed from other source) .
Can I configure this in my xml configuration file ?
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3872519#3872519
No, but I will add a method soon to configure JDBCCacheLoader from a
DataSource. You'd be able to set it every 5 minutes I guess
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3872527#3872527
Reply to the post :
Great !!! :-)
will it be on 1.3 release ?
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3872530#3872530
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3872530
---
SF
Thanks for your reply :-)
So lets say I have table named USER , with columns PHONE_NUMBER
, ADDRESS and ID (as key).
Then the CacheLoaderConfig will look like this ?
cache.jdbc.table.name=USER
cache.jdbc.table.create=true
cache.jdbc.table.drop=true
cache.jdbc.fqn.column=ID
looks right, I wouldn't drop the table though
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3872484#3872484
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3872484
---
SF
13 matches
Mail list logo