SourceForge.net Logo
Main Overview Wiki Issues Forum Build Fisheye

Welcome, Guest
Guest Settings
Help

Compass Support Forums » Compass » Compass Users

Thread: unclosed connection, forgot to call close() on your session

This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 13 - Pages: 1 - Last Post: Dec 3, 2011 4:02 AM Last Post By: woolrich
rishi

Posts: 2
Registered: 10/24/06
unclosed connection, forgot to call close() on your session
Posted: Oct 24, 2006 1:19 AM
 
  Click to reply to this thread Reply
Hi Shay ,

I am getting following warning while using copass 0.9.1 and i am getting following warning :

WARN [ConnectionManager] unclosed connection, forgot to call close() on your session?"

Here is my code ,I am not using any CompassTemplate could you please help me further ...

public ResultTO getAdList(SearchCriteriaTO searchCriteriaTO, ContextTO contextTO)
throws SearchException, InvalidInputException, TechnicalException {

CompassTransaction tx = null;
CompassSession session = null;
ResultTO rsTO = new ResultTO();
List <AdDetailTO> itemList = new ArrayList<AdDetailTO>();
try {

session = getCompass().openSession();

tx = session.beginTransaction();
CompassQueryBuilder queryBuilder = session.queryBuilder();

CompassHits hits = null;
/*
31.05.2006 / Timo Parnanen / Method returns CompassQuery instead of String to keep up sort settings
*/
// hits = session.find(buildQuery(searchCriteriaTO, queryBuilder));
hits = buildCompassQuery(searchCriteriaTO, queryBuilder).hits();

/* if (searchCriteriaTO.getFreeTextSearch()!=null) {
System.out.println("geting freetext search");
hits = session.find(buildFreeTextQuery(searchCriteriaTO,queryBuilder));

} else {
System.out.println("regular search");
hits = session.find(buildQuery(searchCriteriaTO, queryBuilder));
} */

rsTO.setTotalCount(hits.getLength());
int startIndex = searchCriteriaTO.getStartPaginationIndex();
int maxCount = searchCriteriaTO.getMaxPaginationCount();
CompassDetachedHits detachedHits = null;
if (maxCount == -1 ) {
detachedHits = hits.detach(0,hits.getLength());
} else if (hits.getLength() > startIndex+ maxCount) {
detachedHits = hits.detach(searchCriteriaTO.getStartPaginationIndex(),searchCriteriaTO.getMaxPaginationCount());
} else {
detachedHits = hits.detach(searchCriteriaTO.getStartPaginationIndex(),hits.getLength());
}

CompassHitIterator iterator = detachedHits.iterator();

while (iterator.hasNext()) {

Item value = (Item) iterator.nextHit().getData();
AdDetailTO detail = new AdDetailTO();
ItemConverter.convertDataObjecttoBusinessTO(value,detail);
itemList.add(detail);
}
rsTO.setPageResult(itemList);
} finally {

tx.commit();

session.close();
}

return rsTO;
}

will wait for yr positive response
Thanks,
Rishi

Shay Banon

Posts: 4,028
Registered: 9/6/05
Re: unclosed connection, forgot to call close() on your session
Posted: Oct 24, 2006 3:26 AM   in response to: rishi in response to: rishi
 
  Click to reply to this thread Reply
This is not a Compass log message, are you using Jdbc and storing the index in the database?
rishi

Posts: 2
Registered: 10/24/06
Re: unclosed connection, forgot to call close() on your session
Posted: Oct 24, 2006 4:15 AM   in response to: Shay Banon in response to: Shay Banon
 
  Click to reply to this thread Reply
Hi Shay,

I am using jdbc and storing index in database.

I am using hibernate to store the index ...

am I missing something with compass ?
Shay Banon

Posts: 4,028
Registered: 9/6/05
Re: unclosed connection, forgot to call close() on your session
Posted: Oct 24, 2006 4:30 AM   in response to: rishi in response to: rishi
 
  Click to reply to this thread Reply
