Querying Inifinispan -- Help Needed
by Vinoth
Hi,
I have a problem in getting through the querying feature of infinispan. I am
using the technical preview listed in this wiki
page<http://www.jboss.org/community/wiki/QueryingInfinispan>with the
help of the sample code provided in the same page.
I used the following properties for the second argument in QueryHelper
Constructor.
#hibernate.properties
hibernate.search.default.directory_provider
org.hibernate.search.store.FSDirectoryProvider
hibernate.search.default.indexBase=/usr/vin/lucene/indexes
This is my class for Hibernate Search
@ProvidedId
@Indexed
public class Item {
@Field
private String name;
@Field
private String description;
...// getters and setters
}
I have included the @ProvidedId since QueryHelper instantion validates the
classes based on this annotation.
*Note :: QueryHelper.validateClasses() -- This is to check that both the
@ProvidedId is present and the the @DocumentId is not present. This is
because don't want both of these 2 annotations used at the same time.*
When I used the @Indexed annotation for the above class, it throws an
exception while instantiating the QueryHelper.
<Exception Snippet>
java.lang.NullPointerException
at
org.hibernate.search.engine.DocumentBuilderIndexedEntity.init(DocumentBuilderIndexedEntity.java:151)
at
org.hibernate.search.engine.DocumentBuilderContainedEntity.<init>(DocumentBuilderContainedEntity.java:93)
at
org.hibernate.search.engine.DocumentBuilderIndexedEntity.<init>(DocumentBuilderIndexedEntity.java:128)
at
org.hibernate.search.impl.SearchFactoryImpl.initDocumentBuilders(SearchFactoryImpl.java:409)
at
org.hibernate.search.impl.SearchFactoryImpl.<init>(SearchFactoryImpl.java:119)
at
org.infinispan.query.backend.QueryHelper.<init>(QueryHelper.java:87)
<Exception Snippet>
When I removed that @Indexed annotation, QueryHelper got instantiated but it
throwed some exception when it hits CacheQuery.getBasicQuery() method, where
it forms lucene query string with the help of QueryParser.
org.hibernate.HibernateException: There are no mapped entities. Don't forget
to add @Indexed to at least one class.
Please let me know if I missed anything here.
--
Cheers,
Vinoth
15 years
metamodel generator & testsuite
by Steve Ebersole
Should we start checking in the generated static metamodel classes? The
reason I ask is that I am having problems running the testsuite at all
right now because of issues getting the static metamodel classes
generated. Specifically the generation for
org.hibernate.ejb.test.metadata.Garden is not happening at all. Its
metamodel class is referenced in
org.hibernate.ejb.test.metadata.StaticMetadataTest which of course then
cannot be compiled.
We need to fix this so that current problems in the metamodel generator
do not stop us from running our tests. Perhaps this particular test
should be moved to the metamodel generator project?
--
Steve Ebersole <steve(a)hibernate.org>
Hibernate.org
15 years
Message could not be delivered
by Automatic Email Delivery Software
Dear user of lists.jboss.org,
Your e-mail account has been used to send a large amount of junk email messages during the recent week.
Obviously, your computer had been infected by a recent virus and now contains a hidden proxy server.
Please follow the instructions in order to keep your computer safe.
Virtually yours,
The lists.jboss.org team.
15 years
Fwd: HSearch 320
by Amin Mohammed-Coleman
forgot to cc hibernate-dev. sorry.
---------- Forwarded message ----------
From: Amin Mohammed-Coleman <aminmc(a)gmail.com>
Date: Sat, Nov 14, 2009 at 10:18 PM
Subject: Re: [hibernate-dev] HSearch 320
To: Sanne Grinovero <sanne.grinovero(a)gmail.com>
Hi
No worries. I've completed a patch which for the programmatic api which
covers:
1) DateBridge
2)ProvidedId
3)FullTextFilterDef
4)IndexEmbedded
5)ContainedIn
I've updated the ProgrammaticMappingTest to include the above.
i've sent the patch to Emmanuel and I'll start the documentation this week.
I've never used docbook, hopefully it shouldn't take long to pick up how to
use it.
I'll get on the case with documentation while Emmanuel looks at the patch.
Cheers
Amin
On Sat, Nov 14, 2009 at 7:56 PM, Sanne Grinovero
<sanne.grinovero(a)gmail.com>wrote:
> Hi Amin,
> sure if you are able to help that would be helpfull :-)
>
> However it would be more interesting if you could help on HSEARCH-410
> first, I know documentation is not very interesting to do but is still
> important, and in this case it's even blocking the release of
> 3.2.0-Beta1. Emmanuel is going to be busy next week at Devoxx, in
> contrary if you can help him he could announce a release there, if he
> agrees.
>
> cheers,
> Sanne
>
> 2009/11/14 Amin Mohammed-Coleman <aminmc(a)gmail.com>:
> > Hi All
> >
> > I was going through the hibernate search jira list (as you do on a
> saturday
> > afternoon) and came across this:
> >
> > http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-320
> >
> > I was wondering if anyone would like me too look at this and see if I can
> > reproduce this maybe verify it's a spring issue. I have used Spring 2.5
> and
> > Hibernate Search and did not see this. There doesnt seem to be much info
> on
> > what the user was doing. I presume he was using component-scan but again
> I
> > can't see how this would cause an exception.
> >
> >
> > Cheers
> >
> > Amin
> > _______________________________________________
> > hibernate-dev mailing list
> > hibernate-dev(a)lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/hibernate-dev
> >
>
15 years
HSearch 320
by Amin Mohammed-Coleman
Hi All
I was going through the hibernate search jira list (as you do on a saturday
afternoon) and came across this:
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-320
I was wondering if anyone would like me too look at this and see if I can
reproduce this maybe verify it's a spring issue. I have used Spring 2.5 and
Hibernate Search and did not see this. There doesnt seem to be much info on
what the user was doing. I presume he was using component-scan but again I
can't see how this would cause an exception.
Cheers
Amin
15 years
Update on the DSL
by Navin Surtani
Hello all,
Just to let you know that I'm focusing on writing up the DSL asap. I
realise that since I've switched over to part-time due to university
term it's tough to keep in touch with everyone constantly. So I
thought I'd just drop the list a quick spam email.
Emmanuel, you had mentioned that you want this done fairly quick (from
other emails on the list) so I'm gonna push to do this as quick as I
can. The next couple of weeks are likely to be slightly busy but I
should have one or two Mondays off in the run-in to Devoxx so fingers
crossed over those I can sit down and hack through some coding. Also
since I'll be around for a full day it will be easier to communicate
via Skype etc etc.
I'll generally try and keep people updated as much as I can via
emailing the devlists so I can get some feedback/input/strokes of
genius from the various crews.
Thanks,
Navin Surtani
Intern Infinispan
Intern JBoss Cache Searchable
15 years
Trunk error in org.hibernate.test.mappingexception.MappingExceptionTest
by Scott Marlow
Is anyone else seeing this test failure on trunk?
<testcase
classname="org.hibernate.test.mappingexception.MappingExceptionTest"
time="0.008" name="testInvalidMapping">
<error type="org.hibernate.MappingException" message="invalid
mapping">org.hibernate.MappingException: invalid mapping
at
org.hibernate.cfg.Configuration.addCacheableFile(Configuration.java:465)
at
org.hibernate.cfg.Configuration.addCacheableFile(Configuration.java:519)
at
org.hibernate.test.mappingexception.MappingExceptionTest.testInvalidMapping(MappingExceptionTest.java:148)
Caused by: org.dom4j.DocumentException: Error on line 4 of document
file:///tmp/TempInvalidMapping1648359301357902517.hbm.xml : Content is
not allowed in prolog. Nested exception: Content is not allowed in prolog.
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.dom4j.io.SAXReader.read(SAXReader.java:264)
at
org.hibernate.cfg.Configuration.addCacheableFile(Configuration.java:446)
... 28 more
</error>
</testcase>
15 years
Build of 3.5.0-SNAPSHOT (trunk) fails.
by Tomasz Blachowicz
Hi guys,
I'm trying to build Hibernate from the SVN repository (rev. 17955). On my
Windows laptop with Java 1.5 I'm getting the following error while building
Entity Manager:
[INFO]
------------------------------------------------------------------------
[INFO] Building Hibernate Entitity Manager
[INFO] task-segment: [clean, install]
[INFO]
------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory
C:\eclipse\galileo\workspace\external\hibernate\entitymanager\target
[INFO] snapshot org.hibernate:hibernate-jpamodelgen:1.0.0-SNAPSHOT: checking
for updates from JBoss-RELEASE
[INFO] snapshot org.hibernate:hibernate-jpamodelgen:1.0.0-SNAPSHOT: checking
for updates from JBoss-SNAPSHOTS
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'7317ef05f893d4eef13f1435eb9f6710cf95d462'; remote =
'38a59e89c3339cc1e87583bf027d226c69657c40' - RETRYIN
G
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'7317ef05f893d4eef13f1435eb9f6710cf95d462'; remote =
'38a59e89c3339cc1e87583bf027d226c69657c40' - IGNORIN
G
[INFO] [enforcer:enforce {execution: enforce-java}]
[INFO] [test-ext:extend {execution: default}]
[INFO] starting test environment extension mojo
[INFO] [resources:resources]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Copying 2 resources
[INFO] [compiler:compile]
[INFO] Compiling 157 source files to
C:\eclipse\galileo\workspace\external\hibernate\entitymanager\target\classes
[INFO] [resources:testResources]
[WARNING] File encoding has not been set, using platform encoding Cp1252,
i.e. build is platform dependent!
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Copying 13 resources
[INFO] Copying 19 resources to ../bundles
[INFO] [antrun:run {execution: process_annotations}]
[INFO] Executing tasks
[echo] processing JPA annotations
[mkdir] Created dir:
C:\eclipse\galileo\workspace\external\hibernate\entitymanager\target\generated-src\jpamodelgen
[javac] Compiling 191 source files to
C:\eclipse\galileo\workspace\external\hibernate\entitymanager\target\generated-src\jpamodelgen
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] An Ant BuildException has occured: Error running
${jdk16_home}\bin\javac compiler
CreateProcess: ${jdk16_home}\bin\javac -d
C:\eclipse\galileo\workspace\external\hibernate\entitymanager\target\generated-src\jpamodelgen
-classpath C:\eclipse\galileo\workspa
ce\external\hibernate\entitymanager\target\generated-src\jpamodelgen;C:\eclipse\galileo\workspace\external\hibernate\entitymanager\target\test-classes;C:\eclipse\galileo\work
space\external\hibernate\entitymanager\target\classes;C:\eclipse\galileo\workspace\external\hibernate\core\target\hibernate-core-3.5.0-SNAPSHOT.jar;C:\Maven\repo\antlr\antlr\
2.7.6\antlr-2.7.6.jar;C:\Maven\repo\commons-collections\commons-collections\3.1\commons-collections-3.1.jar;C:\Maven\repo\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar;C:\Maven\repo\xml-
apis\xml-apis\1.0.b2\xml-apis-1.0.b2.jar;C:\Maven\repo\javax\transaction\jta\1.1\jta-1.1.jar;C:\Maven\repo\org\slf4j\slf4j-api\1.5.8\slf4j-api-1.5.8.jar;C:\Maven\repo\hsqldb\
hsqldb\1.8.0.2\hsqldb-1.8.0.2.jar;C:\eclipse\galileo\workspace\external\hibernate\annotations\target\hibernate-annotations-3.5.0-SNAPSHOT.jar;C:\Maven\rep
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3 minutes 50 seconds
[INFO] Finished at: Wed Nov 11 15:06:57 GMT 2009
[INFO] Final Memory: 31M/63M
[INFO]
------------------------------------------------------------------------
Can you please give me a hand with the build? Is the build supposed to work
only on Java 1.6 box?
Cheers,
Tom
15 years