Oracle Scripting 11i - custom java command problem

Hello
Can someone pls help me with the following issue I'm having with Oracle Scripting 11i.
I want to use in my script a custom Java command for a shortcut button. I follow the instructions given in the docs that I found, but seems that I miss something, so pls advice.
This is what I did:
1. in my script a defined a shortcut button with a Java command type. The command name is correctly specified as :
a.b.myclass::mymethod - I'm also passing a Proxy parameter and a string - the name of the group I want to jump to. (this is the exact example I found in Oracle Scripting use and administer course dating from 2000 -:( ).
2. I packaged my classes in a jar. (What is strange is that I am using the exact code for my method as the ScriptUtil class provided as bestpractice by Oracle)
3. using Oracle Scripting Administration Console I upload my jar as global.
4. Deploy my script to the database.
5. Run the script
After all that, what I get when I push the shortcut button is .... nothing!!!!
If I am removing my jar from the database using Oracle Scripting Administration console - I am getting "Unable to load class since no jar was associated with your script"
If I'm indicating on purpose a Java method name (that does not exist in my class) I'm getting java.lang.RuntimeException.
So, I really do not know what the problem is, since my code is the same as the ScriptUtil class, and if I'm using the Script Util as my Java Command it works just fine.
Can someone help me? What am I doing wrong? Did I missed a step?
Thank you
Cristina

Hello
Can someone pls help me with the following issue I'm having with Oracle Scripting 11i.
I want to use in my script a custom Java command for a shortcut button. I follow the instructions given in the docs that I found, but seems that I miss something, so pls advice.
This is what I did:
1. in my script a defined a shortcut button with a Java command type. The command name is correctly specified as :
a.b.myclass::mymethod - I'm also passing a Proxy parameter and a string - the name of the group I want to jump to. (this is the exact example I found in Oracle Scripting use and administer course dating from 2000 -:( ).
2. I packaged my classes in a jar. (What is strange is that I am using the exact code for my method as the ScriptUtil class provided as bestpractice by Oracle)
3. using Oracle Scripting Administration Console I upload my jar as global.
4. Deploy my script to the database.
5. Run the script
After all that, what I get when I push the shortcut button is .... nothing!!!!
If I am removing my jar from the database using Oracle Scripting Administration console - I am getting "Unable to load class since no jar was associated with your script"
If I'm indicating on purpose a Java method name (that does not exist in my class) I'm getting java.lang.RuntimeException.
So, I really do not know what the problem is, since my code is the same as the ScriptUtil class, and if I'm using the Script Util as my Java Command it works just fine.
Can someone help me? What am I doing wrong? Did I missed a step?
Thank you
Cristina

Similar Messages

  • Jdk1.2.2 java commands problem on win98, win2000 and XP

    To Whom It May Concern:
    I have just bought a new PC and made 3 partitions on the hard drive, each of them has 10G space, to installed 3 operation systems on each of these partitions, win98se, win2000 and XP. Then I installed jdk1.2.2 on each of these operation systems. However, when I go into the �\jdk1.2.2\bin directory and run the executable commands, eg. javac and java etc., get the following different error messages on different operating systems. I have spent a lot of time on trying to fix these problems, however, no any luck. It will be very appreciated if you super expert can have some help on them.
    win98se
    After run the javac command, get the following error message displayed on a prompt with a Close and a Details buttons.
    This program has performed an illegal operation and will be shut down.
    If the problem persists, contact the program verdor.
    After click the Details button, get the following message:
    JAVA caused an invalid page fault in
    module SYMCJIT.DLL at 019f:500bf974.
    Registers:
    EAX=00000e03 CS=019f EIP=500bf974 EFLGS=00010206
    EBX=006539a0 SS=01a7 ESP=0063f894 EBP=00000e7f
    ECX=0000009f DS=01a7 ESI=00000e7f FS=3557
    EDX=00000003 ES=01a7 EDI=05110010 GS=0000
    Bytes at CS:EIP:
    f3 a5 ff 24 95 48 42 0c 50 8d 49 00 8d 74 31 fc
    Stack dump:
    500bf8c7 0000027f 500c42b0 5007cc24 05110010 00000e7f 0000027f 007608c0 00000283 006a81a8 006539a0 0063f940 006539e8 05110010 006539a0 00000e7f
    win2000
    After run the javac command, get the following error message displayed on a prompt with a OK button.
    java.exe has generated errors and will be closed by Windows. You will need to restart the program.
    An error log is being created.
    XP
    After run the javac command, get the following error message displayed on a prompt with a Send Error Report and Don't Send buttons.
    java.exe has encountered a problem and needs to close. We are sorry for the inconvenience.
    If you were in the middle of something, the informaiton you were working on might be lost.
    Please tell Micorsoft about this problem.
    We have created an error report that you can send to us. We will treat this report as confidential and enonymous.
    To see what this error report contains, click here.
    thanks and regards!
    ZhiCheng

    http://java-virtual-machine.net/tech-faq.html
    is a great link.
    It claims to have a newer, fixed version of problem DLL, SYMCJIT.DLL . Try that.
    The page has an Intel link that is out-of -date. The current Intel link is
    http://support.intel.com/support/processors/pentium4/sb/CS-007990.htm
    "CPUID detection for Intel� Pentium� 4 processor system"
    In two lines, they recommend:
    dir /s SYMCJIT.DLL
    ren SYMCJIT.DLL SYMCJIT.OLD
    Of course, Java will run slower, but JIT is a machine-specific concept and this *.DLL was coded to fail if it did not recognize the CPU type. Maybe not a great decision, but there you are.

  • Java commands problem

    I have installed java. But when I run in a dos shell commands Java, jar etc, it does not recognize them. I want to execute these commands from any directory; Today, I must use C:\j2sdk1.4.2_13\bin to work properly.
    Thanks,

    PATH="C:\j2sdk1.4.2_13\bin"You need to set the path first.

  • Custom Java Installer Problems

    I need to make an installer that will load several products at the same time (including downloading Java and installing it for the user) from a single screen for simplification purposes. My current installer builds the JavaSoft reg tree and places all the files inside the Java folder correctly. Unfortionatly, no browser recognizes java exists and I can't find the registry keys to make it do so.
    Help finding these keys or any help with installing Java within another installer without a seperate window popping up would be greatly appreciated.
    Doug

    bumb

  • EBS 11i custom report format in Excel

    We have developed Oracle EBS 11i custom reports in PDF / Text output format for a Customer. Now, the customer wants all of them to be converted into excel format since they want to do some data manipulation on the output. Are there any tools / utilities to quickly take care of this conversion?
    The output has to look like an authentic excel file with proper pagination / headers etc. Any help is appreciated.
    Regards,
    V N

    Please see old threads for similar discussion -- http://forums.oracle.com/forums/search.jspa?threadID=&q=Excel+AND+Output&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • How can I use custom WLST commands for Oracle SOA Suite in Weblogic

    Hi There,
    I'm trying to view and search the weblogic log files using WLST on a Solaris/Unix system.
    I have come across this "custom WLST commands for Oracle SOA Suite" and thought of using the custom logging commands to get my task done.
    However, my WLST shell is not recognizing the commands and giving me the NameError!
    wls:/devDomain1/domainRuntime> listLogs()
    Traceback (innermost last):
    File "<console>", line 1, in ?
    NameError: listLogs
    I tried the commands listLogs, displayLogs, getLogLevel & setLogLevel but in vain!
    I have followed the instructions as per the oracle recommendation of using Custom WLST commands (http://docs.oracle.com/cd/E29597_01/core.1111/e10105/getstart.htm#ASADM10692) as below
    - Launched the WLST shell from Oracle Home.
    cd ORACLE_HOME/common/bin
    ./wlst.sh
    - Tried to run the listLogs command from domainRuntime()
    I would like to know if I need to import any additional libraries to run the custom WLST commands for Oracle SOA Suite in my WLST shell?
    I have only weblogic 10.3.1 server installed on my Solaris 10 machine on which I have deployed the OSB application software.
    There is no SOA Suite installed.
    Or is there any other way I can browse the Server Log file and get the list of log messages? Basically I would like to use this feature in my script to customize it according to my requirement of listing specific error logs which I can work it out if I know how to make these commands work.
    Please advise if this is possible and how?
    Cheers.
    Satish

    I have tried on my OSB installation (no SOA Suite here), the command listLogs() works (I was in online mode, after a connect), and the classpath is:
    CLASSPATH=/opt/oracle/fmw11_1_1_5/patch_wls1035/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/oracle/fw11_1_1_5/patch_ocp360/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.33.x6_64/lib/tools.jar:/opt/oracle/fmw11_1_1_5/wlserver_10.3/server/lib/weblogic_sp.jar:/opt/oracle/fmw11_1_1_5/wlserver_10./server/lib/weblogic.jar:/opt/oracle/fmw11_1_1_5/modules/features/weblogic.server.modules_10.3.5.0.jar:/opt/oracle/fmw111_1_5/wlserver_10.3/server/lib/webservices.jar:/opt/oracle/fmw11_1_1_5/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/optoracle/fmw11_1_1_5/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar::/opt/oracle/fmw11_1_1_5/oracle_common/moules/oracle.jrf_11.1.1/jrf-wlstman.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/lib/adfscripting.jar:/opt/oracl/fmw11_1_1_5/oracle_common/common/wlst/lib/adf-share-mbeans-wlst.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/lb/mdswlst.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/auditwlst.jar:/opt/oracle/fmw11_1_1_5/oracle_cmmon/common/wlst/resources/igfwlsthelp.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/jps-wlst.jar:/optoracle/fmw11_1_1_5/oracle_common/common/wlst/resources/jrf-wlst.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/reources/oamap_help.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/oamAuthnProvider.jar:/opt/oracle/fmw111_1_5/oracle_common/common/wlst/resources/ossoiap_help.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/osoiap.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/ovdwlsthelp.jar:/opt/oracle/fmw11_1_1_5/oracle_comon/common/wlst/resources/sslconfigwlst.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/wsm-wlst.jar:/optoracle/fmw11_1_1_5/utils/config/10.3/config-launch.jar::/opt/oracle/fmw11_1_1_5/wlserver_10.3/common/derby/lib/derbynet.ar:/opt/oracle/fmw11_1_1_5/wlserver_10.3/common/derby/lib/derbyclient.jar:/opt/oracle/fmw11_1_1_5/wlserver_10.3/common/drby/lib/derbytools.jar::
    The wlst.sh I have used is /opt/oracle/fmw11_1_1_5/osb/common/bin/wlst.sh
    I hope this can help

  • Rel 12 - How to create a new APPS connection from custom Java/Shell Script

    Hi,
    I am looking to write a custom JAVA code / Shell Script which needs to establish a connection to execute a PL/SQL API on Rel 12 db.
    The challenge is to be able to connect without specifying APPS Password anywhere (just like Oracle Apps does it).
    This Shell script / Java code is not called from within Apps hence I need to establish a brand new connection along the lines of using ....
    WebAppsContext ctx = new WebAppsContext(System.getProperty("JTFDBCFILE"));
    OracleConnection conn = (OracleConnection)ctx.getJDBCConnection();
    like in 11i world or possibly using APPLSYSPUB username
    I need help / direction in how to do this in a Rel 12 env. I understnad there are lot of architecture changes and if someone can provide a generic code snipped it will be great.
    I need to keep this as closely aligned to Rel 12 coding and security standards as possible.
    This code will reside in $XXCUSTOM_TOP/bin file or under XXCUSTOM.oracle.apps.java....... if its Java.
    Pls help.
    Cheers
    -- VK.

    Hi,
    Have you looked at Oracle produced dbc file and its contents? That might help. It is under $FND_TOP/secure. It uses GWYUID=APPLSYSPUB/PUB. I am hoping that the APPS_JDBC_URL would help too.
    Regards,

  • Java.lang.Exception: Invalid AD_TOP Oracle Applications 11i

    Hi,
    I have tried to complete Oracle Application 11i installation, but I have one problem.
    I have multi node installation with 2 nodes(Virtual nodes with OEL 4).
    First for database software and database and second for everything else.
    I have successfully finished installation on database node and everything passed fine,
    but when I have started installation with same configuration file (I have created it on the database node)
    on the second node
    I get the message in the log:
    Starting CVM on Middle Tier.....
    java.lang.Exception: Invalid AD_TOP
    and my installation process wafting along time.
    Can anybody help me with this problem.
    Thanks,
    Dragan.

    I have found on this location /baza/Stage11i/oraiAS/Disk1/ias/stage
    problematic archive Archive: 806_d2pm.zip
    I have tried to unzip problematic archive and I get:
    [root@maximus stage]# unzip 806_d2pm.zip
    Archive: 806_d2pm.zip
    replace d2pm/install/relnotes/relnotes.map? [y]es, [n]o, [A]ll, [N]one, [r]ename: n
    replace d2pm/install/relnotes/relnotes.vrf? [y]es, [n]o, [A]ll, [N]one, [r]ename: n
    replace d2pm/install/relnotes/relnotes.ins? [y]es, [n]o, [A]ll, [N]one, [r]ename: n
    replace d2pm/install/relnotes/partial.prd? [y]es, [n]o, [A]ll, [N]one, [r]ename: n
    replace d2pm/install/relnotes/partial.prd.PRE_P15? [y]es, [n]o, [A]ll, [N]one, [r]ename: n
    replace d2pm/install/relnotes/partial.prd.PRE_P16? [y]es, [n]o, [A]ll, [N]one, [r]ename: n
    [root@maximus stage]#
    What can I do now?
    Best regards,
    Dragan

  • How to import custom java jar/class into oracle to be used in java proc ?

    Hi
    I would like to know how to import custom java jar/class files into oracle to be used in java stored procedure.
    I am developing a oracle pl/sql procedure to call java program. The java program will be created as procedure and will be published.
    But, my question is that I do have a other external jar/class file that need to be imported into this java program.
    example
    raise_sal.java
    import java.util.*;
    import oracle.sql.*;
    <<reference other java programs >>
    import cmpmsgsvc.xxxx.* ;
    import cmpmsgsvc.yyyy.* ;
    import cmpmsgsvc.zzzz.* ;
    how do I import the cmpmsgsvc jar/class file into oracle so that I don't have any
    compilation errros on raise_sal.java program ??
    what are the steps to import/compile and validate to do this?
    thanks for your help in advance.
    Thanks
    rrb.

    Kuassi
    Problem is that, I have 6 jar files that are needed to be included in the main java program. And, there are more than 50+ classes, propertiers in those 6 jar files.
    It might be not good idea to have all those 50+ classes in the production database.
    Is there anyway that I keep all those 6 jar files in unix box (our's is oracle erp installation with oracle being installed on unix box) and just refer them in the main java program. I mean database will be loaded with main java program and it should able to refer other 6 jar files from unix.
    if we create a directory and keep all jar files in there and include that directory in classpath variable, does this works? or what is other method?
    Please let me know.
    Thanks

  • Upgrading Oracle XML Parser for Java v9.0.4 with Oracle Applications 11i

    Guys, I applied ATG.PF.H.RUP4. In postinstall steps it is mentioned,Upgrading Oracle XML Parser for Java v9.0.4 with Oracle Applications 11i(doc-271148.1)
    which says after applying patch 4038964 do the following--
    AUTOCONFIG ENABLED APPLICATIONS ENVIRONMENT
    If the Oracle E-Business Suite configuration files are maintained using the AutoConfig infrastructure, proceed with the following:
    1. Run the AutoConfig utility.
    2. Go to [JAVA_TOP].
    3. Run the unzip -l appsborg2.zip | grep 9.0.4 command. If there is a file named as .xdkjava_version_9.0.4.0.0_production, which indicates that XML Parser for Java v9.0.4 is installed correctly as part of appsborg2.zip. Otherwise, run ADAdmin to regenerate the appsborg2.zip file.
    4. Restart the application tier server processes such that the new version of Oracle XML Parser for Java will take effect.
    but actually the patch is already applied- 4038964. How do i verify if i need to do these steps or not.
    The xmlparserv2-904.zip file is already there in wrapper.classpath. of jserv.properties, forms.properties. So i think i dont need to do these steps.

    unzip -l appsborg2.zip | grep 9.0.4
    0 04-18-03 20:10 .xdkjava_version_9.0.4.0.0_production
    do i still need to do that step?No, you do not have to since "XML Parser for Java v9.0.4" is already installed as part of appsborg2.zip

  • Reports registraion in oracle Apps 11i - Language problem

    Hello,
    I have registered a parametric report in Oracle Applications 11i. It completed successfully but output is in French language not US. What to do with to resolve this issue? I have tried its output with Text type format but problem with this format is logo & formatting of report disappears. I want to report in PDF Format and US Language, Can anyone help plz!
    Thanks,
    Regards!

    Thanks for the reply.
    I copied all the files (gnumake.exe, cc.exe, link.exe, which.exe) to windows\system32 folder. Still getting the same problem.
    I am aable to run the same commands from cmd prompt and through cygwin but when rapidinstall runs they are not working.
    G:\>which cmd
    /cygdrive/c/WINDOWS/system32/cmd
    G:\>which gnumake
    /cygdrive/c/WINDOWS/system32/gnumake
    G:\>which cc
    /cygdrive/c/WINDOWS/system32/cc
    G:\>which link
    /cygdrive/c/WINDOWS/system32/link

  • Installing Oracle EBS 11i installation problem

    Dear All,
    I have a problem regarding the installation of Oracle EBS 11i of which I can't figure out a solution.
    After unzipping all the 108 files during the rapidwiz installation the installer seems to halt (in step 1, 100% of file extraction). It involves instconf.drv but it doesn't show me an error in the installation logs. The line that appears is the following:
    instantiatefile -d instconf.drv
    I tried to change my Linux distribution from SLES10 to Ubuntu but that doesn't work either.
    Could you please help me out with this.
    Kind regards,
    Charif Ennaciri

    Dear hsawwan,
    I checked the log file and it's full of lines similar like:
    AC-50402: Exception: java.lang.NullPointerException
    Raised by oracle.apps.ad.autoconfig.InstantiateFile
    instantiate file:
    source : /d01/oracle/visdb/9.2.0/appsutil/template/oui/bin/addNode.sh
    dest : /d01/oracle/visdb/9.2.0/oui/bin/addNode.sh
    backup : /d01/oracle/visdb/9.2.0/oui/bin/addNode.sh to /d01/oracle/visdb/9.2.0/appsutil/out/VIS_server/04261350/addNode.sh
    StackTrace:
    java.lang.NullPointerException
         at oracle.apps.ad.autoconfig.InstantiateFile.instantiateTheFile(InstantiateFile.java:4019)
         at oracle.apps.ad.autoconfig.InstantiateFile.processDriverFile(InstantiateFile.java:2655)
         at oracle.apps.ad.autoconfig.InstantiateFile.<init>(InstantiateFile.java:1066)
         at oracle.apps.ad.autoconfig.InstantiateFile.<init>(InstantiateFile.java:951)
         at oracle.apps.ad.autoconfig.InstantiateFile.<init>(InstantiateFile.java:609)
         at oracle.apps.ad.autoconfig.InstantiateFile.doMain(InstantiateFile.java:1948)
         at oracle.apps.ad.autoconfig.InstantiateFile.main(InstantiateFile.java:2312)
    AC-50402: Exception: java.lang.NullPointerException
    Raised by oracle.apps.ad.autoconfig.InstantiateFile
    instantiate file:
    source : /d01/oracle/visdb/9.2.0/appsutil/template/oui/bin/ouica.sh
    dest : /d01/oracle/visdb/9.2.0/oui/bin/ouica.sh
    backup : /d01/oracle/visdb/9.2.0/oui/bin/ouica.sh to /d01/oracle/visdb/9.2.0/appsutil/out/VIS_server/04261350/ouica.sh
    StackTrace:
    java.lang.NullPointerException
         at oracle.apps.ad.autoconfig.InstantiateFile.instantiateTheFile(InstantiateFile.java:4019)
         at oracle.apps.ad.autoconfig.InstantiateFile.processDriverFile(InstantiateFile.java:2655)
         at oracle.apps.ad.autoconfig.InstantiateFile.<init>(InstantiateFile.java:1066)
         at oracle.apps.ad.autoconfig.InstantiateFile.<init>(InstantiateFile.java:951)
         at oracle.apps.ad.autoconfig.InstantiateFile.<init>(InstantiateFile.java:609)
         at oracle.apps.ad.autoconfig.InstantiateFile.doMain(InstantiateFile.java:1948)
         at oracle.apps.ad.autoconfig.InstantiateFile.main(InstantiateFile.java:2312)
    What can I do about this?
    Kind regards,
    Charif

  • Problem Installing Oracle Applications 11i on

    Gurus.. Please help...
    I am trying to install oracle applications 11i on Windows XP Professional and for some reason the process is getting stuck at :
    Step 3 of 5
    Command: c:\oracle\proddb\9.2.0\temp\PROD\adrundb.cmd
    g Performing database characterset conversion adsvdcnv.cmd
    I have tried several times and everytime it is getting stuck at this stage only.
    I am installing in language English only... and selected most of the options defaulted by the system.
    The system doesnot give any error message but get stuck at this point for hours. Couldn't figure out the problem... Please throw in some ideas... Thanks in advnance...

    Check the install log, this will tell you what happened with the file that was having problems. If you want to email the log to me i will have a look. But a lot of people have the same problem with this file so it's easy to fix.
    [email protected]

  • Running multiple java commands from a script

    Hi, I am running Cygwin on windows XP professional.
    I keep recompiling some files with javac as I change them very often. To save some time, I made a script "tout.txt" including the three following commands :
    javac JpanColl.java
    javac AppliTest.java
    java AppliTest
    There is no problem with the java command that launches a JFrame but it launches the old version since the two java commands don't compute.
    This is the message I get :
    javac Invalid flag: Jpancoll.java
    etc.
    Thanks

    You guys didnt play enough Highlights for Kids covers
    as a kid, lol.
    javac JpanColl.java
    javac Invalid flag: Jpancoll.java
    all things java are cAsE sEnSiTiVe.Yes thanks for the input. I did note the incorrect name, however, Windows doesn't actually care, it matters at runtime but not compile time. Also invalid flag is not the type of error message one would see with that sort of error anyway.
    Bottom line: nice guess but you're wrong.

  • OBIEE variables in custom java script

    Hello all
    Can I use OBIEE variables like presentation and session variables in my custom java script code that I am writing in text view on a dashboard page. Is it possible to do that. please me soon if somebody knows the solution to do that.
    Thanks in Advance

    Hi john
    Thanks for reply, I am able to generate javascript using text view on a dashboard page.
    But I want to access OBIEE variables in javascript. How I can do that in narrative view. Can u explain me or give me any link.
    Thanks

Maybe you are looking for