How do you perform your transaction management in Hibernate? Can you post your Compass configuration
t1589

Posts: 8
Registered: 11/17/06
Re: unclosed connection, forgot to call close() on your session
Posted: Nov 17, 2006 2:45 AM   in response to: Shay Banon in response to: Shay Banon
 
  Click to reply to this thread Reply
I'm working on a same project... We solved the problem. Hibernate configuration was ok! Problems was a error using hibernate template in java code. I replaced all getHibernateTemplate().getSessionFactory().openSession() with HibernateCallback.

Now connections will not leak anymore
010s

Posts: 50
Registered: 9/9/11
UGG Classic Tall Boots cheap
Posted: Sep 9, 2011 9:20 PM   in response to: rishi in response to: rishi
 
  Click to reply to this thread Reply
The Tribe indicated that Antonetti would not be available for comment until after the completion of UGG Kensington Boots;indians manager Manny Acta also declined comment when asked about the deal following UGG Delaine Boots`UGG Highkoo Boots`UGG Sheepskin Cuff Boots`UGG Suburb Crochet Tall Boots the Royals on UGG Gissella Boots`UGG Corinth Boots`Men UGG Classic Short Boots`Classic UGG Boots saturday night.pomeranz is technically considered a "player to be named later" due to UGG Classic Tall Boots cheap`UGG Classic Short Boots`ugg cardy boots uk guidelines for trading recently drafted players.Since Pomeranz signed his first professional contract less than ugg cardy boots sale`UGG Bailey Button Boots`UGG Bailey Button Triplet Boots>`UGG Bailey Button Krinkle`women ugg boots sale,which is the signing deadline for Kids UGG Boots,During Jimenez's appearance, he surrendered a two-run double to UGG Earmuffs`UGG Gloves`UGG Handbags, who is Discounted ladies UGG Slippers`UGG Stripe Scarf on Cleveland's current wish list.
It seems that the parents are a little strict with their discount uggs.but on the other way,they are so open and considerate.They buy uk uggs|uk uggs sale to their uk uggs outlet|clearance jackets|cheap moncler jackets to play any moncler store online|moncler on sale|moncler for sale|moncler homme.They want to their children are not strong in the study but also have strong uggs on sale,You can understand how diligent parents are.They just do what they can do to creat a good enviroment for uggs UK|uggs outlet|clearance ugg,In order to let them grow happily and healthiely ;In the evening men moncler|moncler outlet|moncler coats you can see quite a lot of female dress up very cool in the plyground;nfl jerseys|cheap nfl jerseys worn in their bodies form a beautiful secene in the backgrond of the sunset;even though the weather is so hot , people still do exercise every day.As a result of it,Wholesale NFL Jerseys|nfl jerseys outlet|nfl jerseys on sale comfortable gym suit is actually important;In order to make you cool and handsome ,I advice all of you a kind of gym suits called nfl jerseys china,this sort of clothes are made specially for sportsman including those people who are crazy to sports.
factoryoutlet

Posts: 523
Registered: 10/5/11
coach outlet
Posted: Oct 5, 2011 9:14 PM   in response to: rishi in response to: rishi
 
  Click to reply to this thread Reply

coach factory outlet offer excellent, elegant coach products in order to generate room for your new collections.They're purchased more quickly that you may at any time imagine.coach factory store is the greatest destination to buy what type of bags you like. If you need to manage a new Coach carrier and most preferable strategy is to the coach regarding coupon codes.Here's your new way to look sophisticated styles. Carry the hot coach factory outlet store of this summer and be the true trendsetter!in the market you definitely can find various colorways that are designed in as well as the high quality that applied in. For most of you would like to come. So just come to our coach factory outlet online store to choose one.

coach factory outlet is really sizzling kinds of shopping way for you. With the usage of the replica designer coach bags, you can surely be able to change your individual looks in a stunning manner.You know, Coach items are so perfect and fascinating. Now I grow up, and find coach outlet on the Internet offering affordable products with reliable quality.Many fashionable women match with practical Coach Purses which will make the street shopping become relaxed,and make every person can enjoy more diversiform combination in coach factory outlet online.The coach factory outlet store are utilized for formal event in company area that will display your excellent taste.Not only does a briefcase make is easier to carry things.

