Testing Java Concurrent Program on the command line in Windows

I'm using the suggestions in:
http://blogs.oracle.com/xmlpublisher/2007/05/02
to test my Java concurrent program on the command line. Our production environment is running on Unix. I've been able to test it successfully on the Unix environment from the command line. However, it fails when I try to test it on the Windows command line with the following stack trace:
Exception in static block of jtf.cache.CacheManager. Stack trace is: oracle.apps
.jtf.base.resources.FrameworkException: IAS Cache initialization failed
at oracle.apps.jtf.cache.IASCacheProvider.init(IASCacheProvider.java:225
at oracle.apps.jtf.cache.CacheManager.activateCache(CacheManager.java:14
44)
at oracle.apps.jtf.cache.CacheManager.initCache(CacheManager.java:752)
at oracle.apps.jtf.cache.CacheManager.<clinit>(CacheManager.java:378)
at oracle.apps.fnd.cache.Cache.setCacheFullName(Cache.java:228)
at oracle.apps.fnd.cache.Cache.initCache(Cache.java:114)
at oracle.apps.fnd.cache.Cache.<init>(Cache.java:89)
at oracle.apps.fnd.cache.AppsCache.<init>(AppsCache.java:86)
at oracle.apps.fnd.cache.AolCaches.getCache(AolCaches.java:155)
at oracle.apps.fnd.profiles.Profiles.<clinit>(Profiles.java:241)
at oracle.apps.fnd.profiles.ExtendedProfileStore.init(ExtendedProfileSto
re.java:498)
at oracle.apps.fnd.profiles.ExtendedProfileStore.<init>(ExtendedProfileS
tore.java:119)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at oracle.apps.fnd.common.AppsContext.instantiateProfileStore(AppsContex
t.java:4312)
at oracle.apps.fnd.common.AppsContext.makeProfileStore(AppsContext.java:
1171)
at oracle.apps.fnd.common.Context.setProfileStore(Context.java:970)
at oracle.apps.fnd.common.Context.setProfileStore(Context.java:952)
at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java
:958)
at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java
:918)
at oracle.apps.fnd.common.AppsContext.<init>(AppsContext.java:752)
at oracle.apps.fnd.cp.request.CpContext.<init>(CpContext.java:141)
at oracle.apps.fnd.cp.request.CpContext.<init>(CpContext.java:124)
at oracle.apps.fnd.cp.request.Run.main(Run.java:127)
Caused by: oracle.apps.jtf.base.resources.FrameworkException: null
null
CacheDefaultConfig.properties (The system cannot find the file specified)
at oracle.apps.jtf.base.resources.FrameworkException.convertException(Fr
ameworkException.java:607)
at oracle.apps.jtf.base.resources.FrameworkException.addException(Framew
orkException.java:585)
at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkExc
eption.java:66)
at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkExc
eption.java:88)
at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkExc
eption.java:202)
at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkExc
eption.java:218)
at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkExc
eption.java:249)
... 26 more
Exception in thread "main" oracle.adf.mds.exception.MDSRuntimeException: Cache n
ot initialized
at oracle.apps.fnd.framework.mds.cache.ATGCacheMgrDelegateImpl.<init>(AT
GCacheMgrDelegateImpl.java:325)
at oracle.apps.fnd.framework.mds.cache.ATGCacheFactoryImpl.<init>(ATGCac
heFactoryImpl.java:44)
at oracle.apps.fnd.cp.request.CpContext.getMDSContext(CpContext.java:116
9)
at oracle.apps.fnd.cp.request.Run.main(Run.java:130)
I've put the appsborg2.zip file in my classpath. I've also copied the entire (1 GB) worth of Java .class files for Oracle apps onto my computer and placed it on my classpath. Is there something that prevents me from testing out my Java concurrent program on my Windows machine from the command line?

i think if u run the ap in the command line then it has to stay open, you could try writing a .bat file then when that is executed it will only open the command line for the program execution (i think)

