SourceForge.net Logo
Main Overview Wiki Issues Forum Build Fisheye

Welcome, Guest
Guest Settings
Help

Compass Support Forums » Compass » Compass Users

Thread: Failed to inject compass gps device events

This question is answered.


Permlink Replies: 42 - Pages: 3 [ 1 2 3 | Next ] - Last Post: Dec 3, 2011 4:12 AM Last Post By: longchamp
Martin Gilday

Posts: 6
Registered: 7/2/06
Failed to inject compass gps device events
Posted: May 22, 2007 9:46 AM
 
  Click to reply to this thread Reply
I am following the Compass introduction on InfoQ and trying to index an existing database. I have some JPA/Hibernate annotated classes and a session factory defined as a org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean. My datasource config is a commons dbcp. That is all that is listed in my spring configs. When I call the code below I get an exception stating it is unable to set the GPS device.

I must be making a simple mistake. Any ideas what I am missing?

I am using Compass 1.1.1, Spring 2.0.5 and Hibernate 3.2.2.ga

Exception in thread "Main Thread" org.compass.gps.device.hibernate.HibernateGpsDeviceException:
{hibernate}: Failed to inject compass gps device events
into hibernate 3.1 session factory \[$Proxy30]; nested 
exception is java.lang.IllegalArgumentException: Can not 
set final org.hibernate.event.EventListeners field org.hibernate.impl.SessionFactoryImpl.eventListeners to 
$Proxy30
java.lang.IllegalArgumentException: Can not set final 
org.hibernate.event.EventListeners field 
org.hibernate.impl.SessionFactoryImpl.eventListeners 
to $Proxy30


//load spring configs
		ClassPathXmlApplicationContext factory =
			new ClassPathXmlApplicationContext(new String[] {
					"spring/spring-datasource-compass.xml",
					"spring/spring-hibernate.xml",
			});
		
		SessionFactory sessionFactory = (SessionFactory) factory.getBean("sessionFactory");
		
		sessionFactory.openSession().close();		
		
		CompassConfiguration compassConfiguration = new CompassAnnotationsConfiguration()
			.setConnection("C:/tmp/index")
			.addClass(Apple.class)
			.addClass(Orange.class);
 
		Compass compass = compassConfiguration.buildCompass();
 
		CompassGps gps = new SingleCompassGps(compass);
		CompassGpsDevice device = new Hibernate3GpsDevice("hibernate", sessionFactory);
		gps.addGpsDevice(device);
		gps.start();
		gps.index();
Martin Gilday

Posts: 6
Registered: 7/2/06
Re: Failed to inject compass gps device events
Posted: May 22, 2007 10:04 AM   in response to: Martin Gilday in response to: Martin Gilday
 
  Click to reply to this thread Reply
Seems if I change from Hibernate3GpsDevice to SpringHibernate3GpsDevice then it is happy. Is this correct behaviour?
Shay Banon

Posts: 4,028
Registered: 9/6/05
Re: Failed to inject compass gps device events
Posted: May 23, 2007 3:20 AM   in response to: Martin Gilday in response to: Martin Gilday
Correct
  Click to reply to this thread Reply
Yes. Spring proxies the Hibernate session factory, the Spring hibernate device is aware of it.
Martin Gilday

Posts: 6
Registered: 7/2/06
Re: Failed to inject compass gps device events
Posted: May 23, 2007 3:22 AM   in response to: Shay Banon in response to: Shay Banon
 
  Click to reply to this thread Reply
Thanks Shay.
helen

Posts: 25
Registered: 10/25/11
Re: Failed to inject compass gps device events
Posted: Oct 25, 2011 10:41 PM   in response to: Martin Gilday in response to: Martin Gilday
 
  Click to reply to this thread Reply
