jankotek / mapdb

MapDB provides concurrent Maps, Sets and Queues backed by disk storage or off-heap-memory. It is a fast and easy to use embedded Java database engine.
https://mapdb.org
Apache License 2.0
4.87k stars 872 forks source link

Issues with make() #987

Open Bryan-Tam opened 3 years ago

Bryan-Tam commented 3 years ago

I was following along with the official quickstart guide and was having some trouble creating the initial database (the first line of code). There seems to be an issue when accessing memory to create any database (fileDB, memoryDB, etc). Reading the javadocs is more confusing, as it indicates that make() is depreciated, but is still in all the documentation and create() does not seem to be in release 3.0.8. Given that this is the very first step I am afraid I may have missed something in the process of setting this up. Full stacktrace for detail:

Exception Details:
  Location:
    org/mapdb/DB.<init>(Lorg/mapdb/Store;ZZLjava/lang/ClassLoader;I)V @270: goto
  Reason:
    Error exists in the bytecode
  Bytecode:
    0x0000000: 2b13 049d b800 4119 0413 049e b800 412a
    0x0000010: b704 9f2a 2bb5 0013 2a1c b504 8f2a 1db5
    0x0000020: 0491 2a19 04b5 0497 2a15 05b5 049b 2a2a
    0x0000030: b604 a099 000d bb04 a259 b704 a3a7 0004
    0x0000040: 01b5 001c 2abb 0022 5903 b704 a6b5 0020
    0x0000050: 2ab8 04ac 04b6 04b0 b604 b3b6 04b6 5913
    0x0000060: 04b8 b800 85b5 0037 2abb 01da 59b7 04b9
    0x0000070: b501 d82a bb01 e659 b704 bab5 01e4 2abb
    0x0000080: 0466 59b7 0467 c002 08b8 04be b502 3e2a
    0x0000090: bb04 c059 2ab7 04c3 b504 c52a bb04 c759
    0x00000a0: 2ab7 04c8 b504 ca2a bb03 c159 032a b704
    0x00000b0: cc2a b704 ce3a 063a 1436 133a 123a 113a
    0x00000c0: 1019 063a 07bb 0322 5919 06be b703 34c0
    0x00000d0: 0325 3a08 1907 be36 0903 360a 150a 1509
    0x00000e0: a200 3119 0715 0a32 3a0b 1908 190b 3a0c
    0x00000f0: 3a15 bb03 ee59 190c 2ab4 04c5 b703 f93a
    0x0000100: 1619 1519 16b9 032b 0200 5784 0a01 a7ff
    0x0000110: ce19 08c0 032d 3a15 1910 1911 1912 1513
    0x0000120: 1914 1915 c002 41b8 04d2 2ab7 04ce 3a06
    0x0000130: 3a15 3a14 3613 3a12 3a11 3a10 1906 3a07
    0x0000140: bb03 2259 1906 beb7 0334 c003 253a 0819
    0x0000150: 07be 3609 0336 0a15 0a15 09a2 0033 1907
    0x0000160: 150a 323a 0b19 0819 0b3a 0c3a 16bb 03ee
    0x0000170: 5919 0cb2 04d5 b804 dbb7 03f9 3a17 1916
    0x0000180: 1917 b903 2b02 0057 840a 01a7 ffcc 1908
    0x0000190: c003 2d3a 1619 1019 1119 1215 1319 1419
    0x00001a0: 1519 16c0 0241 b804 d2bb 03ee 59b2 04d5
    0x00001b0: b804 db2a b404 cab7 03f9 b804 41bb 04dd
    0x00001c0: 592a b704 dec0 04e0 bb04 e259 2ab7 04e3
    0x00001d0: c004 e5b7 04e8 b503 bf2a bb04 ea59 2ab7
    0x00001e0: 04eb c004 edb5 006f 2abb 04ef 592a b704
    0x00001f0: f0c0 007c b500 762a b404 8f9a 0108 2ab4
    0x0000200: 0013 b904 f301 0099 0011 bb01 9359 1304
    0x0000210: f5b7 0196 c000 30bf 2ab4 0013 bb01 fb59
    0x0000220: b701 fcb2 0191 b904 f803 0037 060a 1606
    0x0000230: 9499 0028 bb01 9359 bb01 e959 b701 eb13
    0x0000240: 04fa b601 f12a b400 13b6 04fe b605 01b6
    0x0000250: 01f5 b701 96c0 0030 bf2a b400 1303 bd03
    0x0000260: af2a b400 76b9 04f8 0300 3708 1401 5916
    0x0000270: 0894 9900 28bb 0193 59bb 01e9 59b7 01eb
    0x0000280: 1304 fab6 01f1 2ab4 0013 b604 feb6 0501
    0x0000290: b601 f5b7 0196 c000 30bf 1405 0237 0a14
    0x00002a0: 0504 370c 160a 160c 949d 0051 2ab4 0013
    0x00002b0: 01b2 00b0 5912 b2b8 0085 c000 7cb9 04f8
    0x00002c0: 0300 370e 160a 160e 9499 0028 bb01 9359
    0x00002d0: bb01 e959 b701 eb13 04fa b601 f12a b400
    0x00002e0: 13b6 04fe b605 01b6 01f5 b701 96c0 0030
    0x00002f0: bf16 0a0a 6137 0aa7 ffad 2ab4 0013 b902
    0x0000300: 5401 002a b605 07b8 050b 3a06 1906 b905
    0x0000310: 0e01 009a 0026 bb05 1059 bb01 e959 b701
    0x0000320: eb13 0512 b601 f119 06b6 0513 b601 f1b6
    0x0000330: 01f5 b705 14c0 0030 bf12 7cb6 0518 5913
    0x0000340: 051a b800 853a 0619 06be 3607 0336 0815
    0x0000350: 0815 07a2 005e 1906 1508 323a 0919 093a
    0x0000360: 0abb 01e9 59b7 01eb 127c b605 1db6 01f1
    0x0000370: 1302 1eb6 01f1 190a 5913 051f b800 85b6
    0x0000380: 0522 b601 f1b6 01f5 3a0b 190a 01b6 0523
    0x0000390: 3a0c 2ab4 01d8 190c 190b b605 2457 2ab4
    0x00003a0: 01e4 190b 190c b605 2557 0084 0801 a7ff
    0x00003b0: a100 1305 273a 062a b401 d82a b400 6f19
    0x00003c0: 06b6 0524 572a b401 e419 062a b400 6fb6
    0x00003d0: 0525 572a 2ab4 049b aa00 0000 0000 002f
    0x00003e0: 0000 0000 0000 0002 0000 001c 0000 0020
    0x00003f0: 0000 0024 01a7 001d 2aa7 0019 bb05 2959
    0x0000400: 2ab7 052c a700 0ebb 052e 59b7 052f c000
    0x0000410: 30bf b502 662a b402 66c6 000d b205 332a
    0x0000420: b402 66b6 0538 2abb 053a 59b7 053b c002
    0x0000430: 08b8 04be 5913 053d b800 85b5 016a 2a13
    0x0000440: 053f 3a06 3a10 bb01 c259 1906 b705 403a
    0x0000450: 1119 1019 11b5 01c0 b1
  Stackmap Table:
    full_frame(@64,{Object[#2],Object[#348],Integer,Integer,Object[#1354],Integer},{Object[#2]})
    full_frame(@65,{Object[#2],Object[#348],Integer,Integer,Object[#1354],Integer},{Object[#2],Object[#1186]})
    full_frame(@220,{Object[#2],Object[#348],Integer,Integer,Object[#1354],Integer,Object[#1356],Object[#1356],Object[#805],Integer,Integer,Top,Top,Top,Top,Top,Object[#2],Uninitialized[#168],Uninitialized[#168],Integer,Object[#1357]},{})
    same_frame(@273)
    append_frame(@343,Object[#512])
    same_frame(@398)
    full_frame(@536,{Object[#2],Object[#348],Integer,Integer,Object[#1354],Integer,Object[#1356],Object[#1356],Object[#805],Integer,Integer,Top,Top,Top,Top,Top,Object[#2],Object[#961],Object[#961],Integer,Object[#1357],Object[#512],Object[#813]},{})
    full_frame(@601,{Object[#2],Object[#348],Integer,Integer,Object[#1354],Integer,Long,Object[#805],Integer,Integer,Top,Top,Top,Top,Top,Object[#2],Object[#961],Object[#961],Integer,Object[#1357],Object[#512],Object[#813]},{})
    full_frame(@666,{Object[#2],Object[#348],Integer,Integer,Object[#1354],Integer,Long,Long,Integer,Top,Top,Top,Top,Top,Object[#2],Object[#961],Object[#961],Integer,Object[#1357],Object[#512],Object[#813]},{})
    full_frame(@676,{Object[#2],Object[#348],Integer,Integer,Object[#1354],Integer,Long,Long,Long,Long,Top,Top,Object[#2],Object[#961],Object[#961],Integer,Object[#1357],Object[#512],Object[#813]},{})
    full_frame(@753,{Object[#2],Object[#348],Integer,Integer,Object[#1354],Integer,Long,Long,Long,Long,Long,Object[#2],Object[#961],Object[#961],Integer,Object[#1357],Object[#512],Object[#813]},{})
    full_frame(@762,{Object[#2],Object[#348],Integer,Integer,Object[#1354],Integer,Long,Long,Long,Long,Top,Top,Object[#2],Object[#961],Object[#961],Integer,Object[#1357],Object[#512],Object[#813]},{})
    full_frame(@771,{Object[#2],Object[#348],Integer,Integer,Object[#1354],Integer,Top,Top,Top,Top,Top,Top,Top,Top,Top,Top,Object[#2],Object[#961],Object[#961],Integer,Object[#1357],Object[#512],Object[#813]},{})
    full_frame(@825,{Object[#2],Object[#348],Integer,Integer,Object[#1354],Integer,Object[#813],Top,Top,Top,Top,Top,Top,Top,Top,Top,Object[#2],Object[#961],Object[#961],Integer,Object[#1357],Object[#512],Object[#813]},{})
    full_frame(@847,{Object[#2],Object[#348],Integer,Integer,Object[#1354],Integer,Object[#1359],Integer,Integer,Top,Top,Top,Top,Top,Top,Top,Object[#2],Object[#961],Object[#961],Integer,Object[#1357],Object[#512],Object[#813]},{})
    same_frame_extended(@945)
    full_frame(@1012,{Object[#2],Object[#348],Integer,Integer,Object[#1354],Integer,Object[#464],Integer,Integer,Top,Top,Top,Top,Top,Top,Top,Object[#2],Object[#961],Object[#961],Integer,Object[#1357],Object[#512],Object[#813]},{Object[#2]})
    same_locals_1_stack_item_frame(@1016,Object[#2])
    same_locals_1_stack_item_frame(@1020,Object[#2])
    same_locals_1_stack_item_frame(@1031,Object[#2])
    full_frame(@1042,{Object[#2],Object[#348],Integer,Integer,Object[#1354],Integer,Object[#464],Integer,Integer,Top,Top,Top,Top,Top,Top,Top,Object[#2],Object[#961],Object[#961],Integer,Object[#1357],Object[#512],Object[#813]},{Object[#2],Object[#4]})
    same_frame(@1062)

        at org.mapdb.DBMaker$Maker.make(DBMaker.kt:477)
        at demo.App.main(App.java:11)