Getting "java.lang.NullPointerException" error message when trying to run an OATS OpenScript file from Eclipse to Create a record in Oracle EBS

Hello,
I'm trying to run a simple OpenScript script in Eclipse that creates a record (a Supplier in this case) in Oracle E-Business Suite. So I copied the the script file from OpenScript and created it as a Class in Eclipse.  Then I created a main class to call the methods within the script class but no matter what method I call (initialize, run or finalize) I'm getting the java.lang.NullPointerException message. The error doesn't seem to be related with any specific line in the script but with the way that I'm calling it.
Should I call the OpenScript class from my main class in a different way? (see my examples below)
BTW, all external .jar files coming with OATS have been added to my project in Eclipse.
1) Here's the main class I created to call the OpenScript method (Eclipse auto-corrected my main class adding a Try and Catch around the method call):
public class Test {
    public static void main(String[] args) {
        nvscript nvs = new nvscript();
        try {
            nvs.initialize();
        } catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
2) Here's the script from OpenScript (the actual script has more steps but I'm just using the first one for a proof of concept):
import oracle.oats.scripting.modules.basic.api.*;
import oracle.oats.scripting.modules.browser.api.*;
import oracle.oats.scripting.modules.functionalTest.api.*;
import oracle.oats.scripting.modules.utilities.api.*;
import oracle.oats.scripting.modules.utilities.api.sql.*;
import oracle.oats.scripting.modules.utilities.api.xml.*;
import oracle.oats.scripting.modules.utilities.api.file.*;
import oracle.oats.scripting.modules.webdom.api.*;
import oracle.oats.scripting.modules.formsFT.api.*;
import oracle.oats.scripting.modules.applet.api.*;
public class nvscript extends IteratingVUserScript {
    @ScriptService oracle.oats.scripting.modules.utilities.api.UtilitiesService utilities;
    @ScriptService oracle.oats.scripting.modules.browser.api.BrowserService browser;
    @ScriptService oracle.oats.scripting.modules.functionalTest.api.FunctionalTestService ft;
    @ScriptService oracle.oats.scripting.modules.webdom.api.WebDomService web;
    @ScriptService oracle.oats.scripting.modules.applet.api.AppletService applet;
    @ScriptService oracle.oats.scripting.modules.formsFT.api.FormsService forms;
    public void initialize() throws Exception {
        this.getSettings().set("formsft.useformsonly",true);
        browser.launch();
    public void run() throws Exception {
        beginStep(
                "[1] E-Business Suite Home Page Redirect (/ebs12cloud.winshuttle.com:8000/)",
                0);
            web.window(2, "/web:window[@index='0' or @title='about:blank']")
                    .navigate("http://ebs12.xxxxxxx.com:8000/");
            web.window(4, "/web:window[@index='0' or @title='Login']")
                    .waitForPage(null);
                think(4.969);
            web.textBox(
                    7,
                    "/web:window[@index='0' or @title='Login']/web:document[@index='0']/web:form[@id='DefaultFormName' or @name='DefaultFormName' or @index='0']/web:input_text[@id='usernameField' or @name='usernameField' or @index='0']")
                    .setText("winshuttle_user");
                think(2.0);
            web.textBox(
                    8,
                    "/web:window[@index='0' or @title='Login']/web:document[@index='0']/web:form[@id='DefaultFormName' or @name='DefaultFormName' or @index='0']/web:input_password[@id='passwordField' or @name='passwordField' or @index='0']")
                    .click();
                think(1.109);
            web.textBox(
                    9,
                    "/web:window[@index='0' or @title='Login']/web:document[@index='0']/web:form[@id='DefaultFormName' or @name='DefaultFormName' or @index='0']/web:input_password[@id='passwordField' or @name='passwordField' or @index='0']")
                    .setPassword(deobfuscate("kjhkjhkj=="));
                think(1.516);
            web.button(
                    10,
                    "/web:window[@index='0' or @title='Login']/web:document[@index='0']/web:form[@id='DefaultFormName' or @name='DefaultFormName' or @index='0']/web:button[@id='SubmitButton' or @value='Login' or @index='0']")
                    .click();
        endStep();
    public void finish() throws Exception {       
3) Here's the error messages I'm getting based on the method I call from my main class:
3.a) when calling Initialize():
java.lang.NullPointerException
    at oracle.oats.scripting.modules.basic.api.IteratingVUserScript.getSettings(IteratingVUserScript.java:723)
    at nvscript.initialize(nvscript.java:22)
    at Test.main(Test.java:9)
3 b) when calling Run():
java.lang.NullPointerException
    at oracle.oats.scripting.modules.basic.api.IteratingVUserScript.beginStep(IteratingVUserScript.java:260)
    at nvscript.run(nvscript.java:30)
    at Test.main(Test.java:9)
Any help and/or constructive comment will be appreciated it.
Thanks.
Federico.

UPDATE
Compiling from command line I found out that the class definition for oracle.oats.scripting.modules.basic.api.IteratingVUserScript is missing. Do you know what .jar file contains this class?
Thanks.
Fede.

Similar Messages