more and more sophisticated, it seems impossible to defend effectively. However, if we are cautious enough to leave no chance to thieves swiss rolex The most conspicuous function of my cell phone is of course the one of telephone. Besides, texting is also an active function of it. I think these tw replica watches uk ll the virtues mentioned earlier. Well received for the excellent design and exactness, they are fantastic combination of quality and des breitling uk cious jewelry pieces will not only make her feel super special, but they too are enough to speak your true emotions for her. IWC Blog.IWC, an excellent Swiss lv bags you and he! I can't show how lovely this day is because of my poor writing skills. However, you can absolutely imagine how valuable when Nautilus you love them? If so choose one for your beloved because they are prepared for you, for the 2011 Valentine's Day. We all know that the film Osca Astronomical Celestial glasses by a great variety of exaggerated models. It supplys you with a large choice of various types and colors. The simple design of the breitling watches sportswear trend, while others regard it as the daywear trend. Anyway, there are still some people wear crop tops as a refined and sophisticated gucci handbags a great difference. It is really challenging to show off your style while still keeping warm. Therefore, shopping for winter clothing is quite louis vuitton replica Wearing hats does not let you look dull any more. On the contrary, it can make you look fashionable and charming. You can pair T-shirt and j uk replica watches their means. While I don't think to enjoy luxuries should be the privilege of the rich. Commonly speaking, we should search for the reliable buying replica watches uk ices to meet my everyday needs. Then comes the MP3 player function. Now it's common to it on cell phones. I can listen to music on the bus, on the road Santos daunting for most of us. Fashion changes from time to time. This article helps you go shopping without breaking your bank.Being the most rolex replicas etc are made out of the particular best materials with the superior craftsmanship. Then, how does Christian Dior achieve its present success? T rolex replicas better to buy her a Plush toy.What's more important, in order to celebrate the festival our goods will be at a discount. The more you buy the more replica watches these styles are made of the identical design and materials. The issue is if it has been normally used or otherwise. In my opinion, I actuall swiss replica watches ,why don't you choose your favorite pink dress?Hot pink wedding gowns are also a fashion, and this type is different from light pink ones replica watches ach sub-collection of it. The first collection comes with bright colors. Each Burberry bag of this collection is plain without patterns. Yet the replica watches uk mesh and light cloth, which give you a soft and comfortable feeling.People, men or women, have regarded Ed Hardy Cap as a stylish statement. gucci bags ition to attire along with a complete look. Among other jewelry options, necklaces always act as a focal point to an appearance. These can be used Power Reserve / GMT
lingxi

Posts: 257
Registered: 11/3/11
louis vuitton
Posted: Nov 3, 2011 2:42 AM   in response to: Martin Gilday in response to: Martin Gilday
 
  Click to reply to this thread Reply
Louis Vuitton Outlet is famous for the unique articules ,login Louis Vuitton Online Store and Louis Vuitton Handbag On Sale to buy your articles.Louis Vuitton Handbags have become the best seller in international market.such as Monogram Multicolore,Monogram Canvas Handbags.We also offer you other platforms.Owing to the various styles and models, up-to-date styling,elegant
appearance,full range of colors and designs,quality and quantity assured,The bags in Louis Vuitton Outletand Louis Vuitton Online Store sell very well both at home and abroad. Now, Login Louis Vuitton Handbag On Sale to choose your favorites. What's more,the latest commodities are renowned all over the world for exquisite workmanship, skillful knitting and elegant design,famous for selected materials, novel designs, delightful colors and exquisite workmanship. For more relevant information, please login Louis Vuitton Outlet!
lingxi

Posts: 257
Registered: 11/3/11
louis vuitton
Posted: Nov 3, 2011 2:45 AM   in response to: Martin Gilday in response to: Martin Gilday
 
  Click to reply to this thread Reply
Louis Vuitton Outlet is famous for the unique articules ,login Louis Vuitton Online Store and Louis Vuitton Handbag On Sale to buy your articles.Louis Vuitton Handbags have become the best seller in international market.such as Monogram Multicolore,Monogram Canvas Handbags.We also offer you other platforms.Owing to the various styles and models, up-to-date styling,elegant
appearance,full range of colors and designs,quality and quantity assured,The bags in Louis Vuitton Outletand Louis Vuitton Online Store sell very well both at home and abroad. Now, Login Louis Vuitton Handbag On Sale to choose your favorites. What's more,the latest commodities are renowned all over the world for exquisite workmanship, skillful knitting and elegant design,famous for selected materials, novel designs, delightful colors and exquisite workmanship. For more relevant information, please login Louis Vuitton Outlet!
lingxi

Posts: 257
Registered: 11/3/11
coach outlet online store
Posted: Nov 3, 2011 2:48 AM   in response to: Martin Gilday in response to: Martin Gilday
 
  Click to reply to this thread Reply
Login Coach Outlet. Coach Outlet Online Store has become a most popular platform to purchase your favourites. You know, Coach handbags Outlet USA has become more and more popular with the excellent quality and attractive price,quality and quantity assuerd, selected materials. Also,Coach Wallets,Coach Jewelry in Coach Outlet and Coach Outlet Online Store sell very well in international market for its fantastic specifications and designs. What's more ,the good after-sale service makes these articles more competitive compared with others. login Coach Outlet,You are assured to find you ideal articles !
lingxi

