Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Jython error

user12236189May 15 2012 — edited May 16 2012
Hello,

I am using the following code in ODI procedure
import os
	scen='#V_GET_SCEN'
	scen_name=scen[5:-7]
	scen_ver=scen[-7:-4]
	file_name='C:/ODI_SCEN_DMP/#V_GET_SCEN'
	odiscen="C:\oracle\product\11.1.1\Oracle_ODI_1\oracledi\agent\bin\startcmd.bat OdiExportScen -SCEN_NAME="+scen_name+" -SCEN_VERSION="+scen_ver+" -FILE_NAME="+file_name
	if os.system(odiscen) <> 0:
	    raise odiscen
When I execute the procedure I am getting the error
org.apache.bsf.BSFException: exception from Jython:
SyntaxError: ("mismatched input '' expecting EOF", ('<string>', 2, 1, "\tscen='SCEN_AGENCY_SITE_LISTING001.XML'\n"))

	at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
	at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:322)
	... 
	at java.lang.Thread.run(Thread.java:662)
Caused by: SyntaxError: ("mismatched input '' expecting EOF", ('<string>', 2, 1, "\tscen='SCEN_AGENCY_SITE_LISTING001.XML'\n"))

	at org.python.core.PyException.fillInStackTrace(PyException.java:70)
	at java.lang.Throwable.<init>(Throwable.java:181)
	at java.lang.Exception.<init>(Exception.java:29)
	... 1 more
Could you please anyone can help on this error.

Thanks,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 13 2012
Added on May 15 2012
4 comments
2,011 views