-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Provided examples do not compile
PostPosted: Fri Jan 20, 2017 12:22 pm 
Newbie

Joined: Fri Jan 20, 2017 12:15 pm
Posts: 4
Up to the commit 2745f4d I am not able to run the project for MongoDB using the command you specified:
Code:
mvn clean install -s -DmongodbProvider=external


I get these errors:

Quote:
[ERROR] diagnostic: C:\Progetti\hibernate-ogm\mongodb\src\main\java\org\hibernate\ogm\datastore\mongodb\MongoDBDialect.java:55: error: cannot find symbol
import org.hibernate.ogm.dialect.batch.spi.GroupedChangesToEntityOperation;
^
symbol: class GroupedChangesToEntityOperation
location: package org.hibernate.ogm.dialect.batch.spi
[ERROR] diagnostic: C:\Progetti\hibernate-ogm\mongodb\src\main\java\org\hibernate\ogm\datastore\mongodb\MongoDBDialect.java:77: error: cannot find symbol
import org.hibernate.ogm.dialect.spi.OperationContext;
^
symbol: class OperationContext
location: package org.hibernate.ogm.dialect.spi
[ERROR] diagnostic: C:\Progetti\hibernate-ogm\mongodb\src\main\java\org\hibernate\ogm\datastore\mongodb\MongoDBDialect.java:81: error: cannot find symbol
import org.hibernate.ogm.dialect.spi.TuplesSupplier;
^
symbol: class TuplesSupplier
location: package org.hibernate.ogm.dialect.spi
[ERROR] diagnostic: C:\Progetti\hibernate-ogm\mongodb\src\main\java\org\hibernate\ogm\datastore\mongodb\MongoDBDialect.java:82: error: cannot find symbol
import org.hibernate.ogm.dialect.spi.TupleTypeContext;
^
symbol: class TupleTypeContext
location: package org.hibernate.ogm.dialect.spi
[ERROR] diagnostic: C:\Progetti\hibernate-ogm\mongodb\src\main\java\org\hibernate\ogm\datastore\mongodb\MongoDBDialect.java:83: error: cannot find symbol
import org.hibernate.ogm.entityentry.impl.TuplePointer;
^
symbol: class TuplePointer
location: package org.hibernate.ogm.entityentry.impl
[ERROR] diagnostic: C:\Progetti\hibernate-ogm\mongodb\src\main\java\org\hibernate\ogm\datastore\mongodb\MongoDBDialect.java:94: error: cannot find symbol
import org.hibernate.ogm.model.spi.Tuple.SnapshotType;
^
symbol: class SnapshotType
location: class org.hibernate.ogm.model.spi.Tuple
[ERROR] diagnostic: C:\Progetti\hibernate-ogm\mongodb\src\main\java\org\hibernate\ogm\datastore\mongodb\MongoDBDialect.java:177: error: cannot find symbol
public Tuple getTuple(EntityKey key, OperationContext operationContext) {
^
symbol: class OperationContext
location: class org.hibernate.ogm.datastore.mongodb.MongoDBDialect
[ERROR] diagnostic: C:\Progetti\hibernate-ogm\mongodb\src\main\java\org\hibernate\ogm\datastore\mongodb\MongoDBDialect.java:223: error: cannot find symbol
private static Tuple createTuple(EntityKey key, OperationContext operationContext, DBObject found) {
^
symbol: class OperationContext
location: class org.hibernate.ogm.datastore.mongodb.MongoDBDialect
[ERROR] diagnostic: C:\Progetti\hibernate-ogm\mongodb\src\main\java\org\hibernate\ogm\datastore\mongodb\MongoDBDialect.java:237: error: cannot find symbol
public Tuple createTuple(EntityKeyMetadata entityKeyMetadata, OperationContext operationContext) {
^
symbol: class OperationContext
location: class org.hibernate.ogm.datastore.mongodb.MongoDBDialect
[ERROR] diagnostic: C:\Progetti\hibernate-ogm\mongodb\src\main\java\org\hibernate\ogm\datastore\mongodb\MongoDBDialect.java:242: error: cannot find symbol
public Tuple createTuple(EntityKey key, OperationContext OperationContext) {
^
symbol: class OperationContext
location: class org.hibernate.ogm.datastore.mongodb.MongoDBDialect
[ERROR] diagnostic: C:\Progetti\hibernate-ogm\mongodb\src\main\java\org\hibernate\ogm\datastore\mongodb\MongoDBDialect.java:268: error: cannot find symbol
private DBObject getObject(EntityKey key, OperationContext operationContext) {
^
symbol: class OperationContext
location: class org.hibernate.ogm.datastore.mongodb.MongoDBDialect
[ERROR] diagnostic: C:\Progetti\hibernate-ogm\mongodb\src\main\java\org\hibernate\ogm\datastore\mongodb\MongoDBDialect.java:291: error: cannot find symbol
private static BasicDBObject getProjection(OperationContext operationContext) {
^
symbol: class OperationContext
location: class org.hibernate.ogm.datastore.mongodb.MongoDBDialect
[ERROR] diagnostic: C:\Progetti\hibernate-ogm\mongodb\src\main\java\org\hibernate\ogm\datastore\mongodb\MongoDBDialect.java:409: error: cannot find symbol
public void insertOrUpdateTuple(EntityKey key, TuplePointer tuplePointer, TupleContext tupleContext) {
^
symbol: class TuplePointer
location: class org.hibernate.ogm.datastore.mongodb.MongoDBDialect
[ERROR] diagnostic: C:\Progetti\hibernate-ogm\mongodb\src\main\java\org\hibernate\ogm\datastore\mongodb\MongoDBDialect.java:759: error: cannot find symbol
public void forEachTuple(ModelConsumer consumer, TupleTypeContext tupleTypeContext, EntityKeyMetadata entityKeyMetadata) {
^
symbol: class TupleTypeContext
location: class org.hibernate.ogm.datastore.mongodb.MongoDBDialect
[ERROR] diagnostic: C:\Progetti\hibernate-ogm\mongodb\src\main\java\org\hibernate\ogm\datastore\mongodb\MongoDBDialect.java:1226: error: cannot find symbol
GroupedChangesToEntityOperation groupedOperation) {
^
symbol: class GroupedChangesToEntityOperation
location: class org.hibernate.ogm.datastore.mongodb.MongoDBDialect
[ERROR] diagnostic: C:\Progetti\hibernate-ogm\mongodb\src\main\java\org\hibernate\ogm\datastore\mongodb\MongoDBDialect.java:1429: error: cannot find symbol
private static ReadPreference getReadPreference(OperationContext operationContext) {
^
symbol: class OperationContext
location: class org.hibernate.ogm.datastore.mongodb.MongoDBDialect
[ERROR] diagnostic: C:\Progetti\hibernate-ogm\mongodb\src\main\java\org\hibernate\ogm\datastore\mongodb\MongoDBDialect.java:1469: error: cannot find symbol
private static class MongoDBTuplesSupplier implements TuplesSupplier {
^
symbol: class TuplesSupplier
location: class org.hibernate.ogm.datastore.mongodb.MongoDBDialect
[ERROR] error on execute: error during compilation
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 31.989 s
[INFO] Finished at: 2017-01-20T17:02:44+01:00
[INFO] Final Memory: 29M/257M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.bsc.maven:maven-processor-plugin:2.2.4:process (process) on project hibernate-ogm-mongodb: Error executing: error during compilation -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/disp ... nException


Please: how can I get the things running?


Top
 Profile  
 
 Post subject: Re: Provided examples do not compile
PostPosted: Mon Jan 23, 2017 8:06 am 
Hibernate Team
Hibernate Team

Joined: Fri Sep 09, 2011 3:18 am
Posts: 295
Hi,
if you have cloned the project in the folder hibernate-ogm try to run this command (don't run this in the mongodb folder)

Code:
mvn clean install -pl mongodb -am -DmongodbProvider=external



I think the problem you are having is that you are trying to build the mongodb module without having build the core module and therefore is not using the right one.

Adding the -U options might work as well:
Code:
mvn clean install -U -DmongodbProvider=external


I hope this help,
Davide


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.