My favorites | Sign in
Project Home Downloads Wiki
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 605: Something wrong with binary protocol on 1.0rc7
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  l.garu...@gmail.com
Closed:  Nov 2011


Sign in to add a comment
 
Project Member Reported by Anton.A....@gmail.com, Nov 15, 2011
What steps will reproduce the problem?
1. Connect via console and dump data with Wireshark:
> connect remote:localhost/demo writer writer
Connecting to database [remote:localhost/demo] with user 'writer'...OK

Wireshark:
XX XX XX XX XX XX XX X 03 ff ff ff ff 00 00 00  ..x...x.........
05 74 61 73 6b 73 00 00 00 05 61 64 6d 69 6e 00  .tasks....admin.
00 00 05 61 64 6d 69 6e                          ...admin


Response:
XX XX XX XX XX XX XX XX 00 ff ff ff ff 00 00 01  ..y...x.........
ae 00 00 00 19 00 00 00 05 64 75 6d 6d 79 00 00  .........dummy..
--CUT--

Console is connected ok.
2.
Connect with binary via OrientDB-PHP

     0 : 03 ff ff ff ff 00 00 00 04 64 65 6d 6f 00 00 00 [.........demo...]
    10 : 06 77 72 69 74 65 72 00 00 00 06 77 72 69 74 65 [.writer....write]
    20 : 72                                              [r]
>protocol_version
     0 : 00 05                                           [..]
>request_status
     0 : 01                                              [.]
>TransactionID
     0 : ff ff ff ff                                     [....]
     0 : 01                                              [.]
>exception_javaclass
     0 : 00 00 00 2a                                     [...*]
     0 : 6a 61 76 61 2e 75 74 69 6c 2e 55 6e 6b 6e 6f 77 [java.util.Unknow]
    10 : 6e 46 6f 72 6d 61 74 43 6f 6e 76 65 72 73 69 6f [nFormatConversio]
    20 : 6e 45 78 63 65 70 74 69 6f 6e                   [nException]
>exception_message
     0 : 00 00 00 10                                     [....]
     0 : 43 6f 6e 76 65 72 73 69 6f 6e 20 3d 20 27 30 27 [Conversion = '0']
     0 : 00                                              [.]
3.

What is the expected output? What do you see instead?
Connect via binary failed, but bytes are identical. Could this the same problem, that affects building on MacOS?

Please use labels and text to provide additional information.
1.0rc7-snapshot
Nov 15, 2011
Project Member #1 Anton.A....@gmail.com
To be more precise, here Wireshark (from console) data with same DB and login

XX XX XX XX XX XX XX XX 03 ff ff ff ff 00 00 00  .+.X.+.U........
04 64 65 6d 6f 00 00 00 06 77 72 69 74 65 72 00  .demo....writer.
00 00 06 77 72 69 74 65 72                       ...writer
Nov 15, 2011
Project Member #2 l.garu...@gmail.com
Can you open the same db where the console successful opened it? namely "tasks".
Nov 15, 2011
Project Member #3 Anton.A....@gmail.com
sure!


     0 : 03 ff ff ff ff 00 00 00 05 74 61 73 6b 73 00 00 [.........tasks..]
    10 : 00 06 77 72 69 74 65 72 00 00 00 06 77 72 69 74 [..writer....writ]
    20 : 65 72                                           [er]
>protocol_version
     0 : 00 05                                           [..]
>request_status
     0 : 01                                              [.]
>TransactionID
     0 : ff ff ff ff                                     [....]
     0 : 01                                              [.]
>exception_javaclass
     0 : 00 00 00 2a                                     [...*]
     0 : 6a 61 76 61 2e 75 74 69 6c 2e 55 6e 6b 6e 6f 77 [java.util.Unknow]
    10 : 6e 46 6f 72 6d 61 74 43 6f 6e 76 65 72 73 69 6f [nFormatConversio]
    20 : 6e 45 78 63 65 70 74 69 6f 6e                   [nException]
>exception_message
     0 : 00 00 00 10                                     [....]
     0 : 43 6f 6e 76 65 72 73 69 6f 6e 20 3d 20 27 30 27 [Conversion = '0']
     0 : 00                                              [.]
Nov 15, 2011
Project Member #4 l.garu...@gmail.com
Ok, seems that there is a server-side problem on opening the database. But how can you open it with the console? Last try: can you make the same call? tasks/admin/admin?

Lvc@
Nov 15, 2011
Project Member #5 Anton.A....@gmail.com
Oh, Luca, I'm sorry.


     0 : 03 ff ff ff ff 00 00 00 05 74 61 73 6b 73 00 00 [.........tasks..]
    10 : 00 05 61 64 6d 69 6e 00 00 00 05 61 64 6d 69 6e [..admin....admin]
>protocol_version
     0 : 00 05                                           [..]
>request_status
     0 : 01                                              [.]
>TransactionID
     0 : ff ff ff ff                                     [....]
     0 : 01                                              [.]
>exception_javaclass
     0 : 00 00 00 2a                                     [...*]
     0 : 6a 61 76 61 2e 75 74 69 6c 2e 55 6e 6b 6e 6f 77 [java.util.Unknow]
    10 : 6e 46 6f 72 6d 61 74 43 6f 6e 76 65 72 73 69 6f [nFormatConversio]
    20 : 6e 45 78 63 65 70 74 69 6f 6e                   [nException]