  • Java Web Start error message when trying to run vSphere1.2 compliance checker

    It installed fine but a javaws usage message displayed when attempting to run. Seems like this might be some kind of Java environment problem on the Windows 7 Pro desktop. Not very familiar with Microsoft, any ideas and/or suggestion?.

    Thanks for your suggestions, I will look into them.
    One assumption I made is since the install completed without incident the program was able to locate any needed resources.
    Another assumption is since I received an error message from javaws then itself was being located - just lacking something else it needed.
    Ran javaws from command prompt, received same usage message. Apparently using 64 bit 1.7.0_13, didn't see a Java folder in the 32 bit Program Files so would that be the problen? That 32 bit Java version is needed to run this?  Java Web State 10.13.3.20-fcs.
    I'm the administrator of the system, so privilege is not an issue
    In Properties/Shortcut, verified that the .jar file was pathed correctly
    Target ->  "C:\Program Files\Java\jre7\bin\javaws.exe" -jar "C:\Program Files (x86)\VMware\VMware Compliance Checker for vSphere\vmcc.jar"
    Start in -> "C:\Program Files (x86)\VMware\VMware Compliance Checker for vSphere\"

  • Anyone else getting a timed out error message when trying to check for updates via the app store software on a desktop?

    anyone else getting a timed out error message when trying to check for updates via the app store software on a desktop?

    Hi, couple of things to try...
    Anonymous
    Post subject: NSURLErrorDomain error -1100 in OS X 10.8
    If you check for software updates using the App Store in OS X 10.8 and get "NSURLErrorDomain error -1100" the problem may be with your Software Update preferences. This is particularly likely if you were using a custom Apple Software Update server. To solve the problem, quit the App Store, move the following two files (if present) to the trash, restart, and only then rerun App Store updates:
    /Library/Preferences/com.apple.SoftwareUpdate.plist
    /Library/Preferences/com.apple.SoftwareUpdate.plist.lockfile
    http://x704.net/bbs/viewtopic.php?f=12&t=6130
    I was recently trying to upgrade to mountain lion through the app store.  I have unreliable Internet from a cable company whom I will not name, but we all know who they are.  My Internet dropped while downloading the upgrade.  Once I went through the notorious unplug the modem/router and plugged it back in to gain Internet connectivity again, I could not resume. No matter what I did, the app store kept displaying "an error occurred." I am hoping that those with the same issue read this first to save them hours of skimming through the Internet to find a solution.  Here are the steps to take:
    1. Make sure you have reestablished Internet connection
    2. Chances are you got frustrated when you tried to resume/unpause the download and clicked the "X" to the left.  If so, select the "Store" drop-down menu from the App Store and select "View My Account." There should be an option to unhide your purchase.  You know what to do.
    3. There is also an option to  reset all warnings for buying and downloading under "View My Account." Do this, click "Done," sign out of the App Store and quit the App Store.
    4. Open the Preferences in safari and select Privacy.  Select "Remove All Website Data."  Just do it.
    5. Launch the app store and sign in.
    6. Now, if you "Check for Unfinished Downloads" everything works peachy.
    I hope this helps.  Not much I can do for your Internet connection though.
    JonEz15...
    https://discussions.apple.com/thread/4697970?tstart=120