Posts: 257
Registered: 11/3/11
louis vuitton
Posted: Nov 3, 2011 3:47 AM   in response to: Martin Gilday in response to: Martin Gilday
 
  Click to reply to this thread Reply
Louis Vuitton Outlet is famous for the unique articules ,login Louis Vuitton Online Store and Louis Vuitton Handbag On Sale to buy your articles.Louis Vuitton Handbags have become the best seller in international market.such as Monogram Multicolore,Monogram Canvas Handbags.We also offer you other platforms.Owing to the various styles and models, up-to-date styling,elegant
appearance,full range of colors and designs,quality and quantity assured,The bags in Louis Vuitton Outletand Louis Vuitton Online Store sell very well both at home and abroad. Now, Login Louis Vuitton Handbag On Sale to choose your favorites. What's more,the latest commodities are renowned all over the world for exquisite workmanship, skillful knitting and elegant design,famous for selected materials, novel designs, delightful colors and exquisite workmanship. For more relevant information, please login Louis Vuitton Outlet!
cheap snapback ...

Posts: 25
Registered: 11/7/11
Re: Failed to inject compass gps device events
Posted: Nov 8, 2011 12:34 AM   in response to: Martin Gilday in response to: Martin Gilday
 
  Click to reply to this thread Reply
Born in Cheap Baseball Caps, Louise Vava Lucia Seattle Mariners Caps de la Falaise was the new era baseball caps of an Irish mother, Maxime Birley, who Chicago Cubs Hats for Elsa Schiaparelli, and a new era hats free shipping father, Alain de la Falaise.After New Era MLB Hats up in London and New York, cheap new era hats became a fashion writer, photographic model and designer, and met Saint Laurent in NY Yankees Hats, joining his house four years later.Packers jerseys Laurent praised her for her Green Bay Packers jerseys and perceptiveness as well as Cincinnati Reds Hats as a designer, whose work was noted for Milwaukee Brewers Hats and range of colours.hongxinmaoyi114post.


lictsom's blog
llinguang2's blog
Thunder00 Blog
<a href="http://shinzero.blog.com/>zero blog</a>
<a href="http://xjhan4.livejournal.com/">xjhan4 blog

pylxwzhj

Posts: 719
Registered: 10/15/11
Re: Failed to inject compass gps device events
Posted: Nov 9, 2011 1:01 AM   in response to: Martin Gilday in response to: Martin Gilday
 
  Click to reply to this thread Reply
Despite the anger

Coach Outlet

at Washington, voters

Chanel Bags

did not appear to be in a throw-the-bums-out frame

Coach Outlet

of mind at the city and state levels.

Coach Outlet

In Philadelphia, Mayor Michael Nutter,

Coach Outlet

a Democrat, won re-election, as did Mayor Greg Ballard,

LV Outlet

a Republican, in Indianapolis

Louis Vuitton

and Mayor Stephanie Rawlings-Blake,

Coach Outlet

a Democrat, in Baltimore. In Phoenix,

Chanel Handbags

Greg Stanton, a Democrat, was

Coach Factory Store

the winner while in San Francisco, Edwin M. Lee, the interim mayor,
qiu

Posts: 128
Registered: 10/25/11
arcteryx jackets
Posted: Nov 9, 2011 7:39 PM   in response to: Martin Gilday in response to: Martin Gilday
 
  Click to reply to this thread Reply

A palidayis a holiday in which you rely on the arcteryx jackets goodwill of your friends or family to feed and house you in their arcteryx jacket own home. And in the recent arcteryx sale tough financial climate, the paliday appears to be increasingly popular, as people search for alternative ways to take a arcteryx ski jackets break at a time when their holiday budget is tightly arcteryx mens jackets squeezed.