>exception_message
     0 : 00 00 00 10                                     [....]
     0 : 43 6f 6e 76 65 72 73 69 6f 6e 20 3d 20 27 30 27 [Conversion = '0']
     0 : 00                                              [.]


Any combination for DB/user/passwd opened by console, but failed with binary

Also, i forget to mention version: 1.0rc7-snapshot r4143

Nov 15, 2011
Project Member #6 Anton.A....@gmail.com
And console:

Request:
XX XX XX XX XX XX XX XX 03 ff ff ff ff 00 00 00  ................
05 74 61 73 6b 73 00 00 00 05 61 64 6d 69 6e 00  .tasks....admin.
00 00 05 61 64 6d 69 6e                          ...admin

Response:
XX XX XX XX XX XX XX XX XX ff ff ff ff 00 00 01  ...-............
c1 00 00 00 07 00 00 00 05 73 74 61 74 65 00 00  .........state..
00 06 00 00 00 08 50 48 59 53 49 43 41 4c 00 00  ......PHYSICAL..
--CUT--
Nov 15, 2011
Project Member #7 l.garu...@gmail.com
Why with the console you've

XX XX XX XX XX XX XX XX 

as prefix?
Nov 15, 2011
Project Member #8 Anton.A....@gmail.com
XX just to align bytes, as XX masks TCP service bytes
Nov 15, 2011
Project Member #9 Anton.A....@gmail.com
Luca, want a bit more headache?

If  I'll be insisting, server will agree and opens a DB....

On same server, without restarts or something, via binary:

phpunit Tests/OrientDBClassBasicTest.php 
PHPUnit @package_version@ by Sebastian Bergmann.

Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer java.util.UnknownFormatConversionException: Conversion = '0'
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!
Connecting... demo writer writer Connected!!


just trying to DBOpen in cycle in 100 iterations
Nov 15, 2011
Project Member #10 l.garu...@gmail.com
Damn...

The strange thing is that this error:

java.util.UnknownFormatConversionException: Conversion = '0'

Seems to be raised only by format conversions, usually dates. But it isn't not so related with this error.

Can you try to open it with a fresh new database? If you open the tasks database now you receive the same error or last execution fixed it?

Lvc@

Nov 15, 2011
Project Member #11 Anton.A....@gmail.com
After a server restart connection is broken again.
However, if I'll insist to open DB =) (about 30-5000 tries to connect), once connected one time, server will accept new connections till shutdown.
Nov 15, 2011
Project Member #12 Anton.A....@gmail.com
Also, trying to DBOpen fresh new DB (created from console) failed with binary
Nov 17, 2011
Project Member #13 Anton.A....@gmail.com
Luca, checked again on r4166, still same:

   0 : 03 ff ff ff ff 00 00 00 04 64 65 6d 6f 00 00 00 [.........demo...]
    10 : 05 61 64 6d 69 6e 00 00 00 05 61 64 6d 69 6e    [.admin....admin]
>protocol_version
     0 : 00 05                                           [..]
>request_status
     0 : 01                                              [.]
>TransactionID
     0 : ff ff ff ff                                     [....]
     0 : 01                                              [.]
>exception_javaclass
     0 : 00 00 00 2a                                     [...*]
     0 : 6a 61 76 61 2e 75 74 69 6c 2e 55 6e 6b 6e 6f 77 [java.util.Unknow]
    10 : 6e 46 6f 72 6d 61 74 43 6f 6e 76 65 72 73 69 6f [nFormatConversio]
    20 : 6e 45 78 63 65 70 74 69 6f 6e                   [nException]
>exception_message
     0 : 00 00 00 10                                     [....]
     0 : 43 6f 6e 76 65 72 73 69 6f 6e 20 3d 20 27 30 27 [Conversion = '0']
     0 : 00                                              [.]
Nov 18, 2011
Project Member #14 Anton.A....@gmail.com
Luca, I've found it!

last connecting is r4117. In r4118 you changed listening IP from 127.0.0.1 to 0.0.0.0, and with r4118 I get java.util.UnknownFormatConversionException: Conversion = '0'.

If I update to latest, and manually change 0.0.0.0 to 127.0.0.1 in config/orientdb-server-config.xml I connect OK.
Nov 18, 2011
Project Member #15 l.garu...@gmail.com
Ok,
so I'm going to close the issue even if I can't understand why console worked on same config...
Status: Done
Labels: v1.0
Nov 18, 2011
Project Member #16 l.garu...@gmail.com
Just: can you send me the server log to see the full stack trace to know where this exception was thrown?

java.util.UnknownFormatConversionException

Dec 5, 2011
Project Member #17 l.garu...@gmail.com
(No comment was entered for this change.)
Labels: -v1.0 v1.0rc7
Dec 16, 2011
Project Member #18 Anton.A....@gmail.com
Luca, seems this indeed mac-only error, on FreeBSD 7x looks fine with 0.0.0.0
Sign in to add a comment

Powered by Google Project Hosting