使用"startscen"命令启动Scenario时,抛出"java.lang.NullPointerException"错误
Applies to:
Oracle Data Integrator - Version: 3.2.03.01 and later [Release: 3.2.03 and later ]
Information in this document applies to any platform.
症状
使用"startscen.bat(.sh)"命令启动Scenario时,抛出
java.lang.NullPointerException
at com.sunopsis.dwg.dbobj.SnpScen.getObjectLst(SnpScen.java)
at com.sunopsis.dwg.dbobj.SnpScen.getScenarionByCodeAndVersion(SnpScen.java)
最近几条有关Scenari执行日志文件如下:
PM(main): SnpUserProf.getObjectLst : :
[]
java.lang.NullPointerException
DwgJv.main: Exit. Return code:-1
or
IntJavaName:com.sunopsis.dwg.dbobj.SnpRemRep
java.lang.NullPointerException
DwgJv.main: Exit. Return code:-1
or
IntJavaName:com.sunopsis.dwg.dbobj.SnpOpenTool
java.lang.NullPointerException
DwgJv.main: Exit. Return code:-1
原因
"odiparams.bat(.sh)"配置文件中ODI工作组件库连接信息不正确。
"odiparams.bat(.sh)"配置文件位于ODI安装路径"/bin"下。
解决方案
检查ODI "odiparams.bat(.sh)"命令文件中 ODI_SECU_xyz参数
查看更多参数信息,请参阅Note 424193.1 <Effect Of Environmental Variables Referenced In The "odiparams" Configuration File>.
例如,如果work 组件库名字(ODI_SECU_WORK_REP 参数)不正确,NullPointerException会在以下两个Java类中抛出:
com.sunopsis.dwg.dbobj.SnpRemRep or com.sunopsis.dwg.dbobj.SnpOpenTool
连接ODI Topology Manager>"Repositories"标签,从"Work Repositories"树状图中可获得Work组件库文件名。