NFL (National Football League ) was formed in the 1920s in the US, it is not only the world’s largest professional football league, but also the world’s most commercial value of the sports League. There have 32 teams in the NFL and be divided into two Conference: AFC(American Football Conference)and NFC (National Football Conference ). Every year, there are millions of people wear nfl jerseys to watch the NFL regular season, especially super bowl and pro bowl attract many NFL fans. In our nfl jerseys wholesale shop, we provide all 32 nfl teams jerseys . Arizona Cardinals jerseys , Atlanta Falcons jerseys , Baltimore Ravens jerseys , Buffalo Bills jerseys , Carolina Panthers jerseys , Chicago Bears jerseys , Cincinnati Benqals jerseys , Cleveland Browns jerseys , Dallas Cowboys jerseys , Denver Broncos jerseys , Detroit Lions jerseys , Green Bay Packers jerseys , Houston Texans jerseys , Indianapolis Colts jerseys , Jacksonville Jaquars jerseys , Kansas City Chiefs jerseys , Miami Dolphins jerseys , Minnesota Vikings jerseys , New England Patriots jerseys , New Orleans Saints jerseys , New York Giants jerseys , New York Jets jerseys , Oakland Raiders jerseys , Philadelphia Eagles jerseys , Pittsburgh Steelers jerseys , San Dieqo Charqers jerseys , San Francisco 49ers jerseys , Seattle Seahawks jerseys , St. Louis Rams jerseys , Tampa Bay Buccaneers jerseys , Tennessee Titans jerseys , Washington Redskins jerseys . High quality nfl football jerseys sale in our store with best price, welcome to wholesale nfl jerseys , no sale tax and free shipping.

lvzeng

Posts: 268
Registered: 11/13/11
louis vuitton
Posted: Nov 13, 2011 8:17 PM   in response to: Martin Gilday in response to: Martin Gilday
 
  Click to reply to this thread Reply
Owning

louis vuitton bags

of their own has been the dreams of many fad-seeking people for a quite long time.
You need not worry about the quality of the

coach outlet store online

for sale now. The Coach brand is famous for the perfect products.
I am so confused that I don,t even know where to buy the

louis vuitton

Handbags. Because I can prefer to chose the fashionable design, favorable price, top service .

coach outlet store online

with fashion style and top quality succeed. In any occasions they are very suitable and appropriate for its precise and rich design.
They're not chosen, so one of these ideal for you.For more flexibleness a lot more like these, there are lots of discount 'shoulder' variations outlet

louis vuitton bags

.

hermes birkin

is an Austrian success story par excellence. At the end of the 19th century Daniel Swarovski founded a company with the aim to cut crystals automatically.

coach outlet store

vision system is a visual enjoy, is a visual art. The particular design has been integrated function and the element of elegancy, then show you an exquisite and excellent product.
jenny

Posts: 271
Registered: 11/13/11
coach outlet store online
Posted: Nov 13, 2011 8:49 PM   in response to: Martin Gilday in response to: Martin Gilday
 
  Click to reply to this thread Reply
The

coach factory outlet

has been in business for many years. You can log in to find more information about its products and services.
At

louis vuitton sale

,you will find Louis Vuitton Vernis Wallet uses Vernis leather lining instead of classic Monogram canvas, meanwhile creates another classic style with fashion.
Here's your new way to look sophisticated styles. Carry the hot

coach outlet store online

of this summer and be the true trendsetter!
Several days ago, I chose one style of

hermes scarf

from the Swarovski Outlets, which has won good reputation from many customers.
It is a symbol regarding position not to mention nature, Here I would like to launch a excellent bags pertaining to business men, which may be

louis vuitton online

Cupertino M56398.
Almost everyone has identified effectively about this, below, among the best to make sure you will get much more information about

coach outlet

.
coach8outlet

Posts: 282
Registered: 11/13/11
Re: Failed to inject compass gps device events
Posted: Nov 14, 2011 2:24 AM   in response to: Martin Gilday in response to: Martin Gilday
 
  Click to reply to this thread Reply

louis vuitton handbags

enjoy high reputation all over the world. They are designed for hand, elbow and shoulder carry thanks to comfortable flat leather handles.
If you have been to the mall lately and browsed

coach outlet

you may find that a high price tag goes along with just about everything in the mall.
This client-oriented and faith-rooted store aims at providing the best LV goods and services, such as top-class

louis vuitton uk

and free shipping.
Turn your attention to such discount coach sneakers for women from Coach Outlet Store online, you will find something unique and special of such authentic coach for sale at coach factory outlet store online.

louis vuitton outlet

online just like a person who want to show himself in front of other people, because he is confident enough, he can attain the respect of other people.
Bezel-set

hermes birkin bag

are showcased in all their brilliance in the chic and timeless design of this tennis bracelet. Rhodium-plated metal bracelet with foldover clasp.
The

coach outlet store online

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.
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