VERSION 2.1-rc2 - (May, 5th 2015) - Bug fixing: 32 issues from 2.1-rc1. Il giorno venerdì 29 maggio 2015 10:37:22 UTC+2, Andrey Lomakin ha scritto: > > Hi, > It is already fixed, which version do you use ? > > On Fri, May 29, 2015 at 11:25 AM, ciroBorrelli skymedia < > [email protected] <javascript:>> wrote: > >> Console Import after Export returns a ClassCastException: >> >> Hi, >> >> I have an _inmem database created as "in-memory db". >> From console I can connect to such db, by using: >> > connect remote://localhost:2480/-inmem root >> > Enter password: [aPwd] >> > Connecting to database [remote://localhost:2480/_inmem] with user >> 'root'...OK >> DISTRIBUTED CONFIGURATION: >> { >> "localName": "_hzInstance_1_orientdb", >> "localId": "89a3db81-2daa-4878-9ef4-dec91259bceb", >> "members": [{ >> "id": "89a3db81-2daa-4878-9ef4-dec91259bceb", >> "name": "node1", >> "startedOn": "2015-05-29 09:34:40", >> "listeners": [{"protocol":"ONetworkProtocolBinary","listen":" >> 172.20.1.6:2424"},{"protocol":"ONetworkProtocolHttpDb","listen":" >> 172.20.1.6:2480"}], >> "databases": [] >> } >> ] >> } >> >> Then I successfully create a couple of my classes and export the db from >> the console CLI: >> > export database ./inmem4.gz >> > Exporting current database to: database ./inmem4.gz in GZipped JSON >> format ... >> Started export of database '_inmem' to ./inmem4.gz... >> Exporting database info...OK >> Exporting clusters...OK (14 clusters) >> Exporting schema...OK (13 classes) >> Exporting records... >> - Cluster 'internal' (id=0)...OK (records=3/3) >> - Cluster 'index' (id=1)................OK (records=13/13) >> - Cluster 'manindex' (id=2)...OK (records=1/1) >> - Cluster 'default' (id=3)...OK (records=0/0) >> - Cluster 'orole' (id=4)...OK (records=0/0) >> - Cluster 'ouser' (id=5)...OK (records=0/0) >> - Cluster 'ofunction' (id=6)...OK (records=0/0) >> - Cluster 'oschedule' (id=7)...OK (records=0/0) >> - Cluster 'orids' (id=8)...OK (records=0/0) >> - Cluster 'v' (id=9)...OK (records=0/0) >> - Cluster 'e' (id=10)...OK (records=0/0) >> - Cluster '_studio' (id=11)...OK (records=0/0) >> - Cluster 'nodes' (id=12)...OK (records=0/0) >> - Cluster 'edges' (id=13)...OK (records=0/0) >> >> Done. Exported 17 of total 17 records >> >> Exporting index info... >> - Index dictionary...OK >> - Index OUser.name...OK >> - Index ORole.name...OK >> OK (3 indexes) >> Exporting manual indexes content... >> - Exporting index dictionary ...OK (entries=0) >> OK (1 manual indexes) >> >> Database export completed in 239ms >> >> BUT when I try to import from the exported .gz archive, from the console >> CLI (non-merge mode): >> > import database ./inmem4.gz -preserveClusterIDs=true >> >> I get the fiollowing Exception (see below): >> Importing database database ./inmem4.gz -preserveClusterIDs=true... >> Started import of database 'remote://localhost:2480/_inmem' from >> ./inmem4.gz... >> Non merge mode (-merge=false): removing all default non security classes >> - Class ORIDs was removed. >> - Class OFunction was removed. >> - Class edges was removed. >> - Class _studio was removed. >> - Class nodes was removed. >> - Class ORestricted was removed. >> - Class OSchedule was removed. >> - Class OTriggered was removed. >> - Class E was removed. >> - Class V was removed. >> Removed 10 classes. >> Importing database info...OK >> Importing clusters... >> - Creating cluster 'internal'...OK, assigned id=0 >> - Creating cluster 'default'...OK, assigned id=3 >> - Creating cluster 'orole'...OK, assigned id=4 >> - Creating cluster 'ouser'...OK, assigned id=5 >> - Creating cluster 'ofunction'...OK, assigned id=6 >> - Creating cluster 'oschedule'...OK, assigned id=7 >> - Creating cluster 'orids'...OK, assigned id=8 >> - Creating cluster 'v'...OK, assigned id=9 >> - Creating cluster 'e'...OK, assigned id=10 >> - Creating cluster '_studio'...OK, assigned id=11 >> - Creating cluster 'nodes'...OK, assigned id=12 >> - Creating cluster 'edges'...OK, assigned id=13 >> Rebuilding indexes of truncated clusters ... >> Done 2 indexes were rebuilt. >> Done. Imported 12 clusters >> Importing database schema...OK (13 classes)Error on database import >> happened just before line 0, column 3946 >> com.orientechnologies.orient.server.distributed.ODistributedException: >> Error on execution distributed COMMAND >> at >> com.orientechnologies.orient.server.distributed.ODistributedStorage.command(ODistributedStorage.java:409) >> at >> com.orientechnologies.orient.core.command.OCommandRequestTextAbstract.execute(OCommandRequestTextAbstract.java:63) >> at >> com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.command(ONetworkProtocolBinary.java:1172) >> at >> com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.executeRequest(ONetworkProtocolBinary.java:372) >> at >> com.orientechnologies.orient.server.network.protocol.binary.OBinaryNetworkProtocolAbstract.execute(OBinaryNetworkProtocolAbstract.java:221) >> at >> com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:71) >> Caused by: >> com.orientechnologies.orient.core.exception.OCommandExecutionException: >> Error on execution of command: sql.create index ___exportImportRIDMap >> DICTIONARY_HASH_INDEX LINK >> at >> com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.executeCommand(OAbstractPaginatedStorage.java:1215) >> at >> com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.command(OAbstractPaginatedStorage.java:1183) >> at >> com.orientechnologies.orient.server.distributed.ODistributedStorage.command(ODistributedStorage.java:222) >> at >> com.orientechnologies.orient.core.command.OCommandRequestTextAbstract.execute(OCommandRequestTextAbstract.java:63) >> at >> com.orientechnologies.orient.server.distributed.task.OSQLCommandTask.execute(OSQLCommandTask.java:70) >> at >> com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin.executeOnLocalNode(OHazelcastPlugin.java:772) >> at >> com.orientechnologies.orient.server.hazelcast.ODistributedWorker.onMessage(ODistributedWorker.java:300) >> at >> com.orientechnologies.orient.server.hazelcast.ODistributedWorker.run(ODistributedWorker.java:121) >> Caused by: java.lang.*ClassCastException*: >> com.orientechnologies.orient.server.distributed.ODistributedStorage cannot >> be cast to >> com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage >> at >> com.orientechnologies.orient.core.index.hashindex.local.OHashIndexFactory.createIndex(OHashIndexFactory.java:107) >> at >> com.orientechnologies.orient.core.index.OIndexes.createIndex(OIndexes.java:165) >> at >> com.orientechnologies.orient.core.index.OIndexManagerShared.createIndex(OIndexManagerShared.java:154) >> at >> com.orientechnologies.orient.core.index.OIndexManagerProxy.createIndex(OIndexManagerProxy.java:79) >> at >> com.orientechnologies.orient.core.sql.OCommandExecutorSQLCreateIndex.execute(OCommandExecutorSQLCreateIndex.java:246) >> at >> com.orientechnologies.orient.core.sql.OCommandExecutorSQLDelegate.execute(OCommandExecutorSQLDelegate.java:83) >> at >> com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.executeCommand(OAbstractPaginatedStorage.java:1202) >> ... 7 more >> >> Why such: ClassCastException? >> I also tried without -preserveClusterIDs param, obtaining the same >> exception >> >> thx >> >> ciroBorrelli >> ___ >> >> -- >> >> --- >> 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. >> > > > > -- > Best regards, > Andrey Lomakin. > >
-- --- 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.
