Vikram Takkar

Greenhorn
+ Follow
since Oct 27, 2005
Merit badge: grant badges
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Vikram Takkar

HI .. I think using "INFORMA" API is good method of parsing RSS Feeeds ... is there any other good way..... please suggest me
Yes you are right but what i think is that it is not able to find "EHCACHE.XML" file this is why it is giving this error (Null Pointer Exception).. as i change the name of "EHCACHE.XML" to anyname still ,giving the same error so it is not able to find this file .... moreover when i run my program without caching it runs without any error... so i think problem is just of EHCACHE.XML ... if u have any solution i shall b very thankful
[ November 24, 2005: Message edited by: Vikram Takkar ]
Hello .. i think i have found Good API called "INFORMA" for parsing RSS Feeds.. using Hibernate for building news channel object Model .. Please Suggest me is this Good for my Project ......

Any help will be Welcomed..
i am not able to solve the Above problem.... please Help me... how do i remove above Error ... i am stuck at this point .... any help wll be welcomed...
i dont think that you can map 2 tables in single class ... you can map one table in one class and you can have more than one class mapping in one file but its not the good programming practice.. you should implement class-per-file mechanism....

i m giving this reply up to my knowledge ..this may b correct or may not be..
Yes i have already made "ehcache.xml" and placed it in the same directory as the "hibernate.cfg.xml"... but i am getting the same error... even i have placed my ehcache.xml file in ecache.jar file.. but the error persists... is there any way that we can insert our ehcache.xml programatically ...please help me...
Yes i want to use RSS feeds and this will include <ttl> tag.. and i will use Hibernate with this....

just read this article

http://informa.sourceforge.net/quickstart.html

and any help will be welcomed
This is my compilation message :

check last few lines of it :-------

0 [main] INFO org.hibernate.cfg.Environment - Hibernate 3.1 rc1
71 [main] INFO org.hibernate.cfg.Environment - hibernate.properties not found
101 [main] INFO org.hibernate.cfg.Environment - using CGLIB reflection optimizer
131 [main] INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
601 [main] INFO org.hibernate.cfg.Configuration - configuring from resource: /hibernate.cfg.xml
611 [main] INFO org.hibernate.cfg.Configuration - Configuration resource: /hibernate.cfg.xml
2184 [main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource: contact.hbm.xml
2804 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: package1.Contact -> CONTACT
3005 [main] INFO org.hibernate.cfg.Configuration - Configured SessionFactory: null
3035 [main] INFO org.hibernate.cfg.Configuration - processing extends queue
3035 [main] INFO org.hibernate.cfg.Configuration - processing collection mappings
3035 [main] INFO org.hibernate.cfg.Configuration - processing association property references
3035 [main] INFO org.hibernate.cfg.Configuration - processing foreign key constraints
3445 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - Using Hibernate built-in connection pool (not for production use!)
3455 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - Hibernate connection pool size: 20
3455 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - autocommit mode: false
3536 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - using driver: com.sybase.jdbc2.jdbc.SybDriver at URL: jdbc:sybase:Tds:10.15.1.28:2638/TOS"?JCONNECT_VERSION=5
3566 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - connection properties: {user=DBA, password=****}
6580 [main] INFO org.hibernate.cfg.SettingsFactory - RDBMS: Adaptive Server Anywhere, version: 7.0.4.3538
6580 [main] INFO org.hibernate.cfg.SettingsFactory - JDBC driver: jConnect (TM) for JDBC (TM), version: jConnect (TM) for JDBC(TM)/5.5(Build 25137)/P/EBF10000/JDK12/Sun Jan 6 21:57:04 2002
6700 [main] INFO org.hibernate.dialect.Dialect - Using dialect: org.hibernate.dialect.SybaseAnywhereDialect
6740 [main] INFO org.hibernate.transaction.TransactionFactoryFactory - Using default transaction strategy (direct JDBC transactions)
6750 [main] INFO org.hibernate.transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
6750 [main] INFO org.hibernate.cfg.SettingsFactory - Automatic flush during beforeCompletion(): disabled
6750 [main] INFO org.hibernate.cfg.SettingsFactory - Automatic session close at end of transaction: disabled
6750 [main] INFO org.hibernate.cfg.SettingsFactory - Scrollable result sets: enabled
6760 [main] INFO org.hibernate.cfg.SettingsFactory - JDBC3 getGeneratedKeys(): disabled
6760 [main] INFO org.hibernate.cfg.SettingsFactory - Connection release mode: null
6760 [main] INFO org.hibernate.cfg.SettingsFactory - Default batch fetch size: 1
6760 [main] INFO org.hibernate.cfg.SettingsFactory - Generate SQL with comments: disabled
6760 [main] INFO org.hibernate.cfg.SettingsFactory - Order SQL updates by primary key: disabled
6770 [main] INFO org.hibernate.cfg.SettingsFactory - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
6810 [main] INFO org.hibernate.hql.ast.ASTQueryTranslatorFactory - Using ASTQueryTranslatorFactory
6810 [main] INFO org.hibernate.cfg.SettingsFactory - Query language substitutions: {}
6810 [main] INFO org.hibernate.cfg.SettingsFactory - Second-level cache: enabled
6810 [main] INFO org.hibernate.cfg.SettingsFactory - Query cache: disabled
6810 [main] INFO org.hibernate.cfg.SettingsFactory - Cache provider: org.hibernate.cache.EHCacheProvider
could not instantiate CacheProvider: org.hibernate.cache.EHCacheProvider

Exception in thread "main" java.lang.NullPointerException
at package1.SecondExample.main(SecondExample.java:47)



what i think is that it is not able to find "ehcache.xml" ... thats why gving this error.. please suggest me
while compiling my code i am getting this error

"could not instantiate CacheProvider: org.hibernate.cache.EHCacheProvider"

what is the reason.....? suggest me
[ June 27, 2007: Message edited by: Mark Spritzler ]
I want to use RSS feeds in my Web Application and i want to use hibernate caching with this ... if it is not good way .. then suggest me something for this.. that is every time user click on the Link of the RSS Feed it will not make connection it just check with the cache ..... if page is in cache load it from cache... otherwise make connection with Server.. Please suggest me..
I just want to use Hibernate Caching with RSS Feeds ... so that every time user click on the link it does not have to create connection...
We can fetch or insert data to any kind of database using database.. Is there any way with which we fetch data from RSS Feeds XMl files using Hibernate Caching..? or i have to fetch the data from RSS XML file and place it to database and then fetch it through Hibernate..? please Suggest me