create class GeoVertex extends V;
create property GeoVertex.lat double;
create property GeoVertex.lon double;
create index GeoVertexIdx on GeoVertex (lat, lon) spatial engine LUCENE;

orientdb {db=testingDB}> create vertex GeoVertex set 
lat=33.33333,lon=77.777777

Created vertex 'GeoVertex#11:0{lat:33.33333,lon:77.77778} v1' in 0.072000 
sec(s).

orientdb {db=testingDB}> create vertex GeoVertex content 
{"lat":-33.33333,"lon":-77.777777}

Created vertex 'GeoVertex#11:1{lat:-33.33333,lon:-77.777777} v1' in 
0.104000 sec(s).

*** everything is fine so far, lets a bad vertex ***

orientdb {db=testingDB}> create vertex GeoVertex content 
{"lat":-93.33333,"lon":-77.777777}
Error during exception serialization.
java.lang.ClassNotFoundException: 
com.spatial4j.core.exception.InvalidShapeException
   ...blah blah (not valid Y coordinate)

*** Now, add some good ones ***


orientdb {db=testingDB}> create vertex GeoVertex content 
{"lat":-80.33333,"lon":-77.777777}

Error: com.orientechnologies.orient.core.exception.OStorageException: Error 
during transaction commit.

Error: java.lang.IllegalArgumentException: targetGen=3 was never returned 
by the ReferenceManager instance (current gen=
1)

orientdb {db=testingDB}> create vertex GeoVertex content 
{"lat":-81.33333,"lon":-77.777777}

Error: com.orientechnologies.orient.core.exception.OStorageException: Error 
during transaction commit.

Error: java.lang.IllegalArgumentException: targetGen=3 was never returned 
by the ReferenceManager instance (current gen=
1)

orientdb {db=testingDB}> create vertex GeoVertex content 
{"lat":-82.33333,"lon":-77.777777}

Error: com.orientechnologies.orient.core.exception.OStorageException: Error 
during transaction commit.

Error: java.lang.IllegalArgumentException: targetGen=3 was never returned 
by the ReferenceManager instance (current gen=
2)

orientdb {db=testingDB}> select * from GeoVertex

*** Note that the last three didn't get added (due to rollback) ***

----+-----+---------+----------
#   |@RID |lat      |lon
----+-----+---------+----------
0   |#11:0|33.33333 |77.77778
1   |#11:1|-33.33333|-77.777777
----+-----+---------+----------


On Friday, December 5, 2014 9:47:58 AM UTC-8, Enrico Risa wrote:
>
> @Aaron
>
> can you send me the log please?
>
>
> thanks
>
> 2014-12-05 18:43 GMT+01:00 Aaron Schulz <[email protected] 
> <javascript:>>:
>
>> I'm running that jar and still seeing the log entries :/
>>
>> On Tuesday, December 2, 2014 2:49:16 AM UTC-8, Enrico Risa wrote:
>>>
>>> Hi Aaron
>>>
>>> can you try this version ?
>>>
>>> https://oss.sonatype.org/content/repositories/snapshots/com/
>>> orientechnologies/orientdb-lucene/1.7.9-SNAPSHOT/orientdb-lucene-1.7.9-
>>> 20140905.090614-1-dist.jar
>>>
>>> and tell me if it's resolved?
>>>
>>> Btw how can i replicate the problem?
>>>
>>>
>>> 2014-12-02 10:50 GMT+01:00 Luca Garulli <[email protected]>:
>>>
>>>> @Enrico,
>>>> Any thoughts about this?
>>>>
>>>> Lvc@
>>>>
>>>> On 2 December 2014 at 09:51, @sach <[email protected]> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I guess this problem was upto 1.7.3 (don't know exactly), but i 
>>>>> resolved it by using Lucene indexing outside, even I haven't got any 
>>>>> solution so I preferred to use it separately. So my suggestion is you 
>>>>> should try this approach it may help you.
>>>>>    
>>>>>
>>>>>
>>>>> On Tuesday, December 2, 2014 2:00:53 PM UTC+5:30, Aaron Schulz wrote:
>>>>>>
>>>>>> I'm running into this same problem with 1.7.10 (and on all the 1.7 
>>>>>> lucene plugin jars). I haven't seen any solution for it on the web. This 
>>>>>> the first problem I've ran into with OrientDB so far.
>>>>>>
>>>>>> The error seems to trigger on any write that effects the one spatial 
>>>>>> index in my schema. The index is on an edge:
>>>>>>
>>>>>> create class HasPropertyWithCoordinateValue extends E;
>>>>>> create property HasPropertyWithCoordinateValue.out LINK Item;
>>>>>> create property HasPropertyWithCoordinateValue.in LINK Property;
>>>>>> create property HasPropertyWithCoordinateValue.lat double;
>>>>>> create property HasPropertyWithCoordinateValue.long double;
>>>>>> create index HasPropertyWithCoordinateValueInOutIdx on 
>>>>>> HasPropertyWithCoordinateValue (in, out, lat, long) unique;
>>>>>> create index HasPropertyWithCoordinateValueInLocIdx on 
>>>>>> HasPropertyWithCoordinateValue (lat,long) spatial engine LUCENE;
>>>>>>
>>>>>>
>>>>>> On Thursday, June 26, 2014 2:33:27 AM UTC-7, @sach wrote:
>>>>>>>
>>>>>>> Hi Enrico,
>>>>>>>
>>>>>>> Yes, I m using remote server, and Orient db version is 1.7.3.
>>>>>>> If you want to replicate it just see my attached file as a 
>>>>>>> reference, when ever i start from scratch(created new database, all 
>>>>>>> related 
>>>>>>> fields and the Lucene index on "content" field), it will work fine for 
>>>>>>> few 
>>>>>>> time like 50-60 records get inserted but after some time it start 
>>>>>>> throwing 
>>>>>>> exception (IllegalOrgument i.e. mentioned in post), not able to find 
>>>>>>> the 
>>>>>>> root cause. i am also using Orient Lucene query parser to parse the 
>>>>>>> "content" field.
>>>>>>>
>>>>>>> On Thursday, June 26, 2014 2:49:22 PM UTC+5:30, Enrico Risa wrote:
>>>>>>>>
>>>>>>>> Hi 
>>>>>>>>
>>>>>>>> Are you using remote server?
>>>>>>>> Which version of OrientDb?
>>>>>>>>
>>>>>>>> how can i replicate it?
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> 2014-06-25 16:55 GMT+02:00 sachchidanand singh <[email protected]>:
>>>>>>>>
>>>>>>>>> hi,
>>>>>>>>> my graph model of my project consist of three custom vertex 
>>>>>>>>> classes: Person, Location and Content. Recently i migrated my code to 
>>>>>>>>> 1.7.3 
>>>>>>>>> from 1.7.rc2, we are also using Lucene based index for Content class, 
>>>>>>>>> ever 
>>>>>>>>> since we added that we are getting this Exception :
>>>>>>>>>
>>>>>>>>> com.orientechnologies.orient.core.exception.OStorageException: 
>>>>>>>>> Error during transaction commit.
>>>>>>>>> at com.orientechnologies.orient.core.storage.impl.local.paginated.
>>>>>>>>> OLocalPaginatedStorage.commit(OLocalPaginatedStorage.java:1096)
>>>>>>>>>  at com.orientechnologies.orient.core.tx.OTransactionOptimistic.
>>>>>>>>> doCommit(OTransactionOptimistic.java:132)
>>>>>>>>> at com.orientechnologies.orient.core.tx.OTransactionOptimistic.
>>>>>>>>> commit(OTransactionOptimistic.java:105)
>>>>>>>>>  at com.orientechnologies.orient.core.db.record.ODatabaseRecordT
>>>>>>>>> x.commit(ODatabaseRecordTx.java:142)
>>>>>>>>> at com.orientechnologies.orient.core.db.document.ODatabaseDocum
>>>>>>>>> entTx.commit(ODatabaseDocumentTx.java:504)
>>>>>>>>>  at com.orientechnologies.orient.core.db.document.ODatabaseDocum
>>>>>>>>> entTx.commit(ODatabaseDocumentTx.java:496)
>>>>>>>>> at com.orientechnologies.orient.server.network.protocol.binary.
>>>>>>>>> ONetworkProtocolBinary.commit(ONetworkProtocolBinary.java:1096)
>>>>>>>>>  at com.orientechnologies.orient.server.network.protocol.binary.
>>>>>>>>> ONetworkProtocolBinary.executeRequest(ONetworkProtocolBinary.java:
>>>>>>>>> 344)
>>>>>>>>>  at com.orientechnologies.orient.server.network.protocol.binary.
>>>>>>>>> OBinaryNetworkProtocolAbstract.execute(OBinaryNetworkProtoco
>>>>>>>>> lAbstract.java:169)
>>>>>>>>>  at com.orientechnologies.common.thread.OSoftThread.run(OSoftThr
>>>>>>>>> ead.java:45)
>>>>>>>>> Caused by: java.lang.IllegalArgumentException: targetGen=122 was 
>>>>>>>>> never returned by the ReferenceManager instance (current gen=35)
>>>>>>>>>  at org.apache.lucene.search.ControlledRealTimeReopenThread.
>>>>>>>>> waitForGeneration(ControlledRealTimeReopenThread.java:160)
>>>>>>>>> at org.apache.lucene.search.ControlledRealTimeReopenThread.
>>>>>>>>> waitForGeneration(ControlledRealTimeReopenThread.java:135)
>>>>>>>>>  at com.orientechnologies.lucene.manager.OLuceneIndexManagerAbst
>>>>>>>>> ract.getSearcher(OLuceneIndexManagerAbstract.java:135)
>>>>>>>>> at com.orientechnologies.lucene.manager.OLuceneFullTextIndexMan
>>>>>>>>> ager.getResults(OLuceneFullTextIndexManager.java:131)
>>>>>>>>>  at com.orientechnologies.lucene.manager.OLuceneFullTextIndexMan
>>>>>>>>> ager.get(OLuceneFullTextIndexManager.java:99)
>>>>>>>>> at com.orientechnologies.lucene.OLuceneIndexEngine.get(OLuceneI
>>>>>>>>> ndexEngine.java:153)
>>>>>>>>>  at com.orientechnologies.orient.core.index.OIndexMultiValues.pu
>>>>>>>>> tInSnapshot(OIndexMultiValues.java:137)
>>>>>>>>> at com.orientechnologies.orient.core.index.OIndexAbstract.apply
>>>>>>>>> IndexTxEntry(OIndexAbstract.java:954)
>>>>>>>>>  at com.orientechnologies.orient.core.index.OIndexAbstract.addTx
>>>>>>>>> Operation(OIndexAbstract.java:679)
>>>>>>>>> at com.orientechnologies.orient.core.tx.OTransactionOptimistic$
>>>>>>>>> CommitIndexesCallback.run(OTransactionOptimistic.java:256)
>>>>>>>>>  at com.orientechnologies.orient.core.storage.impl.local.paginat
>>>>>>>>> ed.OLocalPaginatedStorage.commit(OLocalPaginatedStorage.java:1082)
>>>>>>>>>  ... 9 more
>>>>>>>>>
>>>>>>>>> did search for a few minutes in Google but could't find anything 
>>>>>>>>> useful.
>>>>>>>>>
>>>>>>>>> have attached my dao file where in im adding the model object to 
>>>>>>>>> graph vertices
>>>>>>>>>
>>>>>>>>> lucene index  command :
>>>>>>>>>
>>>>>>>>> CREATE INDEX INDX_CONTENT_TEXT ON Content (content) FULLTEXT 
>>>>>>>>> ENGINE LUCENE; 
>>>>>>>>>
>>>>>>>>> -- 
>>>>>>>>>
>>>>>>>>> --- 
>>>>>>>>> You received this message because you are subscribed to the Google 
>>>>>>>>> Groups "OrientDB" group.
>>>>>>>>> To unsubscribe from this group and stop receiving emails from it, 
>>>>>>>>> send an email to [email protected].
>>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>>
>>>>>>>>
>>>>>>>>  -- 
>>>>>
>>>>> --- 
>>>>> You received this message because you are subscribed to the Google 
>>>>> Groups "OrientDB" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>>> an email to [email protected].
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>  -- 
>>>>
>>>> --- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "OrientDB" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to [email protected].
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>  -- 
>>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "OrientDB" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to