  • User gets an Content Encoding Error message when trying to access workspace

    Hi.
    I've created a workspace and added several users to it who can access it without any issues.
    However, one specific user (Leslie Elstad - https://beehiveonline.oracle.com/teamcollab/profiles/[email protected]) can't access her workspaces. She is using Firefox on a Solaris 10 machine.
    Here is what she told me:
    "I clicked on the Start button under Team Workspaces, which took me here:
    https://beehiveonline.oracle.com/teamcollab/
    and displayed the familiar Content Encoding Error message."
    Please advise.

    Hi.
    Please let me know what is going on when we add people to a Beehive Online group (Solaris Curriculum).
    People are frequently getting this same error/message when trying to access several workspaces.
    New cases, please help me fix their access:
    [email protected] can't access https://beehiveonline.oracle.com/teamcollab/wiki/Transition+to+Oracle+Solaris+11+Express
    [email protected]: can't access: https://beehiveonline.oracle.com/teamcollab/wiki/Transition+to+Oracle+Solaris+11+Express
    Thanks.

  • Help - error message when trying to run a program....

    Getting this error message - been trying to load and get jforge going, but I'm sure this is a standard problem.
    I'm trying to run this on WindowsXP Pro. Could this be an issue? Do I need any sort of plud-in for XP?
    D:\software\jforge\jforge3j2>set CLASSPATH=D:\software\jforge\jforge3j2\jforge.jar;D:\software\jforge\jforge3j\public.jar;D:\software\jforge\jforge3j2\calpahtml.jar;;.
    D:\software\jforge\jforge3j2>java com.tektools.jforge.JForgeMain
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/swing/JFrameBea
    nInfo
    at com.tektools.beaninfo.proxies.JDialogProxyBeanInfo.getIcon(JDialogPro
    xyBeanInfo.java)
    at com.tektools.jforge.loadedbeans.DefaultLoadedBean.<init>(DefaultLoade
    dBean.java)
    at com.tektools.jforge.loadedbeans.DefaultLoadedBeansManager.a(DefaultLo
    adedBeansManager.java)
    at com.tektools.jforge.loadedbeans.DefaultLoadedBeansManager.readBeansFi
    le(DefaultLoadedBeansManager.java)
    at com.tektools.jforge.JForgeMain.g(JForgeMain.java)
    at com.tektools.jforge.JForgeMain.a(JForgeMain.java)
    at com.tektools.jforge.JForgeMain.main(JForgeMain.java)

    Those slashes in the first line of the error message suggest to me that maybe you referred to a class incorrectly in your source code.

  • Error Message when trying to run Applications Module in OA Framework

    Below is the message that I received when trying to run my Applicaitons Module in test mode. When I click the error message I navigate to "public class TpcApBanksEOImpl extends OAEntityImpl". I was told to put "abstract" before "class" and to run it. It did compile after that, but I was wondering if anyone could tell me why.
    Error(12,8): class test_xxtpc.bc4j.TpcApBanksImpl should be declared abstract; it does not define method setLastUpdateLogin(oracle.jbo.domain.Number) in class oracle.apps.fnd.framework.server.OAEntityImpl

    User,
    Basically, an abstract method is a method in a class where just the signature is defined, and no implementation is provided. What you are being told by the compiler is that the method setLastupdateLogin is abstract, meaning that neither TpcApBanksImpl nor OAEntityImpl nor any of it's parents implement that method; therefore, your TpcApBanksImpl must be declared abstract.
    Hope this Helps,
    John

  • Mscorsvw error message when trying to run Exchange 2013 CU 8

    I'm getting this error when trying to run CU 8 on our Exchange 2013 server.
    How to make it not happen??
    Is there any way to find out how/where this process is running so it can be closed??
    Thank you, Tom

    Hi,
    How are things going?
    Mscorsvw.exe is a component of Windows, and is otherwise known as the .NET Framework Optimization Service. It optimizes your machine to launch apps faster. Once it's done, it will go away.
    Resolution:
    By using sevices.msc, verify that no service is in “Starting pending” state.
    More information about mscorsvw.exe
    http://blogs.msdn.com/b/dotnet/archive/2013/08/06/wondering-why-mscorsvw-exe-has-high-cpu-usage-you-can-speed-it-up.aspx
    Best Regards.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Lynn-Li
    TechNet Community Support

  • Getting error message when trying to run Shockwave Player Setup

    Can not get a proper installation.  This is my error message.  What should I do?  My system has all the necessary requirements.

    Moving this discussion to the Macromedia Shockwave Player forum.  In addition Kolya22 the image you tried to include is not visible.

  • Hp g6-1278sa get blue screen and error message when trying to load xp pro

    I have setup a new 500gb toshiba SATA 2 harddrive to run daul boot.
    Windows XP pro 32bit and windows 64bit.
    Unable to install XP pro, just goes into error and blue screen.
    Ive removed the harddrive and placed it in my Packard Bell, loaded XP pro 32bit and win 8 64bit with no problem, and both run fine.
    Removed the harddrive from the packard bell laptop and place it back into the HP g6-1278sa, daul boot screen on start up.
    Opptions windows 8 or earlyer windows.
    Windows 8 works fine.
    Windows XP pro starts to load and then we get the blue screen with error message.

    Hi     Powlers
       Ok read this tutorial ( link below ) in how to install XP within Windows 8 OR running Virtual Machine 
        http://www.howtogeek.com/171395/how-to-get-windows-xp-mode-on-windows-8/
                                                                                                    OR
        http://www.fixedbyvonnie.com/2014/03/legally-install-windows-xp-free-windows-8-using-virtualbox/
              Quick question :: What operating system was your machine shipped with initially ??? Windows 7 ???
                                                           Checkurtech
    ****Click the White Kudos star to say thanks****
    ****Please mark Accept As Solution if it solves your problem****

  • I get an IE Script error message when trying  to down load Flashplayer 11

    Error message:
    Line 13
    Char 498
    Error: Expected identifier
    Code: 0
    URL://127.0.0.1:1223/app/_host/host.js

    As a first step, check out this installation troubleshooting guide:
    http://helpx.adobe.com/flash-player/kb/installation-problems-flash-player-windows.html
    If the problem persists, please let us know what OS and browser you're using.  Also, are you using any third-party AntiVirus or Internet Security products?  The 127.0.0.1 address points to your local machine.  This indicates that something is getting redirected back to your local computer (typically because the web content itself is being re-written as it comes in).  Security products and malware both tend to do this.

  • Get a internet explorer error message when trying to save the exported document

    I get through the export process until it asks to save the exported document and then I get an internet explorer error that tells me it is shutting down the program

    Good day,
    Sorry to hear you're having trouble!  Try the solutions in our Troubleshooting Common Problems with ExportPDF document. 
    Those steps should resolve this issue.
    Kind regards,
    David
    Adobe Systems

  • Error message when trying to run

    Error message
    Hi,
    I just downloaded and installed Java 2 SDK 1.3.1 a few days ago.
    From the online tutorial>Your First Cup of Java, I read and did the first application
    HelloWorldApp create, compile and run, it worked.
    Then I did the applet HelloWorld and it worked. (though when I first ran appletviewer I got a message "Warning: Can't read AppletViewer properties file: C:\WINDOWS\Profiles\Lisa001\.hotjava\properties Using defaults." But haven't got the message since. It's working fine.)
    The next day when I went to run the program C:\java>java HelloWorldApp
    it wouldn't run. I keep getting an error message "Error opening registry key 'Software\JavaSoft\Java Runtime Environment'
    Error: could not find java.dll
    Error: could not find java 2 Runtime Environment."
    I don't know what to do. Any suggestions?

    Do you mean reinstall jdk? I was thinking of that, but the files are on my computer I looked them up under files and folders. And the program did run 2 days ago.

  • Internal Error message when trying to run adobe reader 9

    I downloaded and installed the new adobe reader 9. When I run it I get 'internal error' error message and now can't access any of my documents and my assignments were due in today.
    I was hoping that version 9 would have fixed the peculiarities around a. column reading (it doesn't recognise them and reads as if they are a single line) b. the enforced change in font when moving between 400% AND 800% magnification where it suddenly changes from my proportional font (Times New Roman) to a fixed font which makes reading impossible.
    Hey adobe please make your software accessible to ALL people so I can complete re-training via my post graduate diploma and become a tax payer again!!
    I am running on a 17" MacBook Pro 2.5 GHz Intel Core 2 Duo with 2GB RAM. Mac OS 10.5.4 and I also had a copy of version 8 installed.
    Anyone come across this issue and found out what's happening and a work around??
    kind regards
    Elaine

    Elaine,
    As a professor, I'd like to say that you shouldn't wait for the last
    minute---but I won't since it is not helpful. As a mac user, you have
    the Apple Preview program that will open most pdf files with no issue.
    In terms of column reading, unless a document is appropriately tagged,
    Reader has no method of knowing that the document has columns or where
    they are.
    Reader never changes font when the magnification is changed. Something
    else is going on.
    It sounds as if you need to remove Reader and try to re-install. If that
    doesn't work, perhaps there is a preference file problem. You can check
    this possibility by running as a different user.
    Mike

  • Error message when trying to run the Upgrade for Itunes

    I got a new laptop and to transfer my Itunes I downloaded the latest version of Itunes from the website (v7)
    When I try to run the upgrade on my new laptop I get the error message - *This installation package could not be opened. Verify that the package exists and is accessible, or contact the application vendor to verify that this is a valid Windows Installer package.*
    Can anyone help me and give me advice on how to get my itunes upgraded!!!!! I miss my tunes!

    Did you ever figure out the problem? "Contact Software Manufacturer"?? That sounds ominous... I've got the same issue and I'm pretty durn aggravated right about now....
    Thanks!

  • Receiving an error message when trying to do back up my files with windows backup and restore files

     I received this error message from my windows vista ultimate automatic backup did not complete. I clicked details  in the message and it says " An error occurred. The following information might help you reslove the error: (Access is denied
    0x80070005). Can Anyone help me resolve this issue? Thx.
    DAG

    I have been backing up to the same location for almost a year. I had trouble backing up to this location went I first set it up it is my external HDD. I resolved it after following suggestions from someone from this forum but that thread reply has been
    deleted I looked for it I found the thread but the information in the reply is gone and I can't remember what I had to do to get it to work again.
    DAG

Maybe you are looking for

  • Problems with my streamings photos

    hello, do not load my streaming photos to my pc

  • Insecure Startup Item Disabled

    Hello I recently installed a HP Printer (HP PSC 1410 All In One) to my MacBook system running Snow Leopard 10.6.3 and just after I installed I uninstalled when finished. Since the uninstall however, I have been getting an error message at startup rea

  • Notes not working....

    After the update to 10.5.3, I am unable to add or edit any of my notes. Would like to submit this as a bug, is there any way around this?

  • HT204065 iMessage message doesn't be delivered sometimes

    Hello, I use iMessage with my wife and messages don't be delivered sometimes. It says "sent" on my iPhone 6 but my wife doesn't see the message. We are both in Wi-Fi and 3G networks but there may be network issues instant. I send another messages the

  • SPA9000 for Newbie

    Hi all, I am thinking of buying the SPA400 and SPA900 for my home business. I have never used a PBX before. There are a few questions I would like to ask: 1) We have only one PSTN line. Do we need at least two lines/phone numbers in order to forward