OrientDB <- Asynch Client (/92.168.1.39:2424)" 

This line in thread dump look strange. Because host is 192 but here 92

четверг, 21 августа 2014 г., 11:24:01 UTC+4 пользователь Егор Левша написал:
>
>
> I wrote simple project to test.But it contains only 2 classes,which i 
> already showed in this thread.
> https://github.com/SQuarte/Orient2Test
>
> I use orientdb-community-edition-1.7.8 and this dependencies in project
>     compile 'com.orientechnologies:orientdb-core:1.7.8'
>     compile 'com.orientechnologies:orientdb-client:1.7.8'
>     compile 'com.orientechnologies:orient-commons:1.7.8'
>     compile 'com.orientechnologies:orientdb-graphdb:1.7.8'
>     compile 'com.orientechnologies:orientdb-enterprise:1.7.8'
>     compile 'com.tinkerpop.blueprints:blueprints-core:2.5.0'
>
>
> Nad maybe this would be helpful. This is JVM thread dump in moment when 
> test frozen on commit.
>
> Full thread dump Java HotSpot(TM) 64-Bit Server VM (24.45-b08 mixed mode):
>
> "OrientDB <- Asynch Client (/92.168.1.39:2424)" daemon prio=6 
> tid=0x000000000d526000 nid=0xe4 waiting on condition [0x000000000edae000]
>    java.lang.Thread.State: WAITING (parking)
> at sun.misc.Unsafe.park(Native Method)
> - parking to wait for  <0x00000007d8e104f8> (a 
> java.util.concurrent.locks.ReentrantLock$NonfairSync)
> at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
> at 
> java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)
> at 
> java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:867)
> at 
> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2183)
> at 
> com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryAsynchClient.beginResponse(OChannelBinaryAsynchClient.java:233)
> at 
> com.orientechnologies.orient.enterprise.channel.binary.OAsynchChannelServiceThread.execute(OAsynchChannelServiceThread.java:46)
> at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:45)
>
> "OrientDB MemoryWatchDog" daemon prio=6 tid=0x000000000d887800 nid=0x37a8 
> in Object.wait() [0x000000000ebaf000]
>    java.lang.Thread.State: TIMED_WAITING (on object monitor)
> at java.lang.Object.wait(Native Method)
> - waiting on <0x00000007d8e00538> (a java.lang.ref.ReferenceQueue$Lock)
> at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:135)
> - locked <0x00000007d8e00538> (a java.lang.ref.ReferenceQueue$Lock)
> at 
> com.orientechnologies.orient.core.memory.OMemoryWatchDog.run(OMemoryWatchDog.java:190)
>
> "Timer-0" daemon prio=6 tid=0x000000000c8c6000 nid=0x2fc0 in Object.wait() 
> [0x000000000dadf000]
>    java.lang.Thread.State: TIMED_WAITING (on object monitor)
> at java.lang.Object.wait(Native Method)
> - waiting on <0x00000007d8e18070> (a java.util.TaskQueue)
> at java.util.TimerThread.mainLoop(Timer.java:552)
> - locked <0x00000007d8e18070> (a java.util.TaskQueue)
> at java.util.TimerThread.run(Timer.java:505)
>
> "Monitor Ctrl-Break" daemon prio=6 tid=0x000000000c616800 nid=0x2ef8 
> runnable [0x000000000d0ee000]
>    java.lang.Thread.State: RUNNABLE
> at java.net.SocketInputStream.socketRead0(Native Method)
> at java.net.SocketInputStream.read(SocketInputStream.java:152)
> at java.net.SocketInputStream.read(SocketInputStream.java:122)
> at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:283)
> at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:325)
> at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:177)
> - locked <0x00000007d72f6ed8> (a java.io.InputStreamReader)
> at java.io.InputStreamReader.read(InputStreamReader.java:184)
> at java.io.BufferedReader.fill(BufferedReader.java:154)
> at java.io.BufferedReader.readLine(BufferedReader.java:317)
> - locked <0x00000007d72f6ed8> (a java.io.InputStreamReader)
> at java.io.BufferedReader.readLine(BufferedReader.java:382)
> at com.intellij.rt.execution.application.AppMain$1.run(AppMain.java:88)
> at java.lang.Thread.run(Thread.java:744)
>
> "Service Thread" daemon prio=6 tid=0x000000000a506000 nid=0x3474 runnable 
> [0x0000000000000000]
>    java.lang.Thread.State: RUNNABLE
>
> "C2 CompilerThread1" daemon prio=10 tid=0x000000000a505800 nid=0x30fc 
> waiting on condition [0x0000000000000000]
>    java.lang.Thread.State: RUNNABLE
>
> "C2 CompilerThread0" daemon prio=10 tid=0x000000000a501800 nid=0x1a1c 
> waiting on condition [0x0000000000000000]
>    java.lang.Thread.State: RUNNABLE
>
> "Attach Listener" daemon prio=10 tid=0x000000000a501000 nid=0x2d68 
> runnable [0x0000000000000000]
>    java.lang.Thread.State: RUNNABLE
>
> "Signal Dispatcher" daemon prio=10 tid=0x000000000a4fc000 nid=0x37dc 
> waiting on condition [0x0000000000000000]
>    java.lang.Thread.State: RUNNABLE
>
> "Finalizer" daemon prio=8 tid=0x0000000001ff2000 nid=0xae8 in 
> Object.wait() [0x000000000c4cf000]
>    java.lang.Thread.State: WAITING (on object monitor)
> at java.lang.Object.wait(Native Method)
> - waiting on <0x00000007d8e281a8> (a java.lang.ref.ReferenceQueue$Lock)
> at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:135)
> - locked <0x00000007d8e281a8> (a java.lang.ref.ReferenceQueue$Lock)
> at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:151)
> at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:189)
>
> "Reference Handler" daemon prio=10 tid=0x000000000a4f7000 nid=0x2ca4 in 
> Object.wait() [0x000000000c3cf000]
>    java.lang.Thread.State: WAITING (on object monitor)
> at java.lang.Object.wait(Native Method)
> - waiting on <0x00000007d8e30a00> (a java.lang.ref.Reference$Lock)
> at java.lang.Object.wait(Object.java:503)
> at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:133)
> - locked <0x00000007d8e30a00> (a java.lang.ref.Reference$Lock)
>
> "main" prio=6 tid=0x0000000001f04800 nid=0x2538 runnable 
> [0x0000000001efd000]
>    java.lang.Thread.State: RUNNABLE
> at java.net.SocketInputStream.socketRead0(Native Method)
> at java.net.SocketInputStream.read(SocketInputStream.java:152)
> at java.net.SocketInputStream.read(SocketInputStream.java:122)
> at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
> at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
> - locked <0x00000007d8e100c8> (a java.io.BufferedInputStream)
> at java.io.DataInputStream.readInt(DataInputStream.java:387)
> at 
> com.orientechnologies.orient.enterprise.channel.binary.OChannelBinary.readInt(OChannelBinary.java:99)
> at 
> com.orientechnologies.orient.client.remote.OStorageRemote.readCollectionChanges(OStorageRemote.java:1921)
> at 
> com.orientechnologies.orient.client.remote.OStorageRemote.commit(OStorageRemote.java:1107)
> at 
> com.orientechnologies.orient.client.remote.OStorageRemoteThread.commit(OStorageRemoteThread.java:455)
> at 
> com.orientechnologies.orient.core.tx.OTransactionOptimistic.doCommit(OTransactionOptimistic.java:451)
> at 
> com.orientechnologies.orient.core.tx.OTransactionOptimistic.commit(OTransactionOptimistic.java:148)
> at 
> com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.commit(ODatabaseRecordTx.java:142)
> at 
> com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.commit(ODatabaseDocumentTx.java:511)
> at 
> com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.commit(ODatabaseDocumentTx.java:503)
> at 
> com.tinkerpop.blueprints.impls.orient.OrientTransactionalGraph.commit(OrientTransactionalGraph.java:110)
> at OrientService.addVertex(OrientService.java:30)
> at TestOrient.testAdd(TestOrient.java:13)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
> at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
> at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
> at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
> at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
> at 
> com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:74)
> at 
> com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:211)
> at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:67)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
>
> "VM Thread" prio=10 tid=0x000000000a4f5000 nid=0x1a34 runnable 
>
> "GC task thread#0 (ParallelGC)" prio=6 tid=0x0000000001f1a800 nid=0x1df0 
> runnable 
>
> "GC task thread#1 (ParallelGC)" prio=6 tid=0x0000000001f1c000 nid=0x32f4 
> runnable 
>
> "GC task thread#2 (ParallelGC)" prio=6 tid=0x0000000001f1e000 nid=0x2978 
> runnable 
>
> "GC task thread#3 (ParallelGC)" prio=6 tid=0x0000000001f1f800 nid=0xb48 
> runnable 
>
> "GC task thread#4 (ParallelGC)" prio=6 tid=0x0000000001f23800 nid=0x35ac 
> runnable 
>
> "GC task thread#5 (ParallelGC)" prio=6 tid=0x0000000001f25000 nid=0x1040 
> runnable 
>
> "GC task thread#6 (ParallelGC)" prio=6 tid=0x0000000001f28000 nid=0x31ec 
> runnable 
>
> "GC task thread#7 (ParallelGC)" prio=6 tid=0x0000000001f29800 nid=0x2e54 
> runnable 
>
> "VM Periodic Task Thread" prio=10 tid=0x000000000c53b000 nid=0x3744 
> waiting on condition 
>
> JNI global references: 187
>
> среда, 20 августа 2014 г., 17:38:46 UTC+4 пользователь Andrey Lomakin 
> написал:
>>
>> Hm strange, do you have project to test.
>> Which version do you use ?
>>
>>
>> On Wed, Aug 20, 2014 at 2:47 PM, Егор Левша <[email protected]> wrote:
>>
>>> Да,именно.Хотя запись добавилась. Если вместо TransactionalGraph 
>>> использовать просто Graph  и не комитить,то тест работает,но в Бд ничего не 
>>> добавляется
>>>
>>> среда, 20 августа 2014 г., 15:41:15 UTC+4 пользователь Andrey Lomakin 
>>> написал:
>>>>
>>>> Егор , 
>>>> Вы имеете ввиду что он замерз на коммите ?
>>>> On Aug 20, 2014 2:19 PM, "Егор Левша" <[email protected]> wrote:
>>>>
>>>>>  First,sorry for my English,its not my native language.
>>>>>
>>>>> I wrote this simple class .
>>>>> @Service
>>>>> public class OrientService {
>>>>>
>>>>>
>>>>>     TransactionalGraph graph;
>>>>>     final Logger logger = LoggerFactory.getLogger(this.getClass());
>>>>>
>>>>>
>>>>>     public OrientService(){
>>>>>             graph =  new OrientGraph("remote:192.168.1.39:2424/example
>>>>> ", "orientdb", "12345678");
>>>>>     }
>>>>>
>>>>>
>>>>>     public void addVertex(){
>>>>>             Vertex v = graph.addVertex("class:Person");
>>>>>             v.setProperty("name", "Finn");
>>>>>             graph.commit();
>>>>>     }
>>>>> }
>>>>>
>>>>>
>>>>> Then wrote test 
>>>>> @Test
>>>>> public class TestOrient {
>>>>>    public void testConnect(){
>>>>>        OrientService or = new OrientService();
>>>>>        or.addVertex();
>>>>>    }
>>>>> }
>>>>>
>>>>> When i ran this test,its looped on graph.commit() .Btw, vertex was 
>>>>> added  into db(i checked in studio).
>>>>> What i did wrong ?
>>>>>
>>>>>
>>>>>
>>>>>  -- 
>>>>>
>>>>> --- 
>>>>> 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.
>>>
>>
>>
>>
>> -- 
>> Best regards,
>> Andrey Lomakin.
>>
>> Orient Technologies
>> the Company behind OrientDB
>>
>> 

-- 

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