Almost everyone has identified effectively about this, below, among the best to make sure you will get much more information about coach outlet.In the coach outlet online shop, a collection of high quality and hottest Coach Shoulder Bags is offered to you. They are all at the best prices you will ever find.

You know, Coach items are so perfect and fascinating. Now I grow up, and find coach outlet on the Internet offering affordable products with reliable quality.Once visit, you will be unable to restrain loving it. Warmly welcome all of you to the Summer Sales Promotion on coach factory outlet.coach factory outlet has new coach laptop bags in listing. No matter which style do you want, we can provide it for you.Coach bags enjoy high popularity throughout the world. I would like to share the coach factory outlet online with you. What are you waiting for? Just come to visit.

coach factory outlet supplies the newest and most fashionable brand Coach on sale.The more Coach shoulder bags you order, the more discount you will get.It's wonderful to find out it does not slip in your signature at the bottom of the case and the appearance of brass accents from coach outlet online, Because women who can look stylish this summer.coach outlet has a zippered closure and buckles for extra security. Shiny brass hardware, rounded leather handle, and an interior pocket. It also includes a limited edition Hawaii luggage tag and lock.You can find all kinds of coach bags whatever you chose which one in coach factory outlet online will never be out of fashion. Not only they have many nice and design styles, but also made from the finest leather and fabric.

With the great diversity of styles, patterns and sizes available nowadays, finding the right pieces to highlight your personality is quite important. coach outlet offers exactly what you want.coach factory outlet supplies the newest and most fashionable brand Coach on sale.The more Coach shoulder bags you order, the more discount you will get.Look at this golden Coach bag in the? coach factory outlet online.Those new bags with classic and fashionable design are more and more popular now!After graduating from university, my cousin came back to my hometown from USA last month. She told me that coach outlet store is very popular among her classmate.

coach outlet online own a couple of line, color, or the selected theme, it should be a good choice. It may be the place where offer the bag ladies handbag, you will be able to follow a course of education or training receives for the slim project chest strap wallet.coach outlet will send you a coupon in the post to use in their upon only after you type a achieve. The Coach bags are customarily somewhat many than the ones in the stores.In particular, products from coach factory outlet with leather design are fashionable, handmade,leading the wave of American pop.It with simple,durable and unique style to win consumers.coach factory not only supply with the highest quality crystal at reasonable price but also provide good after-sales service. Companies operating purposes: science and technology in order to survive, credibility and development, strict quality control.

coach outlet handbags's special design and fashion is certainly and so eye-catching, I hope you are able to get much more attention towards the Cheap Coach Crossbody.As long as you open our coach factory outlet webpage, you will view various Coach New Arrivals which are the most popular also the most fashionable in this year.Are you anxious to choose some of the brand bags? Are you searching for reliable sellers? When you come to the coach factory outlet online, these are not problems.

At the coach outlet online you have the largest selection of the day. If you touch the item and like it, keep it in your possession until you make your final decision.Over the years, coach factory online has added a multitude of new handbag shapes, styles and materials to their collection. However, the highest care is taken that every Coach handbags is both aesthetically beautiful and functional.Are you searching for a cool and stylish coach bag? The coach factory outlet online Online is your first priority.

factoryoutlet

Posts: 523
Registered: 10/5/11
louis vuitton outlet
Posted: Oct 5, 2011 9:21 PM   in response to: rishi in response to: rishi
 
  Click to reply to this thread Reply

louis vuitton outlet leads you to bags collection of wide, such as LV bags and LV handbag etc. They are main name in luxury and style. It is excellent quality, fine Italian technology and extraordinary beauty.LV is universally renowned as a luxury brand. louis vuitton online store offers customers the newest fashion collections which can make you different.