Similar Messages

  • Help required - running a Java program from the command line

    Hi,
    I have a small non-graphical Java application, packaged into a Jar file. My program relies on classes in another (external) Jar file.
    When I run the application from the IDE, everything works fine. However, when I try to run the application from the command line, I keep getting a NoClassDefFoundError for classes in the external jar.
    Both the application jar file and the external jar file are in my root directory (C:\).
    My command line call is as follows:
    java -cp c:MyExternalLib.jar -jar MyApp.jar
    Any help greatly appreciated.
    Thanks,
    Walter

    hi,
    set classpath=%classpath%;c:\myjar.jar;
    here i have specified myjar.jar file as an example u give ur location.after setting the classpath run ur java application.
    java mypgm
    this will solve ur problem
    regards,
    Ganesh

  • Problem with running a java program from the command line

    I have this code:
    package pkg;
    import jxl.*;
    import java.io.File;
    public class TestClass {
         public static void main(String[] args) {
              try{
                   Workbook book = Workbook.getWorkbook(new File("d:/testWorkspace/excFile.xls"));
                   Sheet sheet = book.getSheet(0);
                   String s=sheet.getCell(4, 2).getContents();
                   System.out.println(s);     
              }catch (Exception e){System.err.println(e);}
    }I've wrote it in Eclipse, added jxl.jar to the buildpath, and it works fine.
    Then I tried to run it from the command line and I did it like this:
    D:\testWorkspace\testProject\bin> java -cp \jxl.jar pkg.TestClassThe result was:
    Exception in thread "main" java.lang.NoClassDefFoundError: pkg/TestClass
    Caused by: java.lang.ClassNotFoundException: pkg.TestClass
    ...but the file TestClass.class DOES exist in the folder d:\testWorkspace\testProject\bin\pkg\ and the file jxl.jar IS on the root of drive D (like I already wrote, it worked fine inside the Eclipse).
    So, my question is: How to run this code from the command line?
    I have no idea what went wrong.
    Can someone help me, please?

    The current directory is not implied in the classpath.
    D:\testWorkspace\testProject\bin> java -cp .;d:\ pkg.TestClassor
    D:\testWorkspace\testProject\bin> java -cp .;d:\jxl.jar pkg.TestClassI always forget which is right since I never work with jars...

  • Java system properties in the command line...

    Is it possible to know (at run-time) which system properties have been specified in the command line (using the -Dprop=value argument)?
    Actually I would like to avoid people running the JVM and using my program overwriting the user.name property.
    Thanks
    Lionel

    Why use JNI? That's a little overkill. Just use args[] in main.
    public static void main( String args[] ) {
    for( int i = 0; i < args.length; i++ ) {
    if( args.startsWith("-Duser.name=") ) {
    System.out.println( "Well " + args[i].substring("-Duser.name=".length) + " you're not who you say you are!" );
    System.exit(-1);

  • Running powewrpc programs from the command line

    I am trying to run a powerpc application (quicken) from the command line. I want to log into the mac over my local network and run a powerpc program, but I get the following when I try it:
    cannot execute binary file
    I am logging in via ssh, and am running the X11 package from a different unix system which also runs X11.
    How do I get the application to execute? (it runs fine from the desktop).

    I am sitting at a Sun Solaris machine (it runs X11R6
    and Matif). I want to run Quicken, which is on the
    mac mini. I log into the mac with ssh -X. I find the
    Quicken program, but the permissions are set to 644
    (read, but not execute). If I change the permissions
    and try to run the program I get teh error message
    "cannot execute binary file".
    The window interface of the Mac is not X11: so you cannot output it on another X system. Is is not like connecting to another Un*x system.
    Said that, you should be able to launch a program, but you cannot see the output. However, usually Macosx applications are bundles with some executable inside, not directly an executable file: .app files are folders, not files. In order to launch such kind of apps, you have to use the open command I suggested in the previous post.
    I have no idea what VNC is. If this is how I can do
    this, then please provide me a link to it.
    VNC is a screen sharing application, just like Windows Remote Desktop. You may install a VNC server on your mac mini, and then connecting with a VNC client you will see all your computer screen as if you were there. It is cross platform, so no matter which is your client (including mobile phones).

  • Can't change activation only mode to off using the command line in Windows 7 64 bit

    I used the command line to turn activation only mode on and now when I use teh command to turn it off it will not change the iTunes setup. I am on Windows 7 64 bit. I tried uninstalling itunes and reinstalling and it is stillin activation only mode.

    Hi! Thx for your quick reply! I am still unsure what to do tho---see my questions below in bold:
    Windows 7 comes with its own version of the standard PostScript driver. = Where is this driver? I have no idea how to find it, it doesn't show up in my Printer menu in FM?
    Given that PostScript generated by a driver can be highly device-specific, you need to install the driver as modified by the PPD file for the device in question. Most printer manufacturers in fact provide a PostScript driver installer that associates their printer's PPD file with the standard Windows Printer driver and subsequently creates what is called a PostScript printer driver instance for the particular device on the I/O port you designate. = ??? I've only updated a PPD file for watermarks and have no idea what this means...is there a step-by-step instruction for this? I just need to download a PS driver to select that works & doesn't freeze up my FM when creating a .ps file.
    The real question thus is exactly what are you trying to generate PostScript for? = I create a PS, & then use Distiller to create a PDF. This enables me to have a PDF that automatically has Bookmarks, the TOC/LOF/LOT & all corss-refs are hyperlinked, etc.
    If you are trying to create PostScript for distillation into PDF, Acrobat installs a PostScript driver instance of its own, labelled Adobe PDF, that is associated with the Acrobat Distiller PPD. = I have tried the Adobe PDF selection from my Printer menu in FM, but it freezes up FM and I have to close the whole program & no PDF generates.
    BTW, although you may be successful in installing and running FrameMaker 8 on Windows 7, in fact Adobe officially does not support FrameMaker 8 on Windows 7. = I don't know what to say---the upgrade is too expensive for some of us folks out here right now, so we all need to work with what we have for now!
    I appreciate your help, thank you.

  • Compress/zip files from the command line in Windows 7?

    In Windows 7 is there a native way to compress or zip files from the command line?  I'd like to do it without installing any third-party utilities such as 7Zip.

    I fully agree that Compact is not the answer. There are additional concerns with the Compact command. It enables disk compression which is a total no-no. Very bad! It makes your computer very slow and is quite difficult to undo. The only time anyone should
    use this command is when they're removing disk compression because someone turned it on to save space.  Turning this off has to be done by booting into the recovery console, if my memory serves me correctly, and it's a real nuisance.  So
    definitely no to the Compact command.
    If you wanted to compress files before sending them to another drive, or over a network, or by email, then Compact wouldn't actually help at all because the files have to get uncompressed whenever they're accessed, especially before sending them anywhere. 
    When I say accessed, I mean that just looking at a file triggers the OS to decompress it in the background and present you with an uncompressed version of it then letting you change it and recompressing it again for storage every single time you access the
    file, which is why your machine gets slower.  If you have folders or files that have blue text instead of black, then you've probably already made this mistake.
    I would also like to know if there is a built-in command for zipping files/directories, or, if there isn't such a thing built into Windows, then I would like to know if this is feature is accessible through Visual Studio, which would be just as good as having
    a command-line program for those of us that do a bit of programming.
    If anyone knows if MS provides such a feature, either by command-line or through an API, then I'd love to hear about it.  Good luck to those of you that have disk compression turn on.

  • How I can set my default browser mozilla firefox from the command line in Windows 7?

    I need to set my default browser mozilla firefox from the command line, ie without using the GUI.

    '''-setDefaultBrowser''' is the correct command - you need the two capital letters.
    Why Firefox 17.0.1? You would be missing a number of important security updates. Firefox 17.0.'''9''' is the current ESR release version.

  • Removing a cs5 extension from the command line on Windows broken ?

    On Windows
    "Adobe Extension Manager CS5.exe" -suppress  -remove product="Dreamweaver CS5" extension="Sample"
    does not work. MacOS similar cmd line works fine. The process always exits with a non-zero status. If I run w/o -suppress the GUI for Extension Mgr
    shows up w/o actually removing the extension on Windows!
    Is this a known bug ? Any workaround to uninstalling an extension from command line on Windows ?

    I just found out how. Thanks!

  • How to run the Quick Repair in Uninstall a Program from the command line

    Hello everyone.  Right now we're manually going onto machines and opening Control Panel, Uninstall a Program, then doing a Change on our Office 365 2013 installs to run the Quick Repair option.  Is there a better way to do this with a command line
    command (that only references local files on the machines), or just issues the same exact command that our manual intervention described above does? 
    We have the click to run version installed also if that matters.

    Hi,
    To run a Quick Repair for 64-bit operating systems:
    “C:\program files\Microsoft Office 15\ClientX64\integratedoffice.exe” RUNMODE RERUNMODE modetorun repair
    To run a Quick Repair for 32-bit operating systems:
    “C:\program files\Microsoft Office 15\ClientX86\integratedoffice.exe” RUNMODE RERUNMODE modetorun repair
    Note: The above commands need to be run from an elevated command prompt.
    For more information, please refer:
    http://blogs.technet.com/b/office_resource_kit/archive/2013/06/17/automating-quick-repairs-in-office-365-proplus.aspx
    Hope this helps.
    Regards,
    Steve Fan
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • How to run a Java program without the command line.

    Is there anyway to create a Java program that runs like most programs do in Windows ,by double clicking on their icons?
    Thanks,
    Vance

    http://www.ej-technologies.com/products/exe4j/overview.html
    Looks kinda cool. Most java-2-exe programs are usually way too expensive and wont work with GUIs and require other dlls/libraries...

  • Customising/Personalising the XDODTEXE Java Concurrent Program

    Hi,
    Does Oracle provide any API/Personalisation for the generic XDODTEXE Java Concurrent Program. I am not talking about customising any particular report by modifying the Data Template XML in the Data Definition of that report. Rather my requirement is something like the following...
    I want all reports using XDODTEXE Java Concurrent Program as the executable to insert the XML data generated by the report to a generic custom Table. Something like an extra Generic After Report Trigger/program which XDODTEXE will execute apart from the codes in the Data template XML. I dont want to modify the individual XML Data Template.. but the XDODTEXE runs it for every report run.
    Does Oracle provide an API or Hook to accomplish the same?
    Thanks
    Biju Radhakrishnan

    Pl post details of OS, database and EBS versions, along with what business/technical problem you are trying to solve. AFAIK, I am not aware of anything that will let you write the output from XDODTEXE to a custom table.
    HTH
    Srini

  • PL/SQL log messages are not printing from Java concurrent program

    Hi,
    I have a strange issue while submitting the Java concurrent program through PL/SQL.
    I have a PL/SQL concurrent program which will invoke the Java concurrent program inside the package by use of "FND_GLOBAL.SUBMIT_REQUEST". It worked and submitted successfully. From that Java concurrent program we are calling some other PL/SQL packages and printing some log messages over there. But problem here is the request is only printing the Java log messages in view log but not the PL/SQL log messages.  But if I submit the Java concurrent program directly from SRS form at that it is printing both Java and PL/SQL log messages.
    I am just wondering how the log messages has not printed. Please provide your inputs to solve this problem.
    Thanks
    Suriya

    I'm adding log messages in the package body , but these messages are not printing after completion of concurrent prog.
    Any suggestions.
    FND_FILE.PUT_LINE(FND_FILE.LOG,'Data Test :');Do you have COMMIT in your code?
    https://forums.oracle.com/forums/search.jspa?threadID=&q=%27FND_FILE.PUT_LINE%27+AND+commit&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Java Concurrent Programs

    I am currently exploring the creation of Concurrent Programs using Java (non-stored procedure) and am getting the following error in the log file:
    java.lang.ClassNotFoundException: com.boeing.java.skims.test.TestJavaConcurrentPrograms
         at oracle.apps.fnd.cp.request.Run.main(Compiled Code)
    Does anyone know if there exists any documentation for implementing concurrent program executables using the Execution Method: "Java Concurrent Program"?
    The documentation on this topic appeared to be non-existent in the "Oracle Applications Developer's Guide.
    Does anyone know if there are javadocs that exist for the class defined in $FND_TOP/java/jar/*.jar files?
    Thanks,
    Gary Arensdorf

    More Information:
    I found two NOTES on Metalink that have propeled me further in my Quest: 186301.1 & 250964.1
    250964.1 is a brief "How to.." that I was able to follow and execute within the Apps thru to successful completion.
    What I am really after now is API documentation for the packages/classes under oracle.apps.fnd....
    Does anyone know whether this documentation is available from Oracle for their Apps customers?
    I could not locate any on Metalink and the most recent version of the Oracle Applications Developer's Guide is date April 2001.
    Thanks,
    Gary Arensdorf

  • Question related to Java Concurrent Program

    Hi Friends,
    I have a basic question related to Java Concurrent Program in the Oracle application. I would like to know the how Java concurrent program is executed in Oracle applications.Also, want to know where can I find the document for the AOL packages for Java concurrent program. Document for packages like oracle.apps.fnd.cp.request.* , oracle.apps.fnd.util.*.
    Please let me know.
    -Thanks,
    Satya

    You may also check:
    Note: 250964.1 - How to Register Sample Java Concurrent Program
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=250964.1
    Note: 186301.1 - How to register and execute Java Concurrent Program ?in Oracle Applications R11i?
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=186301.1

Maybe you are looking for