My Oracle Support Banner

"java.lang.NullPointerException" Error Received by ODI when using a Jython Script to Perform an FTP Operation (Doc ID 2515963.1)

Last updated on OCTOBER 18, 2019

Applies to:

Oracle Data Integrator - Version 11.1.1.7.0 and later
Information in this document applies to any platform.

Symptoms

The following error:

org.apache.bsf.BSFException: exception from Jython:
Traceback (most recent call last):
File "", line 1, in
File "__pyclasspath__/snpsftp$py.class", line 8, in
File "__pyclasspath__/ftplib$py.class", line 42, in
File "__pyclasspath__/ftplib$py.class", line 42, in
java.lang.NullPointerException
  at java.io.File.<init>(File.java:222)
  at java.lang.Package$1.run(Package.java:527)
  at java.lang.Package.defineSystemPackage(Package.java:520)
  at java.lang.Package.getSystemPackages(Package.java:511)
  at java.lang.ClassLoader.getPackages(ClassLoader.java:1513)
  at java.lang.ClassLoader.getPackages(ClassLoader.java:1511)
  at java.lang.Package.getPackages(Package.java:281)
  at org.python.core.JavaImportHelper.buildLoadedPackages(JavaImportHelper.java:161)
  at org.python.core.JavaImportHelper.tryAddPackage(JavaImportHelper.java:60)
  at org.python.core.imp.import_next(imp.java:640)
  at org.python.core.imp.import_name(imp.java:746)
  at org.python.core.imp.importName(imp.java:806)
  ...
  at org.python.core.imp.createFromCode(imp.java:326)
  at org.python.core.imp.createFromPyClass(imp.java:145)
  at org.python.core.imp.loadFromSource(imp.java:505)
  at org.python.core.imp.find_module(imp.java:411)
  at org.python.core.imp.import_next(imp.java:635)
  at org.python.core.imp.import_name(imp.java:746)
  ...
  at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:144)
  at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:322)
  at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:170)
  at ...

... occurs when executing an Oracle Data Integrator (ODI) Procedure step that calls a Jython script performing a File Transfer Protocol (FTP) operation from the **snpsftp** package as follows:

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.