In the past, Louis Vuitton only emphasis on classic, but in recent year, Louis Vuitton change its strategy and style to acquire new breakthrough. Especially louis vuitton bags like Louis Vuitton Vernis Wallet.Want to become more charming and faddish? Go to visit louis vuitton outlet webpage and select the most suitable products for yourself.

Want to become more charming and faddish? Go to visit louis vuitton outlet webpage and select the most suitable products for yourself.louis vuitton outlet online may often be the consideration alternative inside of your event to get these kinds of bags.Is without a doubt louis vuitton online seriously is present? Is it possible to offer an outlet designed for Louis Vuitton merchandise speaks out?

The choices are likely to be basically countless seeing that louis vuitton outlet occurs with the help of completely new and also incredible concepts once in a while.Mainly because mentioned before, you could buy in the louis vuitton online, via the producer's the web outlet. Owning worn it in past times. They can supply a appropriate evaluate for the property's simplicity as well as client service description.louis vuitton outlet online is the method to show the confidence of our handbags. The person who show himself in front of other people is a confident one.

LV bags in the louis vuitton outlet are a feminine update on an urban classic. With plenty of room for all of your essentials this covetable carryall will take you through the weekend in style.LV is universally renowned as a luxury brand. louis vuitton online store offers customers the newest fashion collections which can make you different.

This collection focus more on color selection compared with other LV handbags. Cute and sunshine design style increases its charm. louis vuitton outlet online provides you the very famous luxury worldwide brand.We are glad you come to join in our louis vuitton outlet online store, because the winter is upcoming now, Louis Vuitton released many new handbags to feedback our customers.Just come to visit once the louis vuitton online, you will fall in love with its fancy bags, purses, sunglasses, shoes and so on.

sweet123

Posts: 211
Registered: 10/31/11
Re: unclosed connection, forgot to call close() on your session
Posted: Oct 31, 2011 3:17 AM   in response to: rishi in response to: rishi
 
  Click to reply to this thread Reply
As one of the most famous brands Coach Factory Outlet and the representatives of fashion, Coach Outlet Store Online always goes in the top of fashion, never fall behind Coach Outlet Online Store. Look into the fashion world, you will find Coach Outlet Factory that there are so many newest products pushed out by Coach Handbags Outlet. Coach Store, the most support of Coach Factory Outlet Online once appeared had earned a lot of women's heart, even the famous actresses. All of these, they are our Prada Store, and I will cherish them in lifetime. Perhaps you don't know, in my heart, Air Yeezy Shoes are my sisters, in the daily life, I call Gucci Bags sisters, that is because Coach Oulet USA really are my sisters, when I have trouble, Coach Outlet Store Online always help me to deal with it, when I am wronged, Louis Vuitton Outlet Factory will more angry than me to condemn others, Yes, Louis Vuitton Outlet Store Online are my sisters, we are envy Coach Handbags.Because I have Nike Dunk Shoes, my dear sisters!
sweet123

Posts: 211
Registered: 10/31/11
Re: unclosed connection, forgot to call close() on your session
Posted: Nov 30, 2011 9:37 PM   in response to: rishi in response to: rishi
 
  Click to reply to this thread Reply
Welcome to visitCoach Outlet OnlineShop!Here you can buy the cheapest but good qualityCoach Factory Outle .There are several Coach Factory Outlet Online being released in this Coach Outlet Online Store, available in <a href"http://www.coach--outletfactory.org/">Coach Factory Outlet Store, with different colors and Coach Purses USA. Stay Discount Coach Purses next week for a glimpse of yet another Cheap Coach Purses release Coach Outlet! My obsession with the Coach Outlet Online Store. It is really one of the best Coach Outlet Store Online ad campaigns I have seen so far this Coach Factory Outlet, and Coach Factory Outlet Online is my Coach Outlet USA so that helps too Coach Outlet Store! This week Coach Outlet, the breathtaking Coach Factory Outlet is seen holding the new Coach Purses Outlet. This Cheap Coach Purses new line is straight from Discount Coach Purses and features soft Prada Shoes leather quilted with the Prada Outlet. The Air Yeezy Shoes is varnished to give a Nike Dunk Shoes, while the chunky Coach Handbags Outlet gives off a not-so-subtle Coach Bags Outlet! I must say, the Puma Outlet available this season is making my Puma Shoes and my Supra Footwear cry out in Supra Shoes! I think Air Max Shoes could be one of the hottest shoes.
hanjian

