从Oracle加载到OrientDB时出现空指针异常

时间:2016-02-22 23:04:42

标签: orientdb orientdb-2.1

我在Mac上安装了OrientDB V 2.1.11 - El Capitan。 我遵循OrientDB文档中的说明。 http://orientdb.com/docs/last/Import-from-DBMS.html 当我运行oetl.sh时,我得到一个空指针异常。我假设它正在连接到Oracle实例。 Json配置:

{
  "config": {
    "log": "error"
  },
  "extractor" : {
    "jdbc": { "driver": "oracle.jdbc.OracleDriver",
              "url": "jdbc:oracle:thin:@<dbUrl>:1521:<dbSid>",
              "userName": "username",
              "userPassword": "password",
              "query": "select sold_to_party_nbr from customer" }
  },
  "transformers" : [
   { "vertex": { "class": "Company"} }
  ],
  "loader" : {
    "orientdb": {
      "dbURL": "plocal:../databases/BetterDemo",
      "dbUser": "admin",
      "dbPassword": "admin",
      "dbAutoCreate": true
    }
  }
}

错误:

sharon.oconnor$ ./oetl.sh ../loadFromOracle.json 
OrientDB etl v.2.1.11 (build UNKNOWN@rddb5c0b4761473ae9549c3ac94871ab56ef5af2c; 2016-02-15 10:49:20+0000) www.orientdb.com
Exception in thread "main" java.lang.NullPointerException
    at com.orientechnologies.orient.etl.transformer.OVertexTransformer.begin(OVertexTransformer.java:53)
    at com.orientechnologies.orient.etl.OETLPipeline.begin(OETLPipeline.java:72)
    at com.orientechnologies.orient.etl.OETLProcessor.executeSequentially(OETLProcessor.java:465)
    at com.orientechnologies.orient.etl.OETLProcessor.execute(OETLProcessor.java:269)
    at com.orientechnologies.orient.etl.OETLProcessor.main(OETLProcessor.java:116)

Oracle中的数据如下所示:

0000281305
0000281362
0000281378
0000281381
0000281519
0000281524
0000281563
0000281566
0000281579
0000281582
0000281623
0000281633

我在BetterDemo数据库中创建了一个带有sold_to_party_nbr字符串属性的Company类。

如何进一步调查以找出问题所在?

0 个答案:

没有答案