in our application we have a strange problem - during reindexing org.hibernate.SessionException is thrown with message "Session is closed". I don't know where the problem can be Reindexing is called from CompassIndexController.
I'm attaching file with related spring configuration and tomcat log, with DEBUG enabled for org.hibernate.* packages and for org.compass.* packages, any help or advice will be appreciated, if I can add some other information, please leave a message.
One more question: if I use as a compass.transaction.factory LocalTransactionFactory and if I don't set transactionFactory to compassBean, reindexing is functioning, but if I run search, another error is thrown (attached).
I'm new to compass, so please excuse If I miss something important.
Your original configuration is good (injecting the Spring transaction manger to the LocalCompassBean, and you don't have to set the SpringSyncTransactionFactory since it is automatically set when you inject the transaction manager).
Is there a chance that you can move to the latest Compass version (2.2 RC1), it will be much simpler for me to support you when you use it.
I tried the 2.2.0-RC1 version and problem is the same. If I can provide some other information for you to understand my problem, please let me know.
Another thing: As I wrote before about using the LocalTransactionFactory,with version 2.2.0-RC1 a receive CompassException with message "Trying to execute a query without an attached session, have you called attach on the query?". How can I create a Compass query with attached session inside? The code in our project (not writen by me) is now this:
The attach exception is strange. What do you do with the CompassQuery after you create it in the CompassTemplate callback? Is it executed within the same opened session?
Regarding the first problem (and optionally, for me to nail down the second attach problem), is there a chance that you can create a simple test case to recreate it? Hopefully running against an embedded database like HSQL?
and now you can use war archive generated in target directory to deploy to tomcat-5.5 (this is one I tested with).
Then use the url http://<server>:<port>/<context>/reindex and click the button "Reindex", you should see the exception stacktrace.
If you discover what is wrong, We will be very glad of it.
If there is something wrong with archive, please let me know, I will try to fix it. The source code used in test-case is the smallest part of our project I considered relevant, so If you will see some comments in strange language, it's czech:)
Thanks very much, I am looking forward for your advice or solution.
I ran the test you provided and I think I found the problem. You have a Hibernate transaction interceptor that intercepts all the beans that end with Manager. The problem is that the Spring transactionManager also ends with Manager . I don't think you really want to intercept the transaction manager, but your business logic. This is the thing that messes Compass up (and other services, potentially, if they do what Compass does, which is pretty common).
Once I changed the transactionManager bean to be named transactionManagerX, all worked fine.
Since 1973, ray ban sale have been outfitting standard Joes and stars as well with their fashionable and very helpful collection of ray ban sunglasses. Nonetheless, its ray ban appeal to actors and musicians which have created the ray ban 3025 eyeglasses like a whole lot an icon since the figures they adorn. think about it, would the Blues bros occur to get precisely the same with out placing on their ray ban 2140? have you been in a location to photo Tom Cruise's Maverick character in major Gun with out possessing his ray ban 2143 Aviator sunglasses?Are you frustrated whenever you compensated huge bucks for any pair of louboutin uk after which discovered the fact that louboutin footwear are fake and also the high quality is bad? This time the writer is heading to reveal some knowledge with you regarding how to distinguish superior and actual louboutin shoes, so the up coming time whenever you are buying footwear you can refrain from poor productions.Most within the Christian Louboutin footwear are created of organic leather, so to distinguish the actual Christian Louboutin shoes; you need to very first know the way to distinguish the organic leather.
Welcome to visit our louis vuitton outlet store for more series of Louis Vuitton Products. You will find the most complete Louis Vuitton handbags such as Monogram wallets, Louis Vuitton Speedy 30, Damier Canvas. Here, You could choose whatever you want in our louis vuitton store! Louis Vuitton Handbags are one of most popular designer handbags brands throughout the world! our louis vuitton outlet are earnest to offer you the authentic louis vuitton travel which is made of the best material and with exquisite designs. Our coupon 5% is prepare for our dear customers if your order value exceed $80.And you can enjoy the same feeling and weight to the luxury louis vuitton as original one. You can surely get your desired cheap louis vuitton shoes at the lower price here. More Louis Vuitton on sale just in our louis vuitton online!
According to a figure that most of the luxury brands consumer in China range frome 2os to 30s. wholesale polo shirts are all young Women's love, wearing the designers will attract passerby glance, it make them be in good mood all the day.
With the increase in printing needs all over the world, manufacturers of Ink Cartridges are hard pressed to meet the ever-increasing demand. Consumer satisfaction ranks highest in the quest to fulfill company priorities. Buying printers is relatively cheap nowadays, but unfortunately, the Ecco Key West Mens same thing cannot be said about the CISS or cartridges that require to be replaced often.
cocogamer.com is one of most reliable sellers which engage in r4i gold and r4i sdhc , including all the most popular R4i and R4 3DS Cards at favorable price
China Ceramic Tile Manufacturer exporter and supplier with a factory in China, manufacture all kinds of Ceramic Tile, wall tiles, Floor Tiles!
The online store to buy replica Louis Vuitton bags, wallets and purse of top most designer