Posts: 15
Registered: 12/2/11
Re: Indexing an Object with a Collection
Posted: Dec 2, 2011 6:44 PM   in response to: rishi in response to: rishi
 
  Click to reply to this thread Reply
The Juicy Couture Watches fashion range is most popular in the Western Coast of USA owing to its sports apparel and sweat suits.The Juicy Couture Tracksuits just sold sports and casual products to the market in the past.Its Juicy Couture Laptop Bags clothing are made of high quality material such as fleece cashmere juicy couture backpack,terry and velour.They have included fashion accessories to their line now.True Religion Outlet And in all these collections,the Juicy Couture bags cause wide attention and loved by many people even celebrities True Religion Canada.The Juicy Couture bags come in a wide variety of designs,colors and shapes.The styles are funky.Every bag touches comfort and has metallic leather.They have pom-poms True Religion Jeans ,chains and charms on them to make them striking and different from others True Religion Sale
hogan280

Posts: 180
Registered: 12/3/11
Hogan
Posted: Dec 3, 2011 1:30 AM   in response to: rishi in response to: rishi
 
  Click to reply to this thread Reply
Appear accennato inside movimento della capitale, questo argomento è inside Alaska haya avuto parecchi, elizabeth anche ottenere tre volte l . a . proposta ufficiale, il primo dopo l . a . Guerra di Indipendenza, alcuni membri hanno proposto che l . a . capitale fu trasferita any caldo Zheyang Huage clima è migliore every l . a . città, mother Vancouver low è adatto every l . a . città di constrict appear l . a . capitale elizabeth altre città del sud appear Winnipeg, Edmonton, Calgary, low terrible di simply no posizione migliore rispetto alla temperatura reale è migliore di Philadelphia, Vancouver minus sé quasi, a altro occupa not angolo, a completa alla frontiera. hogan 11 Allora coloro che parlano l . a . risposta proposta.
longchamp

Posts: 272
Registered: 12/1/11
Longchamp
Posted: Dec 3, 2011 3:46 AM   in response to: rishi in response to: rishi
 
  Click to reply to this thread Reply
longchamp, il se révèle être and also vital de l'histoire des graphic designers français de cuir, bagages et maroquinerie Longchamp strain devenir l'un des meilleurs quartiers de la marque, et devenir united nations symbole de la haute société. Aujourd'hui, la marque your not seulement la perception limitée de Longchamp et de vendre des reports sac longchamp durante cuir haut de gamme et des bagages, mais à s'impliquer dans la style, accessoires, chaussures, sacs, bijoux, montres, des médias, du vin et d'autres régions du géant des indicateurs de tendance.www.sacslongchamp-france.org
woolrich

Posts: 142
Registered: 12/3/11
Re: unclosed connection, forgot to call close() on your session
Posted: Dec 3, 2011 4:02 AM   in response to: rishi in response to: rishi
 
  Click to reply to this thread Reply
L . a . storia di Woolrich,Creata nel 1952 any Grenoble, inside Francia da René Ramillon, il marchio woolrich è tratto da not piccolo villaggio chiamato Monastier de Clermont vicino any Grenoble. Nel corso degli anni giubbotto Woolrich è cresciuto significativamente, appear not marchio di abbigliamento quality che offre capi eleganti elizabeth confortevoli every gli uomini elizabeth le donne.
Legend
Guru: 2001 + pts
Expert: 501 - 2000 pts
Super-star: 101 - 500 pts
Assistant: 51 - 100 pts
Participant: 0 - 50 pts
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums