That is strange.... exactly the same code::

public static void main(String[] args) {
String pathToDatabase = "plocal:D:/testDB";

OrientGraph graph = new OrientGraph(pathToDatabase, false);

OrientVertexType type = graph.createVertexType("City");
type.createProperty("latitude", OType.DOUBLE);
type.createProperty("longitude", OType.DOUBLE);
type.createProperty("name", OType.STRING);
type.createIndex("City.name", "FULLTEXT", null, null, "LUCENE", new 
String[] { "name" });

graph.addVertex("class:City", new Object[] { "name", "London" });
graph.addVertex("class:City", new Object[] { "name", "Rome" });

graph.commit();
 Iterable<Vertex> vertexes = graph.getVertices("City.name", "London");
 for (Vertex v : vertexes) {
System.out.println(v.getId());
}
graph.shutdown();
}

And the database does not shut down. No exception, no stacktrace. Programm 
is just running and
the database is locked.

I used the latest 1.7-SNAPSHOT and



<dependency>
<groupId>com.orientechnologies</groupId>
<artifactId>orientdb-lucene</artifactId>
<version>1.7-SNAPSHOT</version>
</dependency>



Am Montag, 19. Mai 2014 21:13:15 UTC+2 schrieb Enrico Risa:
>
>
> Any stack trace, errors?
>
> I'm not having shutdown problem with this code
>
> http://pastebin.com/39efyXJa
>
>
>
> 2014-05-19 20:30 GMT+02:00 Montrazul <[email protected]<javascript:>
> >:
>
>> Ok it is definitely related to lucene.
>>
>> this works:
>>
>> public static void main(String[] args) {
>> String pathToDatabase = "plocal:D:/testDB";
>>  GraphDAOOrientDB graphDAO = new GraphDAOOrientDB(pathToDatabase);
>>  graphDAO.openGraph(false);
>>  OrientVertexType vertexType = graphDAO.createVertexType("test", null);
>> graphDAO.createProperty(vertexType, "test", OType.STRING);
>>  graphDAO.createIndex(vertexType, "test", 
>> INDEX_TYPE.DICTIONARY_HASH_INDEX, "test");
>> graphDAO.closeGraph();
>> }
>>
>>
>> this not:
>>
>> public static void main(String[] args) {
>> String pathToDatabase = "plocal:D:/testDB";
>>  GraphDAOOrientDB graphDAO = new GraphDAOOrientDB(pathToDatabase);
>>  graphDAO.openGraph(false);
>>  OrientVertexType vertexType = graphDAO.createVertexType("test", null);
>> graphDAO.createProperty(vertexType, "test", OType.STRING);
>>  graphDAO.createLuceneIndex(vertexType, "test2", "test");
>> graphDAO.closeGraph();
>> }
>>
>>
>>
>> Am Montag, 19. Mai 2014 19:28:40 UTC+2 schrieb Montrazul:
>>
>>> Forgot something in my last post. Ofcourse the rebuild of the lucene 
>>> index
>>> just fails in console. The rebuild using java works.
>>> So maybe the shutdown bug is also not related to lucene.
>>>
>>> Am Montag, 19. Mai 2014 18:19:55 UTC+2 schrieb Montrazul:
>>>>
>>>> Oh great! Creating the index using java api and embedded mode works 
>>>> fine!
>>>> However. There is a new problem. The database does not shutdown properly
>>>> anymore. There is a permanent lock after graph.shutdown();
>>>> So i have to crash it manually. Unfortunately orientdb then isnt able 
>>>> to 
>>>> rebuild the indices because he cant find the FULLTEXT index because it 
>>>> isnt in the plugins anymore. Its included using maven.
>>>>
>>>> The second problem is that you cant login into the database. there 
>>>> is an invinite request loop for entering username and password. but 
>>>> i think that isnt related to the lucene index. I think thats another bug
>>>> in the latest orientdb 1.7-SNAPSHOT.
>>>>
>>>> Am Montag, 19. Mai 2014 17:27:50 UTC+2 schrieb Enrico Risa:
>>>>>
>>>>> Hi Montrazul,
>>>>>
>>>>> now you can use orientdb-lucene in plocal mode
>>>>> please the installing process written here under Embedded Mode
>>>>>
>>>>> https://github.com/orientechnologies/orientdb-lucene/wiki
>>>>>
>>>>> Let me know if you have problem
>>>>>
>>>>> Enrico
>>>>>
>>>>>
>>>>>
>>>>> 2014-05-19 10:47 GMT+02:00 Enrico Risa <[email protected]>:
>>>>>
>>>>>> Hi Montrazul,
>>>>>>
>>>>>> i will be fixed in a couple of days. I'm working on it right now
>>>>>>
>>>>>>
>>>>>> 2014-05-19 10:30 GMT+02:00 Montrazul <[email protected]>:
>>>>>>
>>>>>> When will it be fixed?
>>>>>>> Right now you cant use lucene because in plocal mode you cant create 
>>>>>>> the index 
>>>>>>> and in remote mode you cant select from the index using java api.
>>>>>>>
>>>>>>> Am Sonntag, 18. Mai 2014 15:30:21 UTC+2 schrieb Montrazul:
>>>>>>>
>>>>>>>> Found another problem using remote mode.
>>>>>>>> The SQL Query in OrientDB Studio:
>>>>>>>>
>>>>>>>> select * from my_class where my_property LUCENE "foo"
>>>>>>>>
>>>>>>>> works fine and delivers some records. 
>>>>>>>> Using java api:
>>>>>>>>
>>>>>>>> return this.graph.getVertices("my_class.my_property","foo");
>>>>>>>>
>>>>>>>> it does not return any record.
>>>>>>>>
>>>>>>>> Am Donnerstag, 15. Mai 2014 13:15:52 UTC+2 schrieb Enrico Risa:
>>>>>>>>>
>>>>>>>>> Yes for now it's working only with remote i know. 
>>>>>>>>> Because i've made it as a Plugin and if you do not have the 
>>>>>>>>> server, it doesn't work. 
>>>>>>>>> I know how to fix it, i will do it shortly
>>>>>>>>>
>>>>>>>>> 2014-05-15 13:11 GMT+02:00 Montrazul <[email protected]>:
>>>>>>>>>
>>>>>>>>>> No, unfortuantely the latest 1.7-SNAPSHOT (last modified Thu May 
>>>>>>>>>> 15 04:58:24 CDT 2014)
>>>>>>>>>> still does not work with lucene in plocal mode.
>>>>>>>>>>
>>>>>>>>>> Am Donnerstag, 15. Mai 2014 12:55:11 UTC+2 schrieb Enrico Risa:
>>>>>>>>>>>
>>>>>>>>>>> Hi Vladimir
>>>>>>>>>>> it does't work with OrientDB 1.7-rc2
>>>>>>>>>>> you have to download the latest snapshot from here
>>>>>>>>>>> https://oss.sonatype.org/content/repositories/snapshots/com/
>>>>>>>>>>> orientechnologies/orientdb-community/1.7-SNAPSHOT/
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> 2014-05-15 12:44 GMT+02:00 Vladimir Ziankevich <
>>>>>>>>>>> [email protected]>:
>>>>>>>>>>>
>>>>>>>>>>>> Hi all!
>>>>>>>>>>>> I have some problems with setting up lucene plugin.
>>>>>>>>>>>>
>>>>>>>>>>>> I ve installed OrientDB 1.7-rc2.
>>>>>>>>>>>> I followed steps described on this page https://github.com/
>>>>>>>>>>>> orientechnologies/orientdb-lucene/wiki
>>>>>>>>>>>>  downloaded the latest plugin lucene-1.7-SNAPSHOT-plugin.jar, 
>>>>>>>>>>>> put it in the 'plugins' directory.
>>>>>>>>>>>> But on the starting of database I receive the next error:
>>>>>>>>>>>>
>>>>>>>>>>>> java.lang.IllegalArgumentException: No enum constant 
>>>>>>>>>>>> com.orientechnologies.orient.core.metadata.schema.OType.LUCENE 
>>>>>>>>>>>> [ONetworkProtocolHttpDb]
>>>>>>>>>>>> 2014-05-15 13:01:08:635 INFO Installing dynamic plugin 
>>>>>>>>>>>> 'studio-1.7-rc2.zip'... [OServerPluginManager]Error on installing 
>>>>>>>>>>>> dynamic 
>>>>>>>>>>>> plugin 'lucene-index'
>>>>>>>>>>>> null
>>>>>>>>>>>> -> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>>>> -> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>>>>>>>>>>>> ssorImpl.java:57)
>>>>>>>>>>>> -> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>>>>>>>>>>>> thodAccessorImpl.java:43)
>>>>>>>>>>>> -> java.lang.reflect.Method.invoke(Method.java:606)
>>>>>>>>>>>> -> com.orientechnologies.orient.server.plugin.OServerPluginMana
>>>>>>>>>>>> ger.startPluginClass(OServerPluginManager.java:327)
>>>>>>>>>>>> -> com.orientechnologies.orient.server.plugin.OServerPluginMana
>>>>>>>>>>>> ger.installDynamicPlugin(OServerPluginManager.java:242)
>>>>>>>>>>>> -> com.orientechnologies.orient.server.plugin.OServerPluginMana
>>>>>>>>>>>> ger.updatePlugin(OServerPluginManager.java:187)
>>>>>>>>>>>> -> com.orientechnologies.orient.server.plugin.OServerPluginMana
>>>>>>>>>>>> ger.updatePlugins(OServerPluginManager.java:140)
>>>>>>>>>>>> -> com.orientechnologies.orient.server.plugin.OServerPluginMana
>>>>>>>>>>>> ger.access$000(OServerPluginManager.java:54)
>>>>>>>>>>>> -> com.orientechnologies.orient.server.plugin.OServerPluginMana
>>>>>>>>>>>> ger$1.run(OServerPluginManager.java:87)
>>>>>>>>>>>> -> java.util.TimerThread.mainLoop(Timer.java:555)
>>>>>>>>>>>> -> java.util.TimerThread.run(Timer.java:505)
>>>>>>>>>>>> Could not initialize class com.orientechnologies.lucene.O
>>>>>>>>>>>> LuceneIndexFactory
>>>>>>>>>>>> -> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>>>> -> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>>>>>>>>>>>> ssorImpl.java:57)
>>>>>>>>>>>>  -> sun.reflect.DelegatingMethodAccessorImpl.invoke(
>>>>>>>>>>>> DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>>>> -> java.lang.reflect.Method.invoke(Method.java:606)
>>>>>>>>>>>> -> com.orientechnologies.orient.server.plugin.OServerPluginMana
>>>>>>>>>>>> ger.startPluginClass(OServerPluginManager.java:327)
>>>>>>>>>>>> -> com.orientechnologies.orient.server.plugin.OServerPluginMana
>>>>>>>>>>>> ger.installDynamicPlugin(OServerPluginManager.java:242)
>>>>>>>>>>>> -> com.orientechnologies.orient.server.plugin.OServerPluginMana
>>>>>>>>>>>> ger.updatePlugin(OServerPluginManager.java:187)
>>>>>>>>>>>> -> com.orientechnologies.orient.server.plugin.OServerPluginMana
>>>>>>>>>>>> ger.updatePlugins(OServerPluginManager.java:140)
>>>>>>>>>>>> -> com.orientechnologies.orient.server.plugin.OServerPluginMana
>>>>>>>>>>>> ger.access$000(OServerPluginManager.java:54)
>>>>>>>>>>>> -> com.orientechnologies.orient.server.plugin.OServerPluginMana
>>>>>>>>>>>> ger$1.run(OServerPluginManager.java:87)
>>>>>>>>>>>> -> java.util.TimerThread.mainLoop(Timer.java:555)
>>>>>>>>>>>> -> java.util.TimerThread.run(Timer.java:505)
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> четверг, 24 апреля 2014 г., 19:14:14 UTC+3 пользователь Enrico 
>>>>>>>>>>>> Risa написал:
>>>>>>>>>>>>
>>>>>>>>>>>>> Hi All,
>>>>>>>>>>>>>
>>>>>>>>>>>>> a new module for OrientDB is available. The first integration 
>>>>>>>>>>>>> OrientDB / Lucene is out.
>>>>>>>>>>>>> The integration for now is focused on Full Text Index and 
>>>>>>>>>>>>> Spatial Index. 
>>>>>>>>>>>>>
>>>>>>>>>>>>> You can find the Docs here https://github.com/orient
>>>>>>>>>>>>> echnologies/orientdb-lucene/wiki on how
>>>>>>>>>>>>> to install and use the module.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Give it a try,
>>>>>>>>>>>>> contributions are welcome.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Best Regards
>>>>>>>>>>>>> Enrico
>>>>>>>>>>>>>
>>>>>>>>>>>>>  
>>>>>>>>>>>>>
>>>>>>>>>>>>>  -- 
>>>>>>>>>>>>
>>>>>>>>>>>> --- 
>>>>>>>>